首页 »论坛首页 »技术社区 >> OpenHW社区论坛 >> 嵌入式操作系统 >>
我要发帖 | 我要投票 | 收藏
1

petalinux-auto-config

petalinux-auto-config
 

为什么我在使用petalinux-copy-autoconfig时会出现如下错误:

root@yesong-desktop:/xilinx_EDK/petalinux-v0.30-rc1/hardware/lab1# petalinux-copy-autoconfig
-bash: petalinux-copy-autoconfig: command not found
 

 
相关主题
...
回复 链接 收藏
 
RE:petalinux-auto-config
 
root@yesong-desktop:/xilinx_EDK/petalinux-v0.30-rc1/hardware/user-platforms/lab1
# petalinux-copy-autoconfig
/xilinx_EDK/petalinux-v0.30-rc1/tools/common/petalogix/bin/petalinux-copy-autoconfig: 23: function: not found
Usage:
petalinux-copy-autoconfig OPTIONS [projectfile]
Required:
Optional parameters (and default value):
-p platform
The name of the platform. Auto-detect if not specified.
-v vendor
Vendor name for platform. Auto-detect if not specified.
-k kernel_ver (2.4 / 2.6)
Force kernel version to target. Auto-detect if not specified
Not recommended
-noupdateconfig
Don't update kernel configuration settings (not recommended).
projectfile
Filename of the EDK platform studio project (system.xmp).
If .xmp suffix is missing it will be inferred.
If a path prefix is specified, the full path and name of the
XMP file must be specified.
Options -p and -v must be specified together. If either is
missing, then an autodetect is attempted.
exit: 51: Illegal number: -1
为什么说没有petalinux-copy-autoconfig?tools里面确实有的啊!请高人指点
 
...
回复 链接 收藏
 
RE:petalinux-auto-config
 
路径设置对没有?
 
...
回复 链接 收藏
 
RE:petalinux-auto-config
 
在使用petalinux-auto-config时加入-v Xilinx -p 平台名称 -k kernel版本(2.4 或 2.6)。
你可以试一下,看看有没有问题。
还有就是前面的步骤有没有错。
如果可以的话,能稍微叙述一下吗?
 
...
回复 链接 收藏
 
回复:petalinux-auto-config
 

我把windows下的EDK创建的工程lab(lab为工程的文件夹)全部拷贝到虚拟机中。(不知道是要整个文件夹都拷,还是只要考auto-config.in 和Kconfig.auto,所以我把整个文件夹都拷过来了)。

然后到/petalinux-v0.30-rcl/software/petalinux-dist/目录下,执行petalinux-new-platform -v Xilinx -p 3S500E -k 2.6

出现如下错误提示:/xilinx_EDK/petalinux-v0.30-rc1/tools/common/petalogix/bin/petalinux-new-platform: 23: function: not found
Usage:
    petalinux-new-platform [-force] [-k kernelver ] [-v vendor] -p platform

Required:
    -p platform The name of the new platform

Optional parameters (and default value):
    -v vendor   Vendor name for new board (PetaLogix)
 -k kernelver    Kernel version '2.4' or '2.6' (2.6)
    -force      Force overwriting an existing platform if required (no).

exit: 35: Illegal number: -1

请教高手!急!明明可以在/tools/common/下可以找到petalinux-new-platform和petalinx-copy-autoconfig等功能,但就是有错误!急啊!我还想请教一下高手,把windows下的EDK工程lab拷贝到linux中要注意什么,还是只要拷贝auto-config.in 和Kconfig.auto,以及一些注意事项!
 

 
...
回复 链接 收藏
 
RE:petalinux-auto-config
 
可能是没有设置环境变量吧,每次打开bash时,先运行 source settings.sh
 
...
回复 链接 收藏
 
RE:petalinux-auto-config
 
可能是没有设置环境变量吧,每次打开bash时,先运行 source settings.sh
 
...
回复 链接 收藏
 
我要发帖 | 我要投票 | 我要回复 | 收藏
1