[oe] Kernel load address issue

Bernard Mentink Bernard_Mentink at trimble.com
Wed Jul 27 02:48:28 UTC 2011


 
I have got a bit further now, I get:

-----------------------------------------------------
uboot> bootm 80400000
## Booting kernel from Legacy Image at 80400000 ...
   Image Name:   Angstrom/2.6.36/mx31ads
   Created:      2011-07-26  22:30:37 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1765848 Bytes = 1.7 MiB
   Load Address: 80400000
   Entry Point:  80400000
   Verifying Checksum ... OK
   XIP Kernel Image ... OK
OK

Starting kernel ...
----------------------------------------------------

And there it hangs ... I don't know who printed out the "Starting
kernel" was it uboot or the kernel?
If uboot, how do I pass kernel arguments (i.e the console serial params)
with this method of booting?

(I am using: " dhcp 0x80400000 IP:file" followed by the above bootm .. )

Thanks,
Bernie


-----Original Message-----
From: openembedded-devel-bounces at lists.openembedded.org
[mailto:openembedded-devel-bounces at lists.openembedded.org] On Behalf Of
Bernard Mentink
Sent: Wednesday, 27 July 2011 10:32 a.m.
To: openembedded-devel at lists.openembedded.org
Subject: Re: [oe] Kernel load address issue

Hi Martin,

Thanks for that (and to Gary for the same answer) ..

By the way, where do I find this sort of information out? I especially
would like to know how to configure the kernel, modify source code etc,
Within the openembedded system ..

Are there some good "howto's" out there?

Thanks,
Bernie 


------------------------------------------------------------------------
------------------
I want to die peacefully in my sleep, like my grandfather, not screaming
and yelling like the passengers in his car.

-----Original Message-----
From: openembedded-devel-bounces at lists.openembedded.org
[mailto:openembedded-devel-bounces at lists.openembedded.org] On Behalf Of
Martin Jansa
Sent: Wednesday, 27 July 2011 10:27 a.m.
To: openembedded-devel at lists.openembedded.org
Subject: Re: [oe] Kernel load address issue

On Wed, Jul 27, 2011 at 10:14:50AM +1200, Bernard Mentink wrote:
> Many thanks for the reply,
> 
> By the way where is the machine.conf file, I can't seem to find it 
> anywhere ..

in your case probably
conf/machine/mx31ads.conf or something like that

I meant ${MACHINE}.conf and machine.conf was just example, sorry I
wasn't clear.

Cheers,

> 
> Cheers,
> Bernie
> 
> 
> ----------------------------------------------------------------------
> --
> ------------------
> I want to die peacefully in my sleep, like my grandfather, not 
> screaming and yelling like the passengers in his car.
> 
> -----Original Message-----
> From: openembedded-devel-bounces at lists.openembedded.org
> [mailto:openembedded-devel-bounces at lists.openembedded.org] On Behalf 
> Of Martin Jansa
> Sent: Wednesday, 27 July 2011 10:03 a.m.
> To: openembedded-devel at lists.openembedded.org
> Subject: Re: [oe] Kernel load address issue
> 
> On Wed, Jul 27, 2011 at 09:51:28AM +1200, Bernard Mentink wrote:
> > 
> > Hi Guys,
> > 
> > I am new to OE, but have managed to get u-boot working on my target,

> > got TFTP working so I can transfer a kernel to RAM.
> > I have modified my conf/local.conf file so that when a kernel is 
> > built
> 
> > a uImage binary is created that u-boot can use. (added line 
> > KERNEL_IMAGETYPE = "uImage")
> > 
> > However When I try to boot the image in the bootloader, I get this:
> > 
> > uboot> bootm 0x80300000
> > ## Booting kernel from Legacy Image at 80300000 ...
> >    Image Name:   Angstrom/2.6.36/mx31ads
> >    Created:      2011-07-26  19:55:31 UTC
> >    Image Type:   ARM Linux Kernel Image (uncompressed)
> >    Data Size:    1765856 Bytes = 1.7 MiB
> >    Load Address: 20008000
> >    Entry Point:  20008000
> 
> machine.conf can define
> UBOOT_ENTRYPOINT = "0x80008000"
> UBOOT_LOADADDRESS = "0x80008000"
> 
> both used in kernel.bbclass
> /OE/dev/classes/kernel.bbclass:UBOOT_ENTRYPOINT ?= "20008000"
> /OE/dev/classes/kernel.bbclass:UBOOT_LOADADDRESS ?= 
> "${UBOOT_ENTRYPOINT}"
> /OE/dev/classes/kernel.bbclass:            uboot-mkimage -A
> ${UBOOT_ARCH} -O linux -T kernel -C none -a ${UBOOT_LOADADDRESS} -e 
> $ENTRYPOINT -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin 
> arch/${ARCH}/boot/uImage
> 
> Cheers,
> 
> >    Verifying Checksum ... OK
> >    Loading Kernel Image ...   <-- gets stuck here! ...
> > 
> > The Load Address is wrong, my ram starts at 0x80000000 ... can 
> > someone
> 
> > tell me how to change this? I presume mkimage is responsible for 
> > this as the kernel is configured as relocatable ..
> > 
> > Many Thanks,
> > Bernie
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel at lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-dev
> > el
> 
> -- 
> Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com

_______________________________________________
Openembedded-devel mailing list
Openembedded-devel at lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel




More information about the Openembedded-devel mailing list