Ok, I already did this:
The differences I am noticing are the following:
- there is a line more in the kernel boot saying that also "orion_nand" has no squashfs
[ 0.789683] 4 cmdlinepart partitions found on MTD device orion_nand
[ 0.795976] Creating 4 MTD partitions on "orion_nand":
[ 0.801156] 0x000000000000-0x000000100000 : "u-boot"
[ 0.806897] 0x000000100000-0x000000500000 : "kernel"
[ 0.812602] 0x000000500000-0x000002500000 : "rootfs"
[ 0.818259] mtd: device 2 (rootfs) set to be root filesystem
[ 0.824066] mtdsplit: no squashfs found in "rootfs"
[ 0.829070] mtdsplit: no squashfs found in "orion_nand"
[ 0.834328] 0x000002500000-0x000010000000 : "data"
- the UBI system attaches the "rootfs" partition instead of the "data" partition as ubi0
[ 1.025678] UBI: attaching mtd2 to ubi0
[ 1.088180] UBI: scanning is finished
[ 1.103686] UBI: attached mtd2 (name "rootfs", size 32 MiB) to ubi0
[ 1.110011] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[ 1.116830] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[ 1.123488] UBI: VID header offset: 512 (aligned 512), data offset: 2048
[ 1.130227] UBI: good PEBs: 256, bad PEBs: 0, corrupted PEBs: 0
[ 1.136170] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 1.143343] UBI: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
[ 1.151652] UBI: available PEBs: 0, total reserved PEBs: 256, PEBs reserved for bad PEB handling: 40
[ 1.161013] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 1.168380] UBI: background thread "ubi_bgt0d" started, PID 779
[ 1.202036] UBIFS: background thread "ubifs_bgt0_0" started, PID 784
[ 1.288370] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 1.294432] UBIFS: LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 1.303619] UBIFS: FS size: 25933824 bytes (24 MiB, 201 LEBs), journal size 9033728 bytes (8 MiB, 71 LEBs)
[ 1.313321] UBIFS: reserved for root: 0 bytes (0 KiB)
[ 1.318398] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 910BF25D-BEAF-40CE-B84A-3220E8E2EAC5, small LPT model
[ 1.329816] VFS: Mounted root (ubifs filesystem) on device 0:10.
- there is an operation called "mount_root"
[ 4.650148] mount_root: mounting /dev/root
The df -hT command gives this output:
root@OpenWrt:/# df -hT
Filesystem Type Size Used Available Use% Mounted on
rootfs rootfs 22.6M 3.6M 19.0M 16% /
ubi0:rootfs ubifs 22.6M 3.6M 19.0M 16% /
tmpfs tmpfs 61.1M 912.0K 60.2M 1% /tmp
tmpfs tmpfs 512.0K 0 512.0K 0% /dev
So, still no "data" partition and no sign of the 219MB of such partition, which is weird to me... but configuration and data are saved after a reboot...
Here is the output of the "mount" command:
root@OpenWrt:/# mount
rootfs on / type rootfs (rw)
ubi0:rootfs on / type ubifs (rw,noatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
I am really puzzled...