I recently installed openwrt in nanopi. Unitl now I was using FriendlyWRT, eveything worked fine.
Now I recently installed the Snapshot version of OPENWRT in nanopi R5C ( as stable version is not outyet)
When I run firstboot, i founf that there is no rootfs_data found by open WRT. when i run parted, there is no partition table as well!
root@OpenWrt:/etc/uci-defaults# parted
GNU Parted 3.6
Using /dev/mmcblk1boot0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Error: /dev/mmcblk1boot0: unrecognised disk label
Model: Generic SD/MMC Storage Card (sd/mmc)
Disk /dev/mmcblk1boot0: 4194kB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
(parted)
I am not using SD Card, I am using the eMMC Storage of the Nanopi itself.
root@OpenWrt:/etc/uci-defaults# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk1 179:0 0 29.1G 0 disk
├─mmcblk1p1 179:1 0 16M 0 part
└─mmcblk1p2 179:2 0 104M 0 part /
mmcblk1boot0 179:32 0 4M 1 disk
mmcblk1boot1 179:64 0 4M 1 disk
root@OpenWrt:/etc/uci-defaults#
Please let me know if this is a problem! because the system works fine. Only when I want to run firstboot it doesnt.
Parted may just not be able to correctly read the OpenWrt partitioning. If encountering errors during boot, post the boot log complete with errors. Otherwise, post commands you enter and errors you are getting in response.
The "firstboot" command is the only command which help me see this problem:
root@OpenWrt:~/Openwrt-Monitoring/Openwrt-Monitoring/Docker# firstboot
This will erase all settings and remove any installed packages. Are you sure? [N/y]
y
MTD partition 'rootfs_data' not found
root@OpenWrt:~/Openwrt-Monitoring/Openwrt-Monitoring/Docker#
Also, when i try to reflash the OS into eMMC (as, firstboot isnt woorking)
Fri Jan 31 15:46:13 GMT 2025 upgrade: Image metadata not present Fri Jan 31 15:46:13 GMT 2025 upgrade: Use sysupgrade -F to override this check when downgrading or flashing to vendor firmware Fri Jan 31 15:46:13 GMT 2025 upgrade: Reading partition table from bootdisk... cat: write error: Broken pipe Fri Jan 31 15:46:13 GMT 2025 upgrade: Reading partition table from image... Partition layout has changed. Full image will be written. Image check failed.
The uploaded image file does not contain a supported format. Make sure that you choose the generic image format for your platform.
I get this error in luci update firmware page after uploading the same image!