标题: ????Linux????????·??·???ò?é --zt
zing
论坛支持团队



UID 79
精华 0
积分 710
帖子 701
阅读权限 10
注册 2004-8-30
状态 离线
发表于 2006-5-6 17:31  资料  个人空间  短消息  加为好友 
????Linux????????·??·???ò?é --zt

????????????????????emdebian·????????¤
????Linux????????·??·???ò?é
×?Linux????????????????????????????????·??·?????¨???á???ú???????÷???????????à???ú?·???????????è?????ò????????????????????????·??·???ò??×??á???????÷?????°????????????????

emDebian - http://emdebian.sourceforge.net

uClinux - http://www.uclinux.org

buildroot - http://buildroot.uclibc.org

scratchbox - http://www.scratchbox.org

openEmbedded - http://oe.handhelds.org

  ???????????ó?à???ù?????ù????·????é?ò×????????à?????????????????????????????·????·????????????????á?°?±?ü????

emDebian
emDebian?ù????Debian????????????????????????·???Debian??????·??????ì????????????????????Debian?±?????????????????????ü??·???°????????°??????Debian????°?×°???????ê???±???????????????????????°×????±°?±??????????????í????????????Debian?????????ò?????????°Debian?????§??11??????????????°ü?¨X86??PPC??MIPS??ARM??SH???¨??×??ü?????ò??????ARM???????????§????????°ü?????ó?????í???????????é????Debian????·??????????ò?????í?à?????????§?????ò????????±??????????í?????ù±??????è??????????°?×°????????????????Debian?????ò??????

???ù???????????????±??????????????????????????????????emDebian?ù?????????ò?×??????????????·?????·¨?????ì???????????????????????ì???????????????è??????·??¨???????????è?????¤?????????ò???????????????????????????é?????????¤??????·¨?????à·??¨?????????????ù?? from scratch ???????????????·???¨??·???????emDebian?á???????¤???????ú?ê???????????????ò°?×°°ü?¨deb???????à??Redhat??rpm?????á???è???????????????ú?ê???ê???????????¨???±?????§?????????¨????±???????????X86 ??PC?????¨?????ù??ARM???????????????????????????è??±à?????????????ú????

???í????????emDebian??????????????????????????????????CPU????11??Debian?§??·??§???????????????????????ò?????¨??emDebian???¨??±ê?????????ù?è?????÷???í????Debian?§??????·???·???·??ü2?ò???í?????????????????????§???????÷?ì??????????°????¤?????±???????????¨???í?????????????è?????????????¨?????????ù?????????????????ú??Deb°ü?????ó??????????emDebian?¤?????????????ü?ù???í?????ù??????????????

emDebian??·??????????????????????????????÷???????????ü????????2004?ê????

buildroot
emDebian?????????????¨??????×???·??????±??????????????±???????2M Flash?????????????????í??·???°????í???¨???á???¨???ú????±à???????????????????????÷??X86???¨????????°?×°???ó?à??·???°??¨???á??i686????i386?ú??????±à???í?????????????????¨????????????CPU????????????·?????×????¨???????????????±?á?????????§???ò°?????·???PIII??PIV??athlon???????????????ò?????????????????????????????á???????????é???í???????????????????¨???????è???¨???????÷???á±??????????????ò?????????????????¨??????±?????

??????Linux??·?????????CPU?????ù?ù?ò?????á???????ò???????????á???ú??????????·???±??????¨????·????±????????CPU???????????????¨??????????±?????±à???÷????????????????????ARM???????????????¨?? -march=armv5te ?? -mtune=arm9tdmi ?????ú????ARM9?????????????????????±????????????????????????????±????ó??????????±?????????????·¨???ú???????°?ó???????¨???????????????????¨???á?????í????PIV??????????i686??pentium4??????????±à????·¨???????????????????????á??????±???

  ????·ù?????á??????????????????????????·¨???ó??????????????????????i386?òi686?????????????ü??????PIV??????±à?????????ú?÷?ú???????????????????????????????ê???????????????ê?????ò???????á?????ó????×????????????ù?????ú??????ARM???¨??ARM4??ARM5???????ó??ARM9???????????????????ó???á??????????CPU?????¨???????????????????????í???è??????????±?????????

???????????????????????????ó???????????????í???????è??????·????????????????????í???ù??????????????GNU??Glibc??????·????è?ó???ê???????????????????????????????????????????????ó????????uClibc???á?????????????????ù??????????uClibc????????????Glibc???ó?à?????????ò???????????ò?ê???????????é??????????????uClibc???úglibc???¨??uClibc???ú??Glibc????????????±????????ò???????°?á?????ó?ó????·??????????ó???????????????ò????????????±à??????????????????????±à????

????????uClibc?ú?????????ò?????è?????????????????????¨???è?????????????????¤?????¨gcc/binutils??????±à???ú?????????¤?????ì???ù?????·?????????ó?à?????¨???ò?±???????????¨?????????ò???????é???ò????uClibc????·??????ì????????×?buildroot???¤??????buildroot??×??????ì±à???ù??uClibc?ú?????¤??????uClibc???????á???????????????ò???????????¨?????ù±????????????????????§???è???¨?????????????????à??????±ê?í????buildroot???????????¨?ù±??¤?????????????±??×??ó???¨????±ê?????ù?è???????÷?????????????????????ù??ext2??initrd??jffs?ù?????????????????ù?????÷?????????ú???????ù??uClibc????????????Glibc????Buildroot???÷?ú?????????ó???????¨?????è???÷?ú?????á??×??????¨?¤????(toolchain)???¤??????gcc/binutils?????±?¤????±à???ê???ó??????±ê?????è??????????±à?????????÷?ú????????·??¤?????ù±??????????????????????ò???????????÷?ú?????????¨??????????±à???ê???¤??????????±à??????????±ê???????????ú???????????????????????????????????ì?????ù????·????±?????????÷×???????Linux·???°?????????·???????±?????????????????????????

uClinux
uClinux??emDebian??????????????????±????????????¨·??????°???????á????????uClinux???? from scratch ???à?????í????????????·???uClinux???§??????emDebian?§????11??CPU?????±??????????·¨?????????±?????·????·¨??uClinux?§??????????±?MMU??????CPU??????uClinux???????????????§??MC68328???????????????§???ü?à??CPU????Intel i960??ARM??????????uClinux???÷????·????????°?????????§??ARM???????? Samsung ?? Hyok S. Choi ??????????°???Linux 2.6°?±????????????? uClinux/ARM2.6 ??????

To be continued ??

scratchbox
openEmbedded

顶部
zing
论坛支持团队



UID 79
精华 0
积分 710
帖子 701
阅读权限 10
注册 2004-8-30
状态 离线
发表于 2006-5-6 17:35  资料  个人空间  短消息  加为好友 
uClinux
uClinux??emDebian??????????????????±????????????¨·??????°???????á????????uClinux???? from scratch ???à?????í????????????·???uClinux???§??????emDebian?§????11??CPU?????±??????????·¨?????????±?????·????·¨??uClinux?§??????????±?MMU??????CPU??????uClinux???????????????§??MC68328???????????????????§???ü?à??CPU????Intel i960??ARM??????????uClinux???÷????·????????°?????????§??ARM???????? Samsung ?? Hyok S. Choi ??????????°???Linux 2.6°?±????????????? uClinux/ARM2.6 ??????

uClinux???°?????????????????????ó??·???????????°ü?¨?????????????????ò???¤????±à???à????????????????????????·??·??????buildroot??????????uClinux??±à????±ê???????¤?????????????????à????±à???¤???????á?°°?×°????????????arm???????è????°?×°ARM????±à???÷??uClinux??±à???÷???è????????????????±?????????????·????÷??°ü?¨??

?????ú??FLT????????????????MMU????????uClinux???§??ELF?????????????????????÷??°ü?¨bin2flt?¤??°ü??????ld??wrapper??±?????????(???÷?????§)?ú??FLT??????

?????§??XIP(Execute In Place)?????????????????è????gcc???????????????????§??XIP?÷???????????????????·????????????????

  XIP?????¨???????????????·???????????????ó??±????????????????¨?????????????????ú???ó????????RAM?????????¨?????????????????ò±à????XIP?§???????ó?±????Flash???????????????????????±???????????????????ó???÷???????¨?????????????í?÷?????ò?????ò????????????????????XIP?????ò?±????Flash???????????ù?????á?????????????????????°?ì?????????¨??????????????XIP???????ò???à?????????????????í?ú???????????ó?ê????????

FLT???????????§????????????(???°??m68k?§???????? uCdot: Shared libraries under uClinux mini-HOWTO)????????

uClinux??±à???????ó???????×?????¨???????????????¨menuconfig/xconfig??????Vendor??board?¨?????????????????????????????ú?·?à???????????????ó?ù?????????ì??????????target????·??·???????ú???·???????è???????????¨uClibc??glibc?òuC-libc???°???ü?????????????ó±à???????????????????ò??×??ó???ù????????°?×°??romfs?????????ù???è???ú????±ê???¨?è?????????????¨????romfs.img??linux.bin??rootfs.gz??????

  ????????????????±???????????uClinux??????±à??????·?±??????è??????????(make menuconfig)?????ó make ???????±??????×???????????????·??????????????§???§?°???????é·???±????ê???ó???ù????±?????·???????????????uClinux?????ê???é????

×????????????°??uClinux?????×?÷????????MMU???¨????????????????????Linux?????·????????????·??????? Linux from scratch ?????????×????MMU?à??????????uClinux??????×÷?????×????°ü??MMU????????????·??·????Snapgear ????????????????×???????????????????????·???uClinux???????????±??±à???????§??????X86??uClinux??

scratchbox
Scratchbox ??????????buildroot?????¨???????¨??scratchbox??·???????????????????????????????????buildroot???????·???????????ì±à???÷???ù±???·??·???????ó?ù?????§?????????ì????????????±ê???¨???ù?????????????????????????????í?à??·¨????????×???initrd?ò?¨??NFS????????±ê??????????????????????±à???í?????????é·???????????buidroot???¨???×??±ê??????±à???·???¨Gcc??binutils??lib?????????ù???§?????¨???????ù±???????????±ê???????±??±???±à???í??????????±ê????????×??????°??buildroot?????????????ù±??á????????????????????????·?????????????±ê???????±??±à???ú?????????¨?????????????ò???à???é??????????????±ê???¨???í?÷?????????á???????????ù??????????????????????????????????

?????¨??buildroot±à?????ü???í?????????á???í?à?????????í?????è??????????±à???à???????ì??

????±ê???¨??±à???í?????????????????ò??°??×????????????????±à???????????????á????????°??ì???±????

??????????°ì·¨??????????????±à??????????????·????????¨??buildroot????±à??????????????????Buildroot???????¨??????????±ê???¨??????????????????????????·¨???????????????±??±ê???¨???????÷?ú???¨?±???????ú??????????±ê???¨???????ú???????ù???í?à?¨??autotools?¨autoconf/automake?????????í?????????á????????????????configure ??±????±?á?ú???????????ú?????????????????·????·??·??????·????????????????ò?·????????????X86??±à???ù??uClibc X86??±ê???¨?ú?????????á??????????????????±ê???¨??X86?????????¨??±à?????????á????????????configure??±??·??±à???÷??·??¤×÷???á????±à??????°ü???????÷???ò???ú????????????????????????????±ê???¨?? a.out ?·???ú????????????????????????±ê???¨???????????????á?ò?? a.out ±????????÷?ú?????????í?ó????????????????????±? buildroot ?¨???????ò?????? configure ???????????????????????????????ò?¨??HOSTCC?¨?÷?ú????CC?????ú???????????ú??×????????????°buildroot°ü?????í???ò?à?ò?????á?????????ù??????????????·????????????????í?????¨???????á??????±??????????ù?§????

Scratchbox?à±???buildroot????·???????????

?????? chroot ???·?????ê?????????÷?ú??±à?????????ù±????÷?ú?????????¨????scratchbox?????????????????????¨???§????chroot??±à???·???????????à?????§???????±???????×Scratchbox??·??×?????ê???????????§×???????

????qemu?????????òsbrsh?????????????????ò?à??configure????????????????????

??(chroot?ó)?????????????¨??????×????????ó?à???í?????§???????????????????í???????????????ì?????? ???? ±à???????????í?? ?ó???? ??????????±ê???¨??±à????

???? Scratchbox ???°??????±à?? ARM ?? x86 ???ú?????????§?? buildroot ?ù?§???? ppc??mips????

±??????ê?????????·?????ò???÷???í????????????????(?????????????ü?ê??????????????????????????????±????????????????????????????????????ò???????????ù?? scratchbox ??????????????°?×°?ê???ó???????ò???????????????????¨Debian???§??°?×°?????ü?ò?????ò???????á??Deb°ü???±??apt-get???????????¨?? /scratchbox/login ??????·??·?????¨??sb-menu?????????ù?? ARM ???·???¨???? Select CPU-transparency method ??qemu??????sbrsh???????ó?????? helloword.c??±à???????????? ?¨??ldd???????????????????????????é?????????????ú????ARM ELF?????? scratchbox ??????????X86???÷?ú??????????????

[sbox-redice: ~] > gcc -o hello hello.c
[sbox-redice: ~] > file hello
hello: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.0.0,
dynamically linked (uses shared libs), not stripped
[sbox-redice: ~] > ./hello
helo world!
[sbox-redice: ~] >???ó???ê??????????????Scratchbox???§??°???

[ ±???×??ó?? zing ?? 2006-5-6 17:43 ±à?? ]

顶部
 



当前时区 GMT+8, 现在时间是 2024-11-24 02:29

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.011600 second(s), 6 queries

清除 Cookies - 联系我们 - 我要委托设计网 - Archiver