* Compiling an image for OMAP
@ 2007-08-08 13:13 Tiago Maluta
2007-08-08 14:59 ` Felipe Balbi
2007-08-08 18:19 ` Luís Vitório Cargnini
0 siblings, 2 replies; 6+ messages in thread
From: Tiago Maluta @ 2007-08-08 13:13 UTC (permalink / raw)
To: linux-omap-open-source
Hi,
I'm trying to compile a kernel image for OMAP platform.
I'm using the sources from kernel.org and from documentation, I put in a
Makefile:
#--------------------------------------------
ARCH = arm
CROSS_COMPILE = arm-none-linux-gnueabi-
#--------------------------------------------
linux-2.6.22.1 # make
scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
SYMLINK include/asm-arm/arch -> include/asm-arm/arch-omap
make[1]: `include/asm-arm/mach-types.h' está atualizado.
CHK include/linux/utsrelease.h
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/irqflags.h:46,
from include/asm/system.h:78,
from include/asm/bitops.h:23,
from include/linux/bitops.h:9,
from include/linux/thread_info.h:20,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:49,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/irqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/bitops.h:23,
from include/linux/bitops.h:9,
from include/linux/thread_info.h:20,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:49,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/system.h:153:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:159:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:163:35: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:293:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:298:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/bitops.h:9,
from include/linux/thread_info.h:20,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:49,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/bitops.h:233:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/thread_info.h:16,
from include/linux/thread_info.h:21,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:49,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/fpstate.h:28:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/spinlock.h:326,
from include/linux/capability.h:47,
from include/linux/sched.h:46,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/atomic.h:25:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/jiffies.h:4,
from include/linux/sched.h:51,
from arch/arm/kernel/asm-offsets.c:13:
include/linux/calc64.h: In function 'do_div_llr':
include/linux/calc64.h:25: error: '__LINUX_ARM_ARCH__' undeclared (first
use in this function)
include/linux/calc64.h:25: error: (Each undeclared identifier is
reported only once
include/linux/calc64.h:25: error: for each function it appears in.)
In file included from include/linux/prefetch.h:14,
from include/linux/list.h:8,
from include/linux/wait.h:22,
from include/asm/semaphore.h:9,
from include/linux/sched.h:59,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/processor.h:103:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/semaphore.h:13,
from include/linux/sched.h:59,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/locks.h:15:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/page.h:32,
from include/linux/sched.h:60,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/glue.h:119:2: error: #error Unknown data abort handler type
In file included from include/linux/sched.h:60,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/page.h:106:2: error: #error Unknown user operations model
include/asm/page.h:189:31: warning: "__LINUX_ARM_ARCH__" is not defined
make[1]: ** [arch/arm/kernel/asm-offsets.s] Erro 1
-
I saw a similar thread in the arm-gnu mail list, but I didn't found
the solution.
http://www.codesourcery.com/archives/arm-gnu/msg01214.html
Any suggetions will be helpful.
Thanks,
- tiago
--
Tiago Maluta
Research Group on Systems and Computer Engineering (GPESC)
Federal University of Itajuba
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Compiling an image for OMAP
2007-08-08 13:13 Compiling an image for OMAP Tiago Maluta
@ 2007-08-08 14:59 ` Felipe Balbi
2007-08-08 15:36 ` Tiago Maluta
2007-08-08 18:19 ` Luís Vitório Cargnini
1 sibling, 1 reply; 6+ messages in thread
From: Felipe Balbi @ 2007-08-08 14:59 UTC (permalink / raw)
To: Tiago Maluta; +Cc: linux-omap-open-source
Hi,
On 8/8/07, Tiago Maluta <tiago.maluta@gmail.com> wrote:
> Hi,
>
> I'm trying to compile a kernel image for OMAP platform.
>
> I'm using the sources from kernel.org and from documentation, I put in a
> Makefile:
>
> #--------------------------------------------
> ARCH = arm
> CROSS_COMPILE = arm-none-linux-gnueabi-
> #--------------------------------------------
>
>
> linux-2.6.22.1 # make
>
> scripts/kconfig/conf -s arch/arm/Kconfig
> CHK include/linux/version.h
> SYMLINK include/asm-arm/arch -> include/asm-arm/arch-omap
> make[1]: `include/asm-arm/mach-types.h' está atualizado.
> CHK include/linux/utsrelease.h
> CC arch/arm/kernel/asm-offsets.s
> In file included from include/linux/irqflags.h:46,
> from include/asm/system.h:78,
> from include/asm/bitops.h:23,
> from include/linux/bitops.h:9,
> from include/linux/thread_info.h:20,
> from include/linux/preempt.h:9,
> from include/linux/spinlock.h:49,
> from include/linux/capability.h:47,
> from include/linux/sched.h:46,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/irqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not defined
> In file included from include/asm/bitops.h:23,
> from include/linux/bitops.h:9,
> from include/linux/thread_info.h:20,
> from include/linux/preempt.h:9,
> from include/linux/spinlock.h:49,
> from include/linux/capability.h:47,
> from include/linux/sched.h:46,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/system.h:153:5: warning: "__LINUX_ARM_ARCH__" is not defined
> include/asm/system.h:159:5: warning: "__LINUX_ARM_ARCH__" is not defined
> include/asm/system.h:163:35: warning: "__LINUX_ARM_ARCH__" is not defined
> include/asm/system.h:293:5: warning: "__LINUX_ARM_ARCH__" is not defined
> include/asm/system.h:298:5: warning: "__LINUX_ARM_ARCH__" is not defined
> In file included from include/linux/bitops.h:9,
> from include/linux/thread_info.h:20,
> from include/linux/preempt.h:9,
> from include/linux/spinlock.h:49,
> from include/linux/capability.h:47,
> from include/linux/sched.h:46,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/bitops.h:233:5: warning: "__LINUX_ARM_ARCH__" is not defined
> In file included from include/asm/thread_info.h:16,
> from include/linux/thread_info.h:21,
> from include/linux/preempt.h:9,
> from include/linux/spinlock.h:49,
> from include/linux/capability.h:47,
> from include/linux/sched.h:46,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/fpstate.h:28:5: warning: "__LINUX_ARM_ARCH__" is not defined
> In file included from include/linux/spinlock.h:326,
> from include/linux/capability.h:47,
> from include/linux/sched.h:46,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/atomic.h:25:5: warning: "__LINUX_ARM_ARCH__" is not defined
> In file included from include/linux/jiffies.h:4,
> from include/linux/sched.h:51,
> from arch/arm/kernel/asm-offsets.c:13:
> include/linux/calc64.h: In function 'do_div_llr':
> include/linux/calc64.h:25: error: '__LINUX_ARM_ARCH__' undeclared (first
> use in this function)
> include/linux/calc64.h:25: error: (Each undeclared identifier is
> reported only once
> include/linux/calc64.h:25: error: for each function it appears in.)
> In file included from include/linux/prefetch.h:14,
> from include/linux/list.h:8,
> from include/linux/wait.h:22,
> from include/asm/semaphore.h:9,
> from include/linux/sched.h:59,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/processor.h:103:5: warning: "__LINUX_ARM_ARCH__" is not defined
> In file included from include/asm/semaphore.h:13,
> from include/linux/sched.h:59,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/locks.h:15:5: warning: "__LINUX_ARM_ARCH__" is not defined
> In file included from include/asm/page.h:32,
> from include/linux/sched.h:60,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/glue.h:119:2: error: #error Unknown data abort handler type
> In file included from include/linux/sched.h:60,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/page.h:106:2: error: #error Unknown user operations model
> include/asm/page.h:189:31: warning: "__LINUX_ARM_ARCH__" is not defined
> make[1]: ** [arch/arm/kernel/asm-offsets.s] Erro 1
>
> -
> I saw a similar thread in the arm-gnu mail list, but I didn't found
> the solution.
> http://www.codesourcery.com/archives/arm-gnu/msg01214.html
>
> Any suggetions will be helpful.
>
> Thanks,
> - tiago
>
> --
> Tiago Maluta
> Research Group on Systems and Computer Engineering (GPESC)
> Federal University of Itajuba
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>
are you using the kernel image from kernel.org??
try make ARCH=arm CROSS_COMPILE=arm-linux-
this should help.
--
Best Regards,
Felipe Balbi
felipebalbi@users.sourceforge.net
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Compiling an image for OMAP
2007-08-08 14:59 ` Felipe Balbi
@ 2007-08-08 15:36 ` Tiago Maluta
2007-08-08 16:39 ` Felipe Balbi
0 siblings, 1 reply; 6+ messages in thread
From: Tiago Maluta @ 2007-08-08 15:36 UTC (permalink / raw)
To: Felipe Balbi; +Cc: linux-omap-open-source
Felipe,
I'm using the sources from kernel.org, I've tried what you sad:
make ARCH=arm CROSS_COMPILE=arm-linux-
but it don't work... so I tried
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
and go the same error message.
Obs. I'm using gnueabi CodeSourcery toolchains.
Thanks,
- Tiago
arm-none-linux-gnueabi-
On 8/8/07, Felipe Balbi <felipebalbi@users.sourceforge.net> wrote:
>
> Hi,
>
> On 8/8/07, Tiago Maluta <tiago.maluta@gmail.com> wrote:
> > Hi,
> >
> > I'm trying to compile a kernel image for OMAP platform.
> >
> > I'm using the sources from kernel.org and from documentation, I put in a
> > Makefile:
> >
> > #--------------------------------------------
> > ARCH = arm
> > CROSS_COMPILE = arm-none-linux-gnueabi-
> > #--------------------------------------------
> >
> >
> > linux-2.6.22.1 # make
> >
> > scripts/kconfig/conf -s arch/arm/Kconfig
> > CHK include/linux/version.h
> > SYMLINK include/asm-arm/arch -> include/asm-arm/arch-omap
> > make[1]: `include/asm-arm/mach-types.h' está atualizado.
> > CHK include/linux/utsrelease.h
> > CC arch/arm/kernel/asm-offsets.s
> > In file included from include/linux/irqflags.h:46,
> > from include/asm/system.h:78,
> > from include/asm/bitops.h:23,
> > from include/linux/bitops.h:9,
> > from include/linux/thread_info.h:20,
> > from include/linux/preempt.h:9,
> > from include/linux/spinlock.h:49,
> > from include/linux/capability.h:47,
> > from include/linux/sched.h:46,
> > from arch/arm/kernel/asm-offsets.c:13:
> > include/asm/irqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not
> defined
> > In file included from include/asm/bitops.h:23,
> > from include/linux/bitops.h:9,
> > from include/linux/thread_info.h:20,
> > from include/linux/preempt.h:9,
> > from include/linux/spinlock.h:49,
> > from include/linux/capability.h:47,
> > from include/linux/sched.h:46,
> > from arch/arm/kernel/asm-offsets.c:13:
> > include/asm/system.h:153:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > include/asm/system.h:159:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > include/asm/system.h:163:35: warning: "__LINUX_ARM_ARCH__" is not
> defined
> > include/asm/system.h:293:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > include/asm/system.h:298:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > In file included from include/linux/bitops.h:9,
> > from include/linux/thread_info.h:20,
> > from include/linux/preempt.h:9,
> > from include/linux/spinlock.h:49,
> > from include/linux/capability.h:47,
> > from include/linux/sched.h:46,
> > from arch/arm/kernel/asm-offsets.c:13:
> > include/asm/bitops.h:233:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > In file included from include/asm/thread_info.h:16,
> > from include/linux/thread_info.h:21,
> > from include/linux/preempt.h:9,
> > from include/linux/spinlock.h:49,
> > from include/linux/capability.h:47,
> > from include/linux/sched.h:46,
> > from arch/arm/kernel/asm-offsets.c:13:
> > include/asm/fpstate.h:28:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > In file included from include/linux/spinlock.h:326,
> > from include/linux/capability.h:47,
> > from include/linux/sched.h:46,
> > from arch/arm/kernel/asm-offsets.c:13:
> > include/asm/atomic.h:25:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > In file included from include/linux/jiffies.h:4,
> > from include/linux/sched.h:51,
> > from arch/arm/kernel/asm-offsets.c:13:
> > include/linux/calc64.h: In function 'do_div_llr':
> > include/linux/calc64.h:25: error: '__LINUX_ARM_ARCH__' undeclared (first
> > use in this function)
> > include/linux/calc64.h:25: error: (Each undeclared identifier is
> > reported only once
> > include/linux/calc64.h:25: error: for each function it appears in.)
> > In file included from include/linux/prefetch.h:14,
> > from include/linux/list.h:8,
> > from include/linux/wait.h:22,
> > from include/asm/semaphore.h:9,
> > from include/linux/sched.h:59,
> > from arch/arm/kernel/asm-offsets.c:13:
> > include/asm/processor.h:103:5: warning: "__LINUX_ARM_ARCH__" is not
> defined
> > In file included from include/asm/semaphore.h:13,
> > from include/linux/sched.h:59,
> > from arch/arm/kernel/asm-offsets.c:13:
> > include/asm/locks.h:15:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > In file included from include/asm/page.h:32,
> > from include/linux/sched.h:60,
> > from arch/arm/kernel/asm-offsets.c:13:
> > include/asm/glue.h:119:2: error: #error Unknown data abort handler type
> > In file included from include/linux/sched.h:60,
> > from arch/arm/kernel/asm-offsets.c:13:
> > include/asm/page.h:106:2: error: #error Unknown user operations model
> > include/asm/page.h:189:31: warning: "__LINUX_ARM_ARCH__" is not defined
> > make[1]: ** [arch/arm/kernel/asm-offsets.s] Erro 1
> >
> > -
> > I saw a similar thread in the arm-gnu mail list, but I didn't found
> > the solution.
> > http://www.codesourcery.com/archives/arm-gnu/msg01214.html
> >
> > Any suggetions will be helpful.
> >
> > Thanks,
> > - tiago
> >
> > --
> > Tiago Maluta
> > Research Group on Systems and Computer Engineering (GPESC)
> > Federal University of Itajuba
> > _______________________________________________
> > Linux-omap-open-source mailing list
> > Linux-omap-open-source@linux.omap.com
> > http://linux.omap.com/mailman/listinfo/linux-omap-open-source
> >
>
> are you using the kernel image from kernel.org??
>
> try make ARCH=arm CROSS_COMPILE=arm-linux-
>
> this should help.
>
> --
> Best Regards,
>
> Felipe Balbi
> felipebalbi@users.sourceforge.net
>
--
Tiago Maluta
Research Group on Systems and Computer Engineering (GPESC)
Federal University of Itajuba
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Compiling an image for OMAP
2007-08-08 15:36 ` Tiago Maluta
@ 2007-08-08 16:39 ` Felipe Balbi
2007-08-08 17:41 ` Kipisz, Steven
0 siblings, 1 reply; 6+ messages in thread
From: Felipe Balbi @ 2007-08-08 16:39 UTC (permalink / raw)
To: Tiago Maluta; +Cc: linux-omap-open-source
Hi,
On 8/8/07, Tiago Maluta <tiago.maluta@gmail.com> wrote:
> Felipe,
>
> I'm using the sources from kernel.org, I've tried what you sad:
>
> make ARCH=arm CROSS_COMPILE=arm-linux-
>
> but it don't work... so I tried
>
> make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
>
> and go the same error message.
>
> Obs. I'm using gnueabi CodeSourcery toolchains.
Did you "make ARCH=arm menuconfig" your kernel???
You have to run menuconfig for your arch before compiling it
BR
>
> Thanks,
> - Tiago
>
> arm-none-linux-gnueabi-
>
>
> On 8/8/07, Felipe Balbi <felipebalbi@users.sourceforge.net>
> wrote:
> > Hi,
> >
> > On 8/8/07, Tiago Maluta <tiago.maluta@gmail.com> wrote:
> > > Hi,
> > >
> > > I'm trying to compile a kernel image for OMAP platform.
> > >
> > > I'm using the sources from kernel.org and from documentation, I put in a
> > > Makefile:
> > >
> > > #--------------------------------------------
> > > ARCH = arm
> > > CROSS_COMPILE = arm-none-linux-gnueabi-
> > > #--------------------------------------------
> > >
> > >
> > > linux-2.6.22.1 # make
> > >
> > > scripts/kconfig/conf -s arch/arm/Kconfig
> > > CHK include/linux/version.h
> > > SYMLINK include/asm-arm/arch -> include/asm-arm/arch-omap
> > > make[1]: `include/asm-arm/mach-types.h' está atualizado.
> > > CHK include/linux/utsrelease.h
> > > CC arch/arm/kernel/asm-offsets.s
> > > In file included from include/linux/irqflags.h:46,
> > > from include/asm/system.h:78,
> > > from include/asm/bitops.h:23,
> > > from include/linux/bitops.h:9,
> > > from include/linux/thread_info.h:20,
> > > from include/linux/preempt.h:9,
> > > from include/linux/spinlock.h:49,
> > > from include/linux/capability.h:47,
> > > from include/linux/sched.h:46,
> > > from arch/arm/kernel/asm-offsets.c:13:
> > > include/asm/irqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not
> defined
> > > In file included from include/asm/bitops.h:23,
> > > from include/linux/bitops.h:9,
> > > from include/linux/thread_info.h:20,
> > > from include/linux/preempt.h:9,
> > > from include/linux/spinlock.h:49,
> > > from include/linux/capability.h:47,
> > > from include/linux/sched.h:46,
> > > from arch/arm/kernel/asm-offsets.c:13:
> > > include/asm/system.h:153:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > > include/asm/system.h:159:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > > include/asm/system.h:163:35: warning: "__LINUX_ARM_ARCH__" is not
> defined
> > > include/asm/system.h:293:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > > include/asm/system.h:298:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > > In file included from include/linux/bitops.h:9,
> > > from include/linux/thread_info.h:20,
> > > from include/linux/preempt.h:9,
> > > from include/linux/spinlock.h:49,
> > > from include/linux/capability.h:47,
> > > from include/linux/sched.h:46,
> > > from arch/arm/kernel/asm-offsets.c:13:
> > > include/asm/bitops.h:233:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > > In file included from include/asm/thread_info.h:16,
> > > from include/linux/thread_info.h:21,
> > > from include/linux/preempt.h:9,
> > > from include/linux/spinlock.h:49,
> > > from include/linux/capability.h:47,
> > > from include/linux/sched.h:46,
> > > from arch/arm/kernel/asm-offsets.c:13:
> > > include/asm/fpstate.h:28:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > > In file included from include/linux/spinlock.h:326,
> > > from include/linux/capability.h:47,
> > > from include/linux/sched.h:46,
> > > from arch/arm/kernel/asm- offsets.c:13:
> > > include/asm/atomic.h:25:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > > In file included from include/linux/jiffies.h:4,
> > > from include/linux/sched.h:51,
> > > from arch/arm/kernel/asm- offsets.c:13:
> > > include/linux/calc64.h: In function 'do_div_llr':
> > > include/linux/calc64.h:25: error: '__LINUX_ARM_ARCH__' undeclared (first
> > > use in this function)
> > > include/linux/calc64.h:25: error: (Each undeclared identifier is
> > > reported only once
> > > include/linux/calc64.h:25: error: for each function it appears in.)
> > > In file included from include/linux/prefetch.h:14,
> > > from include/linux/list.h:8,
> > > from include/linux/wait.h:22,
> > > from include/asm/semaphore.h:9,
> > > from include/linux/sched.h:59,
> > > from arch/arm/kernel/asm-offsets.c:13:
> > > include/asm/processor.h:103:5: warning: "__LINUX_ARM_ARCH__" is not
> defined
> > > In file included from include/asm/semaphore.h:13,
> > > from include/linux/sched.h:59,
> > > from arch/arm/kernel/asm-offsets.c:13:
> > > include/asm/locks.h:15:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > > In file included from include/asm/page.h:32,
> > > from include/linux/sched.h:60,
> > > from arch/arm/kernel/asm-offsets.c:13:
> > > include/asm/glue.h:119:2: error: #error Unknown data abort handler type
> > > In file included from include/linux/sched.h:60,
> > > from arch/arm/kernel/asm-offsets.c:13:
> > > include/asm/page.h:106:2: error: #error Unknown user operations model
> > > include/asm/page.h:189:31: warning: "__LINUX_ARM_ARCH__" is not defined
> > > make[1]: ** [arch/arm/kernel/asm-offsets.s] Erro 1
> > >
> > > -
> > > I saw a similar thread in the arm-gnu mail list, but I didn't found
> > > the solution.
> > >
> http://www.codesourcery.com/archives/arm-gnu/msg01214.html
> > >
> > > Any suggetions will be helpful.
> > >
> > > Thanks,
> > > - tiago
> > >
> > > --
> > > Tiago Maluta
> > > Research Group on Systems and Computer Engineering (GPESC)
> > > Federal University of Itajuba
> > > _______________________________________________
> > > Linux-omap-open-source mailing list
> > > Linux-omap-open-source@linux.omap.com
> > >
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
> > >
> >
> > are you using the kernel image from kernel.org??
> >
> > try make ARCH=arm CROSS_COMPILE=arm-linux-
> >
> > this should help.
> >
> > --
> > Best Regards,
> >
> > Felipe Balbi
> > felipebalbi@users.sourceforge.net
> >
>
>
> --
>
> Tiago Maluta
> Research Group on Systems and Computer Engineering (GPESC)
> Federal University of Itajuba
>
--
Best Regards,
Felipe Balbi
felipebalbi@users.sourceforge.net
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Compiling an image for OMAP
2007-08-08 16:39 ` Felipe Balbi
@ 2007-08-08 17:41 ` Kipisz, Steven
0 siblings, 0 replies; 6+ messages in thread
From: Kipisz, Steven @ 2007-08-08 17:41 UTC (permalink / raw)
To: Felipe Balbi, Tiago Maluta; +Cc: linux-omap-open-source
Which platform are you trying to build a kernel for? Did you do the make for the defconfig? In the arch/arm/configs directory you'll find default configurations for various platforms. If you are building for the 5912 OSK, you would do
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- omap_osk_5912_defconfig
and then
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage
Substitute the correct defconfig for the platform you want to build for.
Steve K.
-----Original Message-----
From: linux-omap-open-source-bounces@linux.omap.com [mailto:linux-omap-open-source-bounces@linux.omap.com] On Behalf Of Felipe Balbi
Sent: Wednesday, August 08, 2007 11:40 AM
To: Tiago Maluta
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: Compiling an image for OMAP
Hi,
On 8/8/07, Tiago Maluta <tiago.maluta@gmail.com> wrote:
> Felipe,
>
> I'm using the sources from kernel.org, I've tried what you sad:
>
> make ARCH=arm CROSS_COMPILE=arm-linux-
>
> but it don't work... so I tried
>
> make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
>
> and go the same error message.
>
> Obs. I'm using gnueabi CodeSourcery toolchains.
Did you "make ARCH=arm menuconfig" your kernel???
You have to run menuconfig for your arch before compiling it
BR
>
> Thanks,
> - Tiago
>
> arm-none-linux-gnueabi-
>
>
> On 8/8/07, Felipe Balbi <felipebalbi@users.sourceforge.net>
> wrote:
> > Hi,
> >
> > On 8/8/07, Tiago Maluta <tiago.maluta@gmail.com> wrote:
> > > Hi,
> > >
> > > I'm trying to compile a kernel image for OMAP platform.
> > >
> > > I'm using the sources from kernel.org and from documentation, I put in a
> > > Makefile:
> > >
> > > #--------------------------------------------
> > > ARCH = arm
> > > CROSS_COMPILE = arm-none-linux-gnueabi-
> > > #--------------------------------------------
> > >
> > >
> > > linux-2.6.22.1 # make
> > >
> > > scripts/kconfig/conf -s arch/arm/Kconfig
> > > CHK include/linux/version.h
> > > SYMLINK include/asm-arm/arch -> include/asm-arm/arch-omap
> > > make[1]: `include/asm-arm/mach-types.h' está atualizado.
> > > CHK include/linux/utsrelease.h
> > > CC arch/arm/kernel/asm-offsets.s
> > > In file included from include/linux/irqflags.h:46,
> > > from include/asm/system.h:78,
> > > from include/asm/bitops.h:23,
> > > from include/linux/bitops.h:9,
> > > from include/linux/thread_info.h:20,
> > > from include/linux/preempt.h:9,
> > > from include/linux/spinlock.h:49,
> > > from include/linux/capability.h:47,
> > > from include/linux/sched.h:46,
> > > from arch/arm/kernel/asm-offsets.c:13:
> > > include/asm/irqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not
> defined
> > > In file included from include/asm/bitops.h:23,
> > > from include/linux/bitops.h:9,
> > > from include/linux/thread_info.h:20,
> > > from include/linux/preempt.h:9,
> > > from include/linux/spinlock.h:49,
> > > from include/linux/capability.h:47,
> > > from include/linux/sched.h:46,
> > > from arch/arm/kernel/asm-offsets.c:13:
> > > include/asm/system.h:153:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > > include/asm/system.h:159:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > > include/asm/system.h:163:35: warning: "__LINUX_ARM_ARCH__" is not
> defined
> > > include/asm/system.h:293:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > > include/asm/system.h:298:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > > In file included from include/linux/bitops.h:9,
> > > from include/linux/thread_info.h:20,
> > > from include/linux/preempt.h:9,
> > > from include/linux/spinlock.h:49,
> > > from include/linux/capability.h:47,
> > > from include/linux/sched.h:46,
> > > from arch/arm/kernel/asm-offsets.c:13:
> > > include/asm/bitops.h:233:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > > In file included from include/asm/thread_info.h:16,
> > > from include/linux/thread_info.h:21,
> > > from include/linux/preempt.h:9,
> > > from include/linux/spinlock.h:49,
> > > from include/linux/capability.h:47,
> > > from include/linux/sched.h:46,
> > > from arch/arm/kernel/asm-offsets.c:13:
> > > include/asm/fpstate.h:28:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > > In file included from include/linux/spinlock.h:326,
> > > from include/linux/capability.h:47,
> > > from include/linux/sched.h:46,
> > > from arch/arm/kernel/asm- offsets.c:13:
> > > include/asm/atomic.h:25:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > > In file included from include/linux/jiffies.h:4,
> > > from include/linux/sched.h:51,
> > > from arch/arm/kernel/asm- offsets.c:13:
> > > include/linux/calc64.h: In function 'do_div_llr':
> > > include/linux/calc64.h:25: error: '__LINUX_ARM_ARCH__' undeclared (first
> > > use in this function)
> > > include/linux/calc64.h:25: error: (Each undeclared identifier is
> > > reported only once
> > > include/linux/calc64.h:25: error: for each function it appears in.)
> > > In file included from include/linux/prefetch.h:14,
> > > from include/linux/list.h:8,
> > > from include/linux/wait.h:22,
> > > from include/asm/semaphore.h:9,
> > > from include/linux/sched.h:59,
> > > from arch/arm/kernel/asm-offsets.c:13:
> > > include/asm/processor.h:103:5: warning: "__LINUX_ARM_ARCH__" is not
> defined
> > > In file included from include/asm/semaphore.h:13,
> > > from include/linux/sched.h:59,
> > > from arch/arm/kernel/asm-offsets.c:13:
> > > include/asm/locks.h:15:5: warning: "__LINUX_ARM_ARCH__" is not defined
> > > In file included from include/asm/page.h:32,
> > > from include/linux/sched.h:60,
> > > from arch/arm/kernel/asm-offsets.c:13:
> > > include/asm/glue.h:119:2: error: #error Unknown data abort handler type
> > > In file included from include/linux/sched.h:60,
> > > from arch/arm/kernel/asm-offsets.c:13:
> > > include/asm/page.h:106:2: error: #error Unknown user operations model
> > > include/asm/page.h:189:31: warning: "__LINUX_ARM_ARCH__" is not defined
> > > make[1]: ** [arch/arm/kernel/asm-offsets.s] Erro 1
> > >
> > > -
> > > I saw a similar thread in the arm-gnu mail list, but I didn't found
> > > the solution.
> > >
> http://www.codesourcery.com/archives/arm-gnu/msg01214.html
> > >
> > > Any suggetions will be helpful.
> > >
> > > Thanks,
> > > - tiago
> > >
> > > --
> > > Tiago Maluta
> > > Research Group on Systems and Computer Engineering (GPESC)
> > > Federal University of Itajuba
> > > _______________________________________________
> > > Linux-omap-open-source mailing list
> > > Linux-omap-open-source@linux.omap.com
> > >
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
> > >
> >
> > are you using the kernel image from kernel.org??
> >
> > try make ARCH=arm CROSS_COMPILE=arm-linux-
> >
> > this should help.
> >
> > --
> > Best Regards,
> >
> > Felipe Balbi
> > felipebalbi@users.sourceforge.net
> >
>
>
> --
>
> Tiago Maluta
> Research Group on Systems and Computer Engineering (GPESC)
> Federal University of Itajuba
>
--
Best Regards,
Felipe Balbi
felipebalbi@users.sourceforge.net
_______________________________________________
Linux-omap-open-source mailing list
Linux-omap-open-source@linux.omap.com
http://linux.omap.com/mailman/listinfo/linux-omap-open-source
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Compiling an image for OMAP
2007-08-08 13:13 Compiling an image for OMAP Tiago Maluta
2007-08-08 14:59 ` Felipe Balbi
@ 2007-08-08 18:19 ` Luís Vitório Cargnini
1 sibling, 0 replies; 6+ messages in thread
From: Luís Vitório Cargnini @ 2007-08-08 18:19 UTC (permalink / raw)
To: Tiago Maluta, omap
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dear fellow,
Which is your toolchain ?
try make help and look for which config best fit your initial needs
Tiago Maluta wrote:
> Hi,
>
> I'm trying to compile a kernel image for OMAP platform.
>
> I'm using the sources from kernel.org and from documentation, I put in a
> Makefile:
>
> #--------------------------------------------
> ARCH = arm
> CROSS_COMPILE = arm-none-linux-gnueabi-
> #--------------------------------------------
>
>
> linux-2.6.22.1 # make
>
> scripts/kconfig/conf -s arch/arm/Kconfig
> CHK include/linux/version.h
> SYMLINK include/asm-arm/arch -> include/asm-arm/arch-omap
> make[1]: `include/asm-arm/mach-types.h' está atualizado.
> CHK include/linux/utsrelease.h
> CC arch/arm/kernel/asm-offsets.s
> In file included from include/linux/irqflags.h:46,
> from include/asm/system.h:78,
> from include/asm/bitops.h:23,
> from include/linux/bitops.h:9,
> from include/linux/thread_info.h:20,
> from include/linux/preempt.h:9,
> from include/linux/spinlock.h:49,
> from include/linux/capability.h:47,
> from include/linux/sched.h:46,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/irqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not defined
> In file included from include/asm/bitops.h:23,
> from include/linux/bitops.h:9,
> from include/linux/thread_info.h:20,
> from include/linux/preempt.h:9,
> from include/linux/spinlock.h:49,
> from include/linux/capability.h:47,
> from include/linux/sched.h:46,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/system.h:153:5: warning: "__LINUX_ARM_ARCH__" is not defined
> include/asm/system.h:159:5: warning: "__LINUX_ARM_ARCH__" is not defined
> include/asm/system.h:163:35: warning: "__LINUX_ARM_ARCH__" is not defined
> include/asm/system.h:293:5: warning: "__LINUX_ARM_ARCH__" is not defined
> include/asm/system.h:298:5: warning: "__LINUX_ARM_ARCH__" is not defined
> In file included from include/linux/bitops.h:9,
> from include/linux/thread_info.h:20,
> from include/linux/preempt.h:9,
> from include/linux/spinlock.h:49,
> from include/linux/capability.h:47,
> from include/linux/sched.h:46,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/bitops.h:233:5: warning: "__LINUX_ARM_ARCH__" is not defined
> In file included from include/asm/thread_info.h:16,
> from include/linux/thread_info.h:21,
> from include/linux/preempt.h:9,
> from include/linux/spinlock.h:49,
> from include/linux/capability.h:47,
> from include/linux/sched.h:46,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/fpstate.h:28:5: warning: "__LINUX_ARM_ARCH__" is not defined
> In file included from include/linux/spinlock.h:326,
> from include/linux/capability.h:47,
> from include/linux/sched.h:46,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/atomic.h:25:5: warning: "__LINUX_ARM_ARCH__" is not defined
> In file included from include/linux/jiffies.h:4,
> from include/linux/sched.h:51,
> from arch/arm/kernel/asm-offsets.c:13:
> include/linux/calc64.h: In function 'do_div_llr':
> include/linux/calc64.h:25: error: '__LINUX_ARM_ARCH__' undeclared (first
> use in this function)
> include/linux/calc64.h:25: error: (Each undeclared identifier is
> reported only once
> include/linux/calc64.h:25: error: for each function it appears in.)
> In file included from include/linux/prefetch.h:14,
> from include/linux/list.h:8,
> from include/linux/wait.h:22,
> from include/asm/semaphore.h:9,
> from include/linux/sched.h:59,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/processor.h:103:5: warning: "__LINUX_ARM_ARCH__" is not defined
> In file included from include/asm/semaphore.h:13,
> from include/linux/sched.h:59,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/locks.h:15:5: warning: "__LINUX_ARM_ARCH__" is not defined
> In file included from include/asm/page.h:32,
> from include/linux/sched.h:60,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/glue.h:119:2: error: #error Unknown data abort handler type
> In file included from include/linux/sched.h:60,
> from arch/arm/kernel/asm-offsets.c:13:
> include/asm/page.h:106:2: error: #error Unknown user operations model
> include/asm/page.h:189:31: warning: "__LINUX_ARM_ARCH__" is not defined
> make[1]: ** [arch/arm/kernel/asm-offsets.s] Erro 1
>
> -
> I saw a similar thread in the arm-gnu mail list, but I didn't found
> the solution.
> http://www.codesourcery.com/archives/arm-gnu/msg01214.html
>
> Any suggetions will be helpful.
>
> Thanks,
> - tiago
>
- --
-
------------------------------------------------------------------------------
Thanks && Regards
Msc. Bsc. Luís Vitório Cargnini
IEEE Member
Electrical Engineer Faculty @ PUCRS
Ipiranga Avenue, 6681 - Building 30
P.O. Box: 90619-900 - Porto Alegre/RS
Phone: +55 51 3320 3500 extension: 7696
-
---------------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGugk1KNrSZaSIZoURAjYpAJ0ai5C7T2JXhRxMKHzWoO6Y0i967ACZAW/I
1hXFScE+JRHhrSPQ47y8wTA=
=RJDm
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-08-08 18:19 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-08 13:13 Compiling an image for OMAP Tiago Maluta
2007-08-08 14:59 ` Felipe Balbi
2007-08-08 15:36 ` Tiago Maluta
2007-08-08 16:39 ` Felipe Balbi
2007-08-08 17:41 ` Kipisz, Steven
2007-08-08 18:19 ` Luís Vitório Cargnini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox