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 > > > > > > > > > > > > > > > > > > >