设置好menuconfig后,sudo make 然后拷到nfs目录,启动后出现错误如图:

buildroot编译文件系统,出现mount: you must be root. can't open /dev/console: Permission denied这种错误。

此时的bin目录下文件状态

buildroot编译文件系统,出现mount: you must be root. can't open /dev/console: Permission denied这种错误。

使用sudo chown root * -R后,状态为:

buildroot编译文件系统,出现mount: you must be root. can't open /dev/console: Permission denied这种错误。

这条命令的意思是更改当前目录下所有的文件的owner(就是所有者)为root,-R意思是循环遍历,如果当前目录下有子目录,同时更改那些子目录。

然后重新拷贝 上电就行了。

网上还有一只说法,没有试验,现在记录一下
log中有:mount: you must be root

原因:

查看busybox权限:

-rwsr-xr-x 1 xiaoli xiaoli 875488  11:18 busybox

权限中有个s

 

解决办法:

去掉s权限

chmod a-s busybox

相关文章:

  • 2022-12-23
  • 2021-05-12
  • 2021-06-22
  • 2021-09-05
  • 2022-12-23
  • 2022-02-12
  • 2021-09-25
  • 2022-12-23
猜你喜欢
  • 2021-07-31
  • 2022-12-23
  • 2021-12-31
  • 2021-12-27
  • 2022-02-28
  • 2022-12-23
  • 2021-07-18
相关资源
相似解决方案