Hi All,<br><br>I was wondering about the difference between the bootm
and run flash_self commands. I understand that bootm command
uncompresses and boots the kernel from a given memory location. The
board hangs when I try to use bootm command to load the kernel whereas
it works perfectly when I use "run flash_self" command. <br><br>The environment
variables is same for both the scenarios. I've included the environment
variables as well as command outputs below.
<br><br>Enviroment variables<br>==================<br>=> printenv<br>
bootcmd=run flash_self<br>
baudrate=115200<br>
loads_echo=1<br>
preboot=echo;echo Type "run flash_nfs" to mount root filesystem over NFS;echo<br>
netdev=eth0<br>
hostname=taishan<br>
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath}<br>
ramargs=setenv bootargs root=/dev/ram rw<br>
addip=setenv bootargs ${bootargs}
ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:$1addtty=setenv
bootargs ${bootargs} console=ttyS1,${baudrate}<br>
flash_nfs=run nfsargs addip addtty;bootm ${kernel_addr}<br>
flash_self=run ramargs addip addtty;bootm ${kernel_addr} ${ramdisk_addr}<br>
net_nfs=tftp 200000 ${bootfile};run nfsargs addip addtty;bootm<br>
rootpath=/opt/eldk/ppc_4xx<br>
load=tftp 100000 /tftpboot/taishan/u-boot.bin<br>
update=protect off fffc0000 ffffffff;era fffc0000 ffffffff;cp.b 100000 fffc0000 40000;setenv filvupd=run load;run update<br>
fixedip=setenv bootargs $(bootargs)
ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname)1dhcp=setenv
bootargs $(bootargs) ip=dhcp<br>
kozio=bootm 0xffe00000<br>
ethaddr=00:0c:4f:35:00:02<br>
eth1addr=00:0c:4f:35:00:03<br>
bootdelay=10<br>
bootfile=uImage<br>
ethact=ppc_4xx_emac2<br>
stdin=serial<br>
stdout=serial<br>
stderr=serial<br>
ver=U-Boot 1.1.4 (Oct 17 2006 - 18:06:51)<br>
kernel_addr=0x600000<br>
ramdisk_addr=0x800000<br>
fileaddr=800000<br>
ipaddr=<a href="http://192.168.1.62" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.62</a><br>
serverip=<a href="http://192.168.1.155" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.155</a><br>
<br>
Environment size: 1321/16380 bytes<br>
=> <br><br>bootm command<br>==============<br>I can't boot my kernel when I use bootm <kernel_addr> <ramdisk_addr>. It hangs after printing the following message.
<br><br>
=> bootm 0x600000 0x800000<br>
## Booting image at 00600000 ...<br>
Image Name: Linux-2.6.16.16<br>
Image Type: PowerPC Linux Kernel Image (gzip compressed)<br>
Data Size: 1171270 Bytes = 1.1 MB<br>
Load Address: 00000000<br>
Entry Point: 00000000<br>
Verifying Checksum ... OK<br>
Uncompressing Kernel Image ... OK<br>
## Loading RAMDisk Image at 00800000 ...<br>
Image Name: Taishan Ramdisk<br>
Image Type: PowerPC Linux RAMDisk Image (gzip compressed)<br>
Data Size: 1198898 Bytes = 1.1 MB<br>
Load Address: 00000000<br>
Entry Point: 00000000<br>
Verifying Checksum ... OK<br>
Loading Ramdisk to 0fd8d000, end 0feb1b32 ... OK<br>
<br><br>run flash_self<br>===========<br>The system boots without any problems when I use the run flash_self command with the following value.<br>
<br>
=> run flash_self<br>
## Booting image at 00600000 ...<br>
Image Name: Linux-2.6.16.16<br>
Image Type: PowerPC Linux Kernel Image (gzip compressed)<br>
Data Size: 1171270 Bytes = 1.1 MB<br>
Load Address: 00000000<br>
Entry Point: 00000000<br>
Verifying Checksum ... OK<br>
Uncompressing Kernel Image ... OK<br>
## Loading RAMDisk Image at 00800000 ...<br>
Image Name: Taishan Ramdisk<br>
Image Type: PowerPC Linux RAMDisk Image (gzip compressed)<br>
Data Size: 1198898 Bytes = 1.1 MB<br>
Load Address: 00000000<br>
Entry Point: 00000000<br>
Verifying Checksum ... OK<br>
Loading Ramdisk to 0fd8d000, end 0feb1b32 ... OK<br>
Linux version <a href="http://2.6.16.16" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">2.6.16.16</a> (root@linux_box) (gcc version 4.0.0 (DENX ELDK
4.0 4.0.0)) #8 Wed Oct 186AMCC Taishan Board
.............................<br>
Built 1 zonelists<br>
Kernel command line: root=/dev/ram rw
ip=<a href="http://192.168.1.62:192" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.62:192</a>.168.1.155:::taishan:eth0:off panic=1 c0PID hash
table entries: 2048 (order: 11, 32768 bytes)<br>
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)<br>
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)<br>
Memory: 255872k available (1792k kernel code, 568k data, 132k init, 0k highmem)<br>
Mount-cache hash table entries: 512<br>
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd<br>
Freeing initrd memory: 1170k freed<br>
NET: Registered protocol family 16<br>
PCI: Probing PCI hardware<br>
JFFS2 version 2.2. (NAND) (SUMMARY) (C) 2001-2003 Red Hat, Inc.<br>
io scheduler noop registered<br>
io scheduler anticipatory registered (default)<br>
io scheduler deadline registered<br>
io scheduler cfq registered<br>
Serial: 8250/16550 driver $Revision: <a href="http://1.1.1.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">1.1.1.1</a> $ 4 ports, IRQ sharing enabled<br>
serial8250: ttyS0 at MMIO 0x0 (irq = 0) is a 16550A<br>
serial8250: ttyS1 at MMIO 0x0 (irq = 1) is a 16550A<br>
RAMDISK driver initialized: 16 RAM disks of 65536K size 1024 blocksize<br>
PPC 4xx OCP EMAC driver, version 3.54<br>
mal0: initialized, 4 TX channels, 4 RX channels<br>
rgmii0: input 0 in RGMII mode<br>
eth0: emac2, MAC 00:0c:4f:35:00:02<br>
eth0: found ET1011C Gigabit Ethernet PHY (0x01)<br>
rgmii0: input 1 in RGMII mode<br>
eth1: emac3, MAC 00:0c:4f:35:00:03<br>
eth1: found ET1011C Gigabit Ethernet PHY (0x03)<br>
e100: Intel(R) PRO/100 Network Driver, 3.5.10-k2-NAPI<br>
e100: Copyright(c) 1999-2005 Intel Corporation<br>
PPP generic driver version 2.4.2<br>
NET: Registered protocol family 24<br>
TAISHAN flash mapping: Found 2 x16 devices at 0x0 in 32-bit bank<br>
Amd/Fujitsu Extended Query Table at 0x0040<br>
TAISHAN flash mapping: CFI does not contain boot bank location. Assuming top.<br>
number of CFI chips: 1<br>
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.<br>
Creating 5 MTD partitions on "TAISHAN flash mapping":<br>
0x00000000-0x00180000 : "Kernel"<br>
0x00180000-0x00380000 : "Ramdisk"<br>
0x00380000-0x03e00000 : "FlashFS"<br>
0x03e00000-0x03f80000 : "kDiags"<br>
0x03f80000-0x04000000 : "U-Boot"<br>
i2c /dev entries driver<br>
IBM IIC driver v2.1<br>
ibm-iic0: using standard (100 kHz) mode<br>
ibm-iic1: using standard (100 kHz) mode<br>
NET: Registered protocol family 2<br>
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)<br>
TCP established hash table entries: 16384 (order: 4, 65536 bytes)<br>
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)<br>
TCP: Hash tables configured (established 16384 bind 16384)<br>
TCP reno registered<br>
TCP bic registered<br>
NET: Registered protocol family 1<br>
NET: Registered protocol family 17<br>
eth0: link is down<br>
IP-Config: Guessing netmask <a href="http://255.255.255.0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">255.255.255.0</a><br>
IP-Config: Complete:<br>
device=eth0, addr=<a href="http://192.168.1.62" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.62</a>, mask=<a href="http://255.255.255.0" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
255.255.255.0</a>, gw=<a href="http://255.255.255.255" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">255.255.255.255</a>,<br>
host=taishan, domain=, nis-domain=(none),<br>
bootserver=<a href="http://192.168.1.155" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.155</a>, rootserver=<a href="http://192.168.1.155" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
192.168.1.155</a>, rootpath=<br>
RAMDISK: Compressed image found at block 0<br>
VFS: Mounted root (ext2 filesystem).<br>
Freeing unused kernel memory: 132k init<br>
eth0: link is up, 100 FDX, pause enabled<br>
AMCC Startup utility launched.<br>
<br>
BusyBox v1.2.1 (2006.10.19<br>
Please press Enter to activate this console.<br>
<br>
<br>
BusyBox v1.2.1 (2006.10.19-23:15+0000) Built-in shell (ash)<br>
Enter 'help' for a list of built-in commands.<br>
<br>
~ # <br><br>I appreciate for your time and help.<br><br>Thanks,<br><br>
Senthil<br>