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.

Linux/AM3351: Ubifs mount issue

Part Number: AM3351
Other Parts Discussed in Thread: AM3352, TPS65217

Tool/software: Linux

To Ti experts:

Right now; we were able to bootup our AM3351 board with squashFS from NAND partition 7. 

Our device has 128MB NAND and we were using SDK V03.00.00.04 for software development.

Due to the read-only for squashFS rootfs, we created another UBIFS in NAND partition-6 to store some extra data.

This UBIFS was created by Ti SDK, create_ubifs.sh. 

Below is the unionize.cfg for this user_data.ubifs. 

[ubifs]
mode=ubi
image=./user_data.ubifs
vol_id=0
vol_type=dynamic
vol_name=rootfs
vol_flags=autoresize

We got an error when trying to mount this /dev/mtd6 to the RAM disk.

Below is the log from board bootup to the ubifs mount command.

U-Boot 2016.05-00230-g120a8a3-dirty (Nov 16 2017 - 15:19:47 +0800)

Watchdog enabled
I2C: ready
DRAM: 256 MiB
NAND: 128 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Error - No Valid Environment Area found
*** Warning - bad CRC, using default environment

Could not get board ID.
<ethaddr> not set. Validating first E-fuse MAC
Net: eth0: ethernet@4a100000
Warning: usb_ether MAC addresses don't match:
Address in SROM is de:ad:be:ef:00:01
Address in environment is 90:70:65:c3:4d:d4
, eth1: usb_ether
Press SPACE to abort autoboot in 2 seconds
=> nand erase.part NAND.APP-Config

NAND erase.part: device 0 offset 0x960000, size 0x300000
Erasing at 0xc40000 -- 100% complete.
OK
=> ls mmc 0:2 home/root
<DIR> 4096 .
<DIR> 4096 ..
73364 MLO
638244 u-boot.img
61 uEnv.txt
131072 MLO.txt
131072 am335x-bonegreen-wireless.txt
2097152 user_data.ubi
=> ext4
ext4load ext4ls ext4size ext4write
=> ext4load mmc 0:2 0x81000000 home/root/user_data.ubi
2097152 bytes read in 181 ms (11 MiB/s)
=> nand write 0x81000000 NAND.APP-Config

NAND write: device 0 offset 0x960000, size 0x300000
3145728 bytes written: OK
=>
=>
=>
=>
=>
=> run nandboot
Booting from nand ...

NAND read: device 0 offset 0x20000, size 0x20000
131072 bytes read: OK

NAND read: device 0 offset 0x160000, size 0x400000
4194304 bytes read: OK
Kernel image @ 0x82000000 [ 0x000000 - 0x3878a0 ]
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 8ef1e000, end 8ef2a1c1 ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.12-g3639bea54a (albertc@albertc-RD1) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #2 PREEMPT Wed Nov 15 16:33:50 CST 2017
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: TI AM335x D-Link/Alpha Model DCH-G601
[ 0.000000] cma: Reserved 24 MiB at 0x8d000000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64960
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mtdblock7 rw noinitrd rootfstype=squashfs rootdelay=1
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 224280K/262144K available (7179K kernel code, 295K rwdata, 2464K rodata, 288K init, 263K bss, 13288K reserved, 24576K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xd0800000 - 0xff800000 ( 752 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0973034 (9645 kB)
[ 0.000000] .init : 0xc0974000 - 0xc09bc000 ( 288 kB)
[ 0.000000] .data : 0xc09bc000 - 0xc0a05c98 ( 296 kB)
[ 0.000000] .bss : 0xc0a07000 - 0xc0a48f68 ( 264 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000017] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000045] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000057] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000576] clocksource_probe: no matching clocksources found
[ 0.000787] Console: colour dummy device 80x30
[ 0.000820] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[ 0.000828] This ensures that you still see kernel messages. Please
[ 0.000835] update your kernel commandline.
[ 0.000854] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[ 0.058769] pid_max: default: 32768 minimum: 301
[ 0.058936] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.058951] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.059782] Initializing cgroup subsys io
[ 0.059820] Initializing cgroup subsys memory
[ 0.059858] Initializing cgroup subsys devices
[ 0.059877] Initializing cgroup subsys freezer
[ 0.059894] Initializing cgroup subsys perf_event
[ 0.059910] Initializing cgroup subsys pids
[ 0.059946] CPU: Testing write buffer coherency: ok
[ 0.060387] Setting up static identity map for 0x80008200 - 0x80008258
[ 0.063077] devtmpfs: initialized
[ 0.077255] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.095656] omap_hwmod: debugss: _wait_target_disable failed
[ 0.099708] omap_hwmod: d_can0: _wait_target_ready failed: -16
[ 0.099722] omap_hwmod: d_can0: cannot be enabled for reset (3)
[ 0.102908] omap_hwmod: d_can1: _wait_target_ready failed: -16
[ 0.102918] omap_hwmod: d_can1: cannot be enabled for reset (3)
[ 0.159328] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.161883] pinctrl core: initialized pinctrl subsystem
[ 0.163497] NET: Registered protocol family 16
[ 0.166243] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.188830] cpuidle: using governor ladder
[ 0.218818] cpuidle: using governor menu
[ 0.224833] OMAP GPIO hardware version 0.1
[ 0.235311] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_s0, deferring probe
[ 0.237935] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.280069] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.284363] vgaarb: loaded
[ 0.285099] SCSI subsystem initialized
[ 0.285493] usbcore: registered new interface driver usbfs
[ 0.285588] usbcore: registered new interface driver hub
[ 0.285715] usbcore: registered new device driver usb
[ 0.286398] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[ 0.286466] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
[ 0.286613] media: Linux media interface: v0.10
[ 0.286693] Linux video capture interface: v2.00
[ 0.286768] pps_core: LinuxPPS API ver. 1 registered
[ 0.286779] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.286818] PTP clock support registered
[ 0.287086] EDAC MC: Ver: 3.0.0
[ 0.288526] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.289024] Advanced Linux Sound Architecture Driver Initialized.
[ 0.290526] clocksource: Switched to clocksource timer1
[ 0.304853] NET: Registered protocol family 2
[ 0.305796] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.305842] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.305879] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.305968] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.305994] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.306179] NET: Registered protocol family 1
[ 0.306627] RPC: Registered named UNIX socket transport module.
[ 0.306646] RPC: Registered udp transport module.
[ 0.306655] RPC: Registered tcp transport module.
[ 0.306664] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.307822] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.310296] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.321230] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.322267] NFS: Registering the id_resolver key type
[ 0.322343] Key type id_resolver registered
[ 0.322354] Key type id_legacy registered
[ 0.322458] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.324954] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.324991] io scheduler noop registered
[ 0.325012] io scheduler deadline registered
[ 0.325218] io scheduler cfq registered (default)
[ 0.327179] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.412077] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[ 0.417289] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[ 1.085985] console [ttyS0] enabled
[ 1.091026] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 159, base_baud = 3000000) is a 8250
[ 1.101285] [drm] Initialized drm 1.1.0 20060810
[ 1.116633] loop: module loaded
[ 1.123501] libphy: Fixed MDIO Bus: probed
[ 1.129343] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[ 1.136965] usbcore: registered new interface driver pegasus
[ 1.142779] usbcore: registered new interface driver asix
[ 1.148271] usbcore: registered new interface driver ax88179_178a
[ 1.154496] usbcore: registered new interface driver cdc_ether
[ 1.160446] usbcore: registered new interface driver smsc75xx
[ 1.166334] usbcore: registered new interface driver smsc95xx
[ 1.172198] usbcore: registered new interface driver net1080
[ 1.177949] usbcore: registered new interface driver cdc_subset
[ 1.183986] usbcore: registered new interface driver zaurus
[ 1.189721] usbcore: registered new interface driver cdc_ncm
[ 1.196264] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.202879] ehci-pci: EHCI PCI platform driver
[ 1.207423] ehci-platform: EHCI generic platform driver
[ 1.212923] ehci-omap: OMAP-EHCI Host Controller driver
[ 1.218314] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.224594] ohci-pci: OHCI PCI platform driver
[ 1.229146] ohci-platform: OHCI generic platform driver
[ 1.235038] usbcore: registered new interface driver usb-storage
[ 1.241641] mousedev: PS/2 mouse device common for all mice
[ 1.248368] i2c /dev entries driver
[ 1.254049] cpuidle: enable-method property 'ti,am3352' found operations
[ 1.261130] sdhci: Secure Digital Host Controller Interface driver
[ 1.267343] sdhci: Copyright(c) Pierre Ossman
[ 1.272273] pinctrl-single 44e10800.pinmux: pin 44e10960.0 already requested by 48302100.ecap; cannot claim for 48060000.mmc
[ 1.283598] pinctrl-single 44e10800.pinmux: pin-88 (48060000.mmc) status -22
[ 1.290706] pinctrl-single 44e10800.pinmux: could not request pin 88 (44e10960.0) from group pinmux_mmc1_pins on device pinctrl-single
[ 1.302954] omap_hsmmc 48060000.mmc: Error applying setting, reverse things back
[ 1.310677] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.387741] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.397756] mmc0: new high speed SDHC card at address 59b4
[ 1.404024] mmcblk0: mmc0:59b4 NCard 14.9 GiB
[ 1.410014] mmcblk0: p1 p2
[ 1.470864] Synopsys Designware Multimedia Card Interface Driver
[ 1.477541] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.487319] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.493793] omap_hsmmc 481d8000.mmc: card claims to support voltages below defined range
[ 1.502052] usbcore: registered new interface driver usbhid
[ 1.507652] usbhid: USB HID core driver
[ 1.514004] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.520742] NET: Registered protocol family 10
[ 1.526844] sit: IPv6 over IPv4 tunneling driver
[ 1.532815] NET: Registered protocol family 17
[ 1.537419] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.550296] Bridge firewalling registered
[ 1.554814] Key type dns_resolver registered
[ 1.559433] omap_voltage_late_init: Voltage driver support not added
[ 1.568263] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
[ 1.574056] ThumbEE CPU extension supported.
[ 1.578376] Registering SWP/SWPB emulation handler
[ 1.584178] mmc1: new high speed SDIO card at address 0001
[ 1.594137] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[ 1.599330] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 1.607214] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xf1
[ 1.613744] nand: Macronix MX30LF1G18AC
[ 1.617608] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.625292] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
[ 1.630766] 9 ofpart partitions found on MTD device 8000000.nand
[ 1.636803] Creating 9 MTD partitions on "8000000.nand":
[ 1.642172] 0x000000000000-0x000000020000 : "NAND.SPL"
[ 1.649001] 0x000000020000-0x000000040000 : "NAND.u-boot-spl-os"
[ 1.656564] 0x000000040000-0x000000140000 : "NAND.u-boot"
[ 1.663743] 0x000000140000-0x000000160000 : "NAND.u-boot-env"
[ 1.671072] 0x000000160000-0x000000560000 : "NAND.kernel-1"
[ 1.679320] 0x000000560000-0x000000960000 : "NAND.kernel-2"
[ 1.687683] 0x000000960000-0x000000c60000 : "NAND.APP-Config"
[ 1.696151] 0x000000c60000-0x000004360000 : "NAND.file-system-1"
[ 1.724192] 0x000043600000-0x000046d00000 : "NAND.file-system-2"
[ 1.730283] mtd: partition "NAND.file-system-2" is out of reach -- disabled
[ 1.761017] tps65217 0-0024: Read from reg 0x16 failed
[ 1.766201] vdds_dpr: failed to enable
[ 1.770260] tps65217 0-0024: failed to register tps65217-pmic regulator
[ 1.776959] tps65217-pmic: probe of tps65217-pmic failed with error -121
[ 1.784399] tps65217 0-0024: Failed to read revision register: -121
[ 1.790838] tps65217: probe of 0-0024 failed with error -121
[ 1.796649] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 100 kHz
[ 1.803895] at24 2-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.811212] at24 2-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.818349] at24 2-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.825604] at24 2-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.832576] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[ 1.839273] hctosys: unable to open rtc device (rtc0)
[ 1.849016] wlan-en-regulator: disabling
[ 1.853212] ALSA device list:
[ 1.856201] No soundcards found.
[ 1.860960] Waiting 1 sec before mounting root device...
[ 2.873502] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
[ 2.883141] devtmpfs: mounted
[ 2.886642] Freeing unused kernel memory: 288K (c0974000 - c09bc000)
[ 2.893125] This architecture does not have kernel memory protection.
[ 3.388537] systemd[1]: System time before build time, advancing clock.
[ 3.449068] random: systemd urandom read with 7 bits of entropy available
[ 3.485358] systemd[1]: systemd 229 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
[ 3.504493] systemd[1]: Detected architecture arm.

Welcome to Arago 2016.05!

[ 3.545626] systemd[1]: Set hostname to <am335x-evm>.
[ 3.551825] systemd[1]: Initializing machine ID from random generator.
[ 3.558826] systemd[1]: Installed transient /etc/machine-id file.
[ 3.848881] systemd[1]: [/lib/systemd/system/gadget-init.service:15] Unknown lvalue 'ExecStopPre' in section 'Service'
[ 4.039759] systemd[1]: sysinit.target: Found ordering cycle on sysinit.target/start
[ 4.047851] systemd[1]: sysinit.target: Found dependency on uim-sysfs.service/start
[ 4.055674] systemd[1]: sysinit.target: Found dependency on basic.target/start
[ 4.062980] systemd[1]: sysinit.target: Found dependency on sysinit.target/start
[ 4.070432] systemd[1]: sysinit.target: Breaking ordering cycle by deleting job uim-sysfs.service/start
[ 4.079914] systemd[1]: uim-sysfs.service: Job uim-sysfs.service/start deleted to break ordering cycle starting with sysinit.target/start
[ SKIP ] Ordering cycle found, skipping uim-sysfs.service
[ 4.117230] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 4.144206] systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
[ 4.171364] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 4.201016] systemd[1]: Reached target Swap.
[ OK ] Reached target Swap.
[ 4.221212] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 4.251656] systemd[1]: Listening on Network Service Netlink Socket.
[ OK ] Listening on Network Service Netlink Socket.
[ 4.281425] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
[ 4.312522] systemd[1]: Created slice System Slice.
[ OK ] Created slice System Slice.
[ 4.342779] systemd[1]: Created slice system-getty.slice.
[ OK ] Created slice system-getty.slice.
[ 4.371359] systemd[1]: Listening on Syslog Socket.
[ OK ] Listening on Syslog Socket.
[ 4.401239] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ 4.431338] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ 4.460932] systemd[1]: Reached target Paths.
[ OK ] Reached target Paths.
[ 4.481210] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ 4.534344] systemd[1]: Reached target Slices.
[ OK ] Reached target Slices.
[ 4.562827] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ 4.591391] systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
[ 4.626091] systemd[1]: Mounting Debug File System...
Mounting Debug File System...
[ 4.706561] systemd[1]: Starting Journal Service...
Starting Journal Service...
[ 4.806422] systemd[1]: Starting Setup Virtual Console...
Starting Setup Virtual Console...
[ 4.890356] systemd[1]: Starting Apply Kernel Variables...
Starting Apply Kernel Variables...
[ 4.937251] systemd[1]: Starting File System Check on Root Device...
Starting File System Check on Root Device...
[ 5.057016] systemd[1]: Mounting POSIX Message Queue File System...
Mounting POSIX Message Queue File System...
[ 5.146460] systemd[1]: Mounting Temporary Directory...
[ 5.260853] sch_fq_codel: disagrees about version of symbol module_layout
Mounting Temporary Directory...
[ 5.278505] systemd[1]: Starting Create list of required static device nodes for the current kernel...
Starting Create list of required st... nodes for the current kernel...
[ 5.388332] systemd[1]: Mounted Debug File System.
[ OK ] Mounted Debug File System.[ 5.417664] systemd[1]: Mounted POSIX Message Queue File System.

[ OK ] Mounted POSIX Message Queue File System.
[ 5.471253] systemd[1]: Mounted Temporary Directory.
[ OK ] Mounted Temporary Directory.
[ 5.501896] systemd[1]: Started Journal Service.
[ OK ] Started Journal Service.
[ OK ] Started Setup Virtual Console.
[ OK ] Started Apply Kernel Variables.
[ OK ] Started File System Check on Root Device.
[ OK ] Started Create list of required sta...ce nodes for the current kernel.
Starting Create Static Device Nodes in /dev...
Starting Remount Root and Kernel File Systems...
[ OK ] Started Remount Root and Kernel File Systems.
[ OK ] Started Create Static Device Nodes in /dev.
Starting udev Kernel Device Manager...
Starting Flush Journal to Persistent Storage...
[ OK ] Reached target Local File Systems (Pre).
Mounting /media/ram...
Mounting /var/volatile...
Starting udev Coldplug all Devices...
[ OK ] Mounted /var/volatile.
[ OK ] Mounted /media/ram.
[ OK ] Started udev Kernel Device Manager.
[ 8.357441] systemd-journald[74]: Received request to flush runtime journal from PID 1
[ OK ] Started Flush Journal to Persistent Storage.
Starting Bind mount volatile /var/lib...
[ OK ] Started Bind mount volatile /var/lib.
Starting Load/Save Random Seed...
[ OK ] Reached target Local File Systems.
Starting Create Volatile Files and Directories...
[ OK ] Started Load/Save Random Seed.
[FAILED] Failed to start Create Volatile Files and Directories.
See 'systemctl status systemd-tmpfiles-setup.service' for details.
[ 10.178737] musb_am335x: disagrees about version of symbol module_layout
[ 10.376075] musb_am335x: disagrees about version of symbol module_layout
[ 10.452712] rtc_omap: disagrees about version of symbol module_layout
[ 10.460517] rtc_omap: disagrees about version of symbol module_layout
[ OK ] Started udev Coldplug all Devices.
[ 10.739147] rtc_omap: disagrees about version of symbol module_layout
[ 10.952140] rtc_omap: disagrees about version of symbol module_layout
[ 11.019936] rng_core: disagrees about version of symbol module_layout
[ OK ] Found device /dev/ttyS0.
[ 11.163847] rng_core: disagrees about version of symbol module_layout
[ 11.479894] compat: disagrees about version of symbol module_layout
[ 11.486560] compat: disagrees about version of symbol module_layout
[ 11.608040] compat: disagrees about version of symbol module_layout
[ 11.621900] compat: disagrees about version of symbol module_layout
Starting Network Time Synchronization...
Starting Opkg first boot configure...
[ 12.967664] omap_sham: disagrees about version of symbol module_layout
Starting Update UTMP about System Boot/Shutdown...
[ 13.145019] omap_aes_driver: disagrees about version of symbol module_layout
[ 13.189431] omap_sham: disagrees about version of symbol module_layout
[ 13.452009] omap_aes_driver: disagrees about version of symbol module_layout
[ 14.831433] EXT4-fs (mmcblk0p2): mounting ext3 file system using the ext4 subsystem
[ OK ] Started Network Time Synchronization.
[ 14.970810] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 15.039686] EXT4-fs (mmcblk0p2): recovery complete
[ 15.085992] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Found device /dev/mmcblk0p1.
[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
Starting Synchronize System and HW clocks...
[ OK ] Reached target System Time Synchronized.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timers.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Listening on dropbear.socket.
[ OK ] Listening on RPCbind Server Activation Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
[ OK ] Started Kernel Logging Service.
Starting Login Service...
[ OK ] Started D-Bus System Message Bus.
Starting Network Service...
Starting dch-g601-host-wifi-service.service...
Starting Permit User Sessions...
[ OK ] Started System Logging Service.
Starting Start USB gadget...
[ 20.755295] compat: disagrees about version of symbol module_layout
[ OK ] Started Regular background program processing daemon.
[ 20.827972] compat: disagrees about version of symbol module_layout
[ OK ] Started DCH-G601 attrd service.
[ OK ] Started DCH-G601 WiFi STA daemon server.
[ 21.180923] udc_core: disagrees about version of symbol module_layout
[ OK ] Started DCH-G601 Connection Manager server.
[ OK ] Started DCH-G601 Afero Security service.
[ OK ] Started DCH-G601 edge demo service.
[ OK ] Started Network Service.
[ OK ] Started Permit User Sessions.
[ OK ] Started dch-g601-host-wifi-service.service.
[ 22.877401] compat: disagrees about version of symbol module_layout
Starting thermal-zone-init.service...
[ OK ] Started Getty on tty1.
[ OK ] Started Serial Getty on ttyS0.
[ OK ] Reached target Network.
Starting Network Name Resolution...
[ OK ] Started DCH-G601 Stop USB Network interace.
[ OK ] Started DCH-G601 hubby service.
[ OK ] Started thermal-zone-init.service.
[ OK ] Started Login Service.
[ OK ] Started Network Name Resolution.
Starting gplv3-notice.service...
[ OK ] Started gplv3-notice.service.

_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|

Arago Project http://arago-project.org am335x-evm ttyS0

Arago 2016.05 am335x-evm ttyS0

am335x-evm login: root
root@am335x-evm:~# ubiattach /dev/ubi_ctrl -m 6   (Why did we get the error in the following ?)
[ 43.662809] ubi0: attaching mtd6
[ 43.666542] ubi0 error: validate_ec_hdr: bad VID header offset 2048, expected 512
[ 43.679104] ubi0 error: validate_ec_hdr: bad EC header
[ 43.686904] Erase counter header dump:
[ 43.693103] magic 0x55424923
[ 43.696887] version 1
[ 43.699866] ec 0
[ 43.708702] vid_hdr_offset 2048
[ 43.714316] data_offset 4096
[ 43.717578] image_seq 447417042
[ 43.725343] hdr_crc 0xdbf6370b
[ 43.729131] erase counter header hexdump:
[ 43.737266] CPU: 0 PID: 585 Comm: ubiattach Not tainted 4.4.12-g3639bea54a #2
[ 43.750374] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 43.758895] Backtrace:
[ 43.761632] [<c00134e0>] (dump_backtrace) from [<c00136dc>] (show_stack+0x18/0x1c)
[ 43.769241] r7:00000000 r6:00000000 r5:cf7d0000 r4:cb86a200
[ 43.779003] [<c00136c4>] (show_stack) from [<c0299b28>] (dump_stack+0x24/0x28)
[ 43.790814] [<c0299b04>] (dump_stack) from [<c043f4fc>] (validate_ec_hdr+0xc0/0x12c)
[ 43.798631] [<c043f43c>] (validate_ec_hdr) from [<c0440160>] (ubi_io_read_ec_hdr+0x168/0x218)
[ 43.811846] r7:cf7d0000 r6:55424923 r5:cb86a200 r4:00000000
[ 43.817624] [<c043fff8>] (ubi_io_read_ec_hdr) from [<c0445244>] (ubi_attach+0x184/0x14b0)
[ 43.829913] r10:cb865300 r9:c0a3e11c r8:00000000 r7:cf4a3800 r6:00000000 r5:cf7d0000
[ 43.838014] r4:00000000
[ 43.843386] [<c04450c0>] (ubi_attach) from [<c0439d50>] (ubi_attach_mtd_dev+0x660/0xbd8)
[ 43.856345] r10:00000400 r9:00000240 r8:cf7d0000 r7:cf4a3800 r6:00000000 r5:cf4a3800
[ 43.864466] r4:00000800
[ 43.867044] [<c04396f0>] (ubi_attach_mtd_dev) from [<c043b448>] (ctrl_cdev_ioctl+0xf4/0x204)
[ 43.881216] r10:00000000 r9:cf6ae000 r8:beaf6b70 r7:cf4a3800 r6:ffffe000 r5:beaf6b70
[ 43.889152] r4:00000051
[ 43.895093] [<c043b354>] (ctrl_cdev_ioctl) from [<c010e4dc>] (do_vfs_ioctl+0x480/0x6f8)
[ 43.907315] r7:00000003 r6:cf58c9c0 r5:cf4bd198 r4:beaf6b70
[ 43.913258] [<c010e05c>] (do_vfs_ioctl) from [<c010e790>] (SyS_ioctl+0x3c/0x64)
[ 43.924680] r10:00000000 r9:cf6ae000 r8:beaf6b70 r7:40186f40 r6:cf58c9c0 r5:00000003
[ 43.932776] r4:cf58c9c0
[ 43.935363] [<c010e754>] (SyS_ioctl) from [<c000fa00>] (ret_fast_syscall+0x0/0x3c)
[ 43.948897] r9:cf6ae000 r8:c000fbc4 r7:00000036 r6:beaf6ead r5:beaf6b70 r4:00000003
[ 43.956921] ubi0 error: ubi_io_read_ec_hdr: validation failed for PEB 0
[ 43.967833] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd6, error -22
ubiattach: error!: cannot attach mtd6
error 22 (Invalid argument)
root@am335x-evm:~# [ 44.941888] random: nonblocking pool is initialized

root@am335x-evm:~#
root@am335x-evm:~#
root@am335x-evm:~#
root@am335x-evm:~# ubiattach /dev/ubi_ctrl -O 2048 -m 6 (it seemed this extra parameter was working in our case)
[ 64.057940] ubi0: attaching mtd6
[ 64.076273] ubi0: scanning is finished
[ 64.088683] ubi0 warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 6, need 20
[ 64.116518] ubi0: volume 0 ("rootfs") re-sized from 14 to 14 LEBs
[ 64.133432] ubi0: attached mtd6 (name "NAND.APP-Config", size 3 MiB)
[ 64.139850] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 64.161457] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[ 64.168224] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 64.179799] ubi0: good PEBs: 24, bad PEBs: 0, corrupted PEBs: 0
[ 64.188418] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 64.198794] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 447417042
[ 64.210441] ubi0: available PEBs: 0, total reserved PEBs: 24, PEBs reserved for bad PEB handling: 6
[ 64.222113] ubi0: background thread "ubi_bgt0d" started, PID 588
UBI device number 0, total 24 LEBs (3047424 bytes, 2.9 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
root@am335x-evm:~#
root@am335x-evm:~#
root@am335x-evm:~# mount -t ubifs ubi0:0/ /media/ram/
[ 115.701083] UBIFS error (pid: 593): cannot open "ubi0:0/", error -19mount: unknown filesystem type 'ubifs'
root@am335x-evm:~#
root@am335x-evm:~#
root@am335x-evm:~# ls -l /media/ram/
root@am335x-evm:~# cd /media/ram
root@am335x-evm:/media/ram# touch aaa
root@am335x-evm:/media/ram# ls
aaa
root@am335x-evm:/media/ram# rm aaa
root@am335x-evm:/media/ram#
Please help to give me some suggestions to solve this case.
Thanks,
Albert.
  • The software team have been notified. They will respond here.
  • Hello albert,

    Can you post the output of this command?

    root@am335x-evm:~# cat /proc/filesystems

    Best regards,
    Kemal
  • Hi Kemal:

    Here is the output for /proc/filesystems.


    root@am335x-evm:~# cat /proc/filesystems
    nodev sysfs
    nodev rootfs
    nodev ramfs
    nodev bdev
    nodev proc
    nodev cgroup
    nodev tmpfs
    nodev devtmpfs
    nodev debugfs
    nodev sockfs
    nodev pipefs
    nodev rpc_pipefs
    nodev devpts
    ext3
    ext2
    ext4
    squashfs
    vfat
    msdos
    nodev nfs
    nodev nfs4
    ntfs
    nodev autofs
    nodev mqueue
    nodev ubifs

  • Please, use this mount -t ubifs ubi0:rootfs /media/ram/ line.

    Check this Processor SDK wiki page out, the second argument should be UBI volume name from ubinize.cfg file.

    According this Memory Technology Devices site.
    The modern way of mounting UBIFS is mounting UBI volume character device nodes, e.g.:

    $ mount -t ubifs /dev/ubi0_0 /mnt/ubifs

    I also would like bring to your attention that message which indicates that your partition calculations might not be correct:
    [ 1.730283] mtd: partition "NAND.file-system-2" is out of reach -- disabled

  • Hi Kemal:

    Thanks for your info.
    It is working now.

    Regards,
    Albert.