页次: 1
[ 5.194233] jffs2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
[ 5.202804] jffs2: empty_blocks 0, bad_blocks 0, c->nr_blocks 175
[ 5.209271] VFS: Cannot open root device "mtdblock3" or unknown-block(31,3): error -5
[ 5.217202] Please append a correct "root=" boot option; here are the available partitions:
[ 5.225558] 1f00 1024 mtdblock0
[ 5.225567] (driver?)
[ 5.232193] 1f01 64 mtdblock1
[ 5.232203] (driver?)
[ 5.238789] 1f02 4096 mtdblock2
[ 5.238796] (driver?)
[ 5.245331] 1f03 11200 mtdblock3
[ 5.245337] (driver?)
[ 5.251935] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[ 5.260276] CPU: 0 PID: 1 Comm: swapper Not tainted 4.15.0-rc8-licheepi-nano #9
[ 5.267562] Hardware name: Allwinner suniv Family
[ 5.272340] [<c010e550>] (unwind_backtrace) from [<c010b6a8>] (show_stack+0x10/0x14)
[ 5.280093] [<c010b6a8>] (show_stack) from [<c0116878>] (panic+0xb8/0x230)
[ 5.286981] [<c0116878>] (panic) from [<c0901130>] (mount_block_root+0x170/0x250)
[ 5.294460] [<c0901130>] (mount_block_root) from [<c0901304>] (mount_root+0xf4/0x120)
[ 5.302284] [<c0901304>] (mount_root) from [<c090144c>] (prepare_namespace+0x11c/0x17c)
[ 5.310283] [<c090144c>] (prepare_namespace) from [<c0900d60>] (kernel_init_freeable+0x174/0x1b8)
[ 5.319159] [<c0900d60>] (kernel_init_freeable) from [<c066f6f0>] (kernel_init+0x8/0x10c)
[ 5.327340] [<c066f6f0>] (kernel_init) from [<c0107dc0>] (ret_from_fork+0x14/0x34)
[ 5.334902] Rebooting in 5 seconds..
[ 11.314135] Reboot failed -- System halted
新手入坑,重新编译linux和文件系统都没有用,make menuconfig配置也都是按照教程来的,一直出现这个问题。
后来发现问题出在打包文件,使用的教程中的nano_flash_dd.sh其中有这么一句
MOD_FILE=./Lichee_Nano
cp -r $MOD_FILE rootfs/lib/modules/ &&\
我不小心把其他的备份的文件放在了Lichee_Nano文件夹里,太大了,然后执行了sudo ./nano_flash_dd.sh,结果一直运行不完,我就直接ctrl+c给终止了。结果就是flashimg.bin也有,但是烧录后就出现前面的问题。重新编译linux和文件系统后,执行sudo ./nano_flash_dd.sh还是会一直卡着不动。只能ctrl+c。
如果有人和我有同样的问题,可以看看
rm -rf rootfs &&\
rm jffs2.img
这两句执行了没有,文件夹下是不是有rootfs 和jffs2.img。
查看MOD_FILE=./Lichee_Nano文件夹下是不是有其他的多余的东西。
你的当前目录错了,应该在 ~/linux
book@100ask:~/linux$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- dtbs -j8
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/utsrelease.h
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
生成的 dtb文件 在 dts同级目录下。在/home/book/linux/arch/arm/boot下没有生成的dtb啊。
新手,跟着荔枝派nano全流程指南,进行设备树节点添加的时候,无法编辑生成dtb.
book@100ask:~/linux/arch/arm/boot/dts$ sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- dtbs -j8
make: *** No rule to make target 'dtbs'. Stop.
book@100ask:~/linux/arch/arm/boot/dts$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtbs
make: *** No rule to make target 'dtbs'. Stop.
book@100ask:~/linux/arch/arm/boot/dts$
页次: 1