* Need help booting linux on IBM 405EP eval board
@ 2004-04-02 17:34 Jeff Tucker
2004-04-02 18:27 ` Eugene Surovegin
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Jeff Tucker @ 2004-04-02 17:34 UTC (permalink / raw)
To: linuxppc-embedded
Hi, guys.
I sent a message like this to the U-Boot mailing list last night. I've been
told this is definitely not a U-Boot problem, so I'm hoping that the people
on this list can help me.
I'm having a hard time getting U-Boot to boot Linux on an IBM 405EP
evaluation board. Here's what I've tried:
First, I think my kernels are fine. I can compile 2.4.18 from an older
version of the ELDK or I can compile 2.4.24 from the latest released ELDK.
I'm using ELDK tools for all of my builds. Using the IBM bootloader that
comes on the board and the "treeboot" image file format, I can get the IBM
board to tftp my kernel over the lan and run it. So, I think the kernel is
working fine.
I also don't have any problem running U-Boot. I compiled 1.0.2 and
installed it on the board. U-Boot runs fine and I can make it tftp a file
over the network as well. Using iminfo, I can see that it read what I
expect. However, no matter what I try, I can't get the kernel to actually
boot.
In the older kernel, I'm using a "make pImage" and in the newer kernel I do
"make uImage". I've also tried running the mkimage tool manually with
various options to see if I could get a kernel to boot. iminfo says the
kernel is fine and I get to the "Uncompressing Linux Kernel ... OK" stage
but it stops there.
I'm aware that the denx.de site has a FAQ which appears to address this
issue:
<http://www.denx.de/twiki/bin/view/DULG/LinuxHangsAfterUncompressingKernel>
However, the structure mentioned there (bd_info) doesn't even seem to apply
for a 405EP-based board. The ppcboot.h file isn't included by the files
used when building a 405EP kernel for the 405EP evaluation board.
It still could be a problem passing parameters to the kernel, I suppose,
but I am not sure how those are defined in the first place.
I searched the mailing list archives but couldn't find anyone who had a
similar problem. So, if someone is using U-Boot to boot a kernel on the
405EP evaluation board would be willing to give me some pointers, I'd
appreciate it.
Thanks
Jeff
--
Jeff Tucker
jeff@jltnet.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Need help booting linux on IBM 405EP eval board
2004-04-02 17:34 Need help booting linux on IBM 405EP eval board Jeff Tucker
@ 2004-04-02 18:27 ` Eugene Surovegin
2004-04-02 19:55 ` Wolfgang Denk
2004-04-02 18:33 ` Jeff Tucker
2004-04-02 18:51 ` Wolfgang Denk
2 siblings, 1 reply; 8+ messages in thread
From: Eugene Surovegin @ 2004-04-02 18:27 UTC (permalink / raw)
To: Jeff Tucker; +Cc: linuxppc-embedded
On Fri, Apr 02, 2004 at 12:34:56PM -0500, Jeff Tucker wrote:
>
> Hi, guys.
>
> I sent a message like this to the U-Boot mailing list last night. I've been
> told this is definitely not a U-Boot problem, so I'm hoping that the people
> on this list can help me.
>
> I'm having a hard time getting U-Boot to boot Linux on an IBM 405EP
> evaluation board. Here's what I've tried:
>
> First, I think my kernels are fine. I can compile 2.4.18 from an older
> version of the ELDK or I can compile 2.4.24 from the latest released ELDK.
> I'm using ELDK tools for all of my builds. Using the IBM bootloader that
> comes on the board and the "treeboot" image file format, I can get the IBM
> board to tftp my kernel over the lan and run it. So, I think the kernel is
> working fine.
Hmm...
Standard bootloader which comes with 405ep eval board works fine with the Linux
kernel, U-Boot - doesn't, and you are being told that it's not a U-Boot
problem ?
So why don't you just use IBM bootloader and not U-Boot if you cannot get help
from u-boot maillist?
Eugene.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Need help booting linux on IBM 405EP eval board
2004-04-02 18:27 ` Eugene Surovegin
@ 2004-04-02 19:55 ` Wolfgang Denk
0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2004-04-02 19:55 UTC (permalink / raw)
To: Eugene Surovegin; +Cc: Jeff Tucker, linuxppc-embedded
In message <20040402182716.GC8540@gate.ebshome.net> you wrote:
>
> Standard bootloader which comes with 405ep eval board works fine with the Linux
> kernel, U-Boot - doesn't, and you are being told that it's not a U-Boot
> problem ?
It is not a problem that can be fixed in U-boot, as he must make sure
that Linux interptets the arguments passed by U-Boot correctly.
> So why don't you just use IBM bootloader and not U-Boot if you cannot get help
> from u-boot maillist?
He got help. Actually this is a FAQ.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
Faith may be defined briefly as an illogical belief in the occurence
of the improbable. - H. L. Mencken
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Need help booting linux on IBM 405EP eval board
2004-04-02 17:34 Need help booting linux on IBM 405EP eval board Jeff Tucker
2004-04-02 18:27 ` Eugene Surovegin
@ 2004-04-02 18:33 ` Jeff Tucker
2004-04-02 21:40 ` Christian Tröster
2004-04-02 18:51 ` Wolfgang Denk
2 siblings, 1 reply; 8+ messages in thread
From: Jeff Tucker @ 2004-04-02 18:33 UTC (permalink / raw)
To: linuxppc-embedded
--On Friday, April 02, 2004 12:34 PM -0500 Jeff Tucker <jeff@jltnet.com>
wrote:
>
> Hi, guys.
>
> I sent a message like this to the U-Boot mailing list last night. I've
> been
> told this is definitely not a U-Boot problem, so I'm hoping that the
> people
> on this list can help me.
>
> I'm having a hard time getting U-Boot to boot Linux on an IBM 405EP
> evaluation board. Here's what I've tried:
>
Just to follow up to my own posting. I've found that in my linux-2.4.18
kernel, there is a file arch/ppc/platforms/evb405ep.h which does include a
board_info struct which is quite a bit different from the struct in
u-boot.h. I've made those match and re-built the kernel, still with no luck.
I've re-built U-Boot in debug mode so I can see what is going on. Here's
what it spits out before the board locks up:
=> iminfo 500000
## Checking Image at 00500000 ...
Image Name: Linux-2.4.18_mvl30-405ep_eval
Created: 2004-04-02 17:59:23 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 733690 Bytes = 716.5 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
=> bootm 500000
## Booting image at 00500000 ...
Image Name: Linux-2.4.18_mvl30-405ep_eval
Created: 2004-04-02 17:59:23 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 733690 Bytes = 716.5 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Current stack ends at 0x07FB0598 => set upper limit to 0x00800000
## cmdline at 0x007FFC00 ... 0x007FFC1B
bd address = 0x07FB0F8C
memstart = 0x00000000
memsize = 0x08000000
flashstart = 0xFFF80000
flashsize = 0x00080000
flashoffset = 0x00027F00
sramstart = 0x00000000
sramsize = 0x00000000
bootflags = 0x0000A000
procfreq = 266.666 MHz
plb_busfreq = 133.333 MHz
pci_busfreq = 33.333 MHz
ethaddr = 00:04:AC:E3:24:A7
IP addr = 192.168.0.91
baudrate = 9600 bps
No initrd
## Transferring control to Linux (at address 00000000) ...
Any ideas?
Thanks
Jeff
--
Jeff Tucker
jeff@jltnet.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Need help booting linux on IBM 405EP eval board
2004-04-02 18:33 ` Jeff Tucker
@ 2004-04-02 21:40 ` Christian Tröster
0 siblings, 0 replies; 8+ messages in thread
From: Christian Tröster @ 2004-04-02 21:40 UTC (permalink / raw)
To: linuxppc-embedded
Am Friday 02 April 2004 20:33 schrieb Jeff Tucker:
> I've re-built U-Boot in debug mode so I can see what is going on. Here's
> what it spits out before the board locks up:
[snip]
> procfreq = 266.666 MHz
> plb_busfreq = 133.333 MHz
> pci_busfreq = 33.333 MHz
> ethaddr = 00:04:AC:E3:24:A7
> IP addr = 192.168.0.91
> baudrate = 9600 bps
> No initrd
> ## Transferring control to Linux (at address 00000000) ...
>
> Any ideas?
If you're connected via a serial console make sure to append the correct
bootoptions to the kernel to get your output to /dev/ttySx.
Bye, Christian
- --
| mailto:c.troester@gmx.de | http://www.christian.myfen.de/ |
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Need help booting linux on IBM 405EP eval board
2004-04-02 17:34 Need help booting linux on IBM 405EP eval board Jeff Tucker
2004-04-02 18:27 ` Eugene Surovegin
2004-04-02 18:33 ` Jeff Tucker
@ 2004-04-02 18:51 ` Wolfgang Denk
2004-04-02 22:09 ` Jeff Tucker
2 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Denk @ 2004-04-02 18:51 UTC (permalink / raw)
To: Jeff Tucker; +Cc: linuxppc-embedded
In message <1866383.1080909296@[192.168.0.230]> you wrote:
>
> I sent a message like this to the U-Boot mailing list last night. I've been
And you have received replies thaty pointed to the problem.
> I'm aware that the denx.de site has a FAQ which appears to address this issue:
> <http://www.denx.de/twiki/bin/view/DULG/LinuxHangsAfterUncompressingKernel>
>
> However, the structure mentioned there (bd_info) doesn't even seem to apply
> for a 405EP-based board. The ppcboot.h file isn't included by the files
> used when building a 405EP kernel for the 405EP evaluation board.
OK. You found the problem: The ppcboot.h file isn't included. Seems
you must adapt your board for use with U-Boot. See the FAQ quoted
above.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
"Data is a lot like humans: It is born. Matures. Gets married to
other data, divorced. Gets old. One thing that it doesn't do is die.
It has to be killed." - Arthur Miller
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Need help booting linux on IBM 405EP eval board
2004-04-02 18:51 ` Wolfgang Denk
@ 2004-04-02 22:09 ` Jeff Tucker
0 siblings, 0 replies; 8+ messages in thread
From: Jeff Tucker @ 2004-04-02 22:09 UTC (permalink / raw)
To: linuxppc-embedded
--On Friday, April 02, 2004 8:51 PM +0200 Wolfgang Denk <wd@denx.de> wrote:
>
> In message <1866383.1080909296@[192.168.0.230]> you wrote:
>>
>> I sent a message like this to the U-Boot mailing list last night. I've
>> been
>
> And you have received replies thaty pointed to the problem.
>
Indeed, as my later email indicated, I found that the Linux build is using
the file arch/ppc/platforms/evb405ep.[c/h] and that file has a board_info
struct, separate and different from the ppcboot.h file which is in a
totally different directory. I've made evb405ep.h match U-Boot's u-boot.h,
but that hasn't helped my problem.
I guess I have two questions then:
- Does the build environment (from ELDK 3.0) for the 405EP evaluation board
use the file mentioned above? Is that the place where I have to make the
board_info struct match the struct in U-Boot
(u-boot/include/asm-ppc/u-boot.h)?
- Has the Linux/build environment already been ported for this particular
board? It's in the Makefile and there are certainly board-specific files
available in the above directory. So, I figured that I wouldn't have to go
through a porting process to boot Linux. And, again, the IBM bootloader
loads and boots kernels just fine.
Does anyone out there use this evaluation board, Linux 2.4 and U-Boot or am
I really the first?
Thanks
Jeff
--
Jeff Tucker
jeff@jltnet.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: Need help booting linux on IBM 405EP eval board
@ 2004-04-04 22:37 Jeff Tucker
2004-04-04 23:13 ` Wolfgang Denk
0 siblings, 1 reply; 8+ messages in thread
From: Jeff Tucker @ 2004-04-04 22:37 UTC (permalink / raw)
To: linuxppc-embedded
--On Sunday, April 04, 2004 12:35 PM +0800 Jack Liu <Jack_liu@usish.com>
wrote:
>
> yes, I guess your prolbem is like what Christian said before. Tye using
> console=ttyS0,9600 to append boot options.
>
Thanks for the suggestions, guys.
Actually, I had the statement above in my default command line option
compiled into the kernel. I also tried adding it to the "bootargs"
environment variable in U-Boot.
The exact same kernel boots with the IBM bootloader, including serial
console and network access. When I boot using U-Boot, I don't get a console
and there's no apparent network activity from the board.
Jeff
--
Jeff Tucker
jeff@jltnet.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Need help booting linux on IBM 405EP eval board
2004-04-04 22:37 Jeff Tucker
@ 2004-04-04 23:13 ` Wolfgang Denk
0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2004-04-04 23:13 UTC (permalink / raw)
To: Jeff Tucker; +Cc: linuxppc-embedded
In message <72099343.1081103823@[192.168.2.18]> you wrote:
>
> The exact same kernel boots with the IBM bootloader, including serial
> console and network access. When I boot using U-Boot, I don't get a console
> and there's no apparent network activity from the board.
How about the log_buf contents?
And did you try attaching a debugger?
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
A quarrel is quickly settled when deserted by one party; there is no
battle unless there be two. - Seneca
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-04-04 23:13 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-02 17:34 Need help booting linux on IBM 405EP eval board Jeff Tucker
2004-04-02 18:27 ` Eugene Surovegin
2004-04-02 19:55 ` Wolfgang Denk
2004-04-02 18:33 ` Jeff Tucker
2004-04-02 21:40 ` Christian Tröster
2004-04-02 18:51 ` Wolfgang Denk
2004-04-02 22:09 ` Jeff Tucker
-- strict thread matches above, loose matches on Subject: below --
2004-04-04 22:37 Jeff Tucker
2004-04-04 23:13 ` 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).