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.
Tool/software: Linux
Hi,
I transfer the images through TFTP in u-boot as following:
1)tftpboot 0x82000000 zImage
nand write 0x82000000 NAND.kernel
2)tftpboot 0x82000000 am437x-gp-evm.dtb
nand write 0x82000000 NAND.u-boot-spl-os
3)mw.b 0x82000000 0xff 0x8600000
4)tftpboot 0x82000000 arago-base-tisdk-image-am437x-evm.ubi
nand write 0x82000000 NAND.file-system
then, when power up, the Kernel panic appear and system stop, the detail infromation is in the attach file <session.log>.
Above zImage, am437x-gp-evm.dtb and arago-base-tisdk-image-am437x-evm.ubi are from the SDK <ti-processor-sdk-linux-am437x-evm-05.01.00.11>.
My board is a custom board with no EEPROM to identify itself and has a different NAND which has been patched by Kemal R.Shakir in u-boot power up.
The problem may be in the ubi file and the different NAND config.
Best Regards!
U-Boot SPL 2018.01-00444-ge782a78ca9-dirty (Jan 30 2019 - 10:21:10) Trying to boot from NAND SPL: Please implement spl_start_uboot() for your board SPL: Direct Linux boot not active! U-Boot 2018.01-00444-ge782a78ca9-dirty (Jan 30 2019 - 10:21:10 +0800) CPU : AM437X-GP rev 1.2 Model: TI AM437x GP EVM DRAM: 1 GiB PMIC: TPS65218 NAND: 512 MiB MMC: OMAP SD/MMC: 0 MMC: no card present ** Bad device mmc 0 ** Using default environment Net: <ethaddr> not set. Validating first E-fuse MAC cpsw, usb_ether Hit any key to stop autoboot: 0 MMC: no card present MMC: no card present MMC: no card present MMC: no card present starting USB... USB0: Register 2000440 NbrPorts 2 Starting the controller USB XHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Device 0: device type unknown ... is now current device MMC: no card present ** Bad device mmc 0 ** ** Bad device usb 0 ** Booting from nand ... NAND read: device 0 offset 0x100000, size 0x80000 524288 bytes read: OK NAND read: device 0 offset 0x300000, size 0x700000 7340032 bytes read: OK ## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Loading Device Tree to 8fff0000, end 8ffffe54 ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.14.67-gd315a9bb00 (root@cr) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #1 PREEMPT Mon Dec 24 09:45:55 CST 2018 [ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: TI AM437x GP EVM [ 0.000000] Memory policy: Data cache writeback [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: UEFI not found. [ 0.000000] cma: Reserved 48 MiB at 0xbd000000 [ 0.000000] CPU: All CPU(s) started in SVC mode. [ 0.000000] AM437x ES1.2 (sgx neon) [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260416 [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1 [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 976228K/1048576K available (8192K kernel code, 328K rwdata, 2488K rodata, 1024K init, 276K bss, 23196K reserved, 49152K cma-reserved, 212992K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB) [ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB) [ 0.000000] .data : 0xc0d00000 - 0xc0d52250 ( 329 kB) [ 0.000000] .bss : 0xc0d52250 - 0xc0d974bc ( 277 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Tasks RCU enabled. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] L2C: platform modifies aux control register: 0x0e030000 -> 0x3e430000 [ 0.000000] L2C: DT/platform modifies aux control register: 0x0e030000 -> 0x3e430000 [ 0.000000] L2C-310 enabling early BRESP for Cortex-A9 [ 0.000000] OMAP L2C310: ROM does not support power control setting [ 0.000000] L2C-310 dynamic clock gating disabled, standby mode disabled [ 0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB [ 0.000000] L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x4e430000 [ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz [ 0.000011] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns [ 0.000028] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000037] OMAP clocksource: timer1 at 24000000 Hz [ 0.000426] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns [ 0.000436] OMAP clocksource: 32k_counter at 32768 Hz [ 0.000832] Console: colour dummy device 80x30 [ 0.000858] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0' [ 0.000863] This ensures that you still see kernel messages. Please [ 0.000868] update your kernel commandline. [ 0.000891] Calibrating delay loop... 1993.93 BogoMIPS (lpj=9969664) [ 0.060151] pid_max: default: 32768 minimum: 301 [ 0.060315] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.060339] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.061002] CPU: Testing write buffer coherency: ok [ 0.061736] Setting up static identity map for 0x80100000 - 0x80100060 [ 0.061877] Hierarchical SRCU implementation. [ 0.062197] EFI services will not be available. [ 0.063039] devtmpfs: initialized [ 0.071719] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1ac with crng_init=0 [ 0.072122] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 [ 0.072397] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.072419] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.075618] pinctrl core: initialized pinctrl subsystem [ 0.076277] DMI not present or invalid. [ 0.076653] NET: Registered protocol family 16 [ 0.078221] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.149559] cpuidle: using governor ladder [ 0.149594] cpuidle: using governor menu [ 0.154917] omap_gpio 44e07000.gpio: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/gpio0_pins, deferring probe [ 0.155687] OMAP GPIO hardware version 0.1 [ 0.157557] omap_gpio 48322000.gpio: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/display_mux_pins, deferring probe [ 0.161255] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/nand_flash_x8, deferring probe [ 0.165146] No ATAGs? [ 0.165171] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. [ 0.165185] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.177053] edma 49000000.edma: TI EDMA DMA engine driver [ 0.181103] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/i2c0_pins, deferring probe [ 0.181164] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/i2c1_pins, deferring probe [ 0.181295] media: Linux media interface: v0.10 [ 0.181331] Linux video capture interface: v2.00 [ 0.181434] pps_core: LinuxPPS API ver. 1 registered [ 0.181441] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.181461] PTP clock support registered [ 0.181491] EDAC MC: Ver: 3.0.0 [ 0.181898] dmi: Firmware registration failed. [ 0.182225] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400 [ 0.182595] Advanced Linux Sound Architecture Driver Initialized. [ 0.183585] clocksource: Switched to clocksource timer1 [ 0.190700] NET: Registered protocol family 2 [ 0.191292] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.191360] TCP bind hash table entries: 8192 (order: 3, 32768 bytes) [ 0.191434] TCP: Hash tables configured (established 8192 bind 8192) [ 0.191601] UDP hash table entries: 512 (order: 1, 8192 bytes) [ 0.191623] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes) [ 0.191764] NET: Registered protocol family 1 [ 0.192171] RPC: Registered named UNIX socket transport module. [ 0.192184] RPC: Registered udp transport module. [ 0.192189] RPC: Registered tcp transport module. [ 0.192194] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.194232] workingset: timestamp_bits=14 max_order=18 bucket_order=4 [ 0.197614] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.198268] NFS: Registering the id_resolver key type [ 0.198303] Key type id_resolver registered [ 0.198309] Key type id_legacy registered [ 0.198347] ntfs: driver 2.1.32 [Flags: R/O]. [ 0.200270] bounce: pool size: 64 pages [ 0.200352] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245) [ 0.200364] io scheduler noop registered [ 0.200370] io scheduler deadline registered [ 0.200562] io scheduler cfq registered (default) [ 0.200573] io scheduler mq-deadline registered [ 0.200580] io scheduler kyber registered [ 0.203516] pinctrl-single 44e10800.pinmux: 199 pins at pa f9e10800 size 796 [ 0.206538] pwm-backlight backlight: backlight supply power not found, using dummy regulator [ 0.248052] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled [ 0.250230] omap8250 44e09000.serial: No clock speed specified: using default: 48000000 [ 0.250882] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250 [ 0.978237] console [ttyS0] enabled [ 0.982214] omap8250 481a6000.serial: No clock speed specified: using default: 48000000 [ 0.990876] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 31, base_baud = 3000000) is a 8250 [ 1.001531] omap_rng 48310000.rng: Random Number Generator ver. 20 [ 1.008935] omapdss_dss 4832a000.dss: 4832a000.dss supply vdda_video not found, using dummy regulator [ 1.018385] DSS: OMAP DSS rev 2.0 [ 1.022519] omapdss_dss 4832a000.dss: bound 4832a400.dispc (ops dispc_component_ops) [ 1.031661] panel-dpi display: display supply vcc not found, using dummy regulator [ 1.051462] brd: module loaded [ 1.062650] loop: module loaded [ 1.068225] libphy: Fixed MDIO Bus: probed [ 1.143645] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000 [ 1.151345] davinci_mdio 4a101000.mdio: detected phy mask ffffffce [ 1.160192] libphy: 4a101000.mdio: probed [ 1.164323] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver RTL8211F Gigabit Ethernet [ 1.173972] davinci_mdio 4a101000.mdio: phy[4]: device 4a101000.mdio:04, driver RTL8211F Gigabit Ethernet [ 1.183669] davinci_mdio 4a101000.mdio: phy[5]: device 4a101000.mdio:05, driver RTL8211F Gigabit Ethernet [ 1.194197] cpsw 4a100000.ethernet: Detected MACID = 7c:38:66:21:be:7e [ 1.200855] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4 [ 1.207323] cpsw 4a100000.ethernet: ALE Table size 1024 [ 1.212611] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies) [ 1.221040] i2c /dev entries driver [ 1.225048] IR NEC protocol handler initialized [ 1.229601] IR RC5(x/sz) protocol handler initialized [ 1.234706] IR RC6 protocol handler initialized [ 1.239254] IR JVC protocol handler initialized [ 1.243813] IR Sony protocol handler initialized [ 1.248447] IR SANYO protocol handler initialized [ 1.253167] IR Sharp protocol handler initialized [ 1.257897] IR MCE Keyboard/mouse protocol handler initialized [ 1.263900] IR XMP protocol handler initialized [ 1.269997] cpuidle: enable-method property 'ti,am4372' found operations [ 1.277188] sdhci: Secure Digital Host Controller Interface driver [ 1.283397] sdhci: Copyright(c) Pierre Ossman [ 1.343882] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.353520] ledtrig-cpu: registered to indicate activity on CPUs [ 1.363542] NET: Registered protocol family 10 [ 1.370263] Segment Routing with IPv6 [ 1.374115] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 1.380637] NET: Registered protocol family 17 [ 1.385485] Key type dns_resolver registered [ 1.389961] omap_voltage_late_init: Voltage driver support not added [ 1.402377] omapdrm omapdrm.0: DMM not available, disable DMM support [ 1.409339] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 1.416052] [drm] No driver support for vblank timestamp query. [ 1.484371] Console: switching to colour frame buffer device 100x30 [ 1.507488] omapdrm omapdrm.0: fb0: omapdrm frame buffer device [ 1.514147] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0 [ 1.521869] GPIO line 119 (SelEMMCorNAND) hogged as output/low [ 1.528532] GPIO line 136 (SelLCDorHDMI) hogged as output/high [ 1.535122] omap-gpmc 50000000.gpmc: GPMC revision 6.0 [ 1.540291] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000 [ 1.548045] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xdc [ 1.554492] nand: AMD/Spansion S34ML04G2 [ 1.558433] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128 [ 1.566235] using OMAP_ECC_BCH16_CODE_HW ECC scheme [ 1.571216] 10 ofpart partitions found on MTD device omap2-nand.0 [ 1.577358] Creating 10 MTD partitions on "omap2-nand.0": [ 1.582798] 0x000000000000-0x000000040000 : "NAND.SPL" [ 1.589005] 0x000000040000-0x000000080000 : "NAND.SPL.backup1" [ 1.595824] 0x000000080000-0x0000000c0000 : "NAND.SPL.backup2" [ 1.602576] 0x0000000c0000-0x000000100000 : "NAND.SPL.backup3" [ 1.609328] 0x000000100000-0x000000180000 : "NAND.u-boot-spl-os" [ 1.616406] 0x000000180000-0x000000280000 : "NAND.u-boot" [ 1.623025] 0x000000280000-0x0000002c0000 : "NAND.u-boot-env" [ 1.629692] 0x0000002c0000-0x000000300000 : "NAND.u-boot-env.backup1" [ 1.637100] 0x000000300000-0x000000a00000 : "NAND.kernel" [ 1.647114] 0x000000a00000-0x000020000000 : "NAND.file-system" [ 1.953631] NOHZ: local_softirq_pending 02 [ 1.974144] omap_i2c 44e0b000.i2c: bus 0 rev0.12 at 100 kHz [ 1.981332] omap_i2c 4802a000.i2c: bus 1 rev0.12 at 100 kHz [ 1.988915] omap_hsmmc 48060000.mmc: Got CD GPIO [ 2.053655] NOHZ: local_softirq_pending 02 [ 2.059098] ubi0: attaching mtd9 [ 2.062946] ubi0 error: validate_ec_hdr: bad VID header offset 4096, expected 2048 [ 2.070992] ubi0 error: validate_ec_hdr: bad EC header [ 2.077417] Erase counter header dump: [ 2.083343] magic 0x55424923 [ 2.087353] version 1 [ 2.090589] ec 0 [ 2.093731] vid_hdr_offset 4096 [ 2.097076] data_offset 8192 [ 2.100426] image_seq 1303228617 [ 2.104330] hdr_crc 0x467938cf [ 2.108294] erase counter header hexdump: [ 2.112383] CPU: 0 PID: 1 Comm: swapper Not tainted 4.14.67-gd315a9bb00 #1 [ 2.119369] Hardware name: Generic AM43 (Flattened Device Tree) [ 2.126377] Backtrace: [ 2.128862] [<c010baa8>] (dump_backtrace) from [<c010bd8c>] (show_stack+0x18/0x1c) [ 2.136489] r7:00000000 r6:00000000 r5:ef037000 r4:eeac2000 [ 2.142188] [<c010bd74>] (show_stack) from [<c0833d48>] (dump_stack+0x24/0x28) [ 2.149481] [<c0833d24>] (dump_stack) from [<c05aa484>] (validate_ec_hdr+0xa0/0xe4) [ 2.157199] [<c05aa3e4>] (validate_ec_hdr) from [<c05ab07c>] (ubi_io_read_ec_hdr+0x1cc/0x200) [ 2.165794] r7:ef037000 r6:55424923 r5:eeac2000 r4:00000000 [ 2.171490] [<c05aaeb0>] (ubi_io_read_ec_hdr) from [<c05b0544>] (ubi_attach+0x208/0x14b8) [ 2.179718] r10:ef037000 r9:eeac2000 r8:00000000 r7:00000000 r6:eeac2200 r5:eeac0800 [ 2.187608] r4:eeabef80 [ 2.190156] [<c05b033c>] (ubi_attach) from [<c05a4a70>] (ubi_attach_mtd_dev+0x420/0xbc8) [ 2.198295] r10:00000840 r9:ef037040 r8:eeaa1400 r7:00000000 r6:eeaa1400 r5:ef037000 [ 2.206171] r4:fffff800 [ 2.208725] [<c05a4650>] (ubi_attach_mtd_dev) from [<c0c24284>] (ubi_init+0x194/0x214) [ 2.216703] r10:c0aeefc4 r9:c0d8c698 r8:00000000 r7:c0d8c69c r6:c0d8c69c r5:eeaa1400 [ 2.224583] r4:00000000 [ 2.227131] [<c0c240f0>] (ubi_init) from [<c01019e4>] (do_one_initcall+0x4c/0x170) [ 2.234787] r10:c0d52280 r9:000000d1 r8:c0c3c834 r7:c0d52280 r6:c0c240f0 r5:00000000 [ 2.242657] r4:ffffe000 [ 2.245243] [<c0101998>] (do_one_initcall) from [<c0c00eb4>] (kernel_init_freeable+0x148/0x1e4) [ 2.254000] r8:c0c3c834 r7:c0d52280 r6:00000008 r5:c0c4e738 r4:c0b6cbcc [ 2.260745] [<c0c00d6c>] (kernel_init_freeable) from [<c0846d68>] (kernel_init+0x10/0x114) [ 2.269075] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c0846d58 [ 2.276968] r4:00000000 [ 2.279520] [<c0846d58>] (kernel_init) from [<c0107e68>] (ret_from_fork+0x14/0x2c) [ 2.287138] r5:c0846d58 r4:00000000 [ 2.290733] ubi0 error: ubi_io_read_ec_hdr: validation failed for PEB 0 [ 2.297396] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd9, error -22 [ 2.304530] UBI error: cannot attach mtd9 [ 2.308902] hctosys: unable to open rtc device (rtc0) [ 2.314644] evm_v3_3d: disabling [ 2.317895] vmmcwl_fixed: disabling [ 2.321428] ALSA device list: [ 2.324445] No soundcards found. [ 2.328501] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19 [ 2.336640] Please append a correct "root=" boot option; here are the available partitions: [ 2.345099] 0100 65536 ram0 [ 2.345103] (driver?) [ 2.351234] 0101 65536 ram1 [ 2.351237] (driver?) [ 2.357432] 0102 65536 ram2 [ 2.357436] (driver?) [ 2.363587] 0103 65536 ram3 [ 2.363590] (driver?) [ 2.369718] 0104 65536 ram4 [ 2.369721] (driver?) [ 2.375870] 0105 65536 ram5 [ 2.375873] (driver?) [ 2.381999] 0106 65536 ram6 [ 2.382002] (driver?) [ 2.388166] 0107 65536 ram7 [ 2.388169] (driver?) [ 2.394308] 0108 65536 ram8 [ 2.394311] (driver?) [ 2.400437] 0109 65536 ram9 [ 2.400440] (driver?) [ 2.406583] 010a 65536 ram10 [ 2.406586] (driver?) [ 2.412799] 010b 65536 ram11 [ 2.412802] (driver?) [ 2.419043] 010c 65536 ram12 [ 2.419046] (driver?) [ 2.425278] 010d 65536 ram13 [ 2.425282] (driver?) [ 2.431495] 010e 65536 ram14 [ 2.431498] (driver?) [ 2.437737] 010f 65536 ram15 [ 2.437740] (driver?) [ 2.443979] 1f00 256 mtdblock0 [ 2.443983] (driver?) [ 2.450545] 1f01 256 mtdblock1 [ 2.450548] (driver?) [ 2.457129] 1f02 256 mtdblock2 [ 2.457132] (driver?) [ 2.463721] 1f03 256 mtdblock3 [ 2.463725] (driver?) [ 2.470287] 1f04 512 mtdblock4 [ 2.470290] (driver?) [ 2.476887] 1f05 1024 mtdblock5 [ 2.476891] (driver?) [ 2.483453] 1f06 256 mtdblock6 [ 2.483456] (driver?) [ 2.490039] 1f07 256 mtdblock7 [ 2.490042] (driver?) [ 2.496632] 1f08 7168 mtdblock8 [ 2.496636] (driver?) [ 2.503197] 1f09 514048 mtdblock9 [ 2.503200] (driver?) [ 2.509781] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 2.518087] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 2.790706] random: fast init done
Hello user3529609,
The arago-base-tisdk-image-am437x-evm.ubi image doesn't match your NAND device. Can you delete the content in <Processor SDK>/targetNFS/ and extract <Processor SDK>/filesystem/arago-base-tisdk-image-am437x-evm.tar.xz there. Change the MKUBIFS_ARGS and UBINIZE_ARGS arguments in <Processor SDK>/bin/create-ubifs.sh to MKUBIFS_ARGS="-F -m 2048 -e 253952 -c 6000" and UBINIZE_ARGS="-m 2048 -p 128KiB -s 2048 -O 2048" and create a new custom-am437x-evm-rootfs.ubi image by using this script. You may need also to change the timing parameters in nand &gpmc node in <Processor SDK>/board-support/linux-<version>/arch/arm/boot/dts/am437x-gp-evm.dts to match your NAND device's datasheet.
Best regards,
Kemal
No, is is less possible to be mtd-utils related. Probably the new kernel panic is about leb size. Can you change the arguments in the script to MKUBIFS_ARGS="-F -m 2048 -e 126976 -c 4095", UBINIZE_ARGS="-m 2048 -p 128KiB -s 2048 -O 2048" and retry?
Hi,
I change the script to MKUBIFS_ARGS="-F -m 2048 -e 126976 -c 4095", UBINIZE_ARGS="-m 2048 -p 128KiB -s 2048 -O 2048" and try again, it is still kernel panic.
Following is the custom-am437x-evm-rootfs.ubi produced result:
root@cr:/media/Am437x/TouchScreen# ./create-ubifs.sh ./rootfs
Parameters:
image_rootfs_dir ..... "./rootfs"
image_name_prefix .... "/media/Am437x/ti-sdk-05.01.00.11/filesystem/custom-am437x-evm-rootfs"
vol_name ............. "am437x-evm-rootfs"
mkfs.ubifs
root: ./rootfs/
min_io_size: 2048
leb_size: 126976
max_leb_cnt: 4095
output: /media/Am437x/ti-sdk-05.01.00.11/filesystem/custom-am437x-evm-rootfs.ubifs
jrn_size: 8388608
reserved: 0
compr: lzo
keyhash: r5
fanout: 8
orph_lebs: 1
space_fixup: 1
super lebs: 1
master lebs: 2
log_lebs: 5
lpt_lebs: 2
orph_lebs: 1
main_lebs: 1076
gc lebs: 1
index lebs: 20
leb_cnt: 1087
UUID: 305B10EF-7AFA-4839-B8B1-6D68B88498B8
Success!
ubinize: LEB size: 126976
ubinize: PEB size: 131072
ubinize: min. I/O size: 2048
ubinize: sub-page size: 2048
ubinize: VID offset: 2048
ubinize: data offset: 4096
ubinize: UBI image sequence number: 1632736484
ubinize: loaded the ini-file "/media/Am437x/ti-sdk-05.01.00.11/filesystem/custom-am437x-evm-rootfs.ubinize.cfg"
ubinize: count of sections: 1
ubinize: parsing section "ubifs"
ubinize: mode=ubi, keep parsing
ubinize: volume type: dynamic
ubinize: volume ID: 0
ubinize: volume size was not specified in section "ubifs", assume minimum to fit image "/media/Am437x/ti-sdk-05.01.00.11/filesystem/custom-am437x-evm-rootfs.ubifs"138022912 bytes (131.6 MiB)
ubinize: volume name: am437x-evm-rootfs
ubinize: volume alignment: 1
ubinize: autoresize flags found
ubinize: adding volume 0
ubinize: writing volume 0
ubinize: image file: /media/Am437x/ti-sdk-05.01.00.11/filesystem/custom-am437x-evm-rootfs.ubifs
ubinize: writing layout volume
ubinize: done
Success! The UBI image is available at "/media/Am437x/ti-sdk-05.01.00.11/filesystem/custom-am437x-evm-rootfs.ubi"
When I change the new file-system "custom-am437x-evm-rootfs.ubi " to the old "ubi.img" in NAND with others the same. it seem ok! I give the restart information in the attachment when reset:
U-Boot SPL 2018.01-00444-ge782a78ca9-dirty (Jan 30 2019 - 10:21:10) Trying to boot from NAND SPL: Please implement spl_start_uboot() for your board SPL: Direct Linux boot not active! U-Boot 2018.01-00444-ge782a78ca9-dirty (Jan 30 2019 - 10:21:10 +0800) CPU : AM437X-GP rev 1.2 Model: TI AM437x GP EVM DRAM: 1 GiB PMIC: TPS65218 NAND: 512 MiB MMC: OMAP SD/MMC: 0 MMC: no card present ** Bad device mmc 0 ** Using default environment Net: <ethaddr> not set. Validating first E-fuse MAC cpsw, usb_ether Hit any key to stop autoboot: 0 MMC: no card present MMC: no card present MMC: no card present MMC: no card present starting USB... USB0: Register 2000440 NbrPorts 2 Starting the controller USB XHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Device 0: device type unknown ... is now current device MMC: no card present ** Bad device mmc 0 ** ** Bad device usb 0 ** Booting from nand ... NAND read: device 0 offset 0x100000, size 0x80000 524288 bytes read: OK NAND read: device 0 offset 0x300000, size 0x700000 7340032 bytes read: OK ## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Loading Device Tree to 8fff0000, end 8ffffe54 ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.14.67-gd315a9bb00 (root@cr) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #1 PREEMPT Mon Dec 24 09:45:55 CST 2018 [ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: TI AM437x GP EVM [ 0.000000] Memory policy: Data cache writeback [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: UEFI not found. [ 0.000000] cma: Reserved 48 MiB at 0xbd000000 [ 0.000000] CPU: All CPU(s) started in SVC mode. [ 0.000000] AM437x ES1.2 (sgx neon) [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260416 [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1 [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 976228K/1048576K available (8192K kernel code, 328K rwdata, 2488K rodata, 1024K init, 276K bss, 23196K reserved, 49152K cma-reserved, 212992K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB) [ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB) [ 0.000000] .data : 0xc0d00000 - 0xc0d52250 ( 329 kB) [ 0.000000] .bss : 0xc0d52250 - 0xc0d974bc ( 277 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Tasks RCU enabled. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] L2C: platform modifies aux control register: 0x0e030000 -> 0x3e430000 [ 0.000000] L2C: DT/platform modifies aux control register: 0x0e030000 -> 0x3e430000 [ 0.000000] L2C-310 enabling early BRESP for Cortex-A9 [ 0.000000] OMAP L2C310: ROM does not support power control setting [ 0.000000] L2C-310 dynamic clock gating disabled, standby mode disabled [ 0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB [ 0.000000] L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x4e430000 [ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz [ 0.000012] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns [ 0.000029] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000037] OMAP clocksource: timer1 at 24000000 Hz [ 0.000426] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns [ 0.000435] OMAP clocksource: 32k_counter at 32768 Hz [ 0.000835] Console: colour dummy device 80x30 [ 0.000861] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0' [ 0.000868] This ensures that you still see kernel messages. Please [ 0.000873] update your kernel commandline. [ 0.000897] Calibrating delay loop... 1993.93 BogoMIPS (lpj=9969664) [ 0.060146] pid_max: default: 32768 minimum: 301 [ 0.060312] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.060336] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.061004] CPU: Testing write buffer coherency: ok [ 0.061732] Setting up static identity map for 0x80100000 - 0x80100060 [ 0.061874] Hierarchical SRCU implementation. [ 0.062189] EFI services will not be available. [ 0.063032] devtmpfs: initialized [ 0.071721] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1ac with crng_init=0 [ 0.072122] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 [ 0.072403] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.072424] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.075633] pinctrl core: initialized pinctrl subsystem [ 0.076284] DMI not present or invalid. [ 0.076660] NET: Registered protocol family 16 [ 0.078228] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.149608] cpuidle: using governor ladder [ 0.149642] cpuidle: using governor menu [ 0.154997] omap_gpio 44e07000.gpio: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/gpio0_pins, deferring probe [ 0.155768] OMAP GPIO hardware version 0.1 [ 0.157669] omap_gpio 48322000.gpio: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/display_mux_pins, deferring probe [ 0.161354] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/nand_flash_x8, deferring probe [ 0.165220] No ATAGs? [ 0.165244] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. [ 0.165259] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.177207] edma 49000000.edma: TI EDMA DMA engine driver [ 0.181273] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/i2c0_pins, deferring probe [ 0.181334] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/i2c1_pins, deferring probe [ 0.181469] media: Linux media interface: v0.10 [ 0.181505] Linux video capture interface: v2.00 [ 0.181605] pps_core: LinuxPPS API ver. 1 registered [ 0.181613] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.181632] PTP clock support registered [ 0.181663] EDAC MC: Ver: 3.0.0 [ 0.182072] dmi: Firmware registration failed. [ 0.182399] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400 [ 0.182780] Advanced Linux Sound Architecture Driver Initialized. [ 0.183794] clocksource: Switched to clocksource timer1 [ 0.190948] NET: Registered protocol family 2 [ 0.191549] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.191615] TCP bind hash table entries: 8192 (order: 3, 32768 bytes) [ 0.191689] TCP: Hash tables configured (established 8192 bind 8192) [ 0.191852] UDP hash table entries: 512 (order: 1, 8192 bytes) [ 0.191873] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes) [ 0.192014] NET: Registered protocol family 1 [ 0.192427] RPC: Registered named UNIX socket transport module. [ 0.192441] RPC: Registered udp transport module. [ 0.192446] RPC: Registered tcp transport module. [ 0.192451] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.194459] workingset: timestamp_bits=14 max_order=18 bucket_order=4 [ 0.197828] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.198483] NFS: Registering the id_resolver key type [ 0.198519] Key type id_resolver registered [ 0.198525] Key type id_legacy registered [ 0.198564] ntfs: driver 2.1.32 [Flags: R/O]. [ 0.200472] bounce: pool size: 64 pages [ 0.200559] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245) [ 0.200571] io scheduler noop registered [ 0.200577] io scheduler deadline registered [ 0.200767] io scheduler cfq registered (default) [ 0.200776] io scheduler mq-deadline registered [ 0.200782] io scheduler kyber registered [ 0.203715] pinctrl-single 44e10800.pinmux: 199 pins at pa f9e10800 size 796 [ 0.206760] pwm-backlight backlight: backlight supply power not found, using dummy regulator [ 0.248188] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled [ 0.250348] omap8250 44e09000.serial: No clock speed specified: using default: 48000000 [ 0.250938] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250 [ 0.978291] console [ttyS0] enabled [ 0.982259] omap8250 481a6000.serial: No clock speed specified: using default: 48000000 [ 0.990923] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 31, base_baud = 3000000) is a 8250 [ 1.001552] omap_rng 48310000.rng: Random Number Generator ver. 20 [ 1.008958] omapdss_dss 4832a000.dss: 4832a000.dss supply vdda_video not found, using dummy regulator [ 1.018406] DSS: OMAP DSS rev 2.0 [ 1.022541] omapdss_dss 4832a000.dss: bound 4832a400.dispc (ops dispc_component_ops) [ 1.031685] panel-dpi display: display supply vcc not found, using dummy regulator [ 1.051510] brd: module loaded [ 1.062668] loop: module loaded [ 1.068267] libphy: Fixed MDIO Bus: probed [ 1.143854] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000 [ 1.151554] davinci_mdio 4a101000.mdio: detected phy mask ffffffce [ 1.160400] libphy: 4a101000.mdio: probed [ 1.164526] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver RTL8211F Gigabit Ethernet [ 1.174175] davinci_mdio 4a101000.mdio: phy[4]: device 4a101000.mdio:04, driver RTL8211F Gigabit Ethernet [ 1.183876] davinci_mdio 4a101000.mdio: phy[5]: device 4a101000.mdio:05, driver RTL8211F Gigabit Ethernet [ 1.194408] cpsw 4a100000.ethernet: Detected MACID = 7c:38:66:21:be:7e [ 1.201068] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4 [ 1.207544] cpsw 4a100000.ethernet: ALE Table size 1024 [ 1.212835] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies) [ 1.221265] i2c /dev entries driver [ 1.225284] IR NEC protocol handler initialized [ 1.229838] IR RC5(x/sz) protocol handler initialized [ 1.234940] IR RC6 protocol handler initialized [ 1.239488] IR JVC protocol handler initialized [ 1.244047] IR Sony protocol handler initialized [ 1.248681] IR SANYO protocol handler initialized [ 1.253400] IR Sharp protocol handler initialized [ 1.258131] IR MCE Keyboard/mouse protocol handler initialized [ 1.264077] IR XMP protocol handler initialized [ 1.270170] cpuidle: enable-method property 'ti,am4372' found operations [ 1.277356] sdhci: Secure Digital Host Controller Interface driver [ 1.283564] sdhci: Copyright(c) Pierre Ossman [ 1.344093] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.353735] ledtrig-cpu: registered to indicate activity on CPUs [ 1.363768] NET: Registered protocol family 10 [ 1.370490] Segment Routing with IPv6 [ 1.374346] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 1.380861] NET: Registered protocol family 17 [ 1.385719] Key type dns_resolver registered [ 1.390210] omap_voltage_late_init: Voltage driver support not added [ 1.402593] omapdrm omapdrm.0: DMM not available, disable DMM support [ 1.409552] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 1.416267] [drm] No driver support for vblank timestamp query. [ 1.484587] Console: switching to colour frame buffer device 100x30 [ 1.507717] omapdrm omapdrm.0: fb0: omapdrm frame buffer device [ 1.514379] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0 [ 1.522101] GPIO line 119 (SelEMMCorNAND) hogged as output/low [ 1.528757] GPIO line 136 (SelLCDorHDMI) hogged as output/high [ 1.535343] omap-gpmc 50000000.gpmc: GPMC revision 6.0 [ 1.540514] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000 [ 1.548249] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xdc [ 1.554689] nand: AMD/Spansion S34ML04G2 [ 1.558631] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128 [ 1.566431] using OMAP_ECC_BCH16_CODE_HW ECC scheme [ 1.571415] 10 ofpart partitions found on MTD device omap2-nand.0 [ 1.577560] Creating 10 MTD partitions on "omap2-nand.0": [ 1.582999] 0x000000000000-0x000000040000 : "NAND.SPL" [ 1.589216] 0x000000040000-0x000000080000 : "NAND.SPL.backup1" [ 1.596032] 0x000000080000-0x0000000c0000 : "NAND.SPL.backup2" [ 1.602809] 0x0000000c0000-0x000000100000 : "NAND.SPL.backup3" [ 1.609574] 0x000000100000-0x000000180000 : "NAND.u-boot-spl-os" [ 1.616644] 0x000000180000-0x000000280000 : "NAND.u-boot" [ 1.623268] 0x000000280000-0x0000002c0000 : "NAND.u-boot-env" [ 1.629939] 0x0000002c0000-0x000000300000 : "NAND.u-boot-env.backup1" [ 1.637345] 0x000000300000-0x000000a00000 : "NAND.kernel" [ 1.647363] 0x000000a00000-0x000020000000 : "NAND.file-system" [ 1.953841] NOHZ: local_softirq_pending 02 [ 1.973166] omap_i2c 44e0b000.i2c: bus 0 rev0.12 at 100 kHz [ 1.980427] omap_i2c 4802a000.i2c: bus 1 rev0.12 at 100 kHz [ 1.988021] omap_hsmmc 48060000.mmc: Got CD GPIO [ 2.043868] NOHZ: local_softirq_pending 02 [ 2.049238] ubi0: attaching mtd9 [ 2.072733] random: fast init done [ 3.123816] NOHZ: local_softirq_pending 40 [ 3.127949] NOHZ: local_softirq_pending 40 [ 3.132073] NOHZ: local_softirq_pending 40 [ 3.136203] NOHZ: local_softirq_pending 42 [ 3.701125] ubi0: scanning is finished [ 3.718052] ubi0: attached mtd9 (name "NAND.file-system", size 502 MiB) [ 3.724802] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes [ 3.731711] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512 [ 3.738535] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 3.745689] ubi0: good PEBs: 4016, bad PEBs: 0, corrupted PEBs: 0 [ 3.751885] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128 [ 3.759223] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 778314175 [ 3.768383] ubi0: available PEBs: 0, total reserved PEBs: 4016, PEBs reserved for bad PEB handling: 80 [ 3.777897] ubi0: background thread "ubi_bgt0d" started, PID 49 [ 3.784249] hctosys: unable to open rtc device (rtc0) [ 3.784889] evm_v3_3d: disabling [ 3.784894] vmmcwl_fixed: disabling [ 3.784904] ALSA device list: [ 3.784908] No soundcards found. [ 3.813923] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 50 [ 3.835231] UBIFS (ubi0:0): recovery needed [ 3.937233] UBIFS (ubi0:0): recovery completed [ 3.942157] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs" [ 3.949897] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes [ 3.959978] UBIFS (ubi0:0): FS size: 497872896 bytes (474 MiB, 3921 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs) [ 3.970801] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB) [ 3.976728] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID A5436C03-D32C-4FC6-B208-79BEA9EA88D4, small LPT model [ 3.988894] VFS: Mounted root (ubifs filesystem) on device 0:15. [ 3.996015] devtmpfs: mounted [ 4.001009] Freeing unused kernel memory: 1024K INIT: version 2.88 booting [ 4.253844] NOHZ: local_softirq_pending 40 [ 4.313853] NOHZ: local_softirq_pending 202 [ 4.483841] NOHZ: local_softirq_pending 40 [ 4.487991] NOHZ: local_softirq_pending 40 Starting udev [ 4.769326] udevd[80]: starting version 182 depmod: ERROR: could not open directory /lib/modules/4.14.67-gd315a9bb00: No such file or directory depmod: WARNING: -e needs -E or -F depmod: ERROR: could not open directory /lib/modules/4.14.67-gd315a9bb00: No such file or directory depmod: FATAL: could not search modules: No such file or directory Starting Bootlog daemon: bootlogd. [ 6.607944] random: dd: uninitialized urandom read (512 bytes read) ALSA: Restoring mixer settings... /usr/sbin/alsactl: load_state:1729: No soundcards found... hwclock: can't open '/dev/misc/rtc': No such file or directory Tue Sep 15 08:35:00 UTC 2015 hwclock: can't open '/dev/misc/rtc': No such file or directory INIT: Entering runlevel: 5 Configuring network interfaces... [ 9.673392] net eth0: initializing cpsw version 1.15 (0) [ 9.785564] RTL8211F Gigabit Ethernet 4a101000.mdio:00: attached PHY driver [RTL8211F Gigabit Ethernet] (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL) [ 9.807484] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready udhcpc (v1.22.1) started Sending discover... Sending discover... Sending discover... No lease, forking to background done. Starting system message bus: [ 19.235888] random: dbus-daemon: uninitialized urandom read (12 bytes read) [ 19.270857] random: dbus-daemon: uninitialized urandom read (12 bytes read) dbus. UIM SYSFS Node Not Found Starting Dropbear SSH server: [ 20.229941] random: dropbear: uninitialized urandom read (32 bytes read) dropbear. Starting telnet daemon. Starting rpcbind daemon...done. creating NFS state directory: done starting statd: done hwclock: can't open '/dev/misc/rtc': No such file or directory Starting syslogd/klogd: done Starting thttpd. ioctl FBIOPUT_VSCREENINFO: Invalid argument Starting PVR find: /lib/modules/4.14.67-gd315a9bb00: No such file or directory insmod: ERROR: missing filename. Could not find pvrsrvkm driver Starting Lighttpd Web Server: [ 20.919902] random: lighttpd: uninitialized urandom read (4096 bytes read) lighttpd. 2015-09-15 08:35:11: (/home/teddy/tl437x/openembedded/tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa9t2hf-vfp-neon-linux-gnueabi/lighttpd/1.4.33-r1/lighttpd-1.4.33/src/log.c.166) server started / [ 21.028964] random: crng init done Starting Matrix GUI application. Enabling thermal zones... /etc/rc5.d/S98thermal-zone-init: line 7: /sys/class/thermal/thermal_zone*/mode: No such file or directory [ 22.245577] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx [ 22.254839] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready *************************************************************** *************************************************************** NOTICE: This file system contains the followin GPLv3 packages: autoconf binutils cpp-symlinks cpp g++-symlinks g++ gcc-symlinks gcc gdbserver gstreamer1.0-libav libgmp10 libmpc3 libmpfr4 make If you do not wish to distribute GPLv3 components please remove the above packages prior to distribution. This can be done using the opkg remove command. i.e.: opkg remove <package> Where <package> is the name printed in the list above NOTE: If the package is a dependency of another package you will be notified of the dependent packages. You should use the --force-removal-of-dependent-packages option to also remove the dependent packages as well *************************************************************** *************************************************************** Stopping Bootlog daemon: bootlogd. _____ _____ _ _ | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_ | | _| .'| . | . | | __| _| . | | | -_| _| _| |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_| |___| |___| Arago Project http://arago-project.org CR ttyO0 Arago 2015.05 CR ttyO0 CR login: root (automatic login)
user3529609 said:I change the script to MKUBIFS_ARGS="-F -m 2048 -e 126976 -c 4095", UBINIZE_ARGS="-m 2048 -p 128KiB -s 2048 -O 2048" and try again, it is still kernel panic.
user3529609 said:When I change the new file-system "custom-am437x-evm-rootfs.ubi " to the old "ubi.img" in NAND with others the same. it seem ok! I give the restart information in the attachment when reset:
Hi,
I attach the log file with kernel panic the name session_page2048_panic.log. I also try with the 512 sub-page, it is also kernel panic and I attach the log with name sessionJ_page512_panic.log here.
the page 512 generated and the reusult is:
root@cr:/media/Am437x/TouchScreen# ./create-ubifs.sh ./rootfs
Parameters:
image_rootfs_dir ..... "./rootfs"
image_name_prefix .... "/media/Am437x/ti-sdk-05.01.00.11/filesystem/custom-am437x-evm-rootfs"
vol_name ............. "am437x-evm-rootfs"
mkfs.ubifs
root: ./rootfs/
min_io_size: 2048
leb_size: 126976
max_leb_cnt: 4095
output: /media/Am437x/ti-sdk-05.01.00.11/filesystem/custom-am437x-evm-rootfs.ubifs
jrn_size: 8388608
reserved: 0
compr: lzo
keyhash: r5
fanout: 8
orph_lebs: 1
space_fixup: 1
super lebs: 1
master lebs: 2
log_lebs: 5
lpt_lebs: 2
orph_lebs: 1
main_lebs: 1076
gc lebs: 1
index lebs: 20
leb_cnt: 1087
UUID: 75C741B2-D09D-4E02-8F46-C811EB27DFAD
Success!
ubinize: LEB size: 126976
ubinize: PEB size: 131072
ubinize: min. I/O size: 2048
ubinize: sub-page size: 512
ubinize: VID offset: 2048
ubinize: data offset: 4096
ubinize: UBI image sequence number: 2019124307
ubinize: loaded the ini-file "/media/Am437x/ti-sdk-05.01.00.11/filesystem/custom-am437x-evm-rootfs.ubinize.cfg"
ubinize: count of sections: 1
ubinize: parsing section "ubifs"
ubinize: mode=ubi, keep parsing
ubinize: volume type: dynamic
ubinize: volume ID: 0
ubinize: volume size was not specified in section "ubifs", assume minimum to fit image "/media/Am437x/ti-sdk-05.01.00.11/filesystem/custom-am437x-evm-rootfs.ubifs"138022912 bytes (131.6 MiB)
ubinize: volume name: am437x-evm-rootfs
ubinize: volume alignment: 1
ubinize: autoresize flags found
ubinize: adding volume 0
ubinize: writing volume 0
ubinize: image file: /media/Am437x/ti-sdk-05.01.00.11/filesystem/custom-am437x-evm-rootfs.ubifs
ubinize: writing layout volume
ubinize: done
Success! The UBI image is available at "/media/Am437x/ti-sdk-05.01.00.11/filesystem/custom-am437x-evm-rootfs.ubi"
When I change the ubi, I erase all NAND chip(nand erase.chip) and transfer all images(MLO,u-boot.img,zImage,am437x-gp-evm.dtb,ubi.img) to NAND,only with the ubi.img different(the old ubi.img or the new generated custom-am437x-evm-rootfs.ubi).
As for "rootwait=1", I don't know how to process it and don't take any arguments. can you show me a example? All the images are from the SDK, I don't change any parameter now.
U-Boot SPL 2018.01-00444-ge782a78ca9-dirty (Jan 30 2019 - 10:21:10) Trying to boot from NAND SPL: Please implement spl_start_uboot() for your board SPL: Direct Linux boot not active! U-Boot 2018.01-00444-ge782a78ca9-dirty (Jan 30 2019 - 10:21:10 +0800) CPU : AM437X-GP rev 1.2 Model: TI AM437x GP EVM DRAM: 1 GiB PMIC: TPS65218 NAND: 512 MiB MMC: OMAP SD/MMC: 0 MMC: no card present ** Bad device mmc 0 ** Using default environment Net: <ethaddr> not set. Validating first E-fuse MAC cpsw, usb_ether Hit any key to stop autoboot: 0 MMC: no card present MMC: no card present MMC: no card present MMC: no card present starting USB... USB0: Register 2000440 NbrPorts 2 Starting the controller USB XHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Device 0: device type unknown ... is now current device MMC: no card present ** Bad device mmc 0 ** ** Bad device usb 0 ** Booting from nand ... NAND read: device 0 offset 0x100000, size 0x80000 524288 bytes read: OK NAND read: device 0 offset 0x300000, size 0x700000 7340032 bytes read: OK ## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Loading Device Tree to 8fff0000, end 8ffffe54 ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.14.67-gd315a9bb00 (root@cr) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #1 PREEMPT Mon Dec 24 09:45:55 CST 2018 [ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: TI AM437x GP EVM [ 0.000000] Memory policy: Data cache writeback [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: UEFI not found. [ 0.000000] cma: Reserved 48 MiB at 0xbd000000 [ 0.000000] CPU: All CPU(s) started in SVC mode. [ 0.000000] AM437x ES1.2 (sgx neon) [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260416 [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1 [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 976228K/1048576K available (8192K kernel code, 328K rwdata, 2488K rodata, 1024K init, 276K bss, 23196K reserved, 49152K cma-reserved, 212992K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB) [ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB) [ 0.000000] .data : 0xc0d00000 - 0xc0d52250 ( 329 kB) [ 0.000000] .bss : 0xc0d52250 - 0xc0d974bc ( 277 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Tasks RCU enabled. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] L2C: platform modifies aux control register: 0x0e030000 -> 0x3e430000 [ 0.000000] L2C: DT/platform modifies aux control register: 0x0e030000 -> 0x3e430000 [ 0.000000] L2C-310 enabling early BRESP for Cortex-A9 [ 0.000000] OMAP L2C310: ROM does not support power control setting [ 0.000000] L2C-310 dynamic clock gating disabled, standby mode disabled [ 0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB [ 0.000000] L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x4e430000 [ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz [ 0.000012] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns [ 0.000028] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000036] OMAP clocksource: timer1 at 24000000 Hz [ 0.000418] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns [ 0.000429] OMAP clocksource: 32k_counter at 32768 Hz [ 0.000824] Console: colour dummy device 80x30 [ 0.000850] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0' [ 0.000856] This ensures that you still see kernel messages. Please [ 0.000860] update your kernel commandline. [ 0.000885] Calibrating delay loop... 1993.93 BogoMIPS (lpj=9969664) [ 0.060146] pid_max: default: 32768 minimum: 301 [ 0.060313] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.060336] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.060997] CPU: Testing write buffer coherency: ok [ 0.061713] Setting up static identity map for 0x80100000 - 0x80100060 [ 0.061856] Hierarchical SRCU implementation. [ 0.062178] EFI services will not be available. [ 0.063023] devtmpfs: initialized [ 0.071687] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1ac with crng_init=0 [ 0.072084] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 [ 0.072362] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.072383] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.075575] pinctrl core: initialized pinctrl subsystem [ 0.076231] DMI not present or invalid. [ 0.076607] NET: Registered protocol family 16 [ 0.078172] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.149378] cpuidle: using governor ladder [ 0.149413] cpuidle: using governor menu [ 0.154756] omap_gpio 44e07000.gpio: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/gpio0_pins, deferring probe [ 0.155523] OMAP GPIO hardware version 0.1 [ 0.157419] omap_gpio 48322000.gpio: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/display_mux_pins, deferring probe [ 0.161122] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/nand_flash_x8, deferring probe [ 0.164996] No ATAGs? [ 0.165021] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. [ 0.165035] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.176946] edma 49000000.edma: TI EDMA DMA engine driver [ 0.181016] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/i2c0_pins, deferring probe [ 0.181074] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/i2c1_pins, deferring probe [ 0.181211] media: Linux media interface: v0.10 [ 0.181247] Linux video capture interface: v2.00 [ 0.181353] pps_core: LinuxPPS API ver. 1 registered [ 0.181362] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.181383] PTP clock support registered [ 0.181415] EDAC MC: Ver: 3.0.0 [ 0.181822] dmi: Firmware registration failed. [ 0.182154] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400 [ 0.182531] Advanced Linux Sound Architecture Driver Initialized. [ 0.183537] clocksource: Switched to clocksource timer1 [ 0.190673] NET: Registered protocol family 2 [ 0.191263] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.191328] TCP bind hash table entries: 8192 (order: 3, 32768 bytes) [ 0.191402] TCP: Hash tables configured (established 8192 bind 8192) [ 0.191565] UDP hash table entries: 512 (order: 1, 8192 bytes) [ 0.191588] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes) [ 0.191729] NET: Registered protocol family 1 [ 0.192144] RPC: Registered named UNIX socket transport module. [ 0.192156] RPC: Registered udp transport module. [ 0.192161] RPC: Registered tcp transport module. [ 0.192166] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.194200] workingset: timestamp_bits=14 max_order=18 bucket_order=4 [ 0.197598] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.198259] NFS: Registering the id_resolver key type [ 0.198295] Key type id_resolver registered [ 0.198301] Key type id_legacy registered [ 0.198338] ntfs: driver 2.1.32 [Flags: R/O]. [ 0.200247] bounce: pool size: 64 pages [ 0.200329] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245) [ 0.200340] io scheduler noop registered [ 0.200346] io scheduler deadline registered [ 0.200540] io scheduler cfq registered (default) [ 0.200550] io scheduler mq-deadline registered [ 0.200556] io scheduler kyber registered [ 0.203471] pinctrl-single 44e10800.pinmux: 199 pins at pa f9e10800 size 796 [ 0.206489] pwm-backlight backlight: backlight supply power not found, using dummy regulator [ 0.247968] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled [ 0.250138] omap8250 44e09000.serial: No clock speed specified: using default: 48000000 [ 0.250722] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250 [ 0.978069] console [ttyS0] enabled [ 0.982030] omap8250 481a6000.serial: No clock speed specified: using default: 48000000 [ 0.990702] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 31, base_baud = 3000000) is a 8250 [ 1.001337] omap_rng 48310000.rng: Random Number Generator ver. 20 [ 1.008742] omapdss_dss 4832a000.dss: 4832a000.dss supply vdda_video not found, using dummy regulator [ 1.018193] DSS: OMAP DSS rev 2.0 [ 1.022327] omapdss_dss 4832a000.dss: bound 4832a400.dispc (ops dispc_component_ops) [ 1.031470] panel-dpi display: display supply vcc not found, using dummy regulator [ 1.051254] brd: module loaded [ 1.062415] loop: module loaded [ 1.068012] libphy: Fixed MDIO Bus: probed [ 1.143601] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000 [ 1.151301] davinci_mdio 4a101000.mdio: detected phy mask ffffffce [ 1.160150] libphy: 4a101000.mdio: probed [ 1.164283] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver RTL8211F Gigabit Ethernet [ 1.173932] davinci_mdio 4a101000.mdio: phy[4]: device 4a101000.mdio:04, driver RTL8211F Gigabit Ethernet [ 1.183629] davinci_mdio 4a101000.mdio: phy[5]: device 4a101000.mdio:05, driver RTL8211F Gigabit Ethernet [ 1.194157] cpsw 4a100000.ethernet: Detected MACID = 7c:38:66:21:be:7e [ 1.200813] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4 [ 1.207285] cpsw 4a100000.ethernet: ALE Table size 1024 [ 1.212574] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies) [ 1.220998] i2c /dev entries driver [ 1.225001] IR NEC protocol handler initialized [ 1.229556] IR RC5(x/sz) protocol handler initialized [ 1.234658] IR RC6 protocol handler initialized [ 1.239207] IR JVC protocol handler initialized [ 1.243765] IR Sony protocol handler initialized [ 1.248399] IR SANYO protocol handler initialized [ 1.253119] IR Sharp protocol handler initialized [ 1.257851] IR MCE Keyboard/mouse protocol handler initialized [ 1.263842] IR XMP protocol handler initialized [ 1.269932] cpuidle: enable-method property 'ti,am4372' found operations [ 1.277123] sdhci: Secure Digital Host Controller Interface driver [ 1.283330] sdhci: Copyright(c) Pierre Ossman [ 1.343835] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.353469] ledtrig-cpu: registered to indicate activity on CPUs [ 1.363504] NET: Registered protocol family 10 [ 1.370239] Segment Routing with IPv6 [ 1.374098] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 1.380607] NET: Registered protocol family 17 [ 1.385455] Key type dns_resolver registered [ 1.389930] omap_voltage_late_init: Voltage driver support not added [ 1.402323] omapdrm omapdrm.0: DMM not available, disable DMM support [ 1.409289] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 1.416006] [drm] No driver support for vblank timestamp query. [ 1.484331] Console: switching to colour frame buffer device 100x30 [ 1.507424] omapdrm omapdrm.0: fb0: omapdrm frame buffer device [ 1.514078] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0 [ 1.521808] GPIO line 119 (SelEMMCorNAND) hogged as output/low [ 1.528474] GPIO line 136 (SelLCDorHDMI) hogged as output/high [ 1.535071] omap-gpmc 50000000.gpmc: GPMC revision 6.0 [ 1.540241] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000 [ 1.547982] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xdc [ 1.554425] nand: AMD/Spansion S34ML04G2 [ 1.558365] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128 [ 1.566169] using OMAP_ECC_BCH16_CODE_HW ECC scheme [ 1.571151] 10 ofpart partitions found on MTD device omap2-nand.0 [ 1.577294] Creating 10 MTD partitions on "omap2-nand.0": [ 1.582734] 0x000000000000-0x000000040000 : "NAND.SPL" [ 1.588948] 0x000000040000-0x000000080000 : "NAND.SPL.backup1" [ 1.595768] 0x000000080000-0x0000000c0000 : "NAND.SPL.backup2" [ 1.602533] 0x0000000c0000-0x000000100000 : "NAND.SPL.backup3" [ 1.609303] 0x000000100000-0x000000180000 : "NAND.u-boot-spl-os" [ 1.616375] 0x000000180000-0x000000280000 : "NAND.u-boot" [ 1.623005] 0x000000280000-0x0000002c0000 : "NAND.u-boot-env" [ 1.629674] 0x0000002c0000-0x000000300000 : "NAND.u-boot-env.backup1" [ 1.637087] 0x000000300000-0x000000a00000 : "NAND.kernel" [ 1.647101] 0x000000a00000-0x000020000000 : "NAND.file-system" [ 1.953584] NOHZ: local_softirq_pending 02 [ 1.974112] omap_i2c 44e0b000.i2c: bus 0 rev0.12 at 100 kHz [ 1.981332] omap_i2c 4802a000.i2c: bus 1 rev0.12 at 100 kHz [ 1.988934] omap_hsmmc 48060000.mmc: Got CD GPIO [ 2.053606] NOHZ: local_softirq_pending 02 [ 2.059041] ubi0: attaching mtd9 [ 2.078847] random: fast init done [ 3.684721] ubi0: scanning is finished [ 3.724901] ubi0: volume 0 ("am437x-evm-rootfs") re-sized from 1087 to 3932 LEBs [ 3.732966] ubi0: attached mtd9 (name "NAND.file-system", size 502 MiB) [ 3.739709] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes [ 3.746632] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512 [ 3.753381] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 3.760387] ubi0: good PEBs: 4016, bad PEBs: 0, corrupted PEBs: 0 [ 3.766543] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128 [ 3.773811] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1632736484 [ 3.782989] ubi0: available PEBs: 0, total reserved PEBs: 4016, PEBs reserved for bad PEB handling: 80 [ 3.792352] ubi0: background thread "ubi_bgt0d" started, PID 49 [ 3.798691] hctosys: unable to open rtc device (rtc0) [ 3.799321] evm_v3_3d: disabling [ 3.799327] vmmcwl_fixed: disabling [ 3.799338] ALSA device list: [ 3.799341] No soundcards found. [ 3.818245] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19 [ 3.827965] Please append a correct "root=" boot option; here are the available partitions: [ 3.838324] 0100 65536 ram0 [ 3.838329] (driver?) [ 3.848171] 0101 65536 ram1 [ 3.848176] (driver?) [ 3.858010] 0102 65536 ram2 [ 3.858014] (driver?) [ 3.867802] 0103 65536 ram3 [ 3.867806] (driver?) [ 3.877566] 0104 65536 ram4 [ 3.877569] (driver?) [ 3.887413] 0105 65536 ram5 [ 3.887416] (driver?) [ 3.897236] 0106 65536 ram6 [ 3.897239] (driver?) [ 3.907018] 0107 65536 ram7 [ 3.907021] (driver?) [ 3.916842] 0108 65536 ram8 [ 3.916845] (driver?) [ 3.926665] 0109 65536 ram9 [ 3.926668] (driver?) [ 3.936513] 010a 65536 ram10 [ 3.936516] (driver?) [ 3.946378] 010b 65536 ram11 [ 3.946381] (driver?) [ 3.956243] 010c 65536 ram12 [ 3.956246] (driver?) [ 3.966151] 010d 65536 ram13 [ 3.966154] (driver?) [ 3.976082] 010e 65536 ram14 [ 3.976085] (driver?) [ 3.985993] 010f 65536 ram15 [ 3.985997] (driver?) [ 3.995926] 1f00 256 mtdblock0 [ 3.995930] (driver?) [ 4.006123] 1f01 256 mtdblock1 [ 4.006126] (driver?) [ 4.016396] 1f02 256 mtdblock2 [ 4.016399] (driver?) [ 4.026659] 1f03 256 mtdblock3 [ 4.026663] (driver?) [ 4.036938] 1f04 512 mtdblock4 [ 4.036941] (driver?) [ 4.047126] 1f05 1024 mtdblock5 [ 4.047130] (driver?) [ 4.057404] 1f06 256 mtdblock6 [ 4.057408] (driver?) [ 4.067594] 1f07 256 mtdblock7 [ 4.067597] (driver?) [ 4.077839] 1f08 7168 mtdblock8 [ 4.077842] (driver?) [ 4.088089] 1f09 514048 mtdblock9 [ 4.088092] (driver?) [ 4.098267] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 4.106573] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
U-Boot SPL 2018.01-00444-ge782a78ca9-dirty (Jan 30 2019 - 10:21:10) Trying to boot from NAND SPL: Please implement spl_start_uboot() for your board SPL: Direct Linux boot not active! U-Boot 2018.01-00444-ge782a78ca9-dirty (Jan 30 2019 - 10:21:10 +0800) CPU : AM437X-GP rev 1.2 Model: TI AM437x GP EVM DRAM: 1 GiB PMIC: TPS65218 NAND: 512 MiB MMC: OMAP SD/MMC: 0 MMC: no card present ** Bad device mmc 0 ** Using default environment Net: <ethaddr> not set. Validating first E-fuse MAC cpsw, usb_ether Hit any key to stop autoboot: 0 MMC: no card present MMC: no card present MMC: no card present MMC: no card present starting USB... USB0: Register 2000440 NbrPorts 2 Starting the controller USB XHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Device 0: device type unknown ... is now current device MMC: no card present ** Bad device mmc 0 ** ** Bad device usb 0 ** Booting from nand ... NAND read: device 0 offset 0x100000, size 0x80000 524288 bytes read: OK NAND read: device 0 offset 0x300000, size 0x700000 7340032 bytes read: OK ## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Loading Device Tree to 8fff0000, end 8ffffe54 ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.14.67-gd315a9bb00 (root@cr) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #1 PREEMPT Mon Dec 24 09:45:55 CST 2018 [ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: TI AM437x GP EVM [ 0.000000] Memory policy: Data cache writeback [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: UEFI not found. [ 0.000000] cma: Reserved 48 MiB at 0xbd000000 [ 0.000000] CPU: All CPU(s) started in SVC mode. [ 0.000000] AM437x ES1.2 (sgx neon) [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260416 [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1 [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 976228K/1048576K available (8192K kernel code, 328K rwdata, 2488K rodata, 1024K init, 276K bss, 23196K reserved, 49152K cma-reserved, 212992K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB) [ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB) [ 0.000000] .data : 0xc0d00000 - 0xc0d52250 ( 329 kB) [ 0.000000] .bss : 0xc0d52250 - 0xc0d974bc ( 277 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Tasks RCU enabled. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] L2C: platform modifies aux control register: 0x0e030000 -> 0x3e430000 [ 0.000000] L2C: DT/platform modifies aux control register: 0x0e030000 -> 0x3e430000 [ 0.000000] L2C-310 enabling early BRESP for Cortex-A9 [ 0.000000] OMAP L2C310: ROM does not support power control setting [ 0.000000] L2C-310 dynamic clock gating disabled, standby mode disabled [ 0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB [ 0.000000] L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x4e430000 [ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz [ 0.000010] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns [ 0.000027] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000034] OMAP clocksource: timer1 at 24000000 Hz [ 0.000425] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns [ 0.000435] OMAP clocksource: 32k_counter at 32768 Hz [ 0.000830] Console: colour dummy device 80x30 [ 0.000858] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0' [ 0.000863] This ensures that you still see kernel messages. Please [ 0.000868] update your kernel commandline. [ 0.000893] Calibrating delay loop... 1987.37 BogoMIPS (lpj=9936896) [ 0.060184] pid_max: default: 32768 minimum: 301 [ 0.060341] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.060362] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.061026] CPU: Testing write buffer coherency: ok [ 0.061750] Setting up static identity map for 0x80100000 - 0x80100060 [ 0.061890] Hierarchical SRCU implementation. [ 0.062210] EFI services will not be available. [ 0.063048] devtmpfs: initialized [ 0.071718] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1ac with crng_init=0 [ 0.072116] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 [ 0.072393] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.072414] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.075659] pinctrl core: initialized pinctrl subsystem [ 0.076309] DMI not present or invalid. [ 0.076686] NET: Registered protocol family 16 [ 0.078247] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.149427] cpuidle: using governor ladder [ 0.149461] cpuidle: using governor menu [ 0.154764] omap_gpio 44e07000.gpio: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/gpio0_pins, deferring probe [ 0.155545] OMAP GPIO hardware version 0.1 [ 0.157438] omap_gpio 48322000.gpio: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/display_mux_pins, deferring probe [ 0.161102] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/nand_flash_x8, deferring probe [ 0.164986] No ATAGs? [ 0.165010] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. [ 0.165024] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.176867] edma 49000000.edma: TI EDMA DMA engine driver [ 0.180937] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/i2c0_pins, deferring probe [ 0.180998] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp@44000000/l4_wkup@44c00000/scm@210000/pinmux@800/i2c1_pins, deferring probe [ 0.181130] media: Linux media interface: v0.10 [ 0.181167] Linux video capture interface: v2.00 [ 0.181267] pps_core: LinuxPPS API ver. 1 registered [ 0.181275] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.181296] PTP clock support registered [ 0.181327] EDAC MC: Ver: 3.0.0 [ 0.181734] dmi: Firmware registration failed. [ 0.182065] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400 [ 0.182439] Advanced Linux Sound Architecture Driver Initialized. [ 0.183452] clocksource: Switched to clocksource timer1 [ 0.190563] NET: Registered protocol family 2 [ 0.191151] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.191218] TCP bind hash table entries: 8192 (order: 3, 32768 bytes) [ 0.191292] TCP: Hash tables configured (established 8192 bind 8192) [ 0.191456] UDP hash table entries: 512 (order: 1, 8192 bytes) [ 0.191477] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes) [ 0.191621] NET: Registered protocol family 1 [ 0.192028] RPC: Registered named UNIX socket transport module. [ 0.192041] RPC: Registered udp transport module. [ 0.192046] RPC: Registered tcp transport module. [ 0.192052] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.194100] workingset: timestamp_bits=14 max_order=18 bucket_order=4 [ 0.197509] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.198168] NFS: Registering the id_resolver key type [ 0.198203] Key type id_resolver registered [ 0.198210] Key type id_legacy registered [ 0.198248] ntfs: driver 2.1.32 [Flags: R/O]. [ 0.200173] bounce: pool size: 64 pages [ 0.200257] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245) [ 0.200269] io scheduler noop registered [ 0.200275] io scheduler deadline registered [ 0.200463] io scheduler cfq registered (default) [ 0.200473] io scheduler mq-deadline registered [ 0.200480] io scheduler kyber registered [ 0.203405] pinctrl-single 44e10800.pinmux: 199 pins at pa f9e10800 size 796 [ 0.206443] pwm-backlight backlight: backlight supply power not found, using dummy regulator [ 0.247823] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled [ 0.249990] omap8250 44e09000.serial: No clock speed specified: using default: 48000000 [ 0.250569] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250 [ 0.977929] console [ttyS0] enabled [ 0.981893] omap8250 481a6000.serial: No clock speed specified: using default: 48000000 [ 0.990543] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 31, base_baud = 3000000) is a 8250 [ 1.001157] omap_rng 48310000.rng: Random Number Generator ver. 20 [ 1.008562] omapdss_dss 4832a000.dss: 4832a000.dss supply vdda_video not found, using dummy regulator [ 1.018012] DSS: OMAP DSS rev 2.0 [ 1.022146] omapdss_dss 4832a000.dss: bound 4832a400.dispc (ops dispc_component_ops) [ 1.031302] panel-dpi display: display supply vcc not found, using dummy regulator [ 1.051058] brd: module loaded [ 1.062247] loop: module loaded [ 1.067845] libphy: Fixed MDIO Bus: probed [ 1.143513] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000 [ 1.151213] davinci_mdio 4a101000.mdio: detected phy mask ffffffce [ 1.160061] libphy: 4a101000.mdio: probed [ 1.164192] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver RTL8211F Gigabit Ethernet [ 1.173842] davinci_mdio 4a101000.mdio: phy[4]: device 4a101000.mdio:04, driver RTL8211F Gigabit Ethernet [ 1.183542] davinci_mdio 4a101000.mdio: phy[5]: device 4a101000.mdio:05, driver RTL8211F Gigabit Ethernet [ 1.194073] cpsw 4a100000.ethernet: Detected MACID = 7c:38:66:21:be:7e [ 1.200730] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4 [ 1.207198] cpsw 4a100000.ethernet: ALE Table size 1024 [ 1.212488] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies) [ 1.220925] i2c /dev entries driver [ 1.224938] IR NEC protocol handler initialized [ 1.229492] IR RC5(x/sz) protocol handler initialized [ 1.234597] IR RC6 protocol handler initialized [ 1.239145] IR JVC protocol handler initialized [ 1.243704] IR Sony protocol handler initialized [ 1.248337] IR SANYO protocol handler initialized [ 1.253057] IR Sharp protocol handler initialized [ 1.257788] IR MCE Keyboard/mouse protocol handler initialized [ 1.263762] IR XMP protocol handler initialized [ 1.269842] cpuidle: enable-method property 'ti,am4372' found operations [ 1.277027] sdhci: Secure Digital Host Controller Interface driver [ 1.283235] sdhci: Copyright(c) Pierre Ossman [ 1.343757] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.353383] ledtrig-cpu: registered to indicate activity on CPUs [ 1.363420] NET: Registered protocol family 10 [ 1.370138] Segment Routing with IPv6 [ 1.373994] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 1.380508] NET: Registered protocol family 17 [ 1.385354] Key type dns_resolver registered [ 1.389847] omap_voltage_late_init: Voltage driver support not added [ 1.402228] omapdrm omapdrm.0: DMM not available, disable DMM support [ 1.409190] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 1.415907] [drm] No driver support for vblank timestamp query. [ 1.484265] Console: switching to colour frame buffer device 100x30 [ 1.507300] omapdrm omapdrm.0: fb0: omapdrm frame buffer device [ 1.513956] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0 [ 1.521682] GPIO line 119 (SelEMMCorNAND) hogged as output/low [ 1.528336] GPIO line 136 (SelLCDorHDMI) hogged as output/high [ 1.534924] omap-gpmc 50000000.gpmc: GPMC revision 6.0 [ 1.540095] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000 [ 1.547832] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xdc [ 1.554274] nand: AMD/Spansion S34ML04G2 [ 1.558216] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128 [ 1.566019] using OMAP_ECC_BCH16_CODE_HW ECC scheme [ 1.571004] 10 ofpart partitions found on MTD device omap2-nand.0 [ 1.577145] Creating 10 MTD partitions on "omap2-nand.0": [ 1.582586] 0x000000000000-0x000000040000 : "NAND.SPL" [ 1.588809] 0x000000040000-0x000000080000 : "NAND.SPL.backup1" [ 1.595623] 0x000000080000-0x0000000c0000 : "NAND.SPL.backup2" [ 1.602381] 0x0000000c0000-0x000000100000 : "NAND.SPL.backup3" [ 1.609135] 0x000000100000-0x000000180000 : "NAND.u-boot-spl-os" [ 1.616212] 0x000000180000-0x000000280000 : "NAND.u-boot" [ 1.622825] 0x000000280000-0x0000002c0000 : "NAND.u-boot-env" [ 1.629499] 0x0000002c0000-0x000000300000 : "NAND.u-boot-env.backup1" [ 1.636915] 0x000000300000-0x000000a00000 : "NAND.kernel" [ 1.646914] 0x000000a00000-0x000020000000 : "NAND.file-system" [ 1.953499] NOHZ: local_softirq_pending 02 [ 1.974012] omap_i2c 44e0b000.i2c: bus 0 rev0.12 at 100 kHz [ 1.981208] omap_i2c 4802a000.i2c: bus 1 rev0.12 at 100 kHz [ 1.988806] omap_hsmmc 48060000.mmc: Got CD GPIO [ 2.053517] NOHZ: local_softirq_pending 02 [ 2.058953] ubi0: attaching mtd9 [ 2.082806] random: fast init done [ 3.688771] ubi0: scanning is finished [ 3.728988] ubi0: volume 0 ("am437x-evm-rootfs") re-sized from 1087 to 3932 LEBs [ 3.737107] ubi0: attached mtd9 (name "NAND.file-system", size 502 MiB) [ 3.743844] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes [ 3.750770] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512 [ 3.757518] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 3.764539] ubi0: good PEBs: 4016, bad PEBs: 0, corrupted PEBs: 0 [ 3.770665] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128 [ 3.777933] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 2019124307 [ 3.787136] ubi0: available PEBs: 0, total reserved PEBs: 4016, PEBs reserved for bad PEB handling: 80 [ 3.796500] ubi0: background thread "ubi_bgt0d" started, PID 49 [ 3.803811] hctosys: unable to open rtc device (rtc0) [ 3.809519] evm_v3_3d: disabling [ 3.812768] vmmcwl_fixed: disabling [ 3.816460] ALSA device list: [ 3.821336] No soundcards found. [ 3.829141] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19 [ 3.839184] Please append a correct "root=" boot option; here are the available partitions: [ 3.849432] 0100 65536 ram0 [ 3.849437] (driver?) [ 3.859233] 0101 65536 ram1 [ 3.859237] (driver?) [ 3.869002] 0102 65536 ram2 [ 3.869006] (driver?) [ 3.878831] 0103 65536 ram3 [ 3.878834] (driver?) [ 3.888653] 0104 65536 ram4 [ 3.888657] (driver?) [ 3.898475] 0105 65536 ram5 [ 3.898479] (driver?) [ 3.908225] 0106 65536 ram6 [ 3.908229] (driver?) [ 3.918043] 0107 65536 ram7 [ 3.918046] (driver?) [ 3.927853] 0108 65536 ram8 [ 3.927857] (driver?) [ 3.937610] 0109 65536 ram9 [ 3.937613] (driver?) [ 3.947392] 010a 65536 ram10 [ 3.947395] (driver?) [ 3.957314] 010b 65536 ram11 [ 3.957317] (driver?) [ 3.967241] 010c 65536 ram12 [ 3.967245] (driver?) [ 3.977152] 010d 65536 ram13 [ 3.977155] (driver?) [ 3.987085] 010e 65536 ram14 [ 3.987088] (driver?) [ 3.996930] 010f 65536 ram15 [ 3.996933] (driver?) [ 4.006873] 1f00 256 mtdblock0 [ 4.006877] (driver?) [ 4.017137] 1f01 256 mtdblock1 [ 4.017141] (driver?) [ 4.027413] 1f02 256 mtdblock2 [ 4.027416] (driver?) [ 4.037611] 1f03 256 mtdblock3 [ 4.037615] (driver?) [ 4.047859] 1f04 512 mtdblock4 [ 4.047862] (driver?) [ 4.058046] 1f05 1024 mtdblock5 [ 4.058050] (driver?) [ 4.068294] 1f06 256 mtdblock6 [ 4.068298] (driver?) [ 4.078550] 1f07 256 mtdblock7 [ 4.078553] (driver?) [ 4.088732] 1f08 7168 mtdblock8 [ 4.088736] (driver?) [ 4.098985] 1f09 514048 mtdblock9 [ 4.098989] (driver?) [ 4.109237] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 4.117543] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Hello user3529609,
The kernel panic you see this time is different from the previous ones. It is caused by not matching ubi0: volume 0 ("am437x-evm-rootfs") and nandroot=ubi0:rootfs in U-Boot environments. To fix this you need to pass the -v rootfs to ./create-ubifs.sh script while creating the uibfs image or change the nandroot name in your U-Boot environments to am437x-evm-rootfs.
./create-ubifs.sh -v rootfs
setenv nandroot ubi0:am437x-evm-rootfs rw ubi.mtd=NAND.file-system,2048
To fix the rootwait, enter this command in U-Boot console.
setenv nandrootfstype ubifs rootwait
saveenv
Best regards,
Kemal
Dear Kemal,
I pass the -v rootfs to ./create-ubifs.sh, and create the ubifs, when the ubi transfer to NAND, it run well.
Many thanks for your support!
As for the second way, the env cann't save to NAND:
=> setenv nandroot ubi0:am437x-evm-rootfs rw ubi.mtd=NAND.file-system,2048
=> setenv nandrootfstype ubifs rootwait
=> saveenv
Saving Environment to FAT...
MMC: no card present
** Bad device mmc 0 **
=>
By the way, I use 512 sub-page size now, Is it better than 2048 sub-page? which one is better?
Best regards
user3529609 said:As for the second way, the env cann't save to NAND:
user3529609 said:By the way, I use 512 sub-page size now, Is it better than 2048 sub-page? which one is better?
Dear Kemal,
When I setup the CONFIG_ENV_IS_IN_NAND=y in <Processor SDK>/board-support/u-boot-<version>/configs/am43xx_evm_defconfig for the NAND env. save and recompile u-boot, it gave following errors:
In file included from ./include/common.h:728:0:
include/environment.h:79:5: error: #error "Need to define CONFIG_ENV_OFFSET when using CONFIG_ENV_IS_IN_NAND"
# error "Need to define CONFIG_ENV_OFFSET when using CONFIG_ENV_IS_IN_NAND"
^~~~~
In file included from ./include/common.h:728:0:
include/environment.h:79:5: error: #error "Need to define CONFIG_ENV_OFFSET when using CONFIG_ENV_IS_IN_NAND"
# error "Need to define CONFIG_ENV_OFFSET when using CONFIG_ENV_IS_IN_NAND"
^~~~~
In file included from ./include/common.h:728:0:
include/environment.h:79:5: error: #error "Need to define CONFIG_ENV_OFFSET when using CONFIG_ENV_IS_IN_NAND"
# error "Need to define CONFIG_ENV_OFFSET when using CONFIG_ENV_IS_IN_NAND"
^~~~~
I don't know how and where to define CONFIG_ENV_OFFSET.
Best Regards!
Dear Kemal,
Thanks for your support!
Have a nice weekend!
We have another problem:" How to build RAM filesystem and RAM disk with NAND" and I expect you can support us then.
Best Regards!