Thanks John, the Kernel now boots well. However it gives a kernel panic while mounting the root file sysem over NFS:
Looking up port of RPC 100003/2 on 10.190.3.103 RPC: sendmsg returned error 101 portmap: RPC call returned error 101 Root-NFS: Unable to get nfsd port number from server, using default I couldn't figure out why error 101 /* Network is unreachable */ is given. Below is my current U-boot settings and a snapshot of the booting: => printenv baudrate=115200 autoload=no ethact=FEC ETHERNET ethaddr=00:01:9F:00:27:2F preboot=echo; echo Autostarting. Press any key to abort..; echo bootdelay=5 hostname=icecube bootfile=MPC5200/uImage nv=nfsroot root=/dev/nfs rw nfsroot=10.190.3.113:/opt/eldk/rootfs netmask=255.255.240.0 ipaddr=10.190.3.144 serverip=10.190.3.103 bootcmd=run net_nfs netdev=eth0 rootpath=/opt/eldk-4-0/rootfs ramargs=setenv bootargs root=/dev/ram rw addip=setenv bootargs ip=10.190.3.144:10.190.3.103:10.190.3.103:255.255.240.0:icecube:eth0:off panic=1 ip=10.190.3.144:10.190.3.103:10.190.3.103:255.255.240.0:icecube:eth0:off net_nfs=tftp 200000 MPC5200/uImage;run nfsargs;bootm nfsroot=10.190.3.103:/opt/eldk-4-0/rootfs rootfs=10.190.3.103:/opt/eldk-4-0/rootfs nfsargs=setenv bootargs console=ttyS0,115200 nfsroot=10.190.3.103:/opt/eldk-4-0/nfs root=/dev/nfs rw stdin=serial stdout=serial stderr=serial Environment size: 882/65532 bytes => boot Using FEC ETHERNET device TFTP from server 10.190.3.103; our IP address is 10.190.3.144 Filename 'MPC5200/uImage'. Load address: 0x200000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################### done Bytes transferred = 1510143 (170aff hex) ## Booting image at 00200000 ... Image Name: Linux-2.6.11.7 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 1510079 Bytes = 1.4 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK id mach(): done MMU:enter MMU:hw init MMU:mapin MMU:setio MMU:exit setup_arch: enter setup_arch: bootmem ocp: exit arch: exit Linux version 2.6.11.7 (root at bob) (gcc version 3.3.2) #1 Tue Sep 6 22:40:03 UTC 2005 Real-Time Preemption Support (c) Ingo Molnar Built 1 zonelists Kernel command line: console=ttyS0,115200 nfsroot=10.190.3.103:/opt/eldk-4-0/nfs root=/dev/nfs rw PID hash table entries: 2048 (order: 11, 32768 bytes) Console: colour dummy device 80x25 Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) Memory: 256268k available (2336k kernel code, 896k data, 140k init, 0k highmem) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) BUG: scheduling while atomic: swapper/0x00000001/0 caller is schedule+0x50/0xe8 Call trace: [c0006bd8] dump_stack+0x18/0x28 [c0242818] __sched_text_start+0x69c/0x6a0 [c024286c] schedule+0x50/0xe8 [c0003f00] syscall_exit_work+0x108/0x10c [c030c578] proc_root_init+0x144/0x150 [c0320000] 0xc0320000 [c02fe624] start_kernel+0x180/0x1b8 [000035fc] 0x35fc spawn_desched_task(00000000) desched cpu_callback 3/00000000 ksoftirqd started up. softirq RT prio: 24. desched cpu_callback 2/00000000 desched thread 0 started up. NET: Registered protocol family 16 PCI: Probing PCI hardware SCSI subsystem initialized usbcore: registered new driver usbfs usbcore: registered new driver hub JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc. ppdev: user-space parallel port driver Serial: MPC52xx PSC driver ttyS0 at MMIO 0xf0002000 (irq = 39) is a MPC52xx PSC io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize loop: loaded (max 8 devices) Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx ipb=132MHz, set clock period to 7 GPIO config: 91051024 ATA invalid: 01000000 ATA hostcnf: 03000000 ATA pio1 : 100a0a00 ATA pio2 : 02040600 XLB Arb cnf: 0000a366 mpc52xx_ide: Setting up IDE interface ide0... flash chip on the Lite5200/Lite5200B: Found 1 x16 devices at 0x0 in 8-bit bank flash chip on the Lite5200/Lite5200B: Found 1 x16 devices at 0x1000000 in 8-bit bank Amd/Fujitsu Extended Query Table at 0x0040 flash chip on the Lite5200/Lite5200B: CFI does not contain boot bank location. Assuming top. number of CFI chips: 2 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. Creating 7 MTD partitions on "flash chip on the Lite5200/Lite5200B": 0x00000000-0x01000000 : "Filesystem" 0x01000000-0x01040000 : "BootLOW" 0x01040000-0x01060000 : "EnvLOW" 0x01060000-0x01d00000 : "Spare" 0x01d00000-0x01f00000 : "Kernel" 0x01f00000-0x01f40000 : "BootHIGH" 0x01f40000-0x01f60000 : "EnvHIGH" ocp-ohci 02: new USB bus registered, assigned bus number 1 hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected Initializing USB Mass Storage driver... usbcore: registered new driver usb-storage USB Mass Storage support registered. usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.0:USB HID core driver mice: PS/2 mouse device common for all mice i2c /dev entries driver i2c-algo-52xx.o: scanning bus Lite5200 I2C module #1 interface... ................................................................................................................................ i2c-lite5200.o: I2C module #1 installed i2c-algo-52xx.o: scanning bus Lite5200 I2C module #2 interface... ................................................................................(0x50)..............................................(0x7f) i2c-lite5200.o: I2C module #2 installed Advanced Linux Sound Architecture Driver Version 1.0.8 (Thu Jan 13 09:39:32 2005 UTC). ALSA device list: No soundcards found. NET: Registered protocol family 2 IP: routing cache hash table of 256 buckets, 16Kbytes TCP established hash table entries: 16384 (order: 8, 1048576 bytes) TCP bind hash table entries: 16384 (order: 7, 917504 bytes) TCP: Hash tables configured (established 16384 bind 16384) NET: Registered protocol family 1 NET: Registered protocol family 17 Looking up port of RPC 100003/2 on 10.190.3.103 RPC: sendmsg returned error 101 portmap: RPC call returned error 101 Root-NFS: Unable to get nfsd port number from server, using default Looking up port of RPC 100005/1 on 10.190.3.103 RPC: sendmsg returned error 101 portmap: RPC call returned error 101 Root-NFS: Unable to get mountd port number from server, using default RPC: sendmsg returned error 101 mount: RPC call returned error 101 Root-NFS: Server returned error -101 while mounting /opt/eldk-4-0/nfs VFS: Unable to mount root fs via NFS, trying floppy. VFS: Cannot open root device "nfs" or unknown-block(2,0) Please append a correct "root=" boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) <0>Rebooting in 180 seconds.. regards, Jianggan -----Original Message----- From: John Rigby [mailto:[EMAIL PROTECTED] Sent: Thu 3/2/2006 8:52 To: #LI JIANGGAN# Cc: linuxppc-embedded at ozlabs.org Subject: Re: boot failure on lite5200b board Here is a uboot setup that works with a freescale kernel: bootdelay=5 baudrate=115200 preboot=echo;echo Type "run flash_nfs" to mount root filesystem over NFS;echo autoload=no ethact=FEC ETHERNET ramargs=setenv bootargs root=/dev/ram rw jffs2args=setenv bootargs root=/dev/mtdblock0 rw rootfstype=jffs2 addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(netdev):off panic=1 flash_nfs=run nfsargs addip;bootm $(kernel_addr) flash_self=run ramargs addip;bootm $(kernel_addr) $(ramdisk_addr) flash_jffs2=run jffs2args;bootm $(kernel_addr) net_nfs=tftp 200000 $(bootfile);run nfsargs addip;bootm netdev=eth0 ethaddr=00:04:9f:22:33:44 bootfile=/tftpboot/uImage kernel_addr=ffd00000 rootpath=/tftpboot/ltib filesize=c9d700 fileaddr=1000000 gatewayip=172.27.255.254 netmask=255.255.0.0 ipaddr=172.27.152.99 serverip=172.27.152.5 bootcmd=run net_nfs nfsargs=setenv bootargs console=ttyS0,115200 root=/dev/nfs rw nfsroot=$(serverip):$(rootpath) stdin=serial stdout=serial stderr=serial Change ip info, bootfile, rootpath etc to fit you config. If you want it to work with Sylvain's kernel then you need to change ttyS0 to ttyPSC0. Also add a printenv just before the bootm so you can verify that your bootargs really are getting set correctly. On 3/1/06, #LI JIANGGAN# <lijianggan at pmail.ntu.edu.sg> wrote: > > > how about the following U-boot settings: > > .............................. > > > Hit any key to stop autoboot: 0 > => printenv > baudrate=115200 > autoload=no > ethact=FEC ETHERNET > ethaddr=00:01:9F:00:27:2F > preboot=echo; echo Autostarting. Press any key to abort..; echo > bootdelay=5 > hostname=icecube > bootfile=MPC5200/uImage > nv=nfsroot root=/dev/nfs rw nfsroot=10.190.3.113:/opt/eldk/rootfs > netmask=255.255.240.0 > ipaddr=10.190.3.144 > serverip=10.190.3.103 > bootcmd=run net_nfs > > rootfs=root=/dev/nfs rw > netdev=eth0 > rootpath=/opt/eldk-4-0/rootfs > nfsargs=setenv bootargs root=/dev/nfs rw > nfsroot=10.190.3.103:/opt/eldk-4-0/rootfs > > ramargs=setenv bootargs root=/dev/ram rw > addip=setenv bootargs > ip=10.190.3.144:10.190.3.103:10.190.3.103:255.255.240.0:icecube:eth0:off > panic=1 > net_nfs=tftp 200000 MPC5200/uImage;run nfsargs addip;bootm > > stdin=serial > stdout=serial > stderr=serial > > Environment size: 738/65532 bytes > => . > ................................ > > > > The output is still the same, it hangs after displaying arch:exit > > I have also tried the above settings with console set, it gives the same > output > > I am really wondering whether the problem is with the kernel. Sylvain's > kernel uImage is only around 600k while the one from freescale is 1.4M, > anybody knows where the difference is? > > ..................................... > > Autostarting. Press any key to abort.. > > Hit any key to stop autoboot: 0 > Using FEC ETHERNET device > TFTP from server 10.190.3.103; our IP address is 10.190.3.144 > Filename 'MPC5200/uImage'. > Load address: 0x200000 > > Loading: > ################################################################# > > ################################################################# > > ################################################################# > > ################################################################# > ################################### > done > Bytes transferred = 1510143 (170aff hex) > ## Booting image at 00200000 ... > > Image Name: Linux-2.6.11.7 > Image Type: PowerPC Linux Kernel Image (gzip compressed) > Data Size: 1510079 Bytes = 1.4 MB > Load Address: 00000000 > Entry Point: 00000000 > Verifying Checksum ... OK > Uncompressing Kernel Image ... OK > id mach(): done > MMU:enter > MMU:hw init > MMU:mapin > MMU:setio > MMU:exit > setup_arch: enter > setup_arch: bootmem > ocp: exit > arch: exit > > > > > > ..................... > > Regards, > > Jianggan LI > > ________________________________ > > From: John Rigby [mailto:jcrigby at gmail.com] > Sent: Sat 2/25/2006 1:17 > To: #LI JIANGGAN# > Cc: tnt at 246tnt.com; linuxppc-embedded at ozlabs.org > > Subject: Re: boot failure on lite5200b board > > > > > I don't think your syntax for appending to an env variable is correct: > > try: > set bootargs $(bootargs) ...appended stuff... > instead of: > set bootargs env bootargs ...appended stuff.... > > Also to see what bootargs is actually set to after all the nested > commands, add a printenv just before the bootm > > On 2/23/06, #LI JIANGGAN# <lijianggan at pmail.ntu.edu.sg> wrote: > > > > > > I have actually tried both kernel with both console configurations. It > gave > > the same output, thus I presume that the problem lies somewhere else. I > > attached the log to this email. > > > > the board is Lite5200B Version 1.0. Which .config file do you want? > > > > Sylvain, we have ordered a debugging set but we are still waiting for > > delivery, the leaking time is said to be one month, tant pis. And the log > I > > attached here are booting from a higher address (0x500000). > > > > My current u-boot args: > > Autostarting. Press any key to abort.. > > > > Hit any key to stop autoboot: 0 > > => printenv > > baudrate=115200 > > autoload=no > > ethact=FEC ETHERNET > > flshroot=root=/dev/mtdblock2 rw > > ethaddr=00:01:9F:00:27:2F > > preboot=echo; echo Autostarting. Press any key to abort..; echo > > bootdelay=5 > > hostname=icecube > > bootfile=MPC5200/uImage > > nv=nfsroot root=/dev/nfs rw nfsroot=10.190.3.113:/opt/eldk/rootfs > > ip=ip=10.190.3.144:10.190.3.103:10.190.3.103:255.255.240.0:icecube::off > > nfsroot=root=/dev/nfs rw > nfsroot=10.190.3.103:/opt/eldk-4-0/rootfs > > bootcmd=run net_nfs > > filesize=546 > > fileaddr=500000 > > netmask=255.255.240.0 > > ipaddr=10.190.3.144 > > serverip=10.190.3.103 > > setconsole=setenv bootargs console=ttyPSC0, 115200n8 console=tty1 > > rootfs=root=/dev/nfs rw > nfsroot=10.190.3.103:/opt/eldk-4-0/rootfs > > bootargs=env bootargs root=/dev/nfs rw > > nfsroot=10.190.3.103:/opt/eldk-4-0/rootfs > > ip=10.190.3.144:10.190.3.103:10.190.3.103:255.255.240.0:icecube::off > > flash_nfs=run setconsole nfsargs addip;bootm > > net_nfs=tftp 500000 MPC5200/uImage;run setconsole nfsargs addip;bootm > > nfsargs=setenv bootargs env bootargs root=/dev/nfs rw > > nfsroot=10.190.3.103:/opt/eldk-4-0/rootfs > > > ip=10.190.3.144:10.190.3.103:10.190.3.103:255.255.240.0:icecube::offroot=/dev/nfs > > rw > > addip=setenv bootargs env bootargs root=/dev/nfs rw > > nfsroot=10.190.3.103:/opt/eldk-4-0/rootfs > > ip=10.190.3.144:10.190.3.103:10.190.3.103:255.255.240.0:icecube::off > > ramargs=setenv bootargs root=/dev/ram rw > > console=console=ttyS0,115200n8 console=tty1 > > stdin=serial > > stdout=serial > > stderr=serial > > > > Environment size: 1472/65532 bytes > > => > > > > > > > > > > USING Sylvain's KERNEL: > > > > U-Boot 1.1.3 (Feb 6 2006 - 09:56:46) > > > > CPU: MPC5200 v2.2 at 462 MHz > > Bus 132 MHz, IPB 132 MHz, PCI 33 MHz > > Board: Freescale MPC5200 (Lite5200B) > > I2C: 85 kHz, ready > > DRAM: 256 MB > > FLASH: 32 MB > > PCI: Bus Dev VenId DevId Class Int > > 00 1a 1057 5809 0680 00 > > In: serial > > Out: serial > > Err: serial > > Net: FEC ETHERNET > > IDE: Bus 0: OK > > Device 0: not available > > Device 1: not available > > > > Autostarting. Press any key to abort.. > > > > Hit any key to stop autoboot: 0 > > Using FEC ETHERNET device > > TFTP from server 10.190.3.103; our IP address is 10.190.3.144 > > Filename 'MPC5200/uImage'. > > Load address: 0x500000 > > Loading: > ################################################################# > > > ################################################################ > > done > > Bytes transferred = 658114 (a0ac2 hex) > > ## Booting image at 00500000 ... > > Image Name: Linux-2.6.16-rc1 > > Image Type: PowerPC Linux Kernel Image (gzip compressed) > > Data Size: 658050 Bytes = 642.6 kB > > Load Address: 00000000 > > Entry Point: 00000000 > > Verifying Checksum ... OK > > Uncompressing Kernel Image ... OK > > id mach(): done > > MMU:enter > > MMU:hw init > > MMU:mapin > > MMU:setio > > MMU:exit > > setup_arch: enter > > setup_arch: bootmem > > arch: exit > > > > > > > > USING KERNEL FROM Freescale: > > > > U-Boot 1.1.3 (Feb 6 2006 - 09:56:46) > > > > CPU: MPC5200 v2.2 at 462 MHz > > Bus 132 MHz, IPB 132 MHz, PCI 33 MHz > > Board: Freescale MPC5200 (Lite5200B) > > I2C: 85 kHz, ready > > DRAM: 256 MB > > FLASH: 32 MB > > PCI: Bus Dev VenId DevId Class Int > > 00 1a 1057 5809 0680 00 > > In: serial > > Out: serial > > Err: serial > > Net: FEC ETHERNET > > IDE: Bus 0: OK > > Device 0: not available > > Device 1: not available > > > > Autostarting. Press any key to abort.. > > > > Hit any key to stop autoboot: 0 > > Using FEC ETHERNET device > > TFTP from server 10.190.3.103; our IP address is 10.190.3.144 > > Filename 'MPC5200/uImage'. > > Load address: 0x500000 > > Loading: > ################################################################# > > > ################################################################# > > > ################################################################# > > > ################################################################# > > ################################### > > done > > Bytes transferred = 1510143 (170aff hex) > > ## Booting image at 00500000 ... > > Image Name: Linux-2.6.11.7 > > Image Type: PowerPC Linux Kernel Image (gzip compressed) > > Data Size: 1510079 Bytes = 1.4 MB > > Load Address: 00000000 > > Entry Point: 00000000 > > Verifying Checksum ... OK > > Uncompressing Kernel Image ... OK > > id mach(): done > > MMU:enter > > MMU:hw init > > MMU:mapin > > MMU:setio > > MMU:exit > > setup_arch: enter > > setup_arch: bootmem > > ocp: exit > > arch: exit > > > > > > > > > > -----Original Message----- > > From: John Rigby [mailto:jcrigby at gmail.com] > > Sent: Fri 2/24/2006 0:18 > > To: #LI JIANGGAN# > > Subject: Re: boot failure on lite5200b board > > > > If you are using Sylvain's kernel you need to set console=ttyPSC0. If > you > > are > > using a kernel from Freescale then you need to set console=ttyS0. > > > > Also what rev of the board do you have? > > > > > > > > On 2/23/06, #LI JIANGGAN# <lijianggan at pmail.ntu.edu.sg> wrote: > > > > > > > > > Thank you Jos? Mar?a and Andrey for your advices, however the problem > > > > remains. I've tried setting the console (though I remember that our > > previous > > > lite5200 board was working fine on kernel 2.4 without setting the > > console); > > > meantime, I've set the booting image to 0x500000; I have also tried > using > > > the kernel image come together with the BSP, it's always the same > error. > > > > > > Sylvain, I've actually using your kernel source, the compiled image is > > > around 700k (compared to the 1.4M image from the BSP), but it doesn't > > solve > > > the problem. So I presume that the problem is lying somewhere else. > > > > > > A SNAPSHOT OF THE BOOTING MESSAGES: > > > > > > > > > U-Boot 1.1.3 (Feb 6 2006 - 09:56:46) > > > > > > CPU: MPC5200 v2.2 at 462 MHz > > > Bus 132 MHz, IPB 132 MHz, PCI 33 MHz > > > Board: Freescale MPC5200 (Lite5200B) > > > I2C: 85 kHz, ready > > > DRAM: 256 MB > > > FLASH: 32 MB > > > PCI: Bus Dev VenId DevId Class Int > > > 00 1a 1057 5809 0680 00 > > > In: serial > > > Out: serial > > > Err: serial > > > Net: FEC ETHERNET > > > IDE: Bus 0: OK > > > Device 0: not available > > > Device 1: not available > > > > > > Autostarting. Press any key to abort.. > > > > > > Hit any key to stop autoboot: 0 > > > Using FEC ETHERNET device > > > TFTP from server 10.190.3.103; our IP address is 10.190.3.144 > > > Filename 'MPC5200/uImage'. > > > Load address: 0x100000 > > > Loading: > > > > ################################################################# > > > > > > > ################################################################ > > > done > > > Bytes transferred = 658114 (a0ac2 hex) > > > ## Booting image at 00100000 ... > > > Image Name: Linux-2.6.16-rc1 > > > Image Type: PowerPC Linux Kernel Image (gzip compressed) > > > Data Size: 658050 Bytes = 642.6 kB > > > Load Address: 00000000 > > > Entry Point: 00000000 > > > Verifying Checksum ... OK > > > Uncompressing Kernel Image ... OK > > > id mach(): done > > > MMU:enter > > > MMU:hw init > > > MMU:mapin > > > MMU:setio > > > MMU:exit > > > setup_arch: enter > > > setup_arch: bootmem > > > arch: exit > > > > > > > > > I am wondering whether it's a kernel problem or more likely to be a > > problem > > > lying with the U-boot. It seems to hang when executing setup_arch() > > > function, or maybe there is sth else behind the wall? > > > > > > Regards, > > > Jianggan LI > > > > > > > > > > > > > > > -----Original Message----- > > > From: Sylvain Munaut [mailto:tnt at 246tNt.com] > > > Sent: Thu 2/23/2006 15:38 > > > To: #LI JIANGGAN# > > > Cc: linuxppc-embedded at ozlabs.org > > > Subject: Re: boot failure on lite5200b board > > > > > > #LI JIANGGAN# wrote: > > > > Hello all, > > > > > > > > For my end-of-study project, I am working on an embedded system with > > > > reference of freescale's lite5200b reference board. I was trying to > > boot > > > > Linux 2.6.15 on the board (with the fec and bestcomm corrected). > > however > > > > the booting was stuck at the following stage: > > > > > > In addition to what has already been said (use a higher address for > the > > > image and don't forget console=ttyPSC0 in kernel command line), make > > > sure you use the kernel from my git tree, it contains a few patches > from > > > John Rigby to add support for the lite5200b. > > > > > > Please report if it works, I've not been able to test those myself > since > > > i'm still on lite5200. > > > > > > > > > Sylvain > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > Linuxppc-embedded mailing list > > > Linuxppc-embedded at ozlabs.org > > > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > > > > > > > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060303/b02a379e/attachment.htm