# ukl/development ecu01 20200910 boot log with the following patch diff --git a/ptxdist/configs/ecu01/barebox-defaultenv-2/boot/nand b/ptxdist/configs/ecu01/barebox-defaultenv-2/boot/nand index 346c679445d2..51293f5ef39a 100755 --- a/ptxdist/configs/ecu01/barebox-defaultenv-2/boot/nand +++ b/ptxdist/configs/ecu01/barebox-defaultenv-2/boot/nand @@ -7,7 +7,7 @@ global bootm.image="/mnt/nand0-root/boot/zImage" global bootm.oftree="/mnt/nand0-root/boot/imx25-eckelmann-ecu01.dtb" global linux.bootargs.root="vt.global_cursor_default=0 ro root=ubi0_0" global linux.bootargs.rootfstype="rootfstype=ubifs" -global linux.bootargs.ubi_mtd="ubi.mtd=3,2048" +global linux.bootargs.ubi_mtd="ubi.mtd=root,2048" global linux.bootargs.consoleblank="consoleblank=0" if [ "$PARAM_SKIP" = "true" ]; then barebox:/ reset barebox 2019.07.0-20190911-1-EAG_3.01-ga426ac926c17 #1 Wed Sep 9 13:36:54 CEST 2020 Board: Eckelmann AG ECU01 mdio_bus: miibus0: probed nand: ONFI flash detected nand: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xb1 (Micron MT29F1G16ABBEAH4), 128MiB, page size: 2048, OOB size: 64 Bad block table found at page 65472, version 0x01 Bad block table found at page 65408, version 0x01 imx-usb 53ff4400.usb@53ff4400.of: USB EHCI 1.00 imxfb imxfb: i.MX Framebuffer driver registered as fbconsole0 malloc space: 0x83e7de60 -> 0x87cfbcbf (size 62.5 MiB) running /env/bin/init... Check if Memory is flashbased ... __PASS__ Hit CTRL-C to stop autoboot: 1 __DEVELOPER_MODE__ENABLED__ nv variable modified, will save nv variables on shutdown usb: USB: scanning bus for devices... usb: 1 USB Device(s) found usb: USB: scanning bus for devices... usb: 1 USB Device(s) found running automount command 'usb && if [ -e /dev/disk0.0 ]; then mount /dev/disk0.0 /mnt/usbstorage; elif [ -e /dev/disk0 ]; then mount /dev/disk0 /mnt/usbstorage; fi' failed usb: USB: scanning bus for devices... usb: 1 USB Device(s) found running automount command 'usb && if [ -e /dev/disk0.0 ]; then mount /dev/disk0.0 /mnt/usbstorage; elif [ -e /dev/disk0 ]; then mount /dev/disk0 /mnt/usbstorage; fi' failed Booting entry 'nand' usb: USB: scanning bus for devices... usb: 1 USB Device(s) found running automount command 'usb && if [ -e /dev/disk0.0 ]; then mount /dev/disk0.0 /mnt/usbstorage; elif [ -e /dev/disk0 ]; then mount /dev/disk0 /mnt/usbstorage; fi' failed ubi0: attached by fastmap ubi0: fastmap pool size: 30 ubi0: fastmap WL pool size: 15 ubi0 warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 6, need 20 ubi0: registering /dev/nand0.root.ubi ubi0: registering root as /dev/nand0.root.ubi.root ubi0: attached mtd0 (name "nand0.root", size 80 MiB) to ubi0 ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512 ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 ubi0: good PEBs: 640, bad PEBs: 0, corrupted PEBs: 0 ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128 ubi0: max/mean erase counter: 116/75, WL threshold: 4096, image sequence number: 31310 ubi0: available PEBs: 0, total reserved PEBs: 640, PEBs reserved for bad PEB handling: 6 UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "root", R/O mode UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS (ubi0:0): FS size: 78344192 bytes (74 MiB, 617 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs) UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB) UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 843f1d60, small LPT model Loading ARM Linux zImage '/mnt/nand0-root/boot/zImage' Loading devicetree from '/mnt/nand0-root/boot/imx25-eckelmann-ecu01.dtb' commandline: console=ttymxc4,115200n consoleblank=0 vt.global_cursor_default=0 ro root=ubi0_0 rootfstype=ubifs ubi.mtd=root,2048 nv variables modified, saving them [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.9.0-g62e6294dc4e7 (ptxdist@ptxdist) (gcc version 5.4.0 (OSELAS.Toolchain-2016.06.0) ) #1 PREEMPT 2016-06-01 [ 0.000000] CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=0005317f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt:Machine model: Eckelmann AG ECU01 [ 0.000000] Memory policy: Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: console=ttymxc4,115200n consoleblank=0 vt.global_cursor_default=0 ro root=ubi0_0 rootfstype=ubifs ubi.mtd=root,2048 [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Memory: 121636K/131072K available (5846K kernel code, 205K rwdata, 1656K rodata, 252K init, 180K bss, 9436K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xc8800000 - 0xff800000 ( 880 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc05bdea0 (5848 kB) [ 0.000000] .init : 0xc075d000 - 0xc079c000 ( 252 kB) [ 0.000000] .data : 0xc079c000 - 0xc07cf5e0 ( 206 kB) [ 0.000000] .bss : 0xc07cf5e0 - 0xc07fc6e0 ( 181 kB) [ 0.000000] SLUB: HWalign=32, 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] MXC IRQ initialized [ 0.000000] Switching to timer-based delay loop, resolution 15ns [ 0.000025] sched_clock: 32 bits at 66MHz, resolution 15ns, wraps every 32292987384ns [ 0.000115] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 28740758601 ns [ 0.001632] Console: colour dummy device 80x30 [ 0.001703] Calibrating delay loop (skipped), value calculated using timer frequency.. 133.00 BogoMIPS (lpj=332500) [ 0.001755] pid_max: default: 32768 minimum: 301 [ 0.002024] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.002077] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.004288] CPU: Testing write buffer coherency: ok [ 0.005426] Setting up static identity map for 0x80008400 - 0x80008458 [ 0.011108] devtmpfs: initialized [ 0.029741] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302231375000 ns [ 0.030127] pinctrl core: initialized pinctrl subsystem [ 0.032076] NET: Registered protocol family 16 [ 0.034135] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.061483] cpuidle: using governor ladder [ 0.061943] No ATAGs? [ 0.068782] imx25-pinctrl 43fac000.iomuxc: initialized IMX pinctrl driver [ 0.147980] SCSI subsystem initialized [ 0.149339] usbcore: registered new interface driver usbfs [ 0.149658] usbcore: registered new interface driver hub [ 0.150015] usbcore: registered new device driver usb [ 0.153850] i2c i2c-0: IMX I2C adapter registered [ 0.153924] i2c i2c-0: can't use DMA, using PIO instead. [ 0.154933] pps_core: LinuxPPS API ver. 1 registered [ 0.154980] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [ 0.155101] PTP clock support registered [ 0.160663] clocksource: Switched to clocksource mxc_timer1 [ 0.210047] NET: Registered protocol family 2 [ 0.212466] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.212565] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.212636] TCP: Hash tables configured (established 1024 bind 1024) [ 0.212908] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.212998] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.213544] NET: Registered protocol family 1 [ 0.214896] RPC: Registered namred udp transport module. [ 0.214967] RPC: Registered tcp transport module. [ 0.214986] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.219195] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.219990] workingset: timestamp_bits=30 max_order=15 bucket_order=0 [ 0.254617] NFS: Registering the id_resolver key type [ 0.254720] Key type id_resolver registered [ 0.254752] Key type id_legacy registered [ 0.254819] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.273213] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 0.273269] io scheduler noop registered [ 0.273848] io scheduler cfq registered (default) [ 0.277605] imx-fb 53fbc000.lcdc: i.MX Framebuffer driver [ 0.277831] /display/display-timings/320x240: illegal timing specification in clock-frequency [ 0.277885] /display/display-timings/320x240: error reading timing properties [ 0.277909] /display: error in timing 1 [ 0.277935] /display: no timings specified [ 0.277973] imx-fb 53fbc000.lcdc: Failed to get videomode from DT [ 0.278044] imx-fb: probe of 53fbc000.lcdc failed with error -22 [ 0.281434] imx-sdma 53fd4000.sdma: Direct firmware load for imx/sdma/sdma-imx25.bin failed with error -2 [ 0.281504] imx-sdma 53fd4000.sdma: external firmware not found, using ROM firmware [ 0.297575] 43f94000.serial: ttymxc1 at MMIO 0x43f94000 (irq = 48, base_baud = 2078125) is a IMX [ 0.300212] 5002c000.serial: ttymxc4 at MMIO 0x5002c000 (irq = 56, base_baud = 2078125) is a IMX [ 0.829700] console [ttymxc4] enabled [ 0.863083] loop: module loaded [ 0.870030] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xb1 [ 0.876571] nand: Micron MT29F1G16ABBEAH4 [ 0.880635] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 0.890355] Bad block table found at page 65472, version 0x01 [ 0.896998] Bad block table found at page 65408, version 0x01 [ 0.904594] 5 ofpart partitions found on MTD device mxc_nand [ 0.910581] Creating 5 MTD partitions on "mxc_nand": [ 0.915858] 0x000000000000-0x000000100000 : "barebox" [ 0.926179] 0x000000100000-0x000000200000 : "environment" [ 0.936781] 0x000000460000-0x000005460000 : "root" [ 0.950854] 0x000005460000-0x000008000000 : "var" [ 0.962959] 0x000000200000-0x000000460000 : "history" [ 0.978295] spi_imx 43fa4000.cspi: probed [ 0.986193] spi_master spi1: cannot find modalias for /soc/spba@50000000/cspi@50010000/spidev@1 [ 0.995174] spi_master spi1: Failed to create SPI device for /soc/spba@50000000/cspi@50010000/spidev@1 [ 1.004694] spi_imx 50010000.cspi: probed [ 1.010372] libphy: Fixed MDIO Bus: probed [ 1.016916] usbcore: registered new interface driver rt2800usb [ 1.023284] usbcore: registered new interface driver rtl8192cu [ 1.029627] usbcore: registered new interface driver asix [ 1.035457] usbcore: registered new interface driver ax88179_178a [ 1.042609] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.049331] ehci-mxc: Freescale On-Chip EHCI Host driver [ 1.055998] usbcore: registered new interface driver usb-storage [ 1.073229] ci_hdrc ci_hdrc.1: EHCI Host Controller [ 1.079369] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1 [ 1.100778] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00 [ 1.109717] hub 1-0:1.0: USB hub found [ 1.113905] hub 1-0:1.0: 1 port detected [ 1.124156] input: 43fa8000.kpp as /devices/platform/soc/43f00000.aips/43fa8000.kpp/input/input0 [ 1.134626] rtc-pcf2123 spi1.0: clock was stopped. Time is not valid [ 1.141784] rtc-pcf2123 spi1.0: spiclk 4000 KHz. [ 1.146939] rtc-pcf2123 spi1.0: clock was stopped. Time is not valid [ 1.154333] rtc-pcf2123 spi1.0: rtc core: registered rtc-pcf2123 as rtc0 [ 1.161779] i2c /dev entries driver [ 1.168058] sdhci: Secure Digital Host Controller Interface driver [ 1.174444] sdhci: Copyright(c) Pierre Ossman [ 1.178944] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.186731] usbcore: registered new interface driver usbhid [ 1.192502] usbhid: USB HID core driver [ 1.198960] NET: Registered protocol family 10 [ 1.207302] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 1.216396] NET: Registered protocol family 17 [ 1.222333] Key type dns_resolver registered [ 1.248637] ubi0: attaching mtd2 [ 1.253297] random: fast init done [ 1.282650] ubi0: "delete" compatible internal volume 2147479552:0 found, will remove it [ 1.721705] ubi0: scanning is finished [ 1.737215] ubi0 warning: ubi_eba_init: cannot reserve enough PEBs for bad PEB handling, reserved 8, need 20 [ 1.750023] ubi0: attached mtd2 (name "root", size 80 MiB) [ 1.755812] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes [ 1.762850] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512 [ 1.769700] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 1.776806] ubi0: good PEBs: 640, bad PEBs: 0, corrupted PEBs: 0 [ 1.782945] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128 [ 1.790303] ubi0: max/mean erase counter: 116/75, WL threshold: 4096, image sequence number: 31310 [ 1.799398] ubi0: available PEBs: 0, total reserved PEBs: 640, PEBs reserved for bad PEB handling: 8 [ 1.808708] ubi0: background thread "ubi_bgt0d" started, PID 66 [ 1.815521] rtc-pcf2123 spi1.0: clock was stopped. Time is not valid [ 1.815541] rtc-pcf2123 spi1.0: hctosys: unable to read the hardware clock [ 1.910406] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "root", R/O mode [ 1.918719] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes [ 1.928795] UBIFS (ubi0:0): FS size: 78344192 bytes (74 MiB, 617 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs) [ 1.939368] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB) [ 1.945344] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID 53A2FF0A-26A9-4CF9-9E23-416977E18771, small LPT model [ 1.959502] VFS: Mounted root (ubifs filesystem) readonly on device 0:13. [ 1.969454] devtmpfs: mounted [ 1.975297] Freeing unused kernel memory: 252K (c075d000 - c079c000) [ 1.981830] This architecture does not have kernel memory protection. [ 2.361616] systemd[1]: System time before build time, advancing clock. [ 2.536276] systemd[1]: systemd 230 running in system mode. (-PAM -AUDIT -SELINUX -IMA -APPARMOR -SMACK -SYSVINIT -UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL -XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN) [ 2.559116] systemd[1]: Detected architecture arm. Welcome to PTXdist / EAG-ecu01! [ 2.593749] systemd[1]: Set hostname to . [ 2.604654] systemd[1]: Initializing machine ID from random generator. [ 2.612206] systemd[1]: Installed transient /etc/machine-id file. [ 3.706203] systemd[1]: sys-kernel-debug.mount: Cannot add dependency job, ignoring: Unit sys-kernel-debug.mount is masked. [ 3.718392] systemd[1]: dev-hugepages.mount: Cannot add dependency job, ignoring: Unit dev-hugepages.mount is masked. [ 3.729403] systemd[1]: sys-kernel-config.mount: Cannot add dependency job, ignoring: Unit sys-kernel-config.mount is masked. [ 3.741266] systemd[1]: systemd-udev-trigger.service: Cannot add dependency job, ignoring: Unit systemd-udev-trigger.service is masked. [ 3.753819] systemd[1]: dev-mqueue.mount: Cannot add dependency job, ignoring: Unit dev-mqueue.mount is masked. [ OK ] Started Dispatch Password Requests to Console Directory Watch. [ OK ] Listening on Journal Socket. [ OK ] Listening on udev Kernel Socket. [ OK ] Listening on udev Control Socket. [ OK ] Listening on Journal Socket (/dev/log). [ OK ] Created slice System Slice. Starting Load Kernel Modules... Starting Create list of required st... nodes for the current kernel... Starting Remount Root and Kernel File Systems... Starting Journal Service... Starting Attach data ubi partition... [ 4.318304] ads7953: loading out-of-tree module taints kernel. [ 4.347481] ads7953_init [ 4.415250] ubi1: attaching mtd4 [ OK ] Started Create list of required sta...ce nodes for the current kernel. [ 4.567604] mmc_init() called [ 4.572211] ubi1: scanning is finished [ 4.601176] ubi1 error: ubi_read_volume_table: the layout volume was not found Starting Create Static Device Nodes in /dev... [ 4.666326] ubi1 error: ubi_attach_mtd_dev: failed to attach mtd4, error -22 [ OK ] Started Remount Root and Kernel File Systems. [[ 4.810877] random: crng init done FAILED] Failed to start Attach data ubi partition. [ 4.827789] qa_driver_init() called See 'systemctl status ubi-attach.service' for details. [DEPEND] Dependency failed for Check and create ubi partitions. [DEPEND] Dependency failed for Mount /var/stat partition. [DEPEND] Dependency failed for Mount /var/dyn partition. [ OK ] Started Load Kernel Modules. Starting Apply Kernel Variables... [ OK ] Started Create Static Device Nodes in /dev. Starting udev Kernel Device Manager... [ OK ] Reached target Local File Systems (Pre). Mounting /tmp... Mounting /var/tmp... Mounting /media... Mounting /var/run... Mounting /var/lock... Mounting /var/log... Mounting /var/lib... [ OK ] Mounted /tmp. [ OK ] Mounted /media. [ OK ] Mounted /var/log. [ OK ] Mounted /var/run. [ OK ] Mounted /var/lock. [ OK ] Mounted /var/tmp. [ OK ] Mounted /var/lib. [ OK ] Started Apply Kernel Variables. Mounting /var/lib/nfs... [ OK ] Mounted /var/lib/nfs. [ OK ] Reached target Local File Systems. Starting Create Volatile Files and Directories... [ OK ] Started udev Kernel Device Manager. [FAILED] Failed to start Create Volatile Files and Directories. See 'systemctl status systemd-tmpfiles-setup.service' for details. Starting Network Time Synchronization... [ OK ] Started Journal Service. [ OK ] Started Network Time Synchronization. [ OK ] Reached target System Time Synchronized. [ OK ] Reached target System Initialization. [ OK ] Reached target System Update. Starting First boot services... [ 7.656607] systemd-rc-once[120]: remounting root rw...mounting rootfs writable [ 7.698713] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 124 [ 7.706262] systemd-rc-once[120]: done [ 7.740904] systemd-rc-once[120]: running rc.once.d services... [ 7.776234] systemd-rc-once[120]: check_bl_version ... [ 8.816299] systemd-rc-once[120]: generate device-id ... [ 8.929104] systemd-rc-once[120]: First Boot Marker [ 8.970659] systemd-rc-once[120]: fbsplash: can't open '/dev/fb0': No such file or directory [ 8.994528] systemd-rc-once[120]: running first_boot failed. [ 9.379326] systemd-rc-once[120]: running restore-etc ... [ 9.399652] systemd-rc-once[120]: No backup found in: /var/dyn/backup_etc [ 9.851632] systemd: 59 output lines suppressed due to ratelimiting [ 11.563289] systemd-rc-once[120]: remounting root ro...mounting rootfs readonly [ 11.612973] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops [ 11.630932] systemd-rc-once[120]: done [ 11.957181] ubi1: attaching mtd4 [ 12.001297] ubi1: scanning is finished [ 12.005156] ubi1 error: ubi_read_volume_table: the layout volume was not found [ 12.036026] ubi1 error: ubi_attach_mtd_dev: failed to attach mtd4, error -22 Welcome to rescue mode! After loGive root password for system maintenance (or type Control-D for normal startup):