boot failure on lite5200b board

Marty @ GMail marty.wedepohl at gmail.com
Fri Feb 24 04:10:45 EST 2006


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



The problem might be in the U-Boot environment variables
See mine below.

NOTE:
that the boot_cmd executes the command run net_nfs and
that the net_nfs tftp's the kernel, then executs the run setconsole
nfsargs addip before it boots the kernel

Hope that helps

Martin




U-Boot 1.1.4 (Feb 22 2006 - 14:42:05)

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

Type "run flash_nfs" to mount root filesystem over NFS

Hit any key to stop autoboot:  0
=> printenv
bootcmd=run net_nfs
bootdelay=5
baudrate=115200
preboot=echo;echo Type "run flash_nfs" to mount root filesystem over NFS;echo
baudrate=115200
netdev=eth0
addip=setenv bootargs $(bootargs)
ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(netdev):off
pani5ethact=FEC ETHERNET
serverip=192.168.100.33
gatewayip=192.168.100.1
netmask=255.255.255.0
rootpath=/opt/eldk/ppc_6xx
ipaddr=192.168.100.29
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):$(root)bootfile=MPC5200/uImage
hostname=weedwhacker
bootdelay=5
console=console=ttyPSC0,115200n8 console=tty1
flash_nfs=run setconsole nfsargs addip;bootm
autoload=no
ethaddr=00:04:9f:00:27:35
stdin=serial
stdout=serial
stderr=serial

Environment size: 868/65532 bytes
=> boot
Using FEC ETHERNET device
TFTP from server 192.168.100.33; our IP address is 192.168.100.29
Filename 'MPC5200/uImage'.
Load address: 0x200000
Loading: #################################################################
         #################################################################
         ###############################################################
done
Bytes transferred = 986472 (f0d68 hex)
## Booting image at 00200000 ...
   Image Name:   Linux-2.6.16-rc1-gaf4f75fd-dirty
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    986408 Bytes = 963.3 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
Linux version 2.6.16-rc1-gaf4f75fd-dirty (wedepohl at ubuntu) (gcc
version 4.0.0 (6Built 1 zonelists
Kernel command line: console=ttyPSC0,115200n8 console=tty1
root=/dev/nfs rw nfsxPID 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: 257536k available (1504k kernel code, 496k data, 96k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16

PCI: Probing PCI hardware
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Serial: MPC52xx PSC driver
ttyPSC0 at MMIO 0xf0002000 (irq = 40) is a MPC52xx PSC
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2


More information about the Linuxppc-embedded mailing list