Natty ti-omap4
Bryan Wu
bryan.wu at canonical.com
Fri Dec 10 12:37:22 UTC 2010
On Thu, Dec 9, 2010 at 11:49 PM, Tim Gardner <tim.gardner at canonical.com> wrote:
> On 12/09/2010 08:01 AM, Dechesne, Nicolas wrote:
>>
>> bryan,
>>
>> On Thu, Dec 9, 2010 at 7:48 AM, Bryan Wu<bryan.wu at canonical.com> wrote:
>>
>>> For this issue:
>>> ---
>>> AS arch/arm/mach-omap2/omap-headsmp.o
>>> /build/buildd/linux-ti-omap4-2.6.35/arch/arm/mach-omap2/omap-headsmp.S:
>>> Assembler messages:
>>>
>>> /build/buildd/linux-ti-omap4-2.6.35/arch/arm/mach-omap2/omap-headsmp.S:36:
>>> Error: selected processor does not support ARM mode `smc #0'
>>> make[3]: *** [arch/arm/mach-omap2/omap-headsmp.o] Error 1
>>> make[2]: *** [arch/arm/mach-omap2] Error 2
>>> make[1]: *** [sub-make] Error 2
>>> make[1]: Leaving directory `/build/buildd/linux-ti-omap4-2.6.35'
>>> make: ***
>>> [/build/buildd/linux-ti-omap4-2.6.35/debian/stamps/stamp-build-omap4]
>>> Error 2
>>> dpkg-buildpackage: error: debian/rules build gave error exit status 2
>>> ---
>>> I think it's a issue of compiler, which is gcc 4.5.1 in Natty. When we
>>> use gcc 4.5.1 to build 2.6.35 ARM kernel, it pops up. Gcc 4.5.1 can
>>> build the 2.6.37 based Linaro kernel without this error.
>>>
>>
>> could we be missing this:
>>
>> http://marc.info/?l=linux-omap&m=129118316614865&w=2
>>
>> nicolas
>>
>
> No joy. I applied (by hand) the attached patch. I still get these errors:
>
> /home/rtg/natty/kern/ubuntu-natty/arch/arm/mach-omap2/omap44xx-smc.S:
> Assembler messages:
> /home/rtg/natty/kern/ubuntu-natty/arch/arm/mach-omap2/omap44xx-smc.S:30:
> Error: selected processor does not support ARM mode `smc #0'
>
Oh, I think the patch you post is not completed, should remove one
more line as below:
--
+plus_sec := $(call as-instr,.arch_extension sec,+sec)
+AFLAGS_omap-headsmp.o :=-Wa,-march=armv7-a$(plus_sec)
+AFLAGS_omap44xx-smc.o :=-Wa,-march=armv7-a$(plus_sec)
+
- AFLAGS_omap44xx-smc.o :=-Wa,-march=armv7-a
--
With this right patch, I can build the kernel natively on my OMAP4
Panda board with Linaro GCC 4.5.1
Thanks,
--
Bryan Wu <bryan.wu at canonical.com>
Kernel Developer +86.138-1617-6545 Mobile
Ubuntu Kernel Team
Canonical Ltd. www.canonical.com
Ubuntu - Linux for human beings | www.ubuntu.com
More information about the kernel-team
mailing list