linuxÓÃbusyboxÖÆ×÷ramdiskµÄ·½·¨
Ä¿Ç°µÄǶÈëʽ¿ª·¢´ó¶à²ÉÓÃlinux²Ù×÷ϵͳ£¬linux²Ù×÷ϵͳÔËÐеÄÒ»°ã·½Ê½¶¼ÊÇÄںˣ¨ÈçbzImage£©¼ÓÉϸùÎļþϵͳ£¨rootfs£©£¬Äں˵ıàÒë²Ã¼ô˵µÄºÜ¶à£¬Ò²²»Âé·³£¬ÎÒÕâÀïÏë˵µÄÊÇʹÓÃbusyboxÀ´ÖÆ×÷rootfsµÄ·½·¨£¬
·Ï»°²»ËµÄÇô¶à£¬ÎÒÖÆ×÷ÁËÒ»¸ösh½Å±¾³ÌÐò£¬¿ÉÒÔÖ±½ÓÉú³ÉÎÒÐèÒªµÄramdisk£¬ÏȽ«½Å±¾Ìù³öÀ´£º
#bash/sh
echo "Start make rootfs !"
cd /usr/src/mkOSrtfs
mkdir rootfs
cd rootfs
mkdir dev etc lib proc tmp usr var
chmod 777 tmp
mkdir usr/lib
mkdir var/lib var/lock var/log var/run var/tmp
chmod 777 var/tmp
cp -dpR /usr/src/busybox-1.14.2/_install/* .
cp -R /dev/console dev/
cp -R /dev/null dev/
cp -R /dev/zero dev/
cp -R /usr/src/busybox-1.14.2/examples/bootfloppy/etc/* etc/
dd if=/dev/zero of=/usr/src/mkOSrtfs/disk bs=1M count=32
mkfs.ext2 -m0 /usr/src/mkOSrtfs/disk
mkdir /mnt/ram
mount -o loop /usr/src/mkOSrtfs/disk /mnt/ram/
cp -R /usr/src/mkOSrtfs/rootfs/* /mnt/ram/
umount /mnt/ram
dd if=/usr/src/mkOSrtfs/disk of=/usr/src/mkOSrtfs/ramdisk.img
gzip /usr/src/mkOSrtfs/ramdisk.img
echo "End make rootfs!"
½Å±¾Ð´µÄºÜ¼òµ¥£¬ÄÜʵÏÖ»ù±¾¹¦ÄÜ£¬Ã»ÓÐÌí¼ÓÅжϣ¬ÈÝ´íÖ®ÀàµÄ£¬¾ÍÊǸöÒâ˼£¬Óõõ½µÄʱºò£¬¿ÉÒÔÔÚÉÏÃæÐ޸ģ»
ÐèҪ˵Ã÷µÄʱºò£¬busyboxÒ²ÓÐmenuconfigÑ¡ÏÎÒÃÇÑ¡Ôñ£¬ÎÒÑ¡ÔñµÄÊǽ«busybox¹¤¾ß±àÒë³É¾²Ì¬¿â£¬ÎªÁ˼òµ¥ºÍ͵ÀÁ£¬Èç¹û±àÒë³É¶¯Ì¬¿â£¬ÐèÒª½«Óõ½µÄ¿â¿½±´µ½libĿ¼¡£
ramdiskÖÆ×÷ºÃÁËÖ®ºó£¬ÒÔºóÈç¹ûÓиĶ¯£¬Ö»Òª²ÉÓÃÈçÏ·½Ê½£º
mkdir tmp
gzip -d ramdiak.img.gz
mount -o loop ramdisk.img tmp
#cp ÐèÒªµÄ³ÌÐòµ½tmpÖ¸¶¨µÄÎļþ¼Ð
umount tmp
gzip ramdisk.img.gz
¾Í¿ÉÒÔÁË¡£
Ïà¹ØÎĵµ£º
contact me go -> xuqiang.docs@hotmail.com
ARM Linux Boot Sequence
The following traces the Linux boot sequence for ARM-based systems in the 2.6.18 kernel. It looks at just the earliest stages of the boot process, until the generic non-processor-specific start_kernel function is called. The line ......
ÒÔÏÂÊǾ¹ý´ÓÍøÉϻ㼯¶ø³É£¬ÏÂÃæµÄÁ¬½ÓµÄ½éÉÜÒ²ÊDZȽÏÏêϸ£º
http://linux.chinaunix.net/techdoc/net/2008/07/26/1020404.shtml
linux NFS ÅäÖò½Öè
linux NFS ÅäÖò½Öè
NFS server¿ÉÒÔ¿´×÷ÊÇÒ»¸öFILE SERVER,Ëü¿ÉÒÔÈÃÄãµÄPCͨ¹ýÍøÂ罫Զ¶ËµÃNFS SERVER¹²Ïí³öÀ´µÄµµ°¸MOUNTµ½×Ô¼ºµÄϵͳÖУ¬Ô ......
Ò»¡¢MakefileµÄ¹æÔò
ÔÚ½²ÊöÕâ¸öMakefile֮ǰ£¬»¹ÊÇÈÃÎÒÃÇÏÈÀ´´ÖÂԵؿ´Ò»¿´MakefileµÄ¹æÔò¡£
target ... : prerequisites ...
command
...
...
targetÒ²¾ÍÊÇÒ»¸öÄ¿±êÎļþ£¬¿ÉÒÔÊÇObject File£¬Ò²¿ÉÒÔÊÇÖ´ÐÐÎļþ¡£
prerequisites¾ÍÊÇ£¬ÒªÉú³ÉÄǸötargetËùÐèÒªµÄÎļþ»òÊÇÄ¿±ê¡£
commandÒ²¾ÍÊÇmakeÐèÒªÖ´ÐеÄÃüÁî¡££¨ÈÎ ......
1,ifconfigÃüÁî
ifconfig¿ÉÉèÖÃÍøÂçÉ豸µÄ״̬£¬»òÊÇÏÔʾĿǰµÄÉèÖá£
#ifconfig [ÍøÂçÉ豸] [down|up|-allmulti|-arp|-promisc] [add<µØÖ·>] [del<µØÖ·>] [<ÍøÂçÉ豸ÀàÐÍ> <Ó²¼þµØÖ·>] [io_addr] [irq ] [media<ÍøÂçý½éÀàÐÍ>] [mem_start<ÄÚ´æµØÖ·>]
[metric<ÊýÄ¿>] [mtu&l ......
תÔØ£º
ÏÖÔÚlinuxÏÂÓÐÔ½À´Ô½¶àµÄÓÅÐãµÄ²¥·ÅÈí¼þ£¬xmms£¬m-player£¬beep-media-player£¬totme£¬rhythmbox£¬µÈµÈµÈµÈ£¬µ«ÊÇÕâЩ²¥·ÅÈí¼þ¶¼²»ÄܺܺõĽâ¾ömp3ÎļþÖÐÎÄÐÅÏ¢ÂÒÂëµÄÎÊÌâ¡£
¾¿ÆäÔÒò£¬ÏÖÔÚÍøÉϾø´ó¶àÊý£¨99%ÒÔÉÏ£©µÄmp3¶¼ÊÇÍøÓÑÔÚwindowsÏÂѹÖƵģ¬ÎÄ×ÖÐÅÏ¢±àÂ뷽ʽ×ÔÈ»ÊÇGBK£¬µ½ÁËlinuxÏÂÃæ¾ÍûÓÐlftp ......