




下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、6根文了解基于 RAM 的文件系统了解网络文件系统 NFS6根文了解基于 RAM 的文件系统了解网络文件系统 NFS理解 Linux 系统的引导过程掌握建立 JFFS2 根文件系统的方法 掌握建立 Ramdisk 文件系统的方法 掌握建立 Cramfs 文件系统的方法 Linux 的文件6.1 LinuxFLASH 的文件系JFFS(JournalingFlashFilesystem,日志闪存文件系统(1)YAFFS(YetAnotherFlashFile(2)3Cramfs(CompressedROM FileCramfsLinux的创始人LinusTorvaldsRAM 的文件系(1)YA
2、FFS(YetAnotherFlashFile(2)3Cramfs(CompressedROM FileCramfsLinux的创始人LinusTorvaldsRAM 的文件系网络文件系统6.2 rootlocalhostDesktop#catLinux 根文件系Linux 根文件系统结6.2 Linux/tmp/nfs*(rw,sync,no root NFS客户端使用者的权限,即如果客户端使用的是 root 用户,那么对于这个共享的客户端就具有root的权限IP1,Linux 系统的引导过6.3 Linux建立根文Linux 系统的引导过6.3 Linux建立根文实例BusyBox 建立文
3、件:。rootlocalhostDesktop#tar-xjvfbusybox-1.13.4.tar.bz2-CrootlocalhostDesktop#cdbusybox-3修改rootlocalhostbusybox-1.13.4#geditrootlocalhostbusybox-1.13.4#makeCROSS COMPILECROSS COMPILE?=/usr/local/arm/3.4.1/bin/arm-ARCH?=ARCH?= HYPERLINK mailto:rootlocalhostbusybox-1.13.4 rootlocalhost HYPERLINK mailto
4、:rootlocalhostbusybox-1.13.4 busybox-1.13.4#rootlocalhostbusybox-1.13.4#rootlocalhost busybox-1.13.4# gedit networking/修改erface.c818 HYPERLINK mailto:rootlocalhostbusybox-1.13.4 rootlocalhost HYPERLINK mailto:rootlocalhostbusybox-1.13.4 busybox-1.13.4#rootlocalhostbusybox-1.13.4#rootlocalhost busybo
5、x-1.13.4# gedit networking/修改erface.c818行改为.type=-rootlocalhostbusybox-1.13.4#rootlocalhostbusybox-1.13.4#llrootlocalhostbusybox-1.13.4#makerootlocalhostbusybox-1.13.4#llrootlocalhostbusybox-od4755 下生成一个,里面有rootlocalhostnfs#rootlocalhostnfs#mkdir-pbinsbinlib/modulesetc/init.ddevusr/binusr/sbinusr/li
6、bproc home root boot mnt/etc mnt/jffs2 mnt/yaffs mnt/data mnt/temp var/lib var/lock var/logvar/runvar/tmprootlocalhostod1777 od17772.8节(实例NFS服务器的搭建)-rwxr-xr-x.1root:10Youwillprobablyneedtomakeyourbusyboxbinary setuid root to ensure all configured applets willwork-rwxr-xr-x.1root:09-rwxr-xr-x.1rootro
7、ot20495325409:09-rw-r-r-.1rootroot 8900755409:09-rw-r-r-.1root835035409:09networking/ networking/ erface.c:818:error:ARPHRD_INFINIBANDundeclaredhere(notinafunction) networking/ erface.c:818: error: initializer element is not constantnetworking/ erface.c:818:error:nearinitializationforib hwtype.type)
8、 make1: * networking/ erface.o 错误 1make:*networking rootlocalhostnfs#cdrootlocalhostdev#rootlocalhostdev#mknod-m600consolec5rootlocalhostdev#mknodrootlocalhostnfs#cdrootlocalhostdev#rootlocalhostdev#mknod-m600consolec5rootlocalhostdev#mknod -m666nullc1rootlocalhostdev#mknod -m666tty0c4rootlocalhost_
9、install#cp-abinrootlocalhost _install# cp -a sbin /tmp/nfs/ rootlocalhost_install#cp-alinuxrc/tmp/nfs/#cp-ales/bootfloppy/etc/* rootlocalhostnfs#geditrootlocalhostnfs#llrootlocalhostod755 rootlocalhostnfs#geditrootlocalhostod755 #mountallfilesystemdefinedinfstab echo #mount all.ount-knod-m600/dev/co
10、nsolec5knod-m666/dev/nullc1knod-m666/dev/tty0c4knod-m666/dev/mtdblock0b31knod-m666/dev/mtdblock1b31knod-m666/dev/mtdblock2b31knod-m666/dev/mtdblock3b31 echoOK 2410 Rootfs made by ztg, 2013.05echo-rw-r-r-.1rootroot1545411:16下的profile文 - - rootlocalhostnfs#geditrootlocalhostod755 rootlocalhostnfs#gedi
11、trootlocalhost rootlocalhostnfs#geditrootlocalhostod755 rootlocalhostnfs#geditrootlocalhostod755 grouprootlocalhostnfs#geditrootlocalhostnfs#geditetc/shadowrootlocalhost nfs# gedit etc/grouprootlocalhostod600od644etc/passwd(6)为 mdev 创建配置文件 rootlocalhostnfs#llrootlocalhostnfs#rmetc/*-rwxr-xr-x.1rootr
12、oot 1175411:20-rw-r-r-.1root105411:25drwxr-xr-x.2rootroot40965411:19-rwxr-xr-x.1rootroot 3685411:19-rw-r-r-.1root05411:29-rw-r-r-.1root315411:27-rwxr-xr-x.1rootroot 5455411:21-rw.1root925411:27# /etc/profile: system-wide .profile file for the Bourne s echo-nPro sing/etc/profile. #no-op#Setsearchlibr
13、aryechoSetsearchlibrarypathin/etc/profile exportLD LIBRARY #SetechoSetathinexportPATH=/bin:/sbin:/usr/bin:/usr/sbinexportHISTSIZE=100 alias ll=ls -l#/sbin/ifconfigeth0192.1681.22netmask255255/sbin/ifconfiglo echoConfigurenet proc /proc proc sysfs /sys sysfs none /tmp ramfs mdev /dev ramfs rootlocalh
14、ostnfs#geditrootlocalhostoda+xrootlocalhostnfs#rootlocalhostnfs#ll实rootlocalhostnfs#geditrootlocalhostoda+xrootlocalhostnfs#rootlocalhostnfs#ll实例建立JFFS2 根文件 rootlocalhostutil#make #cd rootlocalhostutil#llrootlocalhost util# cp mkfs.jffs /bin/ rootlocalhostutil#cpmkfs.jffs2 6.6-rwxr-xr-x.1root1078 29
15、4765409:41-rwxr-xr-x.1root10781571325409:41-rwxr-xr-x.1rootroot 1314805411:37ld-lrwxrwxrwx.1root115411:37ld-linux.so.2-ld-rwxr-xr-x.1root:37libc-rwxr-xr-x.1root301555411:37libcrypt-lrwxrwxrwx.1root175411:37libcrypt.so.1-libcrypt-lrwxrwxrwx.1root135411:37libc.so.6-libc-rwxr-xr-x.1root157365411:37libd
16、l-lrwxrwxrwx.1root145411:37libdl.so.2-libdl-rwxr-xr-x.1rootroot 5468545411:37libm-lrwxrwxrwx.1root135411:37libm.so.6-libm-rwxr-xr-x.1root979755411:37libpthread-lrwxrwxrwx.1root185411:37libpthread.so.0-libpthread-rwxr-xr-x.1root814955411:37libresolv-lrwxrwxrwx.1root185411:37libresolv.so.2-libresolv-r
17、wxr-xr-x.1root136895411:37libutil-lrwxrwxrwx.1root165411:37libutil.so.1-libutil-drwxr-xr-x.2root40965409:26ROOTFS forfileinlibclibcryptlibdllibmlibpthreadlibresolvlibutil cp$file-*.so$ROOTFS cp-d$file.so.*0-9$ROOTFS LIB cp-dld*.so*$ROOTFS rootlocalhosttftpboot#rootlocalhosttftpboot#mkfs.jffs2-r/tmp/
18、nfs-orootfs.jffs2-e0 x4000-pad=0 x800000 -rootlocalhosttftpboot#ll rootlocalhosttftpboot#rootlocalhosttftpboot#mkfs.jffs2-r/tmp/nfs-orootfs.jffs2-e0 x4000-pad=0 x800000 -rootlocalhosttftpboot#ll 的rootlocalhostu-boot-1.1.4#iptables-rootlocalhostu-boot-1.1.4# If you want to run ELF image, you should u
19、se -e option to indicateyourelf-formatimagefilename.Oryouonlywanttorunbinaryimage, youneedtosetthefilenameoftheimageandtryinHitanykeytostopautoboot: OK2410#tftp0 x31000000 TFTPfromserver;ourIPaddressis10 Filenamerootfs.jffs2.Loadaddress:Loading:Bytestransferred=8388608(800000OK2410nanderase2d0000080
20、0000 /擦写,2d000000是MTD4个分区的起始地址,800000(8MB)NANDerase:device0offset47185920,size8388608.OK2410nandwrite310000002d00000/将rootfs.jffs2NANDFlash4NANDwrite: device 0 offset 47185920, size 8388608 . 8388608 bytes written: OK需要等待几分钟 OK2410setenv bootargs noinitrd mem=64M root=/dev/mtdblock3 rootfstype=jffs2
21、 rw init=/linuxrc console=ttySAC0,115200 /设置内核启动参数,注意 root=/dev/mtdblock3, OK2410#run/bootcmd=tftp 0 x31000000 uImage;bootm /表示先执行tftp 0 x31000000 uImage 命令,将内核映 /注意:对NANDFlash烧写(nandwrite)之前,一定要先擦写(nanderase) TFTP from server ; our IP address is 10FilenameLoadaddress:Loading:Bytestransferred=114041
22、2(1166bchex) # Booting image at 31000000 .ImageName: ImageType:ARM Linux Kernel Image ( DataSize:1140348 Bytes = 1.09 MBLoad Address: 30008000 Entry Po : 30008000 -rw-r-r-.1rootroot83886085409:56 Startingkernelpressingdone,bootingtheLinux HYPERLINK mailto:(rootlocalhost.local )(gcc3.4.1)#6SatMay410:
23、29:15CST Machine:0Memorypolicy:ECCdisabled,D CPU S3C2410 (id 0 x32410000)acheS3C2410:core202.800MHz,memory101.400Startingkernelpressingdone,bootingtheLinux HYPERLINK mailto:(rootlocalhost.local )(gcc3.4.1)#6SatMay410:29:15CST Machine:0Memorypolicy:ECCdisabled,D CPU S3C2410 (id 0 x32410000)acheS3C241
24、0:core202.800MHz,memory101.400MHz,peripheral50.700MHz S3C2410 Clocks, (c) 2004 Simtec ElectronicsCLOCK:Slowmode(1.500MHz),fast,MPLLon,UPLLon CPU0: D VIVT write-back cacheCPU0:Icache:16384bytes,asso tivity 64,32by ines,8CPU0:Dcache:16384bytes,asso tivity64,32by ines,8Built1 dline:noinitrdmem=64Mroot=
25、/dev/mtdblock3rootfstype=jffs2rwinit=/linuxrcMemory:64MB=64MBMemory:62464KBavailable(1850Kcode,397Kdata,96Kinit) Mount-cache hash table entries: 512 softlockup thread 0 started up. S3C2410: Initialising architectureNetWinder Floating Po Emulator V0.97 (double preci devfs: 2004-01-31 Richard Gooch (r
26、goochatnf.csiro.au) devfs: boot options: 0 x1JFFSver1.0,(C)1999,2000 AxisCommunicationsAB JFFS2ver2.2. (NAND) (C) 2001-2003 Red Hat, Inc.Console:switchingtocolourframebufferdeviceRAMDISKdriverinitialized:16RAMdisksof4096Ksize1024blocksize loop: loaded (max 8 devi )nbd:registereddeviceatmajorCirrusLo
27、gicCS8900AdriverforLinux(Modifiedforeth0:CS8900ArevDat0 xe0000300irq=53,noeeprom,addr:08:0:3E:26:0A:5B S3C24XX NAND Driver, (c) 2004 Simtec Electronicss3c2410-nand:mappedregistersats3c2410-nand:timing:Tacls10ns,Twrph030ns,Twrph1NANDdevice:ManufacturerID:0 xec,:0 x76(SamsungNAND64MiB3,3V8-NAND ECC le
28、ctedbyboarddriver.ThisismendedScanningdeviceforbadCreating4MTDpartitionsonNAND64MiB3,3V8-bit: 0 x00000000-0 x00100000 : bootloader0 x00100000-0 x00400000:0 x00400000-0 x02c00000:0 x02d00000-0 x03c00000: Mounted #mount OK 2410 Rootfs made by ztg, 2013.05 (none) login: rootlogin25:rootloginonPro sing/
29、etc/profile.Setsearchlibrarypathin/etc/profile Setusath in /etc/profile AllDoneroot(none)/root#118044May 4 2013283May 4 2013root(none)/root# =mainoworld! root(none)实例建立Ramdisk 文件系rootlocalhostlinux-#geditrootlocalhostlinux-#rootlocalhostlinux-#实例建立Ramdisk 文件系rootlocalhostlinux-#geditrootlocalhostlin
30、ux-#rootlocalhostlinux-#将到 在 rootlocalhost tools# ./mkimage -A arm -O linux -T kernel -C 30008000 -n linux- -d vmlinux uImagenone -a 30008000 -rootlocalhosttools#cpuImage 2制作 ImageSatMay 418:34:52Image Type:ARM Linux Kernel Image (Data1142720Bytes=1115.94kB=1.09LoadAddress:0 x30008000 Entry: DeviceD
31、rivers BlockackNetworkblockRAMdisk(16) DefaultnumberofRAM/默认RAMdisk(8192) Default RAM disk size (kbytes) Initial RAM disk (initrd) supportFilesystems Pseudofilesystems */devfilesystemsupport(OBSOLETE) * Automaticallymoun boot(NEW) * Debug devfs (NEW)*/procfilesystem*Virtualmemoryfilesystemsupport(fo
32、rmershmPseudoconfigDEVFS bool/devfilesystemsupport(OBSOLETE) depends on EXPERIMENTALdefaultconfigDEVFS boolAutomaticallymoun depends on DEVFS FSdefaultconfig DEVFS DEBUG dependsonDEVFSFS defaulty#ddif=/dev/zeroof=ramdiskbs=1k了了00字节(8.2MB),0.163916 秒,50.0MB/dd 命令用指#ddif=/dev/zeroof=ramdiskbs=1k了了00字节
33、(8.2MB),0.163916 秒,50.0MB/dd 命令用指定大小的一个文件,并的同时进行指定的转换。dd #losetup/dev/loop2,losetupblockdeviceloopdevice目前的状况。环回设备可把文件虚拟成区块设作#mkfs.ext2 #mkdir #mount -text2/dev/loop2#cp -av/tmp/nfs/* #mknod-m666/mnt/initrd/dev/ram0b1#mknod -m666/mnt/initrd/dev/ramb1 mknodmmod b/c mkfs.ext2选项devicemke2fs1.41.12(17-M
34、ay-Discardingdeviceblocks:完成操作系统块大小=1024分块大小=1024 2000 inodes, 8000 blocks400blocksforthesuper第一个数据块 1 block group8192blockspergroup,8192fragmentspergroup 2000 inodes per group正在写入inode 表: Writingsuperblocksandfilesystemaccountinginformation: Thisfilesystemwillbeautomaticallycheckedevery32mountsor 1
35、80days,whichever. Usetune2fs-cor-ito 是面向字符的设备(键盘等。选项-m 为设备文件指定权限#umount/dev/loop2;losetup-d/dev/loop2;gzip-9ramdisk # cp ramdisk.gz /var/lib/tftpboot 是面向字符的设备(键盘等。选项-m 为设备文件指定权限#umount/dev/loop2;losetup-d/dev/loop2;gzip-9ramdisk # cp ramdisk.gz /var/lib/tftpboot #llrootlocalhosttmp# rootlocalhosttmp
36、#ddif=/dev/zeroof=ramdiskbs=1k rootlocalhost tmp# mkfs.ext2 -F -v -m0 ramdisk rootlocalhost tmp# mkdir /mnt/initrdrootlocalhosttmp#mount-oloop-text2ramdisk/mnt/initrd rootlocalhost tmp# cp -av nfs/* /mnt/initrdrootlocalhosttmp#mknod-m666/mnt/initrd/dev/ram0b1rootlocalhosttmp#mknod-m666/mnt/initrd/de
37、v/ramb11 rootlocalhost tmp# gedit /mnt/initrd/etc/fstabrootlocalhost tmp# gzip -9 ramdiskrootlocalhosttmp#ll #cpramdisk.gz rootlocalhostu-boot-1.1.4#iptables-rootlocalhost u-boot-1.1.4# skyeye If you want to run ELF image, you should use -e option to indicateyourelf-formatimagefilename.Oryouonlywant
38、torunbinaryimage, youneedtosetthefilenameoftheimageandtryin-rw-r-r-.1root:49ext2 defaults1none /procproc defaults0了800000字节(8.2MB),0.0941164 秒,87.0MB/-rw-r-r-.1root:42Hitanykeytostopautoboot: OK2410#setenvbootargsconsole=ttySAC0initrd=0 x32000000,0 x440000root=/dev/raminit=/linuxrc;tftp0 x31000000 u
39、Image; tftp 0 x32000000 ramdisk.gz; bootm 31000000TFTPfromserver;ourIPaddressis10 FilenameuImage.Loadaddress:Loading:Bytestransferred=Hitanykeytostopautoboot: OK2410#setenvbootargsconsole=ttySAC0initrd=0 x32000000,0 x440000root=/dev/raminit=/linuxrc;tftp0 x31000000 uImage; tftp 0 x32000000 ramdisk.g
40、z; bootm 31000000TFTPfromserver;ourIPaddressis10 FilenameuImage.Loadaddress:Loading:Bytestransferred=1142784(117000TFTPfromserver;ourIPaddressis10 Filenameramdisk.gz.Loadaddress:Loading:Bytestransferred=1895342(1cebaehex) # Booting image at 31000000 . ImageType: DataSize: 1172564Bytes= 1.1 EntryPo :
41、 VerifyingChecksum.Startingkernelpressingdone,bootingtheLinux HYPERLINK mailto:(rootlocalhost.local )(gcc3.4.1)#8SatMay418:32:38CST Machine:0 dline:console=ttySAC0initrd=0 x32000000,0 x440000root=/dev/ramRAMDISKdriverinitialized:16RAMdisksof8192Ksize1024Creating4MTDpartitionsonNAND64MiB3,3V8-bit: 0
42、x00000000-0 x00100000 : bootloader0 x00100000-0 x00400000:0 x00400000-0 x02c00000:0 x02d00000-0 x03c00000:NET:RegisteredprotocolfamilyRAMDISK:Compressedimagefoundatblock0 VFS: Mounted root (ext2 filesystem).Mounted #mountall mknod: /dev/null: File exists OK 2410 Rootfs made by ztg, 2013.05 (none) lo
43、gin: rootlogin28:rootloginonPro sing/etc/profile.Setsearchlibrarypathin/etc/profile Setusath in /etc/profile AllDoneroot(none)/root#实例建立Cramfs 文件系rootlocalhosttmp#rootlocalhosttmp#fsrootlocalhosttmp#llrootlocalhosttmp#mount-oloopok2410.cramfsrootlocalhosttmp#lsrootlocalhostrootlocalhosttmp#rootlocal
44、hosttmp#fsrootlocalhosttmp#llrootlocalhosttmp#mount-oloopok2410.cramfsrootlocalhosttmp#lsrootlocalhosttmp#cpok2410.cramfstftpskyeye实例romfs 文件系#tar-xzvfgenromfs-#cdgenromfs-rootlocalhostgenromfs-0.5.2#rootlocalhostgenromfs-0.5.2#ll|greprootlocalhostgenromfs-0.5.2#cpgenromfs rootlocalhostlinux-#rootlo
45、calhosttftpboot#Filesystems Secondextended*ROMfilesystem-rwxr-xr-x.1root2436 月 272007 -rwxr-xr-x.1rootroot122605419:32-rwxr-xr-x.1root4156 月 272007 dev home linuxrc proc sbmp var boot copy_lib.sh etc libroot sysmkfs.cramfs-h-v-bblksz-eedition-ifile-nnamedirname-rw-r-r-.1rootroot21995525418:23rootloc
46、alhosttftpboot#genromfs-d/tmp/nfs-frootlocalhosttftpboot#llrootlocalhosttftpboot#genromfs-d/tmp/nfs-frootlocalhosttftpboot#ll选项及其说明见表 6.11。rootlocalhostu-boot-1.1.4#iptables-rootlocalhost u-boot-1.1.4# skyeye If you want to run ELF image, you should use -e option to indicateyourelf-formatimagefilena
47、me.Oryouonlywanttorunbinaryimage, youneedtosetthefilenameoftheimageandtryinHitanykeytostopautoboot: OK2410#tftp0 x31000000TFTPfromserver;ourIPaddressis10 Filenameok2410.romfs.Loadaddress:Loading:Bytestransferred=4212736(404800OK2410#nanderase2d00000NANDerase:device0offset47185920,size5242880.OK2410n
48、andwrite310000002d00000NANDwrite:device0offset47185920,size4212736. 4212736byteswritten:OK2410#setenvbootargsnoinitrdmem=64Mroot=/dev/mtdblock3rootfstype=romfsinit=/linuxrcconsole=ttySAC0,115200; runbootcmdTFTPfromserver;ourIPaddressis10 FilenameuImage.Loadaddress:Loading:Bytestransferred=1142784(11
49、7000hex) # Booting image at 31000000 .ImageName: 2013-05-04 10:34:52ImageType:ARM Linux Kernel Image ( DataSize:1142720 Bytes = 1.1 MBLoad Address: 30008000 Entry Po : 30008000 Startingkernelpressingdone,bootingtheLinux HYPERLINK mailto:(rootlocalhost.local )(gcc3.4.1)#8SatMay418:32:38CSTdline:noini
50、trdmem=64Mroot=/dev/mtdblock3rootfstype=romfsinit=/linuxrcCreating4MTDpartitionsonNAND64MiB3,3V8-bit: 0 x00000000-0 x00100000 : bootloader0 x00100000-0 x00400000:0 x00400000-0 x02c00000:genromfsOPTIONS -f -rw-r-r-.1rootroot42127365419:380 x02d00000-0 x03c00000:VFS:Mountedroot(romfsfilesystem)Mounted
51、 #mountall OK 2410 Rootfs made by ztg, 2013.05 (none) login: rootlogin24:rootloginonPro0 x02d00000-0 x03c00000:VFS:Mountedroot(romfsfilesystem)Mounted #mountall OK 2410 Rootfs made by ztg, 2013.05 (none) login: rootlogin24:rootloginonPro sing/etc/profile.Setsearchlibrarypathin/etc/profile Setusathin
52、/etc/profileConfigurenetdone AllDoneroot(none) /root# touch aa.txt root(none)/root#注意:u-境变量bootargs 实例建立 YAFFS2 根文件系 yaffs22解压#ll -rw-r-r1rootroot4024335#tar-xzvf 418:00#cp-avyaffs2linux-# #cp fs/yaffs2/Makefile.kernel rootlocalhostlinux-#geditrootlocalhostlinux-#geditsourcerootlocalhostlinux-#rootl
53、ocalhostlinux-#u-boot-1.1.4/tools/将在 rootlocalhost tools# ./mkimage -Arootlocalhostlinux-#rootlocalhostlinux-#u-boot-1.1.4/tools/将在 rootlocalhost tools# ./mkimage -A arm -O linux -T kernel -C -a 30008000-nlinux-dvmlinuxu-boot的bootmLinux内核映像(uImage)rootlocalhosttools#cpuImagerootlocalhostutils#rootlo
54、calhostutils#rootlocalhostutils#rootlocalhostutils#llrootlocalhostutils#cpmkyaffs2image/bin rootlocalhost utils# cp mkyaffsimage /bin -rwxr-xr-x.1rootroot146265418:13-rwxr-xr-x.1rootroot134265418:13-rw-r-r-.110001000 1739372007-rw-r-r110001000136921 月 122010-rw-r-r110001000149711 月 262009ImageSunMay
55、418:06:19Image Type:ARM Linux Kernel Image (Data1126256Bytes=1099.86kB=1.07LoadAddress:0 x30008000 Entry: Filesystems YAFFS2filesystem-512byte/page Useolder-styleon-NANDdataformatwithpageS usbyte(NEW) LetsYaffsts own ECC (NEW)UsethesameeccbyteorderasStevenHillsnand ecc 2048 byte (or larger) / page d
56、evi Autoselect yaffs2 format (NEW) Disable lazy loading (NEW)TurnoffwidetnodesForce ck erase check (NEW) CacheshortnamesinRAMrootlocalhosttftpboot#rootlocalhosttftpboot#mkyaffsimage/tmp/nfs rootlocalhosttftpboot#llrootlocalhostod666 rootlocalhosttftpboot#rootlocalhosttftpboot#mkyaffsimage/tmp/nfs ro
57、otlocalhosttftpboot#llrootlocalhostod666 注意:如果u-boot不支持yaffsu-boot添加对yaffsu-实例基于 skyeye 的移6.3.1节(实例用BusyBox建立文件系统) NFSrootlocalhostu-boot-1.1.4#servicexinetdstart rootlocalhost u-boot-1.1.4# service nfs startrootlocalhostu-boot-1.1.4#iptables-rootlocalhost u-boot-1.1.4# skyeye If you want to run ELF
58、 image, you should use -e option to indicateyourelf-formatimagefilename.Oryouonlywanttorunbinaryimage, youneedtosetthefilenameoftheimageandtryinHitanykeytostopautoboot: OK2410#runTFTPfromserver;ourIPaddressis10 FilenameuImage.Loadaddress:Loading:Bytestransferred=1140412(1166bchex) # Booting image at
59、 31000000 .ImageName: ImageType:ARM Linux Kernel Image ( DataSize:1140348 Bytes = 1.09 MBLoad Address: 30008000 Entry Po : 30008000 -rw.1rootroot45180965418:17-rw.1rootroot51004805418:18Startingkernelpressingdone,bootingtheLinux HYPERLINK mailto:(rootlocalhost.local )(gcc3.4.1)#6SatMay410:29:15CST M
60、achine:0Memorypolicy:ECCdisabled,D CPU S3C2410 (id 0 x32410000)acheS3C2410:core202.800MHz,memoryStartingkernelpressingdone,bootingtheLinux HYPERLINK mailto:(rootlocalhost.local )(gcc3.4.1)#6SatMay410:29:15CST Machine:0Memorypolicy:ECCdisabled,D CPU S3C2410 (id 0 x32410000)acheS3C2410:core202.800MHz,
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 豆油厂原料采购合同范本
- 装修公司损坏赔偿协议书
- 2025企业项目合作合同协议范本
- 2025年基于废弃矿区建设风力发电项目合作协议合同
- 2025深圳市广告代理合同范本
- 电子商务品牌跨界合作合同
- 2025财产保险合同样本
- 2025合同协议范本
- 行政合同沟通协商方案
- 急性胰腺炎非手术治疗护理体会
- 初中数学分层作业设计论文
- 中小学校长管理案例
- 《电力设施治安安全风险等级和安全防护要求》
- 工程项目部安全生产治本攻坚三年行动实施方案
- 四川建筑安全员-C证考试(专职安全员)题库及答案
- 光伏验收报告
- 职业倦怠量表MBI-HSS
- 学校桌椅采购投标方案
- 盘扣式外脚手架施工方案
- 初中数学目录(浙教版)
- 呼吸衰竭抢救流程
评论
0/150
提交评论