Mailing List Archive

An error during compiling linux(vex-express-dt)
Hi all,
I followed the instruction in wiki
http://wiki.xen.org/wiki/Xen_ARMv7_with_Virtualization_Extensions as like
this:
1. git the specific vexpress-dt branch of
git://xenbits.xen.org/people/dvrabel/linux.git<http://xenbits.xen.org/gitweb/?p=people/dvrabel/linux.git;a=summary>
2. download configuration file and copy it into source code folder.
3. compile.

/home/josh/project/xen/linux/arch/arm/include/asm/processor.h:86:5:
warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
/home/josh/project/xen/linux/arch/arm/include/asm/processor.h:106:5:
warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
In file included from include/linux/atomic.h:4:0,
from include/linux/spinlock.h:387,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:56,
from include/linux/sched.h:57,
from arch/arm/kernel/asm-offsets.c:13:
/home/josh/project/xen/linux/arch/arm/include/asm/atomic.h:30:5: warning:
"__LINUX_ARM_ARCH__" is not defined [-Wundef]
In file included from include/linux/time.h:9:0,
from include/linux/timex.h:56,
from include/linux/sched.h:57,
from arch/arm/kernel/asm-offsets.c:13:
include/linux/math64.h: In function 'div_u64_rem':
include/linux/math64.h:51:15: error: '__LINUX_ARM_ARCH__' undeclared (first
use in this function)
include/linux/math64.h:51:15: note: each undeclared identifier is reported
only once for each function it appears in
In file included from include/linux/mm_types.h:15:0,
from include/linux/sched.h:64,
from arch/arm/kernel/asm-offsets.c:13:
/home/josh/project/xen/linux/arch/arm/include/asm/page.h: At top level:
/home/josh/project/xen/linux/arch/arm/include/asm/page.h:116:2: error:
#error Unknown user operations model
In file included from include/linux/mm.h:43:0,
from arch/arm/kernel/asm-offsets.c:14:
/home/josh/project/xen/linux/arch/arm/include/asm/pgtable.h:235:5: warning:
"__LINUX_ARM_ARCH__" is not defined [-Wundef]
In file included from
/home/josh/project/xen/linux/arch/arm/include/asm/cacheflush.h:15:0,
from arch/arm/kernel/asm-offsets.c:16:
/home/josh/project/xen/linux/arch/arm/include/asm/glue-cache.h:129:2:
error: #error Unknown cache maintenance model
In file included from
/home/josh/project/xen/linux/arch/arm/include/asm/cacheflush.h:17:0,
from arch/arm/kernel/asm-offsets.c:16:
/home/josh/project/xen/linux/arch/arm/include/asm/cachetype.h:28:5:
warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
/home/josh/project/xen/linux/arch/arm/include/asm/cachetype.h:33:7:
warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
In file included from arch/arm/kernel/asm-offsets.c:16:0:
/home/josh/project/xen/linux/arch/arm/include/asm/cacheflush.h:194:7:
warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
/home/josh/project/xen/linux/arch/arm/include/asm/cacheflush.h:196:7:
warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef]
In file included from arch/arm/kernel/asm-offsets.c:17:0:
/home/josh/project/xen/linux/arch/arm/include/asm/glue-df.h:107:2: error:
#error Unknown data abort handler type
In file included from arch/arm/kernel/asm-offsets.c:18:0:
/home/josh/project/xen/linux/arch/arm/include/asm/glue-pf.h:54:2: error:
#error Unknown prefetch abort handler type
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
Re: An error during compiling linux(vex-express-dt) [ In reply to ]
On Mon, 2012-03-12 at 13:41 +0000, Josh Zhao wrote:
> Hi all,
> I followed the instruction in wiki
> http://wiki.xen.org/wiki/Xen_ARMv7_with_Virtualization_Extensions as
> like this:
> 1. git the specific vexpress-dt branch of
> git://xenbits.xen.org/people/dvrabel/linux.git

Please can you tell us the precise version, e.g. the output of "git
show".

> 2. download configuration file and copy it into source code folder.

What did you save it as in the source code folder? Was it ".config"?

> 3. compile.

With what command line exactly?

Thanks,
Ian.



_______________________________________________
Xen-arm mailing list
Xen-arm@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-arm
Re: An error during compiling linux(vex-express-dt) [ In reply to ]
1. The linux version is this:

josh@josh-ThinkPad-Edge:~/project/xen/linux$ git show
commit 55b02d2f4445ad625213817a1736bf2884d32547
Merge: 2240a7b cd5cfce
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Wed Dec 14 19:45:40 2011 -0800

Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux

* 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
drm/radeon/kms: add some new pci ids

josh@josh-ThinkPad-Edge:~/project/xen/linux$ git branch
master
* origin/vexpress-dt

2. I saved it as .config and the compiling command is this:
export
ARM_LINUX_PATH=/home/josh/project/xen/gcc-4.6.0-nolibc/arm-unknown-li
nux-gnueabi/bin
export PATH=$ARM_LINUX_PATH:$PATH
export ARCH=arm
export XEN_TARGET_ARCH=arm
export CROSS_COMPILE=arm-unknown-linux-gnueabi-

make




ÔÚ 2012Äê3ÔÂ12ÈÕ ÏÂÎç10:59£¬Ian Campbell <Ian.Campbell@citrix.com>дµÀ£º

> On Mon, 2012-03-12 at 13:41 +0000, Josh Zhao wrote:
> > Hi all,
> > I followed the instruction in wiki
> > http://wiki.xen.org/wiki/Xen_ARMv7_with_Virtualization_Extensions as
> > like this:
> > 1. git the specific vexpress-dt branch of
> > git://xenbits.xen.org/people/dvrabel/linux.git
>
> Please can you tell us the precise version, e.g. the output of "git
> show".
>
> > 2. download configuration file and copy it into source code folder.
>
> What did you save it as in the source code folder? Was it ".config"?
>
> > 3. compile.
>
> With what command line exactly?
>
> Thanks,
> Ian.
>
>
>
Re: An error during compiling linux(vex-express-dt) [ In reply to ]
Hi Ian,
After enabling the option of "Versatile Express Cortex-A9x4 tile" in
platform type, the linux managed to be compiled. When tried running it, I
have the same problem as posted thread before:
http://www.gossamer-threads.com/lists/xen/arm/233932, a data abort.





ÔÚ 2012Äê3ÔÂ13ÈÕ ÉÏÎç8:22£¬Josh Zhao <joshsystem@gmail.com>дµÀ£º

> 1. The linux version is this:
>
> josh@josh-ThinkPad-Edge:~/project/xen/linux$ git show
> commit 55b02d2f4445ad625213817a1736bf2884d32547
> Merge: 2240a7b cd5cfce
> Author: Linus Torvalds <torvalds@linux-foundation.org>
> Date: Wed Dec 14 19:45:40 2011 -0800
>
> Merge branch 'drm-fixes' of git://
> people.freedesktop.org/~airlied/linux<http://people.freedesktop.org/%7Eairlied/linux>
>
> * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux<http://people.freedesktop.org/%7Eairlied/linux>
> :
> drm/radeon/kms: add some new pci ids
>
> josh@josh-ThinkPad-Edge:~/project/xen/linux$ git branch
> master
> * origin/vexpress-dt
>
> 2. I saved it as .config and the compiling command is this:
> export
> ARM_LINUX_PATH=/home/josh/project/xen/gcc-4.6.0-nolibc/arm-unknown-li
> nux-gnueabi/bin
> export PATH=$ARM_LINUX_PATH:$PATH
> export ARCH=arm
> export XEN_TARGET_ARCH=arm
> export CROSS_COMPILE=arm-unknown-linux-gnueabi-
>
> make
>
>
>
>
> ÔÚ 2012Äê3ÔÂ12ÈÕ ÏÂÎç10:59£¬Ian Campbell <Ian.Campbell@citrix.com>дµÀ£º
>
> On Mon, 2012-03-12 at 13:41 +0000, Josh Zhao wrote:
>> > Hi all,
>> > I followed the instruction in wiki
>> > http://wiki.xen.org/wiki/Xen_ARMv7_with_Virtualization_Extensions as
>> > like this:
>> > 1. git the specific vexpress-dt branch of
>> > git://xenbits.xen.org/people/dvrabel/linux.git
>>
>> Please can you tell us the precise version, e.g. the output of "git
>> show".
>>
>> > 2. download configuration file and copy it into source code folder.
>>
>> What did you save it as in the source code folder? Was it ".config"?
>>
>> > 3. compile.
>>
>> With what command line exactly?
>>
>> Thanks,
>> Ian.
>>
>>
>>
>
Re: An error during compiling linux(vex-express-dt) [ In reply to ]
On Tue, 2012-03-13 at 04:15 +0000, Josh Zhao wrote:
> Hi Ian,
> After enabling the option of "Versatile Express Cortex-A9x4 tile" in
> platform type, the linux managed to be compiled.

Hrm, that seems like an odd option to require...

Are you sure you have checked out dvrable.git#vexpress-dt? The head of
that branch is 9e332dccad2 "Revert "HACK! call flush_cache_all() after
updating translation..." while you report that you are running
55b02d2f4445 "Merge branch 'drm-fixes' of git..." which looks to me like
a mainline Linux commit (Linus is the committer) and not something from
David's tree.

Ah! 55b02d2f4445 is dvrable.git#master not #vexpress-dt. You need to
switch to the correct branch.

I've added xen-devel to the CC since that is a better place to find
people interested in this port to ARM. (xen-arm is more focused on the
PV ARM port, I've added a note to this effect to the wiki page
http://wiki.xen.org/wiki/Xen_ARMv7_with_Virtualization_Extensions )

> When tried running it, I have the same problem as posted thread
> before: http://www.gossamer-threads.com/lists/xen/arm/233932, a data
> abort.

You need the patch "arm: support fewer LR registers than virtual irqs"
by Stefano Stabellini (please search the xen-devel list archives) to run
on the A15 model. v4 was posted on 23 Feb, it is not quite in its final
form but is good enough for you to be going on with.

Thanks,
Ian.

>
>
>
>
>
> 在 2012年3月13日 上午8:22,Josh Zhao <joshsystem@gmail.com>写道:
> 1. The linux version is this:
>
> josh@josh-ThinkPad-Edge:~/project/xen/linux$ git show
> commit 55b02d2f4445ad625213817a1736bf2884d32547
> Merge: 2240a7b cd5cfce
> Author: Linus Torvalds <torvalds@linux-foundation.org>
> Date: Wed Dec 14 19:45:40 2011 -0800
>
> Merge branch 'drm-fixes' of
> git://people.freedesktop.org/~airlied/linux
>
> * 'drm-fixes' of
> git://people.freedesktop.org/~airlied/linux:
> drm/radeon/kms: add some new pci ids
>
> josh@josh-ThinkPad-Edge:~/project/xen/linux$ git branch
> master
> * origin/vexpress-dt
>
> 2. I saved it as .config and the compiling command is this:
> export
> ARM_LINUX_PATH=/home/josh/project/xen/gcc-4.6.0-nolibc/arm-unknown-li nux-gnueabi/bin
> export PATH=$ARM_LINUX_PATH:$PATH
> export ARCH=arm
> export XEN_TARGET_ARCH=arm
> export CROSS_COMPILE=arm-unknown-linux-gnueabi-
>
> make
>
>
>
>
> 在 2012年3月12日 下午10:59,Ian Campbell
> <Ian.Campbell@citrix.com>写道:
>
> On Mon, 2012-03-12 at 13:41 +0000, Josh Zhao wrote:
> > Hi all,
> > I followed the instruction in wiki
> >
> http://wiki.xen.org/wiki/Xen_ARMv7_with_Virtualization_Extensions as
> > like this:
> > 1. git the specific vexpress-dt branch of
> > git://xenbits.xen.org/people/dvrabel/linux.git
>
>
> Please can you tell us the precise version, e.g. the
> output of "git
> show".
>
> > 2. download configuration file and copy it into
> source code folder.
>
>
> What did you save it as in the source code folder? Was
> it ".config"?
>
> > 3. compile.
>
> With what command line exactly?
>
> Thanks,
> Ian.
>
>
>
>



_______________________________________________
Xen-arm mailing list
Xen-arm@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-arm