您尚未登录。

楼主 #1 2019-09-12 11:03:52

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

v3s zero mount: you must be root

大家有遇到这个问题的吗

[    0.892526] vcc5v0: disabling                                                
[    0.895503] ALSA device list:                                                
[    0.898536]   #0: V3s Audio Codec                                            
[    0.904860] random: fast init done                                           
[    0.945960] random: crng init done                                           
[    3.262277] VFS: Mounted root (jffs2 filesystem) on device 31:3.             
[    3.269263] devtmpfs: mounted                                                
[    3.273408] Freeing unused kernel memory: 1024K                              
mount: you must be root                                                         
mount: you must be root                                                         
mkdir: can't create directory '/dev/pts': Permission denied                     
mkdir: can't create directory '/dev/shm': Permission denied                     
mount: you must be root                                                         
hostname: sethostname: Operation not permitted                                  
Starting logging: OK                                                            
[    4.878819] ------------[ cut here ]------------                             
[    4.883482] WARNING: CPU: 0 PID: 77 at drivers/mtd/spi-nor/spi-nor.c:1182 sp4
[    4.892651] Writing at offset 76 into a NOR page. Writing partial pages may .
[    4.892657] Modules linked in:                                               
[    4.907309] CPU: 0 PID: 77 Comm: start-stop-daem Not tainted 4.10.15-licheep6
[    4.915126] Hardware name: Allwinner sun8i Family                            
[    4.919855] [<c010e3bc>] (unwind_backtrace) from [<c010b158>] (show_stack+0x)
[    4.927596] [<c010b158>] (show_stack) from [<c0346864>] (dump_stack+0x84/0x9)
[    4.934813] [<c0346864>] (dump_stack) from [<c011b834>] (__warn+0xe8/0x100)  
[    4.941768] [<c011b834>] (__warn) from [<c011b884>] (warn_slowpath_fmt+0x38/)
[    4.949246] [<c011b884>] (warn_slowpath_fmt) from [<c04548a0>] (spi_nor_writ)
[    4.957504] [<c04548a0>] (spi_nor_write) from [<c044b6f4>] (mtd_writev+0xa4/)
[    4.964986] [<c044b6f4>] (mtd_writev) from [<c02fc160>] (jffs2_flash_writev+)
[    4.973072] [<c02fc160>] (jffs2_flash_writev) from [<c02f4fe0>] (jffs2_write)
[    4.981677] [<c02f4fe0>] (jffs2_write_dnode) from [<c02f58f8>] (jffs2_do_cre)
[    4.990020] [<c02f58f8>] (jffs2_do_create) from [<c02eff74>] (jffs2_create+0)
[    4.997932] [<c02eff74>] (jffs2_create) from [<c01ff398>] (path_openat+0x9f4)
[    5.005584] [<c01ff398>] (path_openat) from [<c0200b40>] (do_filp_open+0x60/)
[    5.013062] [<c0200b40>] (do_filp_open) from [<c01eff1c>] (do_sys_open+0x110)
[    5.020713] [<c01eff1c>] (do_sys_open) from [<c0107640>] (ret_fast_syscall+0)
[    5.028508] ---[ end trace 52c20a801dd1be51 ]---                             
Initializing random number generator... done.                                   
Starting network: ip: RTNETLINK answers: Operation not permitted                
ip: SIOCSIFFLAGS: Operation not permitted                                       
FAIL                                                                            
can't open /dev/console: Permission denied                                      
can't open /dev/console: Permission denied                                      
can't open /dev/console: Permission denied                                      
can't open /dev/console: Permission denied                                      
can't open /dev/console: Permission denied                                      
can't open /dev/console: Permission denied                                      
can't open /dev/console: Permission denied                                      
can't open /dev/console: Permission denied                                      
can't open /dev/console: Permission denied

离线

楼主 #3 2019-09-12 11:29:53

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: v3s zero mount: you must be root

我刚刚替换了jff2,可以正常启动,但是按照教程编译rootfs就出现上边的问题

离线

楼主 #6 2019-09-12 11:48:04

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: v3s zero mount: you must be root

就是这个教程,目前看是权限的问题,不知道如何解决

离线

楼主 #8 2019-09-12 15:22:02

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: v3s zero mount: you must be root

是的,使用buildroot

离线

楼主 #10 2019-09-12 16:01:08

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: v3s zero mount: you must be root

mkfs.jffs2 -s 0x100 -e 0x10000 -p 0xAF0000 -d rootfs/ -o jffs2.img
我读回来看一下

离线

楼主 #12 2019-09-12 17:47:38

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: v3s zero mount: you must be root

Starting logging: OK                                                            
[    4.923685] ------------[ cut here ]------------                             
[    4.928466] WARNING: CPU: 0 PID: 81 at drivers/mtd/spi-nor/spi-nor.c:1182 sp4
[    4.937543] Writing at offset 112 into a NOR page. Writing partial pages may.
[    4.937546] Modules linked in:                                               
[    4.952252] CPU: 0 PID: 81 Comm: touch Not tainted 4.10.15-licheepi-zero #8  
[    4.959200] Hardware name: Allwinner sun8i Family                            
[    4.963931] [<c010e3bc>] (unwind_backtrace) from [<c010b158>] (show_stack+0x)
[    4.971673] [<c010b158>] (show_stack) from [<c0346864>] (dump_stack+0x84/0x9)
[    4.978891] [<c0346864>] (dump_stack) from [<c011b834>] (__warn+0xe8/0x100)  
[    4.985846] [<c011b834>] (__warn) from [<c011b884>] (warn_slowpath_fmt+0x38/)
[    4.993324] [<c011b884>] (warn_slowpath_fmt) from [<c04548a0>] (spi_nor_writ)
[    5.001582] [<c04548a0>] (spi_nor_write) from [<c044b6f4>] (mtd_writev+0xa4/)
[    5.009065] [<c044b6f4>] (mtd_writev) from [<c02fc160>] (jffs2_flash_writev+)
[    5.017151] [<c02fc160>] (jffs2_flash_writev) from [<c02f4fe0>] (jffs2_write)
[    5.025755] [<c02f4fe0>] (jffs2_write_dnode) from [<c02f58f8>] (jffs2_do_cre)
[    5.034099] [<c02f58f8>] (jffs2_do_create) from [<c02eff74>] (jffs2_create+0)
[    5.042010] [<c02eff74>] (jffs2_create) from [<c01ff398>] (path_openat+0x9f4)
[    5.049663] [<c01ff398>] (path_openat) from [<c0200b40>] (do_filp_open+0x60/)
[    5.057141] [<c0200b40>] (do_filp_open) from [<c01eff1c>] (do_sys_open+0x110)
[    5.064793] [<c01eff1c>] (do_sys_open) from [<c0107640>] (ret_fast_syscall+0)
[    5.072592] ---[ end trace 1b65f46d8a6fe49b ]---                             
Initializing random number generator... done.                                   
Starting network: OK                                                            
                                                                                
Welcome to Buildroot                                                            
buildroot login: root                                                           
# ls                                                                            
# cd /                                                                          
# ls                                                                            
bin      lib      media    proc     sbin     usr                                
dev      lib32    mnt      root     sys      var                                
etc      linuxrc  opt      run      tmp                                         
# ls                                                                            
bin      lib      media    proc     sbin     usr                                
dev      lib32    mnt      root     sys      var                                
etc      linuxrc  opt      run      tmp                                         
# cd                                                                            
# 

离线

楼主 #13 2019-09-12 17:51:18

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: v3s zero mount: you must be root

w25q128 去掉了SECT_4K,用脚本生成的镜像,命令行生成的一直没成功,不知道问什么

离线

楼主 #14 2019-09-12 17:59:06

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: v3s zero mount: you must be root

fs.zip
里面有镜像和脚本

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn