This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Why UBIFS rootfs mounts read only

Other Parts Discussed in Thread: AM3517, AM3505

Hi, I am trying to boot UBIFS based rootfs on NAND flash. 

Upon mounting, I found the rootfs is mounted readonly without any messages.. 
My kernel command line parameters are as below. 
setenv bootargs console=ttyO2,115200n8 rootfstype=ubifs rw ubi.mtd=10,2048  root=ubi0:rootfs; setenv nandargs setenv bootargs console=ttyO2,115200n8 rootfstype=ubifs rw ubi.mtd=10,2048 root=ubi0:rootfs;
saveenv;
Here is the fstab entry 
proc                 /proc                proc       defaults             0  0
/dev/mtdblock12      /mnt/readerconfig    jffs2      rw,exec,noatime      0  0 
/dev/mtdblock15      /mnt/data            jffs2      rw,exec,noatime      0  0 
tmpfs                /var                 tmpfs      defaults             0  0
tmpfs                /tmp                 tmpfs      defaults             0  0
tmpfs                /media/ram           tmpfs      defaults             0  0
sysfs                /sys                 sysfs      nosuid,noexec,nodev  0  0
# uncomment this if your device has a SD/MMC/Transflash slot
#/dev/mmcblk0p1       /media/card          auto       defaults,sync,noauto 0  0
usbfs                /proc/bus/usb        usbfs      defaults              0  0
none                 /dev/pts             devpts     defaults              0  0 
Here is the inittab 
::sysinit:/bin/mount -t proc proc /proc
::sysinit:/bin/mount -o remount,rw /
::sysinit:/bin/mkdir -p /dev/pts
::sysinit:/bin/mount -a
::sysinit:/etc/init.d/rcS
::respawn:/sbin/getty 115200 ttyO2
# Stuff to do when restarting the init process
::restart:/sbin/init
# Stuff to do before rebooting
::shutdown:/bin/cp /var/log/syslog /mnt/readerconfig/LOGGER.DB
::ctrlaltdel:/sbin/reboot
::shutdown:/bin/umount -a -r
~                               
Also, I flashed image after erasing the partion followed by ubiformat. 
mkfs.ubifs -m 2048 -e 126976 -c 3200 -r /home/mvdev/workspace/sqfs/tmp/work/ti-omap3-am3517-evm-mv-linux/small-image-1.0-r0/rootfs   ubifs.img

ubinize -o rootfs.ubi.img -m 2048 -p 128KiB -s 512 -O 2048 ./ubinize.cfg

flash_eraseall /dev/mtd10

ubiformat /dev/mtd10 -f /tmp/rootfs.ubi.img -s 512 -O 2048

setenv bootargs console=ttyO2,115200n8 ubi.mtd=10,2048 rootfstype=ubifs root=ubi0:rootfs rw ;

setenv nandargs setenv bootargs console=ttyO2,115200n8 ubi.mtd=10,2048 rootfstype=ubifs root=ubi0:rootfs rw ;

saveenv;

Here is the complete boot log, any help would be appreciated. 
NAND read: device 0 offset 0x700000, size 0x500000
 5242880 bytes read: OK
mot_setbootargs: console=ttyO2,115200n8 rootfstype=ubifs rw ubi.mtd=10,2048 root=ubi0:rootfs mothw=0 ubootver=91.1.1 eth=00:15:70:cd:3a:a2
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-2.6.32.8.ti-omap3-am3517-e
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1986756 Bytes = 1.9 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
Thredbo: Starting kernel ...
Uncompressing Linux................................................................................................................................... done, booting the kernel.
Thredbo kernel version: 1.1.3
Linux version 2.6.32.8.ti-omap3-am3517-evm (mvdev@MVista) (gcc version 4.4.1 (MontaVista Linux Sourcery G++ 4.4-312) ) #69 PREEMPT Thu May 9 13:49:58 EDT 2013
CPU: ARMv7 Processor [411fc087] revision 7 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: OMAP3517/AM3517 EVM
Memory policy: ECC disabled, Data cache writeback
AM3505 ES3.1 (l2cache iva neon isp )
SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x100000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Thredbo: Kernel command line: console=ttyO2,115200n8 rootfstype=ubifs rw ubi.mtd=10,2048 root=ubi0:rootfs mothw=0 ubootver=91.1.1 eth=00:15:70:cd:3a:a2
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 255488KB available (3692K code, 335K data, 140K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:368
Clocking rate (Crystal/Core/MPU): 26.0/332/600 MHz
GPMC revision 5.0
IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
Total of 96 interrupts on 1 active controller
OMAP GPIO hardware version 2.5
OMAP clockevent source: GPTIMER1 at 32768 Hz
Console: colour dummy device 80x30
Calibrating delay loop... 597.64 BogoMIPS (lpj=2334720)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
saved_command_line=console=ttyO2,115200n8 rootfstype=ubifs rw ubi.mtd=10,2048 root=ubi0:rootfs mothw=0 ubootver=91.1.1 eth=00:15:70:cd:3a:a2
uboot ver=0x005b0101
Thredbo hardware detected, ID=0
devtmpfs: initialized
NET: Registered protocol family 16
omap_serial_init_port: port 0 dma_enabled 1
omap_serial_init_port: port 1 dma_enabled 1
omap_serial_init_port: port 2 dma_enabled 1
Display initialized successfully
OMAP DMA hardware revision 4.0
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c_omap i2c_omap.1: bus 1 rev3.12 at 400 kHz
Bluetooth: Core ver 2.15
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Switching to clocksource 32k_counter
musb_hdrc: version 6.0, cppi4.1-dma, host, debug=0
AM3517 OTG revision 4ea41001, PHY b0036a2, control 00
musb_hdrc: USB Host mode controller at d0810000 using DMA, IRQ 71
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: MUSB HDRC host driver
usb usb1: Manufacturer: Linux 2.6.32.8.ti-omap3-am3517-evm musb-hcd
usb usb1: SerialNumber: musb_hdrc
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
LTTng will clear ccnt top bit every 229 jiffies.
AM3505  Linux PSP version 03.00.00.05 (AM3517EVM)
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
yaffs May  9 2013 13:44:34 Installing.
msgmni has been set to 499
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
motdio_init_module
thredboio: total 46 dios
omap-hsuart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
omap-hsuart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
omap-hsuart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
console [ttyO2] enabled
loop: module loaded
omap2-nand driver initializing
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xb3 (Micron NAND 1GiB 1,8V 16-bit)
Creating 16 MTD partitions on "omap2-nand.0":
0x000000000000-0x000000020000 : "xloader1"
0x000000020000-0x000000040000 : "xloader2"
0x000000040000-0x000000080000 : "reserved"
0x000000080000-0x000000100000 : "uboot1"
0x000000100000-0x000000180000 : "uboot2"
0x000000180000-0x0000001a0000 : "bootdata1"
0x0000001a0000-0x0000001c0000 : "bootdata2"
0x0000001c0000-0x000000200000 : "reserved"
0x000000200000-0x000000700000 : "linux kernel1"
0x000000700000-0x000000c00000 : "linux kernel2"
0x000000c00000-0x000019c00000 : "rootfs_1"
0x000019c00000-0x000032c00000 : "rootfs_2"
0x000032c00000-0x000033000000 : "readerconfig"
0x000033000000-0x000037000000 : "platform1"
0x000037000000-0x00003b000000 : "platform2"
0x00003b000000-0x000040000000 : "data"
UBI: attaching mtd10 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd10 to ubi0
UBI: MTD device name:            "rootfs_1"
UBI: MTD device size:            400 MiB
UBI: number of good PEBs:        3200
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 3200
UBI: number of PEBs reserved for bad PEB handling: 32
UBI: max/mean erase counter: 1/0
UBI: image sequence number: 0
UBI: background thread "ubi_bgt0d" started, PID 341
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
usbcore: registered new interface driver asix
usbcore: registered new interface driver cdc_ether
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 2
ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: OMAP-EHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.32.8.ti-omap3-am3517-evm ehci_hcd
usb usb2: SerialNumber: ehci-omap.0
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbtest
udc: OMAP UDC driver, version: 4 October 2004 (iso) (dma)
#ds1339_probe: Thredbo ds1339 driver
ds1339_probe ds1339_get_datetime success
rtc-ds1339 1-0068: rtc core: registered rtc-ds1339 as rtc0
i2c /dev entries driver
OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
Bluetooth: Generic Bluetooth USB driver ver 0.6
usbcore: registered new interface driver btusb
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
IPv4 over IPv4 tunneling driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
Bluetooth: L2CAP ver 2.14
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
Power Management for TI OMAP3.
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1
Valid mac: 00:15:70:cd:3a:a2
davinci_emac_probe: using saved MAC addr: 00:15:70:cd:3a:a2
emac-mii: probed
rtc-ds1339 1-0068: rtc_hctosys: setting system clock to 2013-05-11 03:29:12 UTC (1368242952)
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS: file system size:   400355328 bytes (390972 KiB, 381 MiB, 3153 LEBs)
UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  0 bytes (0 KiB)
VFS: Mounted root (ubifs filesystem) on device 0:14.
devtmpfs: mounted
Freeing init memory: 140K
init started: BusyBox v1.13.2 (2013-01-09 12:22:37 IST)
can't open /dev/proc: No such file or directory
can't open /dev/rwmo: No such file or directory
can't open /dev/dpts: No such file or directory
can't open /dev/moun: No such file or directory
starting pid 390, tty '': '/etc/init.d/rcS'
hostname: permission denied. (are you root?)
ifup: interface eth0 already configured
Starting syslogd/klogd: ifup: interface lo already configured
starting pid 402, tty '': '/sbin/getty 115200 ttyO2'
Executing thredbo startup script...
====================================
done
Starting OpenBSD Secure Shell server: sshd
ERROR: Failed to open /dev/mtdblock5 in r+ mode
.Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
..++++++
...................++++++
Segmentation fault
chmod: /platform/bin/*: No such file or directory
chmod: /platform/bin/mfgreset.elf: No such file or directory
./InitThredboScript.sh: line 20: /platform/bin/mfgreset.elf: not found
chmod: /platform/bin/mfgreset.elf: No such file or directory
./InitThredboScript.sh: line 24: /readerconfig/networkscript.sh: not found
/usr/local/avahi/sbin/avahi-autoipd: error while loading shared libraries: libdaemon.so.0: cannot open shared object file: No such file or directory
./InitThredboScript.sh: line 32: /platform/bin/snmpextagent.elf: not found
AH00526: Syntax error on line 220 of /usr/local/apache2/conf/httpd.conf:
DocumentRoot must be a directory
AH00526: Syntax error on line 220 of /usr/local/apache2/conf/httpd.conf:
DocumentRoot must be a directory
./InitThredboScript.sh: line 43: /platform/bin/rmserver.elf: not found
./InitThredboScript.sh: line 41: /platform/bin/llrpserver.elf: not found
pfkey_open: Operation not permitted
./InitThredboScript.sh: line 56: /platform/bin/RDMPAgent: not found
ifconfig: SIOCSIFADDR: Permission denied
Starting applications....
racoon: must be root to invoke this program.
chmod: /apps/autostart.sh: No such file or directory
su: can't set groups: Operation not permitted
ifconfig: /proc/net/dev: No such file or directory
cat: can't open '/sys/class/net/eth0/carrier': No such file or directory
ifconfig: /proc/net/dev: No such file or directory
cat: can't open '/sys/class/net/eth0/carrier': No such file or directory
ifconfig: /proc/net/dev: No such file or directory
cat: can't open '/sys/class/net/eth0/carrier': No such file or directory
ifconfig: /proc/net/dev: No such file or directory
^Ccat: can't open '/sys/class/net/eth0/carrier': No such file or directory
ifconfig: /proc/net/dev: No such file or directory
cat: can't open '/sys/class/net/eth0/carrier': No such file or directory
ifconfig: /proc/net/dev: No such file or directory
cat: can't open '/sys/class/net/eth0/carrier': No such file or directory
ifconfig: /proc/net/dev: No such file or directory
process '/sbin/getty 115200 ttyO2' (pid 402) exited. Scheduling for restart.
starting pid 490, tty '': '/sbin/getty 115200 ttyO2'
ecat: can't open '/sys/class/net/eth0/carrier': No such file or directory
ifconfig: /proc/net/dev: No such file or directory
boot
cat: can't open '/sys/class/net/eth0/carrier': No such file or directory
ifconfig: /proc/net/dev: No such file or directory
cat: can't open '/sys/class/net/eth0/carrier': No such file or directory
ifconfig: /proc/net/dev: No such file or directory
cat: can't open '/sys/class/net/eth0/carrier': No such file or directory
ifconfig: /proc/net/dev: No such file or directory
cat: can't open '/sys/class/net/eth0/carrier': No such file or directory
ifconfig: /proc/net/dev: No such file or directory
cat: can't open '/sys/class/net/eth0/carrier': No such file or directory
ifconfig: /proc/net/dev: No such file or directory
cat: can't open '/sys/class/net/eth0/carrier': No such file or directory
ifconfig: /proc/net/dev: No such file or directory
cat: can't open '/sys/class/net/eth0/carrier': No such file or directory
ifconfig: /proc/net/dev: No such file or directory
cat: can't open '/sys/class/net/eth0/carrier': No such file or directory
ifconfig: /proc/net/dev: No such file or directory
cat: can't open '/sys/class/net/eth0/carrier': No such file or directory
....
  • Even I'm facing the same problem but on Atmel SAMA5D3. Admin please pardon me for posting Non-TI post but I felt it might be relevant.
    Pasting full log below for reference. I initially suspected bootargs length limit but I don't think that is the problem.


    Starting kernel ...

    Booting Linux on physical CPU 0
    Linux version 3.6.9 (root@hpro-wc-vm) (gcc version 4.6.3 (Sourcery CodeBench Lite 2012.03-57) ) #3 PREEMPT Fri Jun 24 17:14:18 IST 2016
    Machine: Atmel SAMA5 (Device Tree), model: Atmel SAMA5D31-EK
    AT91: Detected soc type: sama5d3
    AT91: Detected soc subtype: sama5d31
    AT91: sram at 0x300000 of 0x20000 mapped at 0xfef58000
    Kernel command line: console=ttyS0,115200 earlyprintk mtdparts=atmel_nand:128k(img_selector),128k(uboot_env),128K(dtb_prim),128K(dtb_sec),2M(kernel_prim),2M(kernel_sec),40M(rootfs_prim),40M(rootfs_sec),-(user_data) root=ubi0:rootfs rw,noatime rootfstype=ubifs ubi.mtd=7
    PID hash table entries: 256 (order: -2, 1024 bytes)
    Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
    Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
    Memory: 64MB = 64MB total
    Memory: 61388k/61388k available, 4148k reserved, 0K highmem
    Virtual kernel memory layout:
    vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
    lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
    modules : 0xbf000000 - 0xc0000000 ( 16 MB)
    .text : 0xc0008000 - 0xc0316000 (3128 kB)
    .init : 0xc0316000 - 0xc0333304 ( 117 kB)
    .data : 0xc0334000 - 0xc0353480 ( 126 kB)
    .bss : 0xc03534a4 - 0xc0362764 ( 61 kB)
    NR_IRQS:16 nr_irqs:16 16
    sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
    Console: colour dummy device 80x30
    Calibrating delay loop... 262.96 BogoMIPS (lpj=1314816)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    Setting up static identity map for 0x2027e2c8 - 0x2027e2fc
    devtmpfs: initialized
    pinctrl core: initialized pinctrl subsystem
    NET: Registered protocol family 16
    DMA: preallocated 256 KiB pool for atomic coherent allocations
    gpio-at91 fffff200.gpio: at address fefff200
    gpio-at91 fffff400.gpio: at address fefff400
    gpio-at91 fffff600.gpio: at address fefff600
    gpio-at91 fffff800.gpio: at address fefff800
    gpio-at91 fffffa00.gpio: at address fefffa00
    pinctrl-at91 pinctrl.3: initialized AT91 pinctrl driver
    bio: create slab <bio-0> at 0
    at_hdmac ffffe600.dma-controller: Atmel AHB DMA Controller ( cpy slave ), 8 channels
    at_hdmac ffffe800.dma-controller: Atmel AHB DMA Controller ( cpy slave ), 8 channels
    /ahb/apb/i2c@f0014000: can't parse dma property (-2)
    at91_i2c f0014000.i2c: AT91 i2c bus driver.
    at91_i2c f0018000.i2c: Failed to request pinctrl
    Switching to clocksource pit
    NET: Registered protocol family 2
    TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    TCP: Hash tables configured (established 2048 bind 2048)
    TCP: reno registered
    UDP hash table entries: 256 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
    msgmni has been set to 119
    Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    f0020000.serial: ttyS2 at MMIO 0xf0020000 (irq = 23) is a ATMEL_SERIAL
    ffffee00.serial: ttyS0 at MMIO 0xffffee00 (irq = 36) is a ATMEL_SERIAL
    console [ttyS0] enabled
    atmel_nand 60000000.nand: Using NFC
    atmel_nand: Use On Flash BBT
    atmel_nand 60000000.nand: Using dma0chan0 for DMA transfers.
    ONFI param page 0 valid
    ONFI flash detected
    NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD S34ML01G1), page size: 2048, OOB size: 64
    atmel_nand 60000000.nand: ONFI params, minimum required ECC: 1 bits in 512 bytes
    atmel_nand 60000000.nand: WARNING: Be Caution! Using different PMECC parameters from Nand ONFI ECC reqirement.
    atmel_nand 60000000.nand: Initialize PMECC params, cap: 4, sector: 512
    atmel_nand 60000000.nand: Using NFC Sram
    Bad block table found at page 65472, version 0x01
    Bad block table found at page 65408, version 0x01
    9 cmdlinepart partitions found on MTD device atmel_nand
    Creating 9 MTD partitions on "atmel_nand":
    0x000000000000-0x000000020000 : "img_selector"
    0x000000020000-0x000000040000 : "uboot_env"
    0x000000040000-0x000000060000 : "dtb_prim"
    0x000000060000-0x000000080000 : "dtb_sec"
    0x000000080000-0x000000280000 : "kernel_prim"
    0x000000280000-0x000000480000 : "kernel_sec"
    0x000000480000-0x000002c80000 : "rootfs_prim"
    0x000002c80000-0x000005480000 : "rootfs_sec"
    0x000005480000-0x000008000000 : "user_data"
    UBI: attaching mtd7 to ubi0
    UBI: physical eraseblock size: 131072 bytes (128 KiB)
    UBI: logical eraseblock size: 126976 bytes
    UBI: smallest flash I/O unit: 2048
    UBI: VID header offset: 2048 (aligned 2048)
    UBI: data offset: 4096
    UBI: max. sequence number: 0
    UBI: volume 0 ("rootfs") re-sized from 105 to 310 LEBs
    UBI: attached mtd7 to ubi0
    UBI: MTD device name: "rootfs_sec"
    UBI: MTD device size: 40 MiB
    UBI: number of good PEBs: 320
    UBI: number of bad PEBs: 0
    UBI: number of corrupted PEBs: 0
    UBI: max. allowed volumes: 128
    UBI: wear-leveling threshold: 4096
    UBI: number of internal volumes: 1
    UBI: number of user volumes: 1
    UBI: available PEBs: 0
    UBI: total number of reserved PEBs: 320
    UBI: number of PEBs reserved for bad PEB handling: 6
    UBI: max/mean erase counter: 1/0
    UBI: image sequence number: 1202559736
    UBI: background thread "ubi_bgt0d" started, PID 306
    atmel_spi f0004000.spi: Using dma0chan1 (tx) and dma0chan2 (rx) for DMA transfers
    atmel_spi f0004000.spi: Atmel SPI Controller at 0xf0004000 (irq 18)
    atmel_spi f0004000.spi: master is unqueued, this is deprecated
    atmel_spi f8008000.spi: Using dma1chan0 (tx) and dma1chan1 (rx) for DMA transfers
    atmel_spi f8008000.spi: Atmel SPI Controller at 0xf8008000 (irq 26)
    atmel_spi f8008000.spi: master is unqueued, this is deprecated
    libphy: MACB_mii_bus: probed
    macb f802c000.ethernet: eth0: Cadence MACB at 0xf802c000 irq 30 (00:0f:d4:01:e4:a5)
    macb f802c000.ethernet: eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=f802c000.etherne:00, irq=-1)
    at91_rtc fffffeb0.rtc: rtc core: registered fffffeb0.rtc as rtc0
    AT91 Real Time Clock driver.
    i2c /dev entries driver
    TCP: cubic registered
    NET: Registered protocol family 17
    VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1
    at91_rtc fffffeb0.rtc: setting system clock to 2007-01-01 00:14:24 UTC (1167610464)
    UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    UBIFS: mounted read-only
    UBIFS: file system size: 37965824 bytes (37076 KiB, 36 MiB, 299 LEBs)
    UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
    UBIFS: media format: w4/r0 (latest is w4/r0)
    UBIFS: default compressor: lzo
    UBIFS: reserved for root: 0 bytes (0 KiB)
    VFS: Mounted root (ubifs filesystem) readonly on device 0:10.
    devtmpfs: mounted
    Freeing init memory: 116K
    Installing sysctl to reboot on Kernel crash and OOM_Killer
    /etc/init.d/S00fsmounter: line 4: can't create /proc/sys/kernel/panic_on_oops: nonexistent directory
    /etc/init.d/S00fsmounter: line 6: can't create /proc/sys/kernel/panic: nonexistent directory
    /etc/init.d/S00fsmounter: line 8: can't create /proc/sys/vm/panic_on_oom: nonexistent directory
    Mounting user_data partition
    mkdir: can't create directory '/mnt/': Read-only file system
    /etc/init.d/S00fsmounter: line 11: ubiattach: not found
    /etc/init.d/S00fsmounter: line 12: ubimkvol: not found
    mount: mounting ubi1:user_data on /mnt/user_data failed: No such file or directory
    Extracting firmware images
    unxz: can't open '/usr/bin/wallcontroller.out': Read-only file system
    unxz: can't open '/usr/bin/AssemblyTesterBtnLcd': Read-only file system
    chmod: /etc/ssh_config: Read-only file system
    chmod: /etc/ssh_host_dsa_key: Read-only file system
    chmod: /etc/ssh_host_dsa_key.pub: Read-only file system
    chmod: /etc/ssh_host_ecdsa_key: Read-only file system
    chmod: /etc/ssh_host_ecdsa_key.pub: Read-only file system
    chmod: /etc/ssh_host_key: Read-only file system
    chmod: /etc/ssh_host_key.pub: Read-only file system
    chmod: /etc/ssh_host_rsa_key: Read-only file system
    chmod: /etc/ssh_host_rsa_key.pub: Read-only file system
    chmod: /etc/shadow: Read-only file system
    chmod: /etc/group: Read-only file system
    chmod: /etc/passwd: Read-only file system
    udhcpc (v1.20.2) started
    grep: /proc/cmdline: No such file or directory
    grep: /proc/cmdline: No such file or directory
    Failed to kill daemon: No such file or directory
    Sending discover...
    udhcpc: sendto: Network is down
    Read error: Network is down, reopening socket
    No lease, forking to background
    Starting logging: Jan 1 00:14:26 buildroot syslog.info syslogd started: BusyBox v1.20.2
    OK
    Jan 1 00:14:26 buildroot user.notice kernel: klogd started: BusyBox v1.20.2 (2016-06-28 12:22:54 IST)
    Jan 1 00:14:26 buildroot user.info kernel: Booting Linux on physical CPU 0
    Jan 1 00:14:26 buildroot user.notice kernel: Linux version 3.6.9 (root@hpro-wc-vm) (gcc version 4.6.3 (Sourcery CodeBench Lite 2012.03-57) ) #3 PREEMPT Fri Jun 24 17:14:18 IST 2016
    Jan 1 00:14:26 buildroot user.debug kernel: CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d
    Jan 1 00:14:26 buildroot user.debug kernel: CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Jan 1 00:14:26 buildroot user.info kernel: Machine: Atmel SAMA5 (Device Tree), model: Atmel SAMA5D31-EK
    Jan 1 00:14:26 buildroot user.debug kernel: Memory policy: ECC disabled, Data cache writeback
    Jan 1 00:14:26 buildroot user.info kernel: AT91: Detected soc type: sama5d3
    Jan 1 00:14:26 buildroot user.info kernel: AT91: Detected soc subtype: sama5d31
    Jan 1 00:14:26 buildroot user.info kernel: AT91: sram at 0x300000 of 0x20000 mapped at 0xfef58000
    Jan 1 00:14:26 buildroot user.debug kernel: On node 0 totalpages: 16384
    Jan 1 00:14:26 buildroot user.debug kernel: free_area_init_node: node 0, pgdat c03528bc, node_mem_map c0363000
    Jan 1 00:14:26 buildroot user.debug kernel: Normal zone: 128 pages used for memmap
    Jan 1 00:14:26 buildroot user.debug kernel: Normal zone: 0 pages reserved
    Jan 1 00:14:26 buildroot user.debug kernel: Normal zone: 16256 pages, LIFO batch:3
    Jan 1 00:14:26 buildroot user.debug kernel: Clocks: CPU 528 MHz, master 132 MHz, main 12.000 MHz
    Jan 1 00:14:26 buildroot user.debug kernel: pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    Jan 1 00:14:26 buildroot user.debug kernel: pcpu-alloc: [0] 0
    Jan 1 00:14:26 buildroot user.debug kernel: Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
    Jan 1 00:14:26 buildroot user.notice kernel: Kernel command line: console=ttyS0,115200 earlyprintk mtdparts=atmel_nand:128k(img_selector),128k(uboot_env),128K(dtb_prim),128K(dtb_sec),2M(kernel_prim),2M(kernel_sec),40M(rootfs_prim),40M(rootfs_sec),-(user_data) root=ubi0:ro
    Jan 1 00:14:26 buildroot user.info kernel: PID hash table entries: 256 (order: -2, 1024 bytes)
    Jan 1 00:14:26 buildroot user.info kernel: Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
    Jan 1 00:14:26 buildroot user.info kernel: Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
    Jan 1 00:14:26 buildroot user.info kernel: Memory: 64MB = 64MB total
    Jan 1 00:14:26 buildroot user.notice kernel: Memory: 61388k/61388k available, 4148k reserved, 0K highmem
    Jan 1 00:14:26 buildroot user.notice kernel: Virtual kernel memory layout:
    Jan 1 00:14:26 buildroot user.notice kernel: vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    Jan 1 00:14:26 buildroot user.notice kernel: fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    Jan 1 00:14:26 buildroot user.notice kernel: vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
    Jan 1 00:14:26 buildroot user.notice kernel: lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
    Jan 1 00:14:26 buildroot user.notice kernel: modules : 0xbf000000 - 0xc0000000 ( 16 MB)
    Jan 1 00:14:26 buildroot user.notice kernel: .text : 0xc0008000 - 0xc0316000 (3128 kB)
    Jan 1 00:14:26 buildroot user.notice kernel: .init : 0xc0316000 - 0xc0333304 ( 117 kB)
    Jan 1 00:14:26 buildroot user.notice kernel: .data : 0xc0334000 - 0xc0353480 ( 126 kB)
    Jan 1 00:14:26 buildroot user.notice kernel: .bss : 0xc03534a4 - 0xc0362764 ( 61 kB)
    Jan 1 00:14:26 buildroot user.info kernel: NR_IRQS:16 nr_irqs:16 16
    Jan 1 00:14:26 buildroot user.info kernel: sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
    Jan 1 00:14:26 buildroot user.info kernel: Console: colour dummy device 80x30
    Jan 1 00:14:26 buildroot user.info kernel: Calibrating delay loop... 262.96 BogoMIPS (lpj=1314816)
    Jan 1 00:14:26 buildroot user.info kernel: pid_max: default: 32768 minimum: 301
    Jan 1 00:14:26 buildroot user.info kernel: Mount-cache hash table entries: 512
    Jan 1 00:14:26 buildroot user.info kernel: CPU: Testing write buffer coheJan 1 00:14:26 buildroot user.notice kernel: UBI: number of bad PEBs: 0
    Jan 1 00:14:26 buildroot user.notice kernel: UBI: number of corrupted PEBs: 0
    Jan 1 00:14:26 buildroot user.notice kernel: UBI: max. allowed volumes: 128
    Jan 1 00:14:26 buildroot user.notice kernel: UBI: wear-leveling threshold: 4096
    Jan 1 00:14:26 buildroot user.notice kernel: UBI: number of internal volumes: 1
    Jan 1 00:14:26 buildroot user.notice kernel: UBI: number of user volumes: 1
    Jan 1 00:14:26 buildroot user.notice kernel: UBI: available PEBs: 0
    Jan 1 00:14:26 buildroot user.notice kernel: UBI: total number of reserved PEBs: 320
    Jan 1 00:14:26 buildroot user.notice kernel: UBI: number of PEBs reserved for bad PEB handling: 6
    Jan 1 00:14:26 buildroot user.notice kernel: UBI: max/mean erase counter: 1/0
    Jan 1 00:14:26 buildroot user.notice kernel: UBI: image sequence number: 1202559736
    Jan 1 00:14:26 buildroot user.notice kernel: UBI: background thread "ubi_bgt0d" started, PID 306
    Jan 1 00:14:26 buildroot user.info kernel: atmel_spi f0004000.spi: Using dma0chan1 (tx) and dma0chan2 (rx)
  • Does these 2 links answers your question?
    www.linux-mtd.infradead.org/.../ubifs.html
    www.linux-mtd.infradead.org/.../ubifs.html

    Could you make the debug messages more verbose in order to gather more information?
    www.linux-mtd.infradead.org/.../ubi.html