# Denna fungerar tftp_boot=tftpboot 0xa0800000 192.168.0.1:/linux-install/olimex/romfs_5.img;tftpboot 0xa0008000 192.168.0.1:/linux-install/olimex/vmlinux.bin;go a0008000 # Boota med NFS-root-filsystem tftpboot 0xa0008000 192.168.0.1:/linux-install/olimex/vmlinux-nfs.bin # Kärnan ovan, vmlinux-nfs.bin, har följande bootargs inkompilerat i sig: # root=/dev/nfs rw console=ttyS0,115200N8 nfsroot=192.168.0.1:/export/olimex/root ip=192.168.0.158:192.168.0.1:192.168.0.1:255.255.255.0:olimex::off # Den har stöd för TCP/IP, nfs och nfs-root. # För detaljer se presentationen intro-olimex-LPC-2478-STK.pdf som finns i katalogen presentation. root=/dev/ram initrd=0xA0800000,4096K console=ttyS0,115200N8 lpc-2478-stk # tftpboot 0xa0008000 192.168.0.1:/linux-install/olimex/uImage TFTP from server 192.168.0.1; our IP address is 192.168.0.158 Filename '/linux-install/olimex/uImage'. Load address: 0xa0008000 Loading: ################################################################# ################################################################# ### done Bytes transferred = 1939956 (1d99f4 hex) setenv bootargs root=root=/dev/nfs nfsroot=192.168.0.1:/export/olimex/root bootm 0xa0008000 setenv bootargs root=/dev/nfs rw console=ttyS0,115200N8 nfsroot=192.168.0.1:/export/olimex/root ip=192.168.0.158:192.168.0.1:192.168.0.1:255.255.255.0:olimex::off bootm 0xa0008000 tftpboot 0xa0008000 192.168.0.1:/linux-install/olimex/vmlinux.bin tftpboot 0xa0100000 192.168.0.1:/linux-install/olimex/romfs_5.img bootm 0xa0008000 0xa0100000 setenv rootpath /export/olimex/root setenv hostname olimex setenv kernel_addr 0xa0008000 setenv rootpath '/export/olimex/root' setenv nfsargs 'setenv bootargs root=/dev/nfs rw nfsroot=192.168.0.1:/export/olimex/root' setenv 'addip setenv bootargs ${bootargs} ip=192.168.0.158:192.168.0.1:192.168.0.1:255.255.255.0:olimex::off' setenv addtty 'setenv bootargs ${bootargs} console=ttyS0,115200' setenv flash_nfs 'run nfsargs addip addtty;bootm ${kernel_addr}' #setenv flash_nfs 'run nfsargs addip addtty;bootm ${kernel_addr} - ${fdt_addr}' bootcmd=run flash_self bootdelay=5 baudrate=115200 loads_echo=1 preboot=echo;echo Type "run flash_nfs" to mount root filesystem over NFS;echo #hostname=olimex #rootpath=/export/olimex/root netdev=eth0 nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=192.168.0.1:/export/olimex/root ramargs=setenv bootargs root=/dev/ram rw #addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${ #addtty=setenv bootargs ${bootargs} console=ttyS0,${baudrate} flash_self=run ramargs addip addtty;bootm ${kernel_addr} ${ramdisk_addr} ${fdt_addr} flash_nfs=run nfsargs addip addtty;bootm ${kernel_addr} - ${fdt_addr} net_nfs=tftp ${kernel_addr_r} ${bootfile}; tftp ${fdt_addr_r} ${fdt_file}; run nfsargs addip addt kernel_addr_r=400000 initrd_high=30000000 load=tftp 200000 ${hostname}/u-boot.bin update=protect off fffa0000 ffffffff;era fffa0000 ffffffff;cp.b ${fileaddr} fffa0000 ${filesize}; upd=run load update nload=tftp 200000 ${hostname}/u-boot-nand.bin nupdate=nand erase 0 100000;nand write 200000 0 100000;setenv filesize;saveenv nupd=run nload nupdate pciconfighost=1 pcie_mode=RP:RP ethaddr=5e:ed:18:38:81:85 eth1addr=5e:ed:18:38:81:86 ethact=ppc_4xx_eth0 fdt_addr=FC1E0000 fdt_addr_r=00b00000 fdt_file=/tftpboot/canyonlands/canyonlands.dtb kernel_addr=FC000000 ramdisk_addr=FC200000 stdin=serial stdout=serial stderr=serial ver=U-Boot 1.3.3-rc2-01466-g4f27098 (May 1 2008 - 13:57:57) bootfile=/tftpboot/canyonlands/uImage-duts bootargs=root=/dev/ram initrd=0xa0800000,4000k console=ttyS0,115200N8 bootcmd=run usb_boot bootdelay=3 baudrate=115200 tftp_boot=tftpboot a0008000 linux.bin;tftpboot a1800000 romfs.bin;go a0008000 nand_boot=nand read 0xa0008000 0x0 0x220000;nand read 0xa0800000 0x400000 0x220000;go a0008000 usb_boot=usb start;fatload usb 0 0xa0800000 romfs_5.img;fatload usb 0 0xa0008000 vmlinux.bin;go a0008000 mmc_boot=mmc;fatload mmc 0 a0008000 linux.bin;fatload mmc 0 a1800000 romfs.bin;go a0008000 update_uboot=tftpboot a1000000 u-boot.bin;protect off 0 2ffff;erase 0 2ffff;cp.b a1000000 0 $(filesize) update_nand=nand erase;tftpboot a1000000 linux.bin;nand write a1000000 0 200000;tftpboot a1000000 romfs.bin;nand write a1000000 200000 400000 ipaddr=192.168.0.158 netmask=255.255.255.0 serverip=192.168.0.240 ethaddr=00:de:ad:b0:05:03 console=serial stdin=serial stdout=serial stderr=serial Environment size: 882/4092 bytes # Denna fungerar tftp_boot=tftpboot 0xa0800000 192.168.0.1:/linux-install/olimex/romfs_5.img;tftpboot 0xa0008000 192.168.0.1:/linux-install/olimex/vmlinux.bin;go a0008000 tftp_boot=tftpboot 0xa0008000 192.168.0.1:/linux-install/olimex/uImage-ramfs;go a0008000 tftp_boot=tftpboot 0xa0800000 192.168.0.1:/linux-install/olimex/initramfs.cpio.gz;tftpboot 0xa0008000 192.168.0.1:/linux-install/olimex/vmlinux-ramfs.bin;go a0008000 lpc-2478-stk # run usb_boot (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found reading romfs_5.img ........................................................ 581632 bytes read reading vmlinux.bin .......................................................................................................................................................................................................................... 2236128 bytes read ## Starting application at 0xA0008000 ... üLinux version 2.6.24.2-uc0 (dimitar@lindev.vm) (gcc version 3.4.4) #1 Tue Oct 7 07:05:55 EEST 2008 CPU: NXP-LPC2468 [24680000] revision 0 (ARMvundefined/unknown), cr=a0229ee0 Machine: Olimex LPC-2478-STK Warning: bad configuration page, trying to continue Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 Kernel command line: root=/dev/ram initrd=0xA0800000,4096K console=ttyS0,115200N8 PID hash table entries: 256 (order: 8, 1024 bytes) LPC22XX Clocking Fin=12000000Hz Fcco=288000000Hz M=11 N=0 Fcclk=57600000 PCLKSEL=55515555 11555455 Console: colour dummy device 80x30 Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 64MB = 64MB total Memory: 58532KB available (2000K code, 181K data, 92K init) Mount-cache hash table entries: 512 net_namespace: 64 bytes NET: Registered protocol family 16 lpc22xx_set_periph(P0.2,1,0) => already configured lpc22xx_set_periph e002c000=05015550 e002c040=0002aa00 lpc22xx_set_periph(P0.3,1,0) => already configured lpc22xx_set_periph e002c000=05015550 e002c040=0002aa00 lpc22xx_set_periph(P3.16,3,0) => already used in mode=1 lpc22xx_set_periph e002c01c=55555555 e002c05c=aaaaaaa8 lpc22xx_set_periph(P3.17,3,0) => already used in mode=1 lpc22xx_set_periph e002c01c=55555555 e002c05c=aaaaaaa0 lpc22xx_set_periph(P3.18,3,0) => already used in mode=1 lpc22xx_set_periph e002c01c=55555555 e002c05c=aaaaaa80 lpc22xx_set_periph(P3.19,3,0) => already used in mode=1 lpc22xx_set_periph e002c01c=55555555 e002c05c=aaaaaa00 lpc22xx_set_periph(P3.20,3,0) => already used in mode=1 lpc22xx_set_periph e002c01c=55555555 e002c05c=aaaaa800 lpc22xx_set_periph(P3.21,3,0) => already used in mode=1 lpc22xx_set_periph e002c01c=55555555 e002c05c=aaaaa000 lpc22xx_set_periph(P3.22,3,0) => already used in mode=1 lpc22xx_set_periph e002c01c=55555555 e002c05c=aaaa8000 lpc22xx_set_periph(P3.30,3,0) => already used in mode=1 lpc22xx_set_periph e002c01c=55555555 e002c05c=8aaa8000 lpc22xx_set_periph(P1.2,2,0) => 00000020 lpc22xx_set_periph e002c008=00000020 e002c048=00000000 lpc22xx_set_periph(P1.3,2,0) => 00000080 lpc22xx_set_periph e002c008=000000a0 e002c048=00000000 lpc22xx_set_periph(P0.22,2,0) => 00002000 lpc22xx_set_periph e002c004=54002000 e002c044=00000000 lpc22xx_set_periph(P1.6,2,0) => 00002000 lpc22xx_set_periph e002c008=000020a0 e002c048=00000000 lpc22xx_set_periph(P1.7,2,0) => 00008000 lpc22xx_set_periph e002c008=0000a0a0 e002c048=00000000 lpc22xx_set_periph(P1.11,2,0) => 00800000 lpc22xx_set_periph e002c008=0080a0a0 e002c048=00000000 lpc22xx_set_periph(P1.12,2,0) => 02000000 lpc22xx_set_periph e002c008=0280a0a0 e002c048=00000000 lpc22xx_set_periph(P1.5,2,0) => 00000800 lpc22xx_set_periph e002c008=0280a8a0 e002c048=00000000 lpc22xx_set_periph(P1.0,1,0) => 00000001 lpc22xx_set_periph e002c008=0280a8a1 e002c048=00000000 lpc22xx_set_periph(P1.1,1,0) => 00000004 lpc22xx_set_periph e002c008=0280a8a5 e002c048=00000000 lpc22xx_set_periph(P1.4,1,0) => 00000100 lpc22xx_set_periph e002c008=0280a9a5 e002c048=00000000 lpc22xx_set_periph(P1.8,1,0) => 00010000 lpc22xx_set_periph e002c008=0281a9a5 e002c048=00000000 lpc22xx_set_periph(P1.9,1,0) => 00040000 lpc22xx_set_periph e002c008=0285a9a5 e002c048=00000000 lpc22xx_set_periph(P1.10,1,0) => 00100000 lpc22xx_set_periph e002c008=0295a9a5 e002c048=00000000 lpc22xx_set_periph(P1.14,1,0) => 10000000 lpc22xx_set_periph e002c008=1295a9a5 e002c048=00000000 lpc22xx_set_periph(P1.15,1,0) => 40000000 lpc22xx_set_periph e002c008=5295a9a5 e002c048=00000000 lpc22xx_set_periph(P1.16,1,0) => 00000001 lpc22xx_set_periph e002c00c=55956591 e002c04c=20800000 lpc22xx_set_periph(P1.17,1,0) => 00000004 lpc22xx_set_periph e002c00c=55956595 e002c04c=20800000 NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes) TCP bind hash table entries: 2048 (order: 1, 8192 bytes) TCP: Hash tables configured (established 2048 bind 2048) TCP reno registered checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd Freeing initrd memory: 4096K No NAND device found!!! NetWinder Floating Point Emulator V0.97 (double precision) JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc. io scheduler noop registered (default) lpc2478fb_alloc_videomem - enter fb_log_addres = 0xa3580000 fb_phys_address = 0xa3580000 fb_size = 307200 lpc2478fb_alloc_videomem - exit fb0: lpc2478 framebuffer initialized 0xffe08100 = 0x84680 lpc2478_fbmem: 0xe01fc1b8 = 0xf 0xffe10000 = 0x25131d4c 0xffe10004 = 0xf050cef 0xffe10008 = 0x53f3800 0xffe1000c = 0x0 0xffe10010 = 0xa3580000 0xffe10014 = 0xa3580000 0xffe10018 = 0x82b 0xffe1001c = 0x0 0xffe10020 = 0xc 0xffe10024 = 0x0 0xffe10028 = 0x0 0xffe1002c = 0xa3581ef8 0xffe10030 = 0xa357fff8 Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled serial8250.0: ttyS0 at MMIO 0xe000c000 (irq = 6) is a 16550A console [ttyS0] enabled serial8250.0: ttyS1 at MMIO 0xe0010000 (irq = 7) is a 16550A RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: module loaded lpc22xx_eth_probe lpc22xx_eth_setup eth0: Link down. eth0: LPC22XX ethernet at 0xffe00000 int=21 10-HalfDuplex (00:1a:f1:00:00:f6) eth0: Micrel PHY at 1 block2mtd: version $Revision: 1.30 $ TCP cubic registered NET: Registered protocol family 1 RPC: Registered udp transport module. RPC: Registered tcp transport module. RAMDISK: romfs filesystem found at block 0 RAMDISK: Loading 568KiB [1 disk] into ram disk... done. VFS: Mounted root (romfs filesystem) readonly. init started: BusyBox v1.00 (2008.10.07-02:27+0000) multi-call binary init started: BusyBox v1.00 (2008.10.07-02:27+0000) multi-call binary Starting pid 18, console : '/etc/rc' Welcome to ____ _ _ / __| ||_| _ _| | | | _ ____ _ _ _ _ | | | | | | || | _ \| | | |\ \/ / | |_| | |__| || | | | | |_| |/ \ | ___\____|_||_|_| |_|\____|\_/\_/ | | |_| For further information check: http://www.uclinux.org/ http://www.olimex.com/dev/ Starting pid 30, console : '/bin/sh' BusyBox v1.00 (2008.10.07-02:27+0000) Built-in shell (msh) Enter 'help' for a list of built-in commands. # tftpboot 0xa0008000 192.168.0.1:/linux-install/olimex/vmlinux-nfs.bin setenv bootargs 'root=/dev/nfs console=ttyS0,115200N8 rw nfsroot=192.168.0.1:/export/olimex/root2 ip=192.168.0.158:192.168.0.1:192.168.0.1:255.255.255.0:olimex::off' setenv bootcmd nfs_boot setenv nfs_boot 'tftpboot 0xa0008000 192.168.0.1:/linux-install/olimex/vmlinux-nfs.bin; go 0xa0008000' setenv bootargs 'root=/dev/nfs console=ttyS0,115200N8 rw nfsroot=192.168.0.1:/export/olimex/root ip=192.168.0.158:192.168.0.1:192.168.0.1:255.255.255.0:olimex::off'