Tim Chen

Linux boot problem and environment variables.

Discussion created by Tim Chen on Aug 22, 2008
Latest reply on Aug 25, 2008 by Tim Chen
I inherit this M5445EVB from another engineer. He changed linux boot using a nfs root. I put the image on a nfs directory and try to boot from there, however failed. (I have boot message and printenv below)
I have couple of questions.
1)   How can I change it back to boot using on board image? How do u-boot environment variables work?
2)   where it gone wrong? Possible fix?

############ printenv
-> printenv
bootdelay=1
baudrate=115200
ethaddr=00:04:9F:00:81:65
eth1addr=00:04:9F:00:81:66
ethprime=FEC0
hostname=M54455EVB
netdev=eth0
inpclk=33333333
loadaddr=40010000
u-boot=u-boot.bin
load=tftp ${loadaddr) ${u-boot}
upd=run load; run prog
prog=prot off 4000000 402ffff;era 4000000 402ffff;cp.b ${loadaddr} 4000000 ${fil
esize};save
b_args_flash=root=/dev/mtdblock1 rw rootfstype=jffs2 ip=none mtdparts=physmap-fl
ash.0:5M(kernel)ro,-(jffs2)
bootfile=uImage
ethact=FEC0
ipaddr=10.5.3.72
gatewayip=10.5.3.71
serverip=10.5.3.71
b_args_net=root=/dev/nfs rw nfsroot=10.5.3.71:/tftpboot/ltib/rootfs ip=10.5.3.72
:10.5.3.71:10.5.3.71:255.255.255.0::eth0:smileysurprised:ff
b_args_long=root=/dev/nfs rw nfsroot=10.5.3.71:/tftpboot/ltib-mcf5445x-20070912/
rootfs ip=10.5.3.72:10.5.3.71:10.5.3.71:255.255.255.0::eth0:smileysurprised:ff
netmask=255.255.252.0
bootargs=root=/dev/nfs rw nfsroot=10.5.3.71:/tftpboot/ltib/rootfs ip=10.5.3.72:1
0.5.3.71:255.255.252.0:eth0:smileysurprised:ff
stdin=serial
stdout=serial
stderr=serial

Environment size: 961/8188 bytes

#######

-> bootm 0
## Booting image at 00000000 ...
   Image Name:   Linux Kernel Image
   Created:      2007-09-12  22:44:52 UTC
   Image Type:   M68K Linux Kernel Image (uncompressed)
   Data Size:    2490368 Bytes =  2.4 MB
   Load Address: 40020000
   Entry Point:  40020000
   Verifying Checksum ... OK
OK
Linux version 2.6.20 (kmahan@pixie) (gcc version 4.2.0 20070318 (prerelease) (So
urcery G++ Lite 4.2-35)) #1 Wed Sep 12 16:44:34 MDT 2007
starting up linux startmem 0xc0282000, endmem 0xcfffffff, size 253MB
Built 1 zonelists.  Total pages: 32624
Kernel command line: root=/dev/nfs rw nfsroot=10.5.3.71:/tftpboot/ltib/rootfs ip
=10.5.3.72:10.5.3.71:255.255.252.0:eth0:smileysurprised:ff
PID hash table entries: 1024 (order: 10, 4096 bytes)
Console: colour dummy device 80x25
Dentry cache hash table entries: 32768 (order: 4, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 3, 65536 bytes)
Memory: 257312k/262136k available (2040k kernel code, 2448k data, 88k init)
Mount-cache hash table entries: 1024
NET: Registered protocol family 16
spi_dev_init
spi:smileytongue:latform_device_register 0 1
usb: OTG Host registered
usb: OTG Gadget registered
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 0, 8192 bytes)
TCP established hash table entries: 8192 (order: 2, 32768 bytes)
TCP bind hash table entries: 4096 (order: 1, 16384 bytes)
TCP: Hash tables configured (established 8192 bind 4096)
TCP reno registered
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
ColdFire internal UART serial driver version 1.00
ttyS0 at 0xfc060000 (irq = 90) is a builtin ColdFire UART
ttyS1 at 0xfc064000 (irq = 91) is a builtin ColdFire UART
ttyS2 at 0xfc068000 (irq = 92) is a builtin ColdFire UART
RAMDISK driver initialized: 16 RAM disks of 64000K size 1024 blocksize
loop: loaded (max 8 devices)
FEC ENET Version 0.2
fec: PHY @ 0x0, ID 0x20005ca2 -- DP83849
eth0: ethernet 00:04:9f:00:81:65
physmap platform flash device: 01000000 at 00000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 8-bit bank
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
RedBoot partition parsing not available
mtd: Giving out device 0 to physmap-flash.0
ColdFire-eDMA: initialized successfully
SPI: Coldfire master initialized
ssi_audio: Probed successfully
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
mice: PS/2 mouse device common for all mice
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
eth0: config: auto-negotiation on, 100FDX, 100HDX, 10FDX, 10HDX.
IP-Config: Unable to set interface netmask (-22).
Looking up port of RPC 100003/2 on 10.5.3.71
Looking up port of RPC 100005/1 on 10.5.3.71
VFS: Mounted root (nfs filesystem).
Setting the hostname to freescale
Mounting /proc and /sys
Mounting filesystems
mount: Mounting  on swap        swap    defaults          0       0 failed: No s
uch file or directory
Starting syslogd and klogd
Setting up networking on loopback device:
Setting up networking on eth0:
udhcpc (v0.9.9-pre) started
nfs: server 10.5.3.71 not responding, still trying
nfs: server 10.5.3.71 not responding, still trying



Message Edited by mwb on 2008-08-22 04:32 PM

Outcomes