回复第 4 楼 Jerry Fan于2010-03-10 01:49:17发表:
按照步骤做后,生成image文件下载即可,需要调用时可以之间键入名称,就可以运行所编写的应用程序。
我按照网站的步骤,先petalinux-new-app helloworld,未作任何的改动再make出现如下错误
make -C
/home/yfj/petalinux-v0.40-final/software/petalinux-dist/linux-2.6.x
M=/home/yfj/petalinux-v0.40-final/software/user-modules/hello
modules
make[1]: 正在进入目录
`/home/yfj/petalinux-v0.40-final/software/linux-2.6.x-petalogix'
CC [M]
/home/yfj/petalinux-v0.40-final/software/user-modules/hello/hello.o
In file included from include/asm/bitops.h:17,
from include/linux/bitops.h:9,
from include/linux/kernel.h:15,
from
/home/yfj/petalinux-v0.40-final/software/user-modules/hello/hello.c:3:
include/asm/system.h:31:5: warning:
"CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR" is not defined
In file included from include/linux/prefetch.h:15,
from include/linux/list.h:8,
from include/linux/module.h:10,
from
/home/yfj/petalinux-v0.40-final/software/user-modules/hello/hello.c:5:
include/asm/cache.h:24:5: warning:
"CONFIG_XILINX_MICROBLAZE0_ICACHE_USE_FSL" is not defined
include/asm/cache.h:30:5: warning:
"CONFIG_XILINX_MICROBLAZE0_DCACHE_USE_FSL" is not defined
include/asm/cache.h:36:5: warning:
"CONFIG_XILINX_MICROBLAZE0_USE_ICACHE" is not defined
include/asm/cache.h:89:5: warning:
"CONFIG_XILINX_MICROBLAZE0_USE_DCACHE" is not defined
In file included from include/linux/kobject.h:25,
from include/linux/module.h:17,
from
/home/yfj/petalinux-v0.40-final/software/user-modules/hello/hello.c:5:
include/linux/rwsem.h:24:65: asm/rwsem.h: No such file or directory
In file included from include/linux/module.h:17,
from
/home/yfj/petalinux-v0.40-final/software/user-modules/hello/hello.c:5:
include/linux/kobject.h:174: error: field `rwsem' has incomplete
type
In file included from include/linux/memory_hotplug.h:7,
from include/linux/mmzone.h:443,
from include/linux/gfp.h:4,
from include/linux/slab.h:14,
from include/linux/percpu.h:5,
from include/asm-generic/local.h:4,
from include/asm/local.h:1,
from include/linux/module.h:19,
from
/home/yfj/petalinux-v0.40-final/software/user-modules/hello/hello.c:5:
include/linux/notifier.h:62: error: field `rwsem' has incomplete
type
In file included from include/asm/hardirq.h:15,
from include/linux/hardirq.h:7,
from include/asm-generic/local.h:5,
from include/asm/local.h:1,
from include/linux/module.h:19,
from
/home/yfj/petalinux-v0.40-final/software/user-modules/hello/hello.c:5:
include/linux/irq.h:174: error:
`CONFIG_XILINX_INTC_0_NUM_INTR_INPUTS' undeclared here (not in a
function)
In file included from include/asm-generic/local.h:5,
from include/asm/local.h:1,
from include/linux/module.h:19,
from
/home/yfj/petalinux-v0.40-final/software/user-modules/hello/hello.c:5:
include/linux/hardirq.h:40:27: warning:
"CONFIG_XILINX_INTC_0_NUM_INTR_INPUTS" is not defined
make[2]: ***
[/home/yfj/petalinux-v0.40-final/software/user-modules/hello/hello.o]
错误 1
make[1]: ***
[_module_/home/yfj/petalinux-v0.40-final/software/user-modules/hello]
错误 2
make[1]:正在离开目录
`/home/yfj/petalinux-v0.40-final/software/linux-2.6.x-petalogix'
make: *** [modules] 错误 2