Natty ti-omap4
Tim Gardner
tim.gardner at canonical.com
Fri Dec 10 15:50:38 UTC 2010
On 12/10/2010 05:37 AM, Bryan Wu wrote:
> 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,
Doh! stupid copy/paste error. I've uploaded
linux-ti-omap4_2.6.35-1100.2, so hopefully thats the end of it.
Nicholas, Bryan - thanks for your help.
--
Tim Gardner tim.gardner at canonical.com
More information about the kernel-team
mailing list