[oe] [PATCH] remove duplicated code from linux.inc
Marcin Juszkiewicz
marcin at juszkiewicz.com.pl
Fri Jul 31 13:24:41 UTC 2009
Dnia piątek, 31 lipca 2009 o 14:35:19 Graham Gower napisał(a):
> And for those playing at home, the value to assign to UBOOT_ENTRYSYM
> for a given arch can be found by grepping
> linux/arch/${ARCH}/kernel/vmlinux.lds.S for 'ENTRY'.
So according to your post for ARM it will be 'stext':
15:10 hrw at home:linux-2.6.30$ grep ^ENTRY arch/arm/kernel/vmlinux.lds.S
ENTRY(stext)
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.
For NHK15 which runs kernel 2.6.20 I got "stext" same as Entry point
used by U-Boot:
15:12 hrw at home:linux-2.6.20$ arm-angstrom-linux-gnueabi-nm vmlinux|grep
stext
c0008000 T _stext
c02bcba0 t snstext
c0008000 T stext
## Booting image at 00100000 ...
Image Name: Linux-2.6.20
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1714260 Bytes = 1.6 MB
Load Address: 00008000
Entry Point: 00008000
OK
For BUG which runs 2.6.27.2 I got:
15:16 hrw at home:bug-linux-2.6.27.2$ arm-angstrom-linux-gnueabi-nm
vmlinux|grep stext
c0008000 T _stext
c0008000 T stext
When U-Boot says:
## Booting kernel from Legacy Image at 80800000 ...
Image Name: Linux-2.6.27.2
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1722736 Bytes = 1.6 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
I also have avr32 NGW100 but lack kernel tree for it to check values.
Can test will those devices boot with entry point set to 0x00080000
address.
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