* AVNET 440GX board
@ 2007-03-22 19:34 Ken Sakurai
2007-03-23 6:22 ` Stefan Roese
0 siblings, 1 reply; 8+ messages in thread
From: Ken Sakurai @ 2007-03-22 19:34 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1550 bytes --]
Hi,
I'm trying to boot Linux on AVNET 440gx eval board but no luck so far.
What I did are that I downloaded a plain 2.6.20 kernel from kernel.org,
configured with 440GX, OCOTEA target (I'm not sure OCOTEA is correct
target),
then loaded the kernel image via tftp and tried to boot with bootelf
command.
But I had no output message from Linux.
I suspected setting of Linux serial console. So I changed the kernel
parameter to
"ttyS0,19200" which I suppose correct becuase this is the minicom setting.
But still didn't work.
The board comes with u-boot 1.0.2 with some fixes. I'm checking the u-boot
source code (might be some hint in there) and the serial device
initialization code in Linux.
Has anyone had experiece with Linux on AVNET 440GX board?
Any advise would be appreciated !
-
Ken
------
=> tftp
Waiting for PHY auto negotiation to complete.. done
ENET Speed is 100 Mbps - FULL duplex connection
*** Warning: no boot file name; using '6501A8C0.img'
Using ppc_440x_eth2 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.101
Filename '6501A8C0.img'.
Load address: 0x100000
Loading: #################################################################
#################################################################
#################################
done
Bytes transferred = 832121 (cb279 hex)
=> bootelf
Loading .text @ 0x01000000 (15316 bytes)
Loading .data @ 0x01004000 (700416 bytes)
Clearing .bss @ 0x010af000 (8500 bytes)
## Starting application at 0x01000000 ...
(no output after this message)
[-- Attachment #2: Type: text/html, Size: 1937 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: AVNET 440GX board
2007-03-22 19:34 AVNET 440GX board Ken Sakurai
@ 2007-03-23 6:22 ` Stefan Roese
2007-03-23 10:40 ` Josh Boyer
2007-03-23 18:45 ` Ken Sakurai
0 siblings, 2 replies; 8+ messages in thread
From: Stefan Roese @ 2007-03-23 6:22 UTC (permalink / raw)
To: linuxppc-embedded
Ken,
On Thursday 22 March 2007 20:34, Ken Sakurai wrote:
> I'm trying to boot Linux on AVNET 440gx eval board but no luck so far.
> What I did are that I downloaded a plain 2.6.20 kernel from kernel.org,
> configured with 440GX, OCOTEA target (I'm not sure OCOTEA is correct
> target),
I don't know the AVNET 440GX eval board. Is it _identical_ to the IBM/AMCC
Ocotea? If not you will most likely have no luck with this image. You will
have to port Linux to this special board.
> then loaded the kernel image via tftp and tried to boot with bootelf
> command.
> But I had no output message from Linux.
>
> I suspected setting of Linux serial console. So I changed the kernel
> parameter to
> "ttyS0,19200" which I suppose correct becuase this is the minicom setting.
> But still didn't work.
>
> The board comes with u-boot 1.0.2 with some fixes. I'm checking the u-boot
> source code (might be some hint in there) and the serial device
> initialization code in Linux.
>
> Has anyone had experiece with Linux on AVNET 440GX board?
> Any advise would be appreciated !
See below.
> -
> Ken
>
> ------
>
> => tftp
> Waiting for PHY auto negotiation to complete.. done
> ENET Speed is 100 Mbps - FULL duplex connection
> *** Warning: no boot file name; using '6501A8C0.img'
Hmmmm. That's a strange image name. Normally you should boot the uImage file
from U-Boot.
> Using ppc_440x_eth2 device
> TFTP from server 192.168.1.1; our IP address is 192.168.1.101
> Filename '6501A8C0.img'.
> Load address: 0x100000
> Loading: #################################################################
> #################################################################
> #################################
> done
> Bytes transferred = 832121 (cb279 hex)
> => bootelf
> Loading .text @ 0x01000000 (15316 bytes)
> Loading .data @ 0x01004000 (700416 bytes)
> Clearing .bss @ 0x010af000 (8500 bytes)
> ## Starting application at 0x01000000 ...
And use the "bootm" command to boot the uImage.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
=====================================================================
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: AVNET 440GX board
2007-03-23 6:22 ` Stefan Roese
@ 2007-03-23 10:40 ` Josh Boyer
2007-03-23 18:45 ` Ken Sakurai
1 sibling, 0 replies; 8+ messages in thread
From: Josh Boyer @ 2007-03-23 10:40 UTC (permalink / raw)
To: Stefan Roese; +Cc: linuxppc-embedded
On Fri, 2007-03-23 at 07:22 +0100, Stefan Roese wrote:
> Ken,
>
> On Thursday 22 March 2007 20:34, Ken Sakurai wrote:
> > I'm trying to boot Linux on AVNET 440gx eval board but no luck so far.
> > What I did are that I downloaded a plain 2.6.20 kernel from kernel.org,
> > configured with 440GX, OCOTEA target (I'm not sure OCOTEA is correct
> > target),
>
> I don't know the AVNET 440GX eval board. Is it _identical_ to the IBM/AMCC
> Ocotea? If not you will most likely have no luck with this image. You will
> have to port Linux to this special board.
No, it's not identical. We had one of these boards at one point and it
was a pain in the arse.
josh
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: AVNET 440GX board
2007-03-23 6:22 ` Stefan Roese
2007-03-23 10:40 ` Josh Boyer
@ 2007-03-23 18:45 ` Ken Sakurai
2007-03-23 21:30 ` Ken Sakurai
` (2 more replies)
1 sibling, 3 replies; 8+ messages in thread
From: Ken Sakurai @ 2007-03-23 18:45 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 3951 bytes --]
Stephen,
> I don't know the AVNET 440GX eval board. Is it _identical_ to the IBM/AMCC
> Ocotea? If not you will most likely have no luck with this image. You will
> have to port Linux to this special board.
yeah, sounds like. I was so optimistic that Linux is kind of primary OS for
any ppc board when I choosed this board :-)
I was just using the elf image, instead of uimage.
'6501A8C0.img' is refereing zImage.img which is Linux elf image.
It looks to me that the bootelf command interprets ELF format corrently.
As you sugested, I also made uImage and used bootm to boot it.
But no luck. Here is the log.
=> setenv bootargs "console=ttyS0,19200 console=/dev/ttyS0"
=> tftp 0x100000 uImage
Waiting for PHY auto negotiation to complete.. done
ENET Speed is 100 Mbps - FULL duplex connection
Using ppc_440x_eth2 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.101
Filename 'uImage'.
Load address: 0x100000
Loading: #################################################################
#################################################################
######
done
Bytes transferred = 695605 (a9d35 hex)
=> bootm
## Booting image at 00100000 ...
Image Name: Linux-2.6.21-rc4
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 695541 Bytes = 679.2 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
(freeze at this point)
- Ken
On 3/23/07, Stefan Roese <sr@denx.de> wrote:
>
> Ken,
>
> On Thursday 22 March 2007 20:34, Ken Sakurai wrote:
> > I'm trying to boot Linux on AVNET 440gx eval board but no luck so far.
> > What I did are that I downloaded a plain 2.6.20 kernel from kernel.org,
> > configured with 440GX, OCOTEA target (I'm not sure OCOTEA is correct
> > target),
>
> I don't know the AVNET 440GX eval board. Is it _identical_ to the IBM/AMCC
> Ocotea? If not you will most likely have no luck with this image. You will
> have to port Linux to this special board.
>
> > then loaded the kernel image via tftp and tried to boot with bootelf
> > command.
> > But I had no output message from Linux.
> >
> > I suspected setting of Linux serial console. So I changed the kernel
> > parameter to
> > "ttyS0,19200" which I suppose correct becuase this is the minicom
> setting.
> > But still didn't work.
> >
> > The board comes with u-boot 1.0.2 with some fixes. I'm checking the
> u-boot
> > source code (might be some hint in there) and the serial device
> > initialization code in Linux.
> >
> > Has anyone had experiece with Linux on AVNET 440GX board?
> > Any advise would be appreciated !
>
> See below.
>
> > -
> > Ken
> >
> > ------
> >
> > => tftp
> > Waiting for PHY auto negotiation to complete.. done
> > ENET Speed is 100 Mbps - FULL duplex connection
> > *** Warning: no boot file name; using '6501A8C0.img'
>
> Hmmmm. That's a strange image name. Normally you should boot the uImage
> file
> from U-Boot.
>
> > Using ppc_440x_eth2 device
> > TFTP from server 192.168.1.1; our IP address is 192.168.1.101
> > Filename '6501A8C0.img'.
> > Load address: 0x100000
> > Loading:
> #################################################################
>
> > #################################################################
> > #################################
> > done
> > Bytes transferred = 832121 (cb279 hex)
> > => bootelf
> > Loading .text @ 0x01000000 (15316 bytes)
> > Loading .data @ 0x01004000 (700416 bytes)
> > Clearing .bss @ 0x010af000 (8500 bytes)
> > ## Starting application at 0x01000000 ...
>
> And use the "bootm" command to boot the uImage.
>
> Best regards,
> Stefan
>
> =====================================================================
> DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
> Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
> =====================================================================
>
[-- Attachment #2: Type: text/html, Size: 5252 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: AVNET 440GX board
2007-03-23 18:45 ` Ken Sakurai
@ 2007-03-23 21:30 ` Ken Sakurai
2007-03-25 19:39 ` Wolfgang Denk
2007-03-24 6:12 ` Stefan Roese
2007-03-25 19:38 ` Wolfgang Denk
2 siblings, 1 reply; 8+ messages in thread
From: Ken Sakurai @ 2007-03-23 21:30 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 4742 bytes --]
Hi,
I decided to start tracing down the issue. I'm debugging early stage
by adding primitive debug code ( I don't have a fancy cpu debugger,
sign)
foobar:
.long 0
start_:
lis r4, foobar@h
ori r4, r4, foobar@l
li r8, 0x1111
stw r8, 0(r4)
I found that the bootelf command actually jumped to _start(), and then
stoped inside load_kernel()@arch/ppc/boot/simple/misc.c. Because of
stupid debugging method, just slow progress.
- ken
On 3/23/07, Ken Sakurai <sakurken@gmail.com> wrote:
>
> Stephen,
>
> > I don't know the AVNET 440GX eval board. Is it _identical_ to the
> IBM/AMCC
> > Ocotea? If not you will most likely have no luck with this image. You
> will
> > have to port Linux to this special board.
>
> yeah, sounds like. I was so optimistic that Linux is kind of primary OS
> for
> any ppc board when I choosed this board :-)
>
> I was just using the elf image, instead of uimage.
> '6501A8C0.img' is refereing zImage.img which is Linux elf image.
> It looks to me that the bootelf command interprets ELF format corrently.
>
> As you sugested, I also made uImage and used bootm to boot it.
> But no luck. Here is the log.
>
> => setenv bootargs "console=ttyS0,19200 console=/dev/ttyS0"
> => tftp 0x100000 uImage
> Waiting for PHY auto negotiation to complete.. done
> ENET Speed is 100 Mbps - FULL duplex connection
> Using ppc_440x_eth2 device
> TFTP from server 192.168.1.1; our IP address is 192.168.1.101
> Filename 'uImage'.
> Load address: 0x100000
> Loading: #################################################################
>
> #################################################################
> ######
> done
> Bytes transferred = 695605 (a9d35 hex)
> => bootm
> ## Booting image at 00100000 ...
> Image Name: Linux-2.6.21-rc4
> Image Type: PowerPC Linux Kernel Image (gzip compressed)
> Data Size: 695541 Bytes = 679.2 kB
> Load Address: 00000000
> Entry Point: 00000000
> Verifying Checksum ... OK
> Uncompressing Kernel Image ... OK
> (freeze at this point)
>
> - Ken
>
> On 3/23/07, Stefan Roese <sr@denx.de> wrote:
> >
> > Ken,
> >
> > On Thursday 22 March 2007 20:34, Ken Sakurai wrote:
> > > I'm trying to boot Linux on AVNET 440gx eval board but no luck so
> > far.
> > > What I did are that I downloaded a plain 2.6.20 kernel from kernel.org
> > ,
> > > configured with 440GX, OCOTEA target (I'm not sure OCOTEA is correct
> > > target),
> >
> > I don't know the AVNET 440GX eval board. Is it _identical_ to the
> > IBM/AMCC
> > Ocotea? If not you will most likely have no luck with this image. You
> > will
> > have to port Linux to this special board.
> >
> > > then loaded the kernel image via tftp and tried to boot with bootelf
> > > command.
> > > But I had no output message from Linux.
> > >
> > > I suspected setting of Linux serial console. So I changed the kernel
> > > parameter to
> > > "ttyS0,19200" which I suppose correct becuase this is the minicom
> > setting.
> > > But still didn't work.
> > >
> > > The board comes with u-boot 1.0.2 with some fixes. I'm checking the
> > u-boot
> > > source code (might be some hint in there) and the serial device
> > > initialization code in Linux.
> > >
> > > Has anyone had experiece with Linux on AVNET 440GX board?
> > > Any advise would be appreciated !
> >
> > See below.
> >
> > > -
> > > Ken
> > >
> > > ------
> > >
> > > => tftp
> > > Waiting for PHY auto negotiation to complete.. done
> > > ENET Speed is 100 Mbps - FULL duplex connection
> > > *** Warning: no boot file name; using ' 6501A8C0.img'
> >
> > Hmmmm. That's a strange image name. Normally you should boot the uImage
> > file
> > from U-Boot.
> >
> > > Using ppc_440x_eth2 device
> > > TFTP from server 192.168.1.1 ; our IP address is 192.168.1.101
> > > Filename '6501A8C0.img'.
> > > Load address: 0x100000
> > > Loading:
> > #################################################################
> >
> > > #################################################################
> > > #################################
> > > done
> > > Bytes transferred = 832121 (cb279 hex)
> > > => bootelf
> > > Loading .text @ 0x01000000 (15316 bytes)
> > > Loading .data @ 0x01004000 (700416 bytes)
> > > Clearing .bss @ 0x010af000 (8500 bytes)
> > > ## Starting application at 0x01000000 ...
> >
> > And use the "bootm" command to boot the uImage.
> >
> > Best regards,
> > Stefan
> >
> > =====================================================================
> > DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
> > Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
> > =====================================================================
> >
>
>
[-- Attachment #2: Type: text/html, Size: 6942 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: AVNET 440GX board
2007-03-23 18:45 ` Ken Sakurai
2007-03-23 21:30 ` Ken Sakurai
@ 2007-03-24 6:12 ` Stefan Roese
2007-03-25 19:38 ` Wolfgang Denk
2 siblings, 0 replies; 8+ messages in thread
From: Stefan Roese @ 2007-03-24 6:12 UTC (permalink / raw)
To: linuxppc-embedded
Ken,
On Friday 23 March 2007 19:45, Ken Sakurai wrote:
> > I don't know the AVNET 440GX eval board. Is it _identical_ to the
> > IBM/AMCC Ocotea? If not you will most likely have no luck with this
> > image. You will have to port Linux to this special board.
>
> yeah, sounds like. I was so optimistic that Linux is kind of primary OS for
> any ppc board when I choosed this board :-)
>
> I was just using the elf image, instead of uimage.
> '6501A8C0.img' is refereing zImage.img which is Linux elf image.
> It looks to me that the bootelf command interprets ELF format corrently.
>
> As you sugested, I also made uImage and used bootm to boot it.
> But no luck. Here is the log.
Of course you had no luck, since the Ocotea uImage can't work on a different
hardware like the AVNET board. Again, you have to port Linux to this platform
first. And you need to know detailed information for this procedure
(schematics...).
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
=====================================================================
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: AVNET 440GX board
2007-03-23 18:45 ` Ken Sakurai
2007-03-23 21:30 ` Ken Sakurai
2007-03-24 6:12 ` Stefan Roese
@ 2007-03-25 19:38 ` Wolfgang Denk
2 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2007-03-25 19:38 UTC (permalink / raw)
To: Ken Sakurai; +Cc: linuxppc-embedded
In message <393e3a4b0703231145qc16b305x58389e3ba08c867b@mail.gmail.com> you wrote:
>
> I was just using the elf image, instead of uimage.
> '6501A8C0.img' is refereing zImage.img which is Linux elf image.
> It looks to me that the bootelf command interprets ELF format corrently.
You shoulkd really read the documentation. bootelf is not the correct
command to boot a Linux kernel image, and the ELF file is not the
correct image to use.
Also, "6501A8C0.img" means you fell back to using the encoded IP
address of yoru target as file name because you failed to provide a
valid image name.
Again, I strongly recommend to read the fine manual.
> On 3/23/07, Stefan Roese <sr@denx.de> wrote:
[Full quote deleted.]
Please don't top post / full quote.
Read http://www.netmeister.org/news/learn2quote.html
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
HEALTH WARNING: Care Should Be Taken When Lifting This Product, Since
Its Mass, and Thus Its Weight, Is Dependent on Its Velocity Relative
to the User.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: AVNET 440GX board
2007-03-23 21:30 ` Ken Sakurai
@ 2007-03-25 19:39 ` Wolfgang Denk
0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2007-03-25 19:39 UTC (permalink / raw)
To: Ken Sakurai; +Cc: linuxppc-embedded
In message <393e3a4b0703231430n65b01a79jaff5942004405aa4@mail.gmail.com> you wrote:
>
> I found that the bootelf command actually jumped to _start(), and then
> stoped inside load_kernel()@arch/ppc/boot/simple/misc.c. Because of
> stupid debugging method, just slow progress.
You waste your efforts. You use the wrong image format (ELF instead of
uImage] and the wrong boot command [bootelf instead of bootm].
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Punishment becomes ineffective after a certain point. Men become in-
sensitive.
-- Eneg, "Patterns of Force", stardate 2534.7
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-03-25 19:39 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-22 19:34 AVNET 440GX board Ken Sakurai
2007-03-23 6:22 ` Stefan Roese
2007-03-23 10:40 ` Josh Boyer
2007-03-23 18:45 ` Ken Sakurai
2007-03-23 21:30 ` Ken Sakurai
2007-03-25 19:39 ` Wolfgang Denk
2007-03-24 6:12 ` Stefan Roese
2007-03-25 19:38 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).