首页>>论坛 >>技术社区 >>OpenHW社区论坛 >>EDK及片上处理器
|
我要发帖  | 我要投票  | 我要回复  | 收藏
1

petalinux iamge文件生成和启动后,如何进一步编写应用软件

版主: Jerry Fan  玄剑  jennyzheng  XUPteam 
petalinux iamge文件生成和启动后,如何进一步编写应用软件
 

petalinux iamge文件生成和启动后,如何进一步编写应用软件,以及以后的下载和调试方式是怎样的一个过程啊???

 
相关主题
回复 链接 收藏
 
RE:petalinux iamge文件生成和启动后,如何进一步编写应用软件
 
编写应用程序可以在linux下使用petalinux-new-app命令来添加应用程序。
可以看一下以下网址的内容:
http://www.petalogix.com/resources/documentation/petalinux/userguide/Customising/UserApps
 
回复 链接 收藏
 
RE:petalinux iamge文件生成和启动后,如何进一步编写应用软件
 
这个UserApps 说明很不详细啊
应用程序写完后在那设置下,使程序在系统启动时启动啊???
 
回复 链接 收藏
 
RE:petalinux iamge文件生成和启动后,如何进一步编写应用软件
 
按照步骤做后,生成image文件下载即可,需要调用时可以之间键入名称,就可以运行所编写的应用程序。
 
回复 链接 收藏
 
回复:petalinux iamge文件生成和启动后,如何进一步编写应用软件
 

回复第 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

 
回复 链接 收藏
 
回复:petalinux iamge文件生成和启动后,如何进一步编写应用软件
 
不小心写错了,是添加模块petalinux-new-module
回复第 5 楼 flytercel于2011-07-04 03:18:31发表:

回复第 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

 
 
回复 链接 收藏
 
我要发帖  | 我要投票  | 我要回复  | 收藏
1