Hello, Jianggan. On Wednesday, February 22, 2006, #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: > U-Boot 1.1.3 (Feb? 6 2006 - 09:56:46) > > ## 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 think it's probably the problem of kernel configuration prior to > compilation. Has anybody got 2.6 kernel working probably lite5200b? > > THE U-BOOT ENVIRONMENT SETTINGS: > > => printenv > baudrate=115200 > autoload=no > ethact=FEC ETHERNET > preboot=echo;echo Autostarting. Press any key to abort..;echo > bootdelay=5 > hostname=icecube > flshroot=root=/dev/mtdblock2 rw > ethaddr=00:01:9F:00:27:2F > rootfs=root=/dev/nfs rw nfsroot=10.190.3.103:/opt/eldk/rootfs > filesize=f2 > fileaddr=100000 > netmask=255.255.240.0 > serverip=10.190.3.103 > bootcmd=tftp; bootm > bootfile=MPC5200/uImage > ipaddr=10.190.3.144 > > 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/rootfs > bootargs=root=/dev/nfs rw nfsroot=10.190.3.103:/opt/eldk/rootfs > ip=10.190.3.144:10.190.3.103:10.190.3.103:255.255.240.0:icecube::off > stdin=serial > stdout=serial > stderr=serial > > Environment size: 704/65532 bytes > =>?????????????? > > THE WHLOE BOOTING MESSAGE: > > 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 > > Thanks. > > Jianggan LI > > > > First, please DON'T use html in mails, which is addressed to mail lists. Now about your problem: you're doesn't setup ttyPSC0 as console device for the kernel (as I understand, above is snapshot of terminal output, am I right?). Add string like this: console=ttyPSC0,115200n8 console=tty1 to the kernel parameters (as simple hack you could add above string to rootfs enviroment variable). As example, here is part of our board config (not lite5200B): baudrate=115200 preboot=echo;echo Type "run flash_nfs" to mount root filesystem over NFS;echo netdev=eth0 addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(netdev):off panic=5 ethact=FEC ETHERNET serverip=10.0.19.228 gatewayip=10.0.19.238 netmask=255.255.255.0 rootpath=/tftpboot/10.0.19.6 ipaddr=10.0.19.6 ntpserverip=10.0.19.238 ramargs=setenv bootargs root=/dev/ram rw net_nfs=tftp 200000 $(bootfile);run setconsole nfsargs addip;bootm setconsole=setenv bootargs $(console) nfsargs=setenv bootargs $(bootargs) root=/dev/nfs rw nfsroot=$(serverip):$(rootpath) kernel_addr=FE040000 flash_root=tftp 200000 $(bootfile);run setconsole jffs2rootfs addip;bootm flash_self=run setconsole jffs2rootfs addip;bootm $(kernel_addr) jffs2rootfs=setenv bootargs $(bootargs) rootfstype=jffs2 root=31:2 rw bootfile=/tftpboot/uImage.vec5200 hostname=vec5200-3 bootdelay=1 console=console=ttyPSC0,115200n8 console=tty1 flash_nfs=run setconsole nfsargs addip;bootm $(kernel_addr) tnote_cfg=setenv serverip 10.0.19.4;setenv gatewayip 10.0.19.4 net_nfs_tnote=run tnote_cfg;run net_nfs bootcmd=run net_nfs stdin=serial stdout=serial stderr=serial -- Regards, Andrey Volkov