<br><font size=2 face="sans-serif">Hello,</font>
<br>
<br><font size=2 face="sans-serif">I would like to boot the OMAP5912 board
from u-boot.</font>
<br><font size=2 face="sans-serif">Memory layout is :</font>
<br><font size=2 face="sans-serif">FLASH :
Starts from 0x0000 0000 (32MB)</font>
<br><font size=2 face="sans-serif">SDRAM: 0x1000
0000 to 0x1200 0000 (32 MB)</font>
<br>
<br>
<br><font size=2 face="sans-serif">I used the kernel Image with DHCP Support
= ON. </font>
<br>
<br><font size=2 face="sans-serif">I copied the uImage at 0x0001 0000 and
uRamdisk at 0x0010 0000</font>
<br>
<br><font size=2 face="sans-serif">*********************LOG*****************************</font>
<br><font size=2 face="sans-serif">OMAP5912 OSK # tftp 10000000 uImage</font>
<br><font size=2 face="sans-serif">OMAP5912 OSK # cp.b 10000000 100000
b67e4</font>
<br><font size=2 face="sans-serif">OMAP5912 OSK # imi 100000</font>
<br><font size=2 face="sans-serif">## Checking Image at 00100000 ...</font>
<br><font size=2 face="sans-serif"> Image Name: Linux-2.4.20_mvl31-omap5912_osk</font>
<br><font size=2 face="sans-serif"> Image Type: ARM
Linux Kernel Image (uncompressed)</font>
<br><font size=2 face="sans-serif"> Data Size: 747428
Bytes = 729.9 kB</font>
<br><font size=2 face="sans-serif"> Load Address: 10008000</font>
<br><font size=2 face="sans-serif"> Entry Point: 10008000</font>
<br><font size=2 face="sans-serif"> Verifying Checksum ...
OK</font>
<br><font size=2 face="sans-serif"><br>
</font>
<br><font size=2 face="sans-serif">OMAP5912 OSK # tftp 10000000 uRamdisk</font>
<br><font size=2 face="sans-serif">OMAP5912 OSK # cp.b 10000000 1000000
16f4eb</font>
<br><font size=2 face="sans-serif">OMAP5912 OSK # imi 1000000</font>
<br><font size=2 face="sans-serif">## Checking Image at 01000000 ...</font>
<br><font size=2 face="sans-serif"> Image Name: Test
Ramdisk Image</font>
<br><font size=2 face="sans-serif"> Image Type: ARM
Linux RAMDisk Image (gzip compressed)</font>
<br><font size=2 face="sans-serif"> Data Size: 1504427
Bytes = 1.4 MB</font>
<br><font size=2 face="sans-serif"> Load Address: 11000000</font>
<br><font size=2 face="sans-serif"> Entry Point: 11000000</font>
<br><font size=2 face="sans-serif"> Verifying Checksum ...
OK</font>
<br>
<br><font size=2 face="sans-serif">OMAP5912 OSK # setenv bootargs mem=32M
console=ttyS0,115200n8 root=/dev/rd/0 ramdisk_start=1000000</font>
<br>
<br><font size=2 face="sans-serif">OMAP5912 OSK # print</font>
<br>
<br><font size=2 face="sans-serif">baudrate=115200</font>
<br><font size=2 face="sans-serif">ethaddr=00:0E:99:02:06:7D</font>
<br><font size=2 face="sans-serif">bootdelay=10</font>
<br><font size=2 face="sans-serif">bootfile=/tftpboot/omap/dhcp_uImage</font>
<br><font size=2 face="sans-serif">hostname=tqm</font>
<br><font size=2 face="sans-serif">stdin=serial</font>
<br><font size=2 face="sans-serif">stdout=serial</font>
<br><font size=2 face="sans-serif">stderr=serial</font>
<br><font size=2 face="sans-serif">filesize=16f4eb</font>
<br><font size=2 face="sans-serif">fileaddr=10000000</font>
<br><font size=2 face="sans-serif">gatewayip=172.18.19.253</font>
<br><font size=2 face="sans-serif">netmask=255.255.248.0</font>
<br><font size=2 face="sans-serif">ipaddr=172.18.20.198</font>
<br><font size=2 face="sans-serif">serverip=172.18.20.141</font>
<br><font size=2 face="sans-serif">bootargs=mem=32M console=ttyS0,115200n8
root=/dev/rd/0 ramdisk_start=1000000</font>
<br>
<br><font size=2 face="sans-serif">Environment size: 346/131068 bytes</font>
<br><font size=2 face="sans-serif">OMAP5912 OSK # bootm 100000</font>
<br>
<br><font size=2 face="sans-serif">## Booting image at 00100000 ...</font>
<br><font size=2 face="sans-serif"> Image Name: Linux-2.4.20_mvl31-omap5912_osk</font>
<br><font size=2 face="sans-serif"> Image Type: ARM
Linux Kernel Image (uncompressed)</font>
<br><font size=2 face="sans-serif"> Data Size: 747428
Bytes = 729.9 kB</font>
<br><font size=2 face="sans-serif"> Load Address: 10008000</font>
<br><font size=2 face="sans-serif"> Entry Point: 10008000</font>
<br><font size=2 face="sans-serif"> Verifying Checksum ...
OK</font>
<br><font size=2 face="sans-serif">OK</font>
<br>
<br><font size=2 face="sans-serif">Starting kernel ...</font>
<br>
<br><font size=2 face="sans-serif">Uncompressing Linux...................................................</font>
<br><font size=2 face="sans-serif">......</font>
<br><font size=2 face="sans-serif">.....</font>
<br><font size=2 face="sans-serif">Backtrace:</font>
<br><font size=2 face="sans-serif">Function entered at [<c00c0fa8>]
from [<c0049fc0>]</font>
<br><font size=2 face="sans-serif"> r7 = 00000000 r6 = FFFFFFEA
r5 = C03FA120 r4 = C03FA140</font>
<br><font size=2 face="sans-serif">Function entered at [<c0049ef0>]
from [<c0008ecc>]</font>
<br><font size=2 face="sans-serif">Function entered at [<c0008e68>]
from [<c0009094>]</font>
<br><font size=2 face="sans-serif"> r8 = 00000001 r7 = C018BD54
r6 = 00000000 r5 = C01874D4</font>
<br><font size=2 face="sans-serif"> r4 = 00000000</font>
<br><font size=2 face="sans-serif">Function entered at [<c0009020>]
from [<c001829c>]</font>
<br><font size=2 face="sans-serif">Function entered at [<c00181dc>]
from [<c0018040>]</font>
<br><font size=2 face="sans-serif"> r6 = C01B6728 r5 = C0176000
r4 = 00000000</font>
<br><font size=2 face="sans-serif">Function entered at [<c001802c>]
from [<c001bcac>]</font>
<br><font size=2 face="sans-serif">Code: 1a00002c e2522004 4282c004 4a00001b
(e4913004)</font>
<br><font size=2 face="sans-serif">Kernel panic: Attempted to kill init!</font>
<br>
<br><font size=2 face="sans-serif">**************************LOG END***********************************</font>
<br>
<br>
<br><font size=2 face="sans-serif">I also tried with </font>
<br><font size=2 face="Courier New">=> setenv bootargs root=/dev/ram
rw</font>
<br><font size=2 face="Courier New">=> bootm 100000 1000000</font>
<br><font size=2 face="sans-serif">But it also does not work,</font>
<br>
<br><font size=2 face="sans-serif">I think I made some mistake by passing
the correct kernel parameter. What might be the correct bootargs value?
The same uImage and uRamdisk works fine if the ramdisk image is mounted
by NFS with the bootargs (setenv bootargs console=ttyS0,115200n8 noinitrd
rw ip=dhcp root=/dev/nfs nfsroot=172.18.22.125:/mnt, nolock mem=30M)</font>
<br>
<br><font size=2 face="sans-serif">What am I missing?</font>
<br>
<br>
<br><font size=2 face="sans-serif">Now I tried with uImage without DHCP
support which gives the following log</font>
<br>
<br><font size=2 face="sans-serif">******LOG WITHOUT DHCP **************</font>
<br><font size=2 face="sans-serif">OMAP5912 OSK # bootm 100000 1000000</font>
<br><font size=2 face="sans-serif">......</font>
<br><font size=2 face="sans-serif">OMAP flash: using static partition definition</font>
<br><font size=2 face="sans-serif">Creating 5 MTD partitions on "omap-flash":</font>
<br><font size=2 face="sans-serif">0x00000000-0x00020000 : "BootLoader"</font>
<br><font size=2 face="sans-serif">0x00020000-0x00040000 : "Params"</font>
<br><font size=2 face="sans-serif">0x00040000-0x00240000 : "Kernel"</font>
<br><font size=2 face="sans-serif">0x00240000-0x01000000 : "Flash0
FileSys"</font>
<br><font size=2 face="sans-serif">0x01000000-0x02000000 : "Flash1
FileSys"</font>
<br><font size=2 face="sans-serif">Linux Kernel Card Services 3.1.22</font>
<br><font size=2 face="sans-serif"> options: none</font>
<br><font size=2 face="sans-serif">NET4: Linux TCP/IP 1.0 for NET4.0</font>
<br><font size=2 face="sans-serif">IP Protocols: ICMP, UDP, TCP</font>
<br><font size=2 face="sans-serif">IP: routing cache hash table of 512
buckets, 4Kbytes</font>
<br><font size=2 face="sans-serif">TCP: Hash tables configured (established
2048 bind 4096)</font>
<br><font size=2 face="sans-serif">IP-Config: Incomplete network configuration
information.</font>
<br><font size=2 face="sans-serif">NET4: Unix domain sockets 1.0/SMP for
Linux NET4.0.</font>
<br><font size=2 face="sans-serif">802.1Q VLAN Support v1.7 Ben Greear
<greearb@candelatech.com></font>
<br><font size=2 face="sans-serif">All bugs added by David S. Miller <davem@redhat.com></font>
<br><font size=2 face="sans-serif">NetWinder Floating Point Emulator V0.95
(c) 1998-1999 Rebel.com</font>
<br><font size=2 face="sans-serif">Root-NFS: No NFS server available, giving
up.</font>
<br><font size=2 face="sans-serif">VFS: Unable to mount root fs via NFS,
trying floppy.</font>
<br><font size=2 face="sans-serif">VFS: Cannot open root device "nfs"
or 02:00</font>
<br><font size=2 face="sans-serif">Please append a correct "root="
boot option</font>
<br><font size=2 face="sans-serif">Kernel panic: VFS: Unable to mount root
fs on 02:00</font>
<br><font size=2 face="sans-serif">********************END***********************</font>
<br>
<br><font size=2 face="sans-serif">What is the general rule to set bootargs?
</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">Batsayan Das<br>
Tata Consultancy Services Limited<br>
Mailto: batsayan.das@tcs.com<br>
Website: http://www.tcs.com</font>
<table><tr><td bgcolor=#ffffff><font color=#000000>Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you<br>
</font></td></tr></table>