[LEDE-DEV] Files across reboot are not persisiting

K.Mani sailormani at gmail.com
Tue Jan 17 10:41:00 PST 2017


    When we create a file on the booted board and reboot the file
doesn't persist.
    Environment:
    OpenWRT branch "Barrier Breaker" on Annapurna board, with
ALpine-v1(soc) is having NOR flash(MX25U25635F) 32MB

    I think mounting of rootfs_data type jffs2 is not happening in Preinit!

    <kernel boot-log>

    [  587.597297] m25p80 spi0.0: found mx25u25635f, expected
spi_flash_jedec_detection
    [  587.604693] m25p80 spi0.0: mx25u25635f (32768 Kbytes)
    [  587.609753] 5 ofpart partitions found on MTD device spi0.0
    [  587.615233] Creating 5 MTD partitions on "spi0.0":
    [  587.620016] 0x000000000000-0x000000200000 : "al_boot"
    [  587.625421] 0x000000200000-0x000000300000 : "device_tree"
    [  587.631148] 0x000000300000-0x000000b00000 : "Kernel"
    [  587.636431] 0x000000b00000-0x000001b00000 : "rootfs"
    [  587.641697] mtd: device 3 (rootfs) set to be root filesystem
    [  587.647420] mtd: partition "rootfs_data" created automatically,
ofs=0xf50000, len=0xbb0000
    [  587.655672] 0x000000f50000-0x000001b00000 : "rootfs_data"
    [  587.661381] 0x000001b00000-0x000002000000 : "storage"

    .
    .

    [  588.517726] Freeing unused kernel memory: 10912K (c06af000 - c1157000)
    procd: Console is alive
    procd: - watchdog -
    procd: - preinit -
    Press the [f] key and hit [enter] to enter failsafe mode
    Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
    procd: - early -
    procd: - watchdog -
    procd: - ubus -
    procd: - init -
    Please press Enter to activate this console.
    [  593.780917] configured MAC to RGMII mode:
    [  593.785404] al_eth 0000:00:01.0 eth1: using MSI-X per Queue
interrupt mode
    [  593.793270] libphy: al mdio bus: probed

    </kernel boot-log>

    Kernel command line: root=/dev/mtdblock3 rootfstype=squashfs,jffs2
noinitrd pci=pcie_bus_perf console=ttyS0,115200

    df -h
    Filesystem                Size      Used Available Use% Mounted on
    tmpfs                   250.1M     48.0K    250.0M   0% /tmp
    tmpfs                   512.0K         0    512.0K   0% /dev

    root at OpenWrt:/lib/modules/3.10.20# mount
    rootfs on / type rootfs (rw)
    proc on /proc type proc (rw,noatime)
    sysfs on /sys type sysfs (rw,noatime)
    tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
    tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
    devpts on /dev/pts type devpts (rw,relatime,mode=600)
    debugfs on /sys/kernel/debug type debugfs (rw,noatime)


    root at OpenWrt:/lib/modules/3.10.20# free
                 total         used         free       shared      buffers
    Mem:        512180        67192       444988            0            0
    -/+ buffers:              67192       444988
    Swap:            0            0            0


    root at OpenWrt:/lib/modules/3.10.20# cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 00200000 00010000 "al_boot"
    mtd1: 00100000 00010000 "device_tree"
    mtd2: 00800000 00010000 "Kernel"
    mtd3: 01000000 00010000 "rootfs"
    mtd4: 00bb0000 00010000 "rootfs_data"
    mtd5: 00500000 00010000 "storage"


    Can someone guide me.

    Thanks
    Mani



More information about the Lede-dev mailing list