Part Number:am3351
Tool/software: Linux
We were using AM3351 CPU for our hub with 128MB NAND and using SDK V03.00.00.04 for our programs.
By "nand write" command, we flashed squashFS image to the partition 9 in the NAND.
The size for squashFS is around 57MB which we have been suffered kernel panic in our testings.
The command to create squashFS is mksquashfs ./rootfs my-test-rootfs.squashfs
The size for UBIFS is around 83MB. This file format was working fine in our testings.
Our idea is to store two rootfs into NAND.
The command to create UBIFS is using Ti SDK script create-ubifs.sh.
When booting from NAND for "squashFS"; we got the kernel panic when loading rootfs from mtdblock9 on NAND.
Below is the log for loading "squashfs":
Below is the log for loading "ubifs":
Any insights to solve this issue would be appreciated.
From some articles studying, they said "squashFS" is mainly for read-only file system.
But our programs will need to write user defined data. So can I use "squashFS" for my rootfs to have read/write behavior ?
So when using "squashFS" as our final rootfs for nand; can we have read/write behavior for our services ?
Thanks,
AlbertC.
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) ) #1 PREEMPT Mon Nov 6 20:38:03 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 xxxxxxxxxxx[ 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/mtdblock9 ro noinitrd rootfstype=squashfs rootwait=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: 226916K/262144K available (5403K kernel code, 218K rwdata, 1748K rodata, 256K init, 231K bss, 10652K 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 - 0xc0703f74 (7152 kB)[ 0.000000] .init : 0xc0704000 - 0xc0744000 ( 256 kB)[ 0.000000] .data : 0xc0744000 - 0xc077a838 ( 219 kB)[ 0.000000] .bss : 0xc077c000 - 0xc07b5f80 ( 232 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.000018] 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.000059] OMAP clocksource: timer1 at 24000000 Hz[ 0.000591] clocksource_probe: no matching clocksources found[ 0.000804] Console: colour dummy device 80x30[ 0.000836] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'[ 0.000845] This ensures that you still see kernel messages. Please[ 0.000852] update your kernel commandline.[ 0.000872] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)[ 0.058771] pid_max: default: 32768 minimum: 301[ 0.058935] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)[ 0.058952] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)[ 0.059785] Initializing cgroup subsys io[ 0.059821] Initializing cgroup subsys memory[ 0.059861] Initializing cgroup subsys devices[ 0.059878] Initializing cgroup subsys freezer[ 0.059895] Initializing cgroup subsys perf_event[ 0.059912] Initializing cgroup subsys pids[ 0.059947] CPU: Testing write buffer coherency: ok[ 0.060392] Setting up static identity map for 0x80008200 - 0x80008258[ 0.063100] devtmpfs: initialized[ 0.076913] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3[ 0.095169] omap_hwmod: debugss: _wait_target_disable failed[ 0.099219] omap_hwmod: d_can0: _wait_target_ready failed: -16[ 0.099232] omap_hwmod: d_can0: cannot be enabled for reset (3)[ 0.102417] omap_hwmod: d_can1: _wait_target_ready failed: -16[ 0.102426] omap_hwmod: d_can1: cannot be enabled for reset (3)[ 0.158792] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns[ 0.161382] pinctrl core: initialized pinctrl subsystem[ 0.162851] NET: Registered protocol family 16[ 0.165500] DMA: preallocated 256 KiB pool for atomic coherent allocations[ 0.188830] cpuidle: using governor ladder[ 0.218818] cpuidle: using governor menu[ 0.224534] OMAP GPIO hardware version 0.1[ 0.234532] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_s0, deferring probe[ 0.237106] hw-breakpoint: debug architecture 0x4 unsupported.[ 0.279847] edma 49000000.edma: TI EDMA DMA engine driver[ 0.283277] usbcore: registered new interface driver usbfs[ 0.283377] usbcore: registered new interface driver hub[ 0.283516] usbcore: registered new device driver usb[ 0.284072] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe[ 0.284134] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe[ 0.284309] pps_core: LinuxPPS API ver. 1 registered[ 0.284320] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>[ 0.284378] PTP clock support registered[ 0.284643] EDAC MC: Ver: 3.0.0[ 0.285993] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400[ 0.287608] clocksource: Switched to clocksource timer1[ 0.301539] NET: Registered protocol family 2[ 0.302458] TCP established hash table entries: 2048 (order: 1, 8192 bytes)[ 0.302505] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)[ 0.302542] TCP: Hash tables configured (established 2048 bind 2048)[ 0.302629] UDP hash table entries: 256 (order: 0, 4096 bytes)[ 0.302654] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)[ 0.302845] NET: Registered protocol family 1[ 0.303898] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available[ 0.306247] futex hash table entries: 256 (order: -1, 3072 bytes)[ 0.316791] ntfs: driver 2.1.32 [Flags: R/O].[ 0.319089] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)[ 0.319122] io scheduler noop registered[ 0.319140] io scheduler deadline registered[ 0.319367] io scheduler cfq registered (default)[ 0.321343] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568[ 0.403557] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled[ 0.408620] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250[ 1.014290] console [ttyS0] enabled[ 1.019261] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 159, base_baud = 3000000) is a 8250[ 1.037382] loop: module loaded[ 1.043724] libphy: Fixed MDIO Bus: probed[ 1.049738] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver[ 1.057265] usbcore: registered new interface driver pegasus[ 1.063111] usbcore: registered new interface driver asix[ 1.068639] usbcore: registered new interface driver ax88179_178a[ 1.074827] usbcore: registered new interface driver cdc_ether[ 1.080807] usbcore: registered new interface driver smsc75xx[ 1.086684] usbcore: registered new interface driver smsc95xx[ 1.092553] usbcore: registered new interface driver net1080[ 1.098334] usbcore: registered new interface driver cdc_subset[ 1.104348] usbcore: registered new interface driver zaurus[ 1.110110] usbcore: registered new interface driver cdc_ncm[ 1.116498] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver[ 1.123116] ehci-platform: EHCI generic platform driver[ 1.128615] ehci-omap: OMAP-EHCI Host Controller driver[ 1.134001] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver[ 1.140278] ohci-platform: OHCI generic platform driver[ 1.145981] i2c /dev entries driver[ 1.152277] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec[ 1.159691] cpuidle: enable-method property 'ti,am3352' found operations[ 1.166659] sdhci: Secure Digital Host Controller Interface driver[ 1.172914] sdhci: Copyright(c) Pierre Ossman[ 1.177801] pinctrl-single 44e10800.pinmux: pin 44e10960.0 already requested by 48302100.ecap; cannot claim for 48060000.mmc[ 1.189110] pinctrl-single 44e10800.pinmux: pin-88 (48060000.mmc) status -22[ 1.196200] pinctrl-single 44e10800.pinmux: could not request pin 88 (44e10960.0) from group pinmux_mmc1_pins on device pinctrl-single[ 1.208453] omap_hsmmc 48060000.mmc: Error applying setting, reverse things back[ 1.216140] omap_hsmmc 48060000.mmc: Got CD GPIO[ 1.377922] Synopsys Designware Multimedia Card Interface Driver[ 1.384572] sdhci-pltfm: SDHCI platform and OF driver helper[ 1.394328] ledtrig-cpu: registered to indicate activity on CPUs[ 1.400792] omap_hsmmc 481d8000.mmc: card claims to support voltages below defined range[ 1.408993] usbcore: registered new interface driver usbhid[ 1.414589] usbhid: USB HID core driver[ 1.419909] NET: Registered protocol family 10[ 1.425992] sit: IPv6 over IPv4 tunneling driver[ 1.431864] NET: Registered protocol family 17[ 1.436662] Key type dns_resolver registered[ 1.441265] omap_voltage_late_init: Voltage driver support not added[ 1.449113] ThumbEE CPU extension supported.[ 1.453475] Registering SWP/SWPB emulation handler[ 1.460973] omap-gpmc 50000000.gpmc: GPMC revision 6.0[ 1.466163] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000[ 1.474120] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)[ 1.480745] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xf1[ 1.487141] nand: Macronix MX30LF1G18AC[ 1.492065] mmc1: new high speed SDIO card at address 0001[ 1.497632] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64[ 1.505280] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme[ 1.512256] 10 ofpart partitions found on MTD device 8000000.nand[ 1.518433] Creating 10 MTD partitions on "8000000.nand":[ 1.523881] 0x000000000000-0x000000020000 : "NAND.SPL"[ 1.530729] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"[ 1.538137] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"[ 1.545417] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"[ 1.552806] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"[ 1.560402] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"[ 1.567413] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"[ 1.574603] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"[ 1.582500] 0x000000200000-0x000000a00000 : "NAND.kernel"[ 1.591898] 0x000000a00000-0x000010000000 : "NAND.file-system"[ 1.597846] mtd: partition "NAND.file-system" extends beyond the end of device "8000000.nand" -- size truncated to 0x7600000[ 1.668163] tps65217 0-0024: Read from reg 0x16 failed[ 1.673350] vdds_dpr: failed to enable[ 1.677404] tps65217 0-0024: failed to register tps65217-pmic regulator[ 1.684105] tps65217-pmic: probe of tps65217-pmic failed with error -121[ 1.691487] tps65217 0-0024: Failed to read revision register: -121[ 1.697925] tps65217: probe of 0-0024 failed with error -121[ 1.703700] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 100 kHz[ 1.710904] at24 2-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write[ 1.718221] at24 2-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write[ 1.725352] at24 2-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write[ 1.732565] at24 2-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write[ 1.739535] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz[ 1.745908] hctosys: unable to open rtc device (rtc0)[ 1.755452] vmmcsd_fixed: disabling[ 1.759089] wlan-en-regulator: disabling[ 1.764897] VFS: Cannot open root device "mtdblock9" or unknown-block(31,9): error -19[ 1.772998] Please append a correct "root=" boot option; here are the available partitions:[ 1.781463] 1f00 128 mtdblock0 (driver?)[ 1.786555] 1f01 128 mtdblock1 (driver?)[ 1.791720] 1f02 128 mtdblock2 (driver?)[ 1.796804] 1f03 128 mtdblock3 (driver?)[ 1.801934] 1f04 256 mtdblock4 (driver?)[ 1.807018] 1f05 1024 mtdblock5 (driver?)[ 1.812144] 1f06 128 mtdblock6 (driver?)[ 1.817229] 1f07 128 mtdblock7 (driver?)[ 1.822334] 1f08 8192 mtdblock8 (driver?)[ 1.827417] 1f09 120832 mtdblock9 (driver?)[ 1.832520] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,9)[ 1.840918] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,9)[ 80.687620] random: nonblocking pool is initialized