Linux 非法选项-p/bin/sh:1:用法::未找到

Linux 非法选项-p/bin/sh:1:用法::未找到,linux,embedded-linux,Linux,Embedded Linux,我正在使用Linux和 我从git存储库获得AT91BootStrap的源代码 git clone git://github.com/linux4sam/at91bootstrap.git 克隆存储库后,在AT91Bootstrap根目录下,我找到一个board/sama5d27_som1_ek文件夹,其中包含几个默认配置文件 我可以通过以下操作将AT91Bootstrap配置为从SD卡加载: $ make mrproper $ make sama5d27_som1_eksd_uboot_de

我正在使用Linux和 我从git存储库获得AT91BootStrap的源代码

git clone git://github.com/linux4sam/at91bootstrap.git
克隆存储库后,在AT91Bootstrap根目录下,我找到一个board/sama5d27_som1_ek文件夹,其中包含几个默认配置文件

我可以通过以下操作将AT91Bootstrap配置为从SD卡加载:

$ make mrproper
$ make sama5d27_som1_eksd_uboot_defconfig
但当我在Linux终端中输入
make sama5d27\u som1\u eksd\u uboot\u defconfig
命令时,会显示一个错误,提示:

非法选项-p/bin/sh:1:用法::未找到

我怎样才能解决这个问题

这是我下面的教程:

这是
mkdir--help
的输出:

Usage: mkdir [OPTION]... DIRECTORY...
Create the DIRECTORY(ies), if they do not already exist.

Mandatory arguments to long options are mandatory for short options too.
  -m, --mode=MODE   set file mode (as in chmod), not a=rwx - umask
  -p, --parents     no error if existing, make parent directories as needed
  -v, --verbose     print a message for each created directory
  -Z                   set SELinux security context of each created directory
                         to the default type
      --context[=CTX]  like -Z, or if CTX is specified then set the SELinux
                         or SMACK security context to CTX
      --help     display this help and exit
      --version  output version information and exit

GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Full documentation at: <http://www.gnu.org/software/coreutils/mkdir>
or available locally via: info '(coreutils) mkdir invocation'

我们需要更多的信息<代码>我的引导加载程序-什么引导加载程序?是你自己写的吗?你下载了吗?从哪里来?什么版本?如何获得?你能在你的linux上发布
mkdir--help
sh--version
的输出吗?我再次修改了它,你可以看到谁,
sh
的行为很奇怪。您有什么
sh
?您使用的是什么linux发行版?您可以从命令行尝试
mkdir-p/tmp/1/1
?我猜错误似乎来自
Makefile
文件行
@mkdir-p config/at91bootstrap config
,就像
mkdir
没有识别
-p
选项一样。您可以尝试替换makefile中
exit
mkdir-p
行,并检查make是否生成相同的错误。或者使用
all:mkdir-p/tmp/a/b
创建一个空的makefile,然后执行
make
,看看它是否有效。我猜你有ubuntu和
dash
,试试看,比如
apt-cache-policy-dash
apt-cache-policy-dash
显示:dash:`安装:0.5.8-2.10候选:0.5.8-2.10版本表:**0.5.8-2.10 500 500仿生/main amd64包100/var/lib/dpkg/status`
sh: 0: Illegal option --