Help! No Rootfs found after openwrt installed in Nanopi R5C

Hello,

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.

which image did you use, when you installed openwrt ?

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.

Hello @frollic

The image i currently use is OpenWrt SNAPSHOT r28675-8e78bc39a3 / LuCI Master 25.024.18600~2c7b18b

@antonk

hello, Thanks for the info.

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!

No dude, that's the version, try to answer the actual question.

Was it an ext4, by any chance?

Ahhh, Yes, EXT4

Full Name : openwrt-rockchip-armv8-friendlyarm_nanopi-r5c-ext4-sysupgrade.img

Sorry, didnt know you reffered "file_system_types" as "image"

No worries, providing the file name would have answered the question too :slight_smile:

Ext4 doesn't have firstboot capabilities, you'd need to use squashfs for that.

Btw, you should install the RC7 instead of the snapshot.
https://firmware-selector.openwrt.org/?version=24.10.0-rc7&target=rockchip%2Farmv8&id=friendlyarm_nanopi-r5c

2 Likes