[oe] [PATCH] remove duplicated code from linux.inc
Marcin Juszkiewicz
marcin at juszkiewicz.com.pl
Mon Aug 3 06:54:13 UTC 2009
Dnia sobota, 1 sierpnia 2009 o 11:45:12 Graham Gower napisał(a):
> 2009/7/31 Marcin Juszkiewicz <marcin at juszkiewicz.com.pl>:
> > For AT91SAM9263-EK we get:
> >
> > 15:10 hrw at home:linux-2.6.30$ arm-angstrom-linux-gnueabi-nm
> > vmlinux|grep stext
> > c0008000 T _stext
> > c0008000 T stext
> >
> > But when I boot this device I have:
> >
> > ## Booting kernel from Legacy Image at 22200000 ...
> > Image Name: Angstrom/2.6.30/at91sam9263ek
> > Image Type: ARM Linux Kernel Image (uncompressed)
> > Data Size: 2074384 Bytes = 2 MB
> > Load Address: 20008000
> > Entry Point: 20008000
> > Verifying Checksum ... OK
> > Loading Kernel Image ... OK
> >
> > So entry point is different.
>
> Yes, the linux kernel links to a virtual address. If u-boot leaves
> the MMU disabled on your platform then you will need to use a
> physical address. I haven't checked u-boot to see if this is common
> or not.
> Does the resulting uImage with entry point c0008000 boot for you?
## Booting kernel from Legacy Image at 22200000 ...
Image Name: Angstrom/2.6.30/at91sam9263ek
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2074380 Bytes = 2 MB
Load Address: 20008000
Entry Point: c0008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
And HANG...
Then I changed kernel.bbclass so LoadAddress == EntryPoint and that
hangs at loading kernel (which was expected). So it looks like that
patch is not so safe to use...
Regards,
--
JID: hrw at jabber.org
Website: http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
More information about the Openembedded-devel
mailing list