* [U-Boot] booting the kernel
@ 2008-10-21 17:35 Mathieu Dube
2008-10-21 17:47 ` Jerry Van Baren
2008-10-22 1:10 ` Roman Mashak
0 siblings, 2 replies; 3+ messages in thread
From: Mathieu Dube @ 2008-10-21 17:35 UTC (permalink / raw)
To: u-boot
Hi,
Im trying to boot the linux kernel with uboot and it just hangs so I
tried the instructions in the Linux PostMortem FAQ entry.
I'd like to know if I could be doing something obviously wrong here:
the kernel I use is for freescale imx31_litekit. I've booted it using the
logicpd loader so I know it works.
I use the arch/arm/boot/Image with mkimage like this:
mkimage -A arm -O linux -T kernel -C none -a 86000000 -e 86000000 -d Image
image.bin
are the load address and entry point ok? if not how can I determine which
value they should have?
I tftp it to 0x81000000 like this:
tftp 0x81000000 /tftpboot/image.bin
that works fine
then I bootm
it loads the kernel and ends up printing:
Starting kernel ...
and hangs there, if I use my jtag I can see that the core is running ie: it
doesnt crash. Btw I've also tried with the jtag attached so thats not the
problem.
__log_buf in my System.map is at c035c168
and CONFIG_KERNEL_START is c0000000
so am I right to do
md 8635c168 ?
there doesnt seem to be anything interesting around this address...
what else could I try to figure out why the kernel isnt booting?
thanks a lot.
-M
--
Mathieu Dube
Software Engineer
MobileFusion, Inc
2715 Sarah St
Pittsburgh PA, 15203
Main: 412.481.1111 Ext:140
Fax: 412.481.0220
Email: mathieu at mobilefusioninc.com
URL: www.mobilefusioninc.com
****************************************************************************
This communication (including any attachments) is for the use of the
intended recipient(s) only and may contain information that is confidential,
privileged or otherwise legally protected. Any unauthorized use or
dissemination of this communication is prohibited. If you have received this
communication in error, please immediately notify the sender by return
e-mail message and delete all copies of the original communication. Thank
you for your cooperation.
^ permalink raw reply [flat|nested] 3+ messages in thread* [U-Boot] booting the kernel
2008-10-21 17:35 [U-Boot] booting the kernel Mathieu Dube
@ 2008-10-21 17:47 ` Jerry Van Baren
2008-10-22 1:10 ` Roman Mashak
1 sibling, 0 replies; 3+ messages in thread
From: Jerry Van Baren @ 2008-10-21 17:47 UTC (permalink / raw)
To: u-boot
Mathieu Dube wrote:
> Hi,
> Im trying to boot the linux kernel with uboot and it just hangs so I
> tried the instructions in the Linux PostMortem FAQ entry.
>
> I'd like to know if I could be doing something obviously wrong here:
>
> the kernel I use is for freescale imx31_litekit. I've booted it using the
> logicpd loader so I know it works.
>
> I use the arch/arm/boot/Image with mkimage like this:
>
> mkimage -A arm -O linux -T kernel -C none -a 86000000 -e 86000000 -d Image
> image.bin
>
> are the load address and entry point ok? if not how can I determine which
> value they should have?
Sorry, I don't know.
> Starting kernel ...
>
> and hangs there, if I use my jtag I can see that the core is running ie: it
> doesnt crash. Btw I've also tried with the jtag attached so thats not the
> problem.
Do you have a console configured and enabled?
> __log_buf in my System.map is at c035c168
> and CONFIG_KERNEL_START is c0000000
>
> so am I right to do
>
> md 8635c168 ?
>
> there doesnt seem to be anything interesting around this address...
Try 0035c168 - I'm not a arm-man, but the linux kernel traditionally
relocates itself at location 00000000 and remaps itself to the virtual
address c0000000. When you are looking with the debugger, you need to
drop the "c" to get the physical address.
> what else could I try to figure out why the kernel isnt booting?
>
> thanks a lot.
> -M
HTH,
gvb
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] booting the kernel
2008-10-21 17:35 [U-Boot] booting the kernel Mathieu Dube
2008-10-21 17:47 ` Jerry Van Baren
@ 2008-10-22 1:10 ` Roman Mashak
1 sibling, 0 replies; 3+ messages in thread
From: Roman Mashak @ 2008-10-22 1:10 UTC (permalink / raw)
To: u-boot
Hello Mathieu
2008/10/21 Mathieu Dube <mathieu@mobilefusioninc.com>:
> the kernel I use is for freescale imx31_litekit. I've booted it using the
> logicpd loader so I know it works.
>
> I use the arch/arm/boot/Image with mkimage like this:
>
> mkimage -A arm -O linux -T kernel -C none -a 86000000 -e 86000000 -d Image
^^^^ ^^^^
Double check these addresses. The convention is to load the Linux
kernel at the base of physical RAM plus an offset of 0x8000 (32K),
which allows enough room for the parameters area (typically placed at
offset 0x100), page exception vectors and page tables.
--
Roman Mashak
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-22 1:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-21 17:35 [U-Boot] booting the kernel Mathieu Dube
2008-10-21 17:47 ` Jerry Van Baren
2008-10-22 1:10 ` Roman Mashak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox