Hi,<br><br>I decided to start tracing down the issue. I'm debugging early stage<br>by adding primitive debug code ( I don't have a fancy cpu debugger,<br>sign)<br><br>foobar:<br> .long 0<br>start_:<br> lis r4,
foobar@h<br> ori r4, r4, foobar@l<br> li r8, 0x1111<br> stw r8, 0(r4)<br><br>I found that the bootelf command actually jumped to _start(), and then<br>stoped inside load_kernel()@arch/ppc/boot/simple/misc.c. Because of
<br>stupid debugging method, just slow progress.<br><br>- ken<br><br><br><div><span class="gmail_quote">On 3/23/07, <b class="gmail_sendername">Ken Sakurai</b> <<a href="mailto:sakurken@gmail.com">sakurken@gmail.com</a>
> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Stephen,<span class="q"><br><br>> I don't know the AVNET 440GX eval board. Is it _identical_ to the IBM/AMCC
<br>> Ocotea? If not you will most likely have no luck with this image. You will<br>> have to port Linux to this special board.
<br><br></span>yeah, sounds like. I was so optimistic that Linux is kind of primary OS for<br>any ppc board when I choosed this board :-)<br><br>I was just using the elf image, instead of uimage.<br>'6501A8C0.img' is refereing
zImage.img which is Linux elf image.<br>It looks to me that the bootelf command interprets ELF format corrently.<br><br>As you sugested, I also made uImage and used bootm to boot it.<br>But no luck. Here is the log.<br><br>
=> setenv bootargs "console=ttyS0,19200 console=/dev/ttyS0"<br>=> tftp 0x100000 uImage<span class="q"><br>Waiting for PHY auto negotiation to complete.. done<br>ENET Speed is 100 Mbps - FULL duplex connection
<br></span><span class="q">Using ppc_440x_eth2 device
<br>TFTP from server <a href="http://192.168.1.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.1</a>; our IP address is <a href="http://192.168.1.101" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
192.168.1.101</a><br></span>Filename 'uImage'.<span class="q"><br>Load address: 0x100000<br>Loading: #################################################################
<br> #################################################################<br> ######<br>done<br></span>Bytes transferred = 695605 (a9d35 hex)<br>=> bootm<br>## Booting image at 00100000 ...<br> Image Name:
Linux-2.6.21-rc4
<br> Image Type: PowerPC Linux Kernel Image (gzip compressed)<br> Data Size: 695541 Bytes = 679.2 kB<br> Load Address: 00000000<br> Entry Point: 00000000<br> Verifying Checksum ... OK<br> Uncompressing Kernel Image ... OK
<br>(freeze at this point)<br><span class="sg"><br>- Ken</span><div><span class="e" id="q_111801e71310130a_9"><br><br><div><span class="gmail_quote">On 3/23/07, <b class="gmail_sendername">Stefan Roese</b> <<a href="mailto:sr@denx.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
sr@denx.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ken,<br><br>On Thursday 22 March 2007 20:34, Ken Sakurai wrote:<br>> I'm trying to boot Linux on AVNET 440gx eval board but no luck so far.<br>> What I did are that I downloaded a plain 2.6.20 kernel from <a href="http://kernel.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
kernel.org</a>,<br>> configured with 440GX, OCOTEA target (I'm not sure OCOTEA is correct<br>> target),<br><br>I don't know the AVNET 440GX eval board. Is it _identical_ to the IBM/AMCC<br>Ocotea? If not you will most likely have no luck with this image. You will
<br>have to port Linux to this special board.<br><br>> then loaded the kernel image via tftp and tried to boot with bootelf<br>> command.<br>> But I had no output message from Linux.<br>><br>> I suspected setting of Linux serial console. So I changed the kernel
<br>> parameter to<br>> "ttyS0,19200" which I suppose correct becuase this is the minicom setting.<br>> But still didn't work.<br>><br>> The board comes with u-boot 1.0.2 with some fixes. I'm checking the u-boot
<br>> source code (might be some hint in there) and the serial device<br>> initialization code in Linux.<br>><br>> Has anyone had experiece with Linux on AVNET 440GX board?<br>> Any advise would be appreciated !
<br><br>See below.<br><br>> -<br>> Ken<br>><br>> ------<br>><br>> => tftp<br>> Waiting for PHY auto negotiation to complete.. done<br>> ENET Speed is 100 Mbps - FULL duplex connection<br>> *** Warning: no boot file name; using '
6501A8C0.img'<br><br>Hmmmm. That's a strange image name. Normally you should boot the uImage file<br>from U-Boot.<br><br>> Using ppc_440x_eth2 device<br>> TFTP from server <a href="http://192.168.1.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
192.168.1.1
</a>; our IP address is <a href="http://192.168.1.101" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.101</a><br>> Filename '6501A8C0.img'.<br>> Load address: 0x100000<br>> Loading: #################################################################
<br>> #################################################################<br>> #################################<br>> done<br>> Bytes transferred = 832121 (cb279 hex)<br>> => bootelf<br>
> Loading .text @ 0x01000000 (15316 bytes)
<br>> Loading .data @ 0x01004000 (700416 bytes)<br>> Clearing .bss @ 0x010af000 (8500 bytes)<br>> ## Starting application at 0x01000000 ...<br><br>And use the "bootm" command to boot the uImage.<br><br>
Best regards,<br>Stefan<br><br>=====================================================================<br>DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk<br>Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
<br>=====================================================================<br></blockquote></div><br>
</span></div></blockquote></div><br>