ºìÁªLinuxÃÅ»§
Linux°ïÖú

×ܽáÏÂ×î½üÁ½ÖÜѧϰarm linuxµÄ¹ý³Ì

·¢²¼Ê±¼ä:2008-04-06 15:53:13À´Ô´:ºìÁª×÷Õß:Inwind
¡¡¡¡¸Õ¿ªÊ¼Ê¹ÓÃuclinux-dist-2..70130µÄ·¢²¼°ü£¬2.95µÄarm-elf- ±àÒëÆ÷£¬Ä¿±êARMGDB£¬¿ÉÒÔ±àÒë³É¹¦£¬µ«ÊÇÒ»µ÷ÊÔ¾ÍËÀµô£¬ÎÊÌâûµÃµ½½â¾ö£¬ÎÞÄÎÏÂÔØuclinux-dist-20040408µÄ·¢²¼°ü£¬Í¬ÑùµÄ±àÒë»·¾³£¬±àÒëkernel 2.4³É¹¦£¬¿ÉϧĿ±êÊÇAT91µÄоƬ¡£

¡¡¡¡ÒòΪÊÖÍ·ÉÏÓÐEASYLPC2210µÄ¿ª·¢°æ£¬ÏÖÔÚ²»»á×Ô¼ºÒÆÖ²£¬ÐèÒª¸ÄºÜ¶àÎļþ°¢£¬Ã»°ÑÎÕ£¬¾ö¶¨Ê¹ÓÃ2.6µÄÄںˣ¬ÒÀȻʹÓÃ0408µÄ°üÀ´ ʹÓÃ2.95µÄarm-elf-À´±àÒë¡£NXPÓÐ2.6.11.8µÄLPC22XXµÄ²¹¶¡£¬ËùÒÔÔÚhttp://opensrc.sec.samsung.com/download.htmlÏÂÔظÃÄں˺Ͳ¹¶¡£¬Ìæ»»µ½Ô­·¢²¼°ü2.6.x£¬²¢ÏÂÔØLPC22XX²¹¶¡http://www.nxp.com/external/mailman/2005-June£¬²¹¶¡´òÍêÖ®ºó£¬±àÒëÌáʾ´íÎó£¬ÆäÖÐÓÐlookup_machine_type£¨£©£¬ÔÚarch/arm/kernel/setup.cÖУ¬ÕÒ²»µ½´Ëº¯Êý£¬ÎÞÄÎʹÓÃ2.4ÄÚºËÖеÄÓï¾äÌæ»»µô¸Ãº¯Êýµ÷ÓÃ

ÒýÓÃ:
/* struct machine_desc *list; */
/*
* locate machine in the list of supported machines.
*/
/* list = lookup_machine_type(nr); */

extern struct machine_desc __arch_info_begin, __arch_info_end;
struct machine_desc *list;

/*
* locate architecture in the list of supported architectures.
*/
for (list = &__arch_info_begin; list < &__arch_info_end; list++)
if (list->nr == nr)
break;


¡¡¡¡½â¾öÁËÕâ¸ö´íÎó¡£½ÓÏÂÀ´£¬Ò»¶Ñ±äÁ¿ÌáʾÕÒ²»µ½¶¨Ò壬ÍøÉÏÕÒÁ˺ܾã¬Ã»ÕÒµ½½â¾ö°ì·¨£¬È»ºóÏÂÔØ3.4µÄarm-elf-±àÒë»·¾³£¬½â¾öÁËÕâ¸öÎÊÌ⣬ÖÕÓÚ±àÒëÍê³É£¬Éù³Æromfs.img,µ«Ê¹ÓÃarm-elf-gdb µ÷ÊÔûÓÐͨ¹ý£¬ÕÒ²»µ½¿ÉÖ´ÐÐÎļþ£¬ÕâÊǽÓÏÂÀ´ÐèÒª½â¾öµÄ¡£

¡¡¡¡Í¬Ê±Ïë»Ø¹ýÍ·±àÒë2.4Äںˣ¬·¢ÏÖ3.4°æ±¾µÄ±àÒëÆ÷Ì«¸ßÁË£¬±àÒë³ö´í¡£·¢ÏÖ·ÇÒªÓÃLPCоƬ£¬Ã÷ÏÔÊǸú×Ô¼º¹ý²»È¥°¡£¬linux¶ÔÈýÐǵÄоƬµÄ²¹¶¡ºÜ¶à°¡£¬Ó¦¸Ã±ÈÆäËûµÄ·½±ãºÜ¶à¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ