GoTeamScotch Posted February 22, 2019 Share Posted February 22, 2019 (edited) Hello all. New ESPRESSObin owner here, so please forgive any obvious oversights I may have missed. I'm still getting familiar with it. I'm following the instructions on the Download page. I have a new 32GB Samsung SD card with an Armbian (mainline kernel 4.19.y) flashed onto it using Etcher for Windows. I flashed a new version of u-boot, specifically "flash-image-ddr4-1g-1cs-1000_800.bin", and that seemed to work without a hitch. I defined the environment variables as directed. When booting, it seems to go through my devices and I would guess that it can't find the image based on the "bad device, wrong image format" messages but I'm not 100% sure. I read that some folks suggest disconnecting your PC from power when using the console so I tried that. I tried reflashing the SD card and u-boot and those processes seem to be successful. I also tried using a 4GB USB flash drive with the same Armbian image flashed to it and the same message appears. I've been trying this for a few hours now- starting fresh, reflashing, rebooting, reading threads/guides, etc... Can anyone point me in the right direction of how to overcome this? What am I doing wrong here? Any tips would be greatly appreciated. Also, I see a reference to "REV 5" near the top of my log. Do I have a v5 board? I bought it from Amazon and it specifically said "v7" in the title and this board has the newer 15-pin SATA connector, and I believe that's an indicator of v7. Full console log: Spoiler Marvell>> TIM-1.0 WTMI-devel-18.12.0-a0a1cb8 WTMI: system early-init SVC REV: 5, CPU VDD voltage: 1.143V NOTICE: Booting Trusted Firmware NOTICE: BL1: v1.5(release):1f8ca7e (Marvell-devel-18.12.2) NOTICE: BL1: Built : 09:50:21, Feb 20 2019 NOTICE: BL1: Booting BL2 NOTICE: BL2: v1.5(release):1f8ca7e (Marvell-devel-18.12.2) NOTICE: BL2: Built : 09:50:23, Feb 20 2019 NOTICE: BL1: Booting BL31 NOTICE: BL31: v1.5(release):1f8ca7e (Marvell-devel-18.12.2) NOTICE: BL31: Built : 09:5 U-Boot 2018.03-devel-18.12.3-gc9aa92c-armbian (Feb 20 2019 - 09:45:04 +0100) Model: Marvell Armada 3720 Community Board ESPRESSOBin CPU 1000 [MHz] L2 800 [MHz] TClock 200 [MHz] DDR 800 [MHz] DRAM: 1 GiB Comphy chip #0: Comphy-0: USB3 5 Gbps Comphy-1: PEX0 2.5 Gbps Comphy-2: SATA0 6 Gbps SATA link 0 timeout. AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl SATA mode flags: ncq led only pmp fbss pio slum part sxs PCIE-0: Link down MMC: sdhci@d0000: 0, sdhci@d8000: 1 Loading Environment from SPI Flash... SF: Detected mx25u3235f with page size 256 Bytes, erase size 64 KiB, total 4 MiB OK Model: Marvell Armada 3720 Community Board ESPRESSOBin Net: eth0: neta@30000 [PRIME] Hit any key to stop autoboot: 0 starting USB... USB0: Register 2000104 NbrPorts 2 Starting the controller USB XHCI 1.00 USB1: USB EHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning bus 1 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found / ** Bad device usb 0 ** ## Executing script at 006d0000 Wrong image format for "source" command /boot/ ** Bad device usb 0 ** ## Executing script at 006d0000 Wrong image format for "source" command scanning bus for devices... Device 0: unknown device / ** Bad device scsi 0 ** ## Executing script at 006d0000 Wrong image format for "source" command /boot/ ** Bad device scsi 0 ** ## Executing script at 006d0000 Wrong image format for "source" command / Card did not respond to voltage select! ** Bad device mmc 1 ** ## Executing script at 006d0000 Wrong image format for "source" command /boot/ Card did not respond to voltage select! ** Bad device mmc 1 ** ## Executing script at 006d0000 Wrong image format for "source" command / ** File not found /boot.scr ** ## Executing script at 006d0000 Wrong image format for "source" command /boot/ 1119 bytes read in 14 ms (77.1 KiB/s) ## Executing script at 006d0000 172 bytes read in 5 ms (33.2 KiB/s) 16421376 bytes read in 703 ms (22.3 MiB/s) ext4load - load binary file from a Ext4 filesystem Usage: ext4load <interface> [<dev[:part]> [addr [filename [bytes [pos]]]]] - load binary file 'filename' from 'dev' on 'interface' to address 'addr' from ext4 filesystem ** File not found /boot/dtb/marvell/armada-3720-community.dtb ** 8942 bytes read in 8 ms (1.1 MiB/s) Wrong Ramdisk Image Format Ramdisk image is corrupt or invalid Marvell>> Edited February 22, 2019 by Tido added spoiler - for better reading, please do that yourself next time. thx Link to comment Share on other sites More sharing options...
markbirss Posted February 22, 2019 Share Posted February 22, 2019 Your current saved U-Boot parameters need to be changed ? Here are some people also booting Armbian https://forum.openwrt.org/t/installing-openwrt-18-06-on-espressobin/18264/4 AND Refer to more help with "Setting U-Boot parameters" http://wiki.espressobin.net/tiki-index.php?page=Boot+from+removable+storage+-+OpenWrt Link to comment Share on other sites More sharing options...
GoTeamScotch Posted February 26, 2019 Author Share Posted February 26, 2019 Thanks for the suggestion, Mark. I read through that thread and tried to gleam relevant info, but much of it seemed to be openwrt specific stuff so I didn't make progress in that regard. I ended up getting Ubuntu to boot. I'll be honest, I'm really not sure what I did different this time. I started fresh, re-flashed U-Boot, set environment variables back to default, saved, rebooted, entered each U-Boot command again, reflashed my SD card, and was greeted with the familiar Linux boot messages. I setup a user account and logged in. Now, after a few seconds, I see error messages like "BUG: Bad page state in process khugepaged". Now, Ubuntu is failing to load up upon every boot. If I re-flash the SD card, it seems to get further in the process and boot successfully. After a few mins of it just sitting there, I start seeing error messages popping up once again. What does this mean? P.s. I've been using linux casually for years, but am not deeply familiar with the ins and outs, so forgive me if there is an obvious solution I'm not seeing here. Spoiler TIM-1.0 WTMI-devel-18.12.0-a0a1cb8 WTMI: system early-init SVC REV: 5, CPU VDD voltage: 1.143V NOTICE: Booting Trusted Firmware NOTICE: BL1: v1.5(release):1f8ca7e (Marvell-devel-18.12.2) NOTICE: BL1: Built : 09:50:21, Feb 20 2019 NOTICE: BL1: Booting BL2 NOTICE: BL2: v1.5(release):1f8ca7e (Marvell-devel-18.12.2) NOTICE: BL2: Built : 09:50:23, Feb 20 2019 NOTICE: BL1: Booting BL31 NOTICE: BL31: v1.5(release):1f8ca7e (Marvell-devel-18.12.2) NOTICE: BL31: Built : 09:5 U-Boot 2018.03-devel-18.12.3-gc9aa92c-armbian (Feb 20 2019 - 09:45:04 +0100) Model: Marvell Armada 3720 Community Board ESPRESSOBin CPU 1000 [MHz] L2 800 [MHz] TClock 200 [MHz] DDR 800 [MHz] DRAM: 1 GiB Comphy chip #0: Comphy-0: USB3 5 Gbps Comphy-1: PEX0 2.5 Gbps Comphy-2: SATA0 6 Gbps SATA link 0 timeout. AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl SATA mode flags: ncq led only pmp fbss pio slum part sxs PCIE-0: Link down MMC: sdhci@d0000: 0, sdhci@d8000: 1 Loading Environment from SPI Flash... SF: Detected mx25u3235f with page size 256 Bytes, erase size 64 KiB, total 4 MiB OK Model: Marvell Armada 3720 Community Board ESPRESSOBin Net: eth0: neta@30000 [PRIME] Hit any key to stop autoboot: 0 starting USB... USB0: Register 2000104 NbrPorts 2 Starting the controller USB XHCI 1.00 USB1: USB EHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning bus 1 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found / ** Bad device usb 0 ** ## Executing script at 06d00000 Wrong image format for "source" command /boot/ ** Bad device usb 0 ** ## Executing script at 06d00000 Wrong image format for "source" command scanning bus for devices... Device 0: unknown device / ** Bad device scsi 0 ** ## Executing script at 06d00000 Wrong image format for "source" command /boot/ ** Bad device scsi 0 ** ## Executing script at 06d00000 Wrong image format for "source" command / Card did not respond to voltage select! ** Bad device mmc 1 ** ## Executing script at 06d00000 Wrong image format for "source" command /boot/ Card did not respond to voltage select! ** Bad device mmc 1 ** ## Executing script at 06d00000 Wrong image format for "source" command / ** File not found /boot.scr ** ## Executing script at 06d00000 Wrong image format for "source" command /boot/ 1119 bytes read in 15 ms (72.3 KiB/s) ## Executing script at 06d00000 221 bytes read in 5 ms (43 KiB/s) 16421376 bytes read in 704 ms (22.2 MiB/s) 7880944 bytes read in 347 ms (21.7 MiB/s) ** File not found /boot/dtb/marvell/armada-3720-community.dtb ** 8942 bytes read in 10 ms (873 KiB/s) ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: uInitrd Image Type: AArch64 Linux RAMDisk Image (gzip compressed) Data Size: 7880880 Bytes = 7.5 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 06000000 Booting using the fdt blob at 0x6000000 Loading Ramdisk to 3eea6000, end 3f62a0b0 ... OK Using Device Tree in place at 0000000006000000, end 00000000060052ed Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 4.19.20-mvebu64 (root@armbian.com) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #5.75 SMP PREEMPT Fri Feb 8 09:54:18 CET 2019 [ 0.000000] Machine model: Globalscale Marvell ESPRESSOBin Board [ 0.000000] earlycon: ar3700_uart0 at MMIO 0x00000000d0012000 (options '') [ 0.000000] bootconsole [ar3700_uart0] enabled Loading, please wait... starting version 237 Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems done. Begin: Will now check root file system ... fsck from util-linux 2.31.1 [/sbin/fsck.ext4 (1) -- /dev/mmcblk1p1] fsck.ext4 -a -C0 /dev/mmcblk1p1 /dev/mmcblk1p1: recovering journal /dev/mmcblk1p1: clean, 34751/1774656 files, 360836/7735992 blocks done. done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. Welcome to Ubuntu 18.04.1 LTS! [ OK ] Started ntp-systemd-netif.path. [ OK ] Reached target System Time Synchronized. [ OK ] Started Dispatch Password Requests to Console Directory Watch. [ OK ] Reached target Remote File Systems. [ OK ] Created slice System Slice. [ OK ] Listening on fsck to fsckd communication Socket. [ OK ] Created slice system-serial\x2dgetty.slice. [ OK ] Listening on udev Kernel Socket. [ OK ] Listening on Network Service Netlink Socket. [ OK ] Created slice User and Session Slice. [ OK ] Reached target Slices. [ OK ] Listening on udev Control Socket. [ OK ] Listening on Journal Socket. Mounting Huge Pages File System... Starting Remount Root and Kernel File Systems... Starting Restore / save the current clock... Mounting POSIX Message Queue File System... Starting udev Coldplug all Devices... Starting Set the console keyboard layout... Starting Create list of required st…ce nodes for the current kernel... [ OK ] Listening on Journal Audit Socket. [ OK ] Reached target Swap. Mounting Kernel Debug File System... Starting Load Kernel Modules... [ OK ] Listening on Journal Socket (/dev/log). Starting Nameserver information manager... [ OK ] Listening on Syslog Socket. Starting Journal Service... [ OK ] Listening on /dev/initctl Compatibility Named Pipe. [ OK ] Started Forward Password Requests to Wall Directory Watch. [ OK ] Reached target Local Encrypted Volumes. [ OK ] Mounted Huge Pages File System. [ OK ] Started Remount Root and Kernel File Systems. [ OK ] Started Restore / save the current clock. [ OK ] Mounted POSIX Message Queue File System. [ OK ] Started Journal Service. [ OK ] Started Create list of required sta…vice nodes for the current kernel. [ OK ] Mounted Kernel Debug File System. [ OK ] Started Load Kernel Modules. Mounting Kernel Configuration File System... Starting Apply Kernel Variables... Starting Create Static Device Nodes in /dev... Starting Flush Journal to Persistent Storage... Starting Load/Save Random Seed... [ OK ] Started Nameserver information manager. [ OK ] Mounted Kernel Configuration File System. [ OK ] Started Apply Kernel Variables. [ OK ] Started Create Static Device Nodes in /dev. [ OK ] Started Load/Save Random Seed. [ OK ] Started Set the console keyboard layout. Starting udev Kernel Device Manager... [ OK ] Reached target Local File Systems (Pre). Mounting /tmp... [ OK ] Reached target Network (Pre). [ OK ] Started udev Coldplug all Devices. [ OK ] Started Flush Journal to Persistent Storage. [ OK ] Mounted /tmp. [ OK ] Started udev Kernel Device Manager. Starting Network Service... [ OK ] Reached target Local File Systems. Starting Set console font and keymap... Starting Armbian ZRAM config... Starting Raise network interfaces... Starting Create Volatile Files and Directories... [ OK ] Started Set console font and keymap. [ OK ] Started Create Volatile Files and Directories. [ OK ] Started Entropy daemon using the HAVEGE algorithm. Starting Network Time Synchronization... Starting Update UTMP about System Boot/Shutdown... [ OK ] Started Network Service. Starting Network Name Resolution... Starting Wait for Network to be Configured... [ OK ] Started Update UTMP about System Boot/Shutdown. [ OK ] Started Network Time Synchronization. [ OK ] Started Network Name Resolution. [ OK ] Reached target Host and Network Name Lookups. [ OK ] Started Raise network interfaces. [ OK ] Found device /dev/ttyMV0. [ OK ] Started Armbian ZRAM config. Starting Armbian memory supported logging... [ OK ] Started Armbian memory supported logging. [ OK ] Reached target System Initialization. [ OK ] Started Discard unused blocks once a week. Starting Armbian hardware monitoring... [ OK ] Started Daily Cleanup of Temporary Directories. [ OK ] Started Daily apt download activities. [ OK ] Listening on D-Bus System Message Bus Socket. [ OK ] Reached target Sockets. [ OK ] Started Message of the Day. [ OK ] Started resolvconf-pull-resolved.path. [ OK ] Reached target Paths. Starting Armbian hardware optimization... [ OK ] Started Daily apt upgrade and clean activities. [ OK ] Reached target Timers. [ OK ] Started Armbian hardware monitoring. [ OK ] Started Armbian hardware optimization. [ OK ] Reached target Basic System. Starting LSB: Load kernel modules needed to enable cpufreq scaling... [ OK ] Started Regular background program processing daemon. Starting resolvconf-pull-resolved.service... Starting System Logging Service... Starting Login Service... [ OK ] Started ntp-systemd-netif.service. [ OK ] Started D-Bus System Message Bus. [ OK ] Started Login Service. Starting WPA supplicant... Starting Network Manager... Starting Dispatcher daemon for systemd-networkd... Starting Resets System Activity Data Collector... [ OK ] Started System Logging Service. [ OK ] Started Resets System Activity Data Collector. [ OK ] Started resolvconf-pull-resolved.service. [ OK ] Started WPA supplicant. Starting Hostname Service... [ OK ] Started LSB: Load kernel modules needed to enable cpufreq scaling. Starting LSB: set CPUFreq kernel parameters... [ OK ] Started Hostname Service. [ OK ] Started LSB: set CPUFreq kernel parameters. Starting LSB: Set sysfs variables from /etc/sysfs.conf... [ OK ] Started Network Manager. [ OK ] Reached target Network. [ OK ] Started Unattended Upgrades Shutdown. Starting Permit User Sessions... Starting OpenBSD Secure Shell server... Starting Network Manager Wait Online... [ OK ] Started Permit User Sessions. Starting Network Manager Script Dispatcher Service... Starting Set console scheme... [ OK ] Started LSB: Set sysfs variables from /etc/sysfs.conf. [ OK ] Started Set console scheme. Starting resolvconf-pull-resolved.service... [ OK ] Started ntp-systemd-netif.service. [ OK ] Created slice system-getty.slice. [ OK ] Started Network Manager Script Dispatcher Service. [ OK ] Started resolvconf-pull-resolved.service. [ OK ] Started OpenBSD Secure Shell server. Starting Authorization Manager... [ OK ] Started Authorization Manager. [ OK ] Started Network Manager Wait Online. [ OK ] Started Dispatcher daemon for systemd-networkd. [** ] A start job is running for Wait for… to be Configured (22s / no limit)[ 29.920840] BUG: Bad page state in process khugepaged pfn:301cf [ 29.924232] page:ffffffbf00c073c0 count:0 mapcount:0 mapping:0000000000000400 index:0x0 [ 29.932458] flags: 0x0() [ 29.935080] raw: 0000000000000000 0000000000000000 ffffffbf00c073c8 0000000000000400 [ 29.943044] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 29.951004] page dumped because: non-NULL mapping [ 29.956358] BUG: Bad page state in process khugepaged pfn:30424 [ 29.962030] page:ffffffbf00c10900 count:0 mapcount:0 mapping:0000000000000400 index:0x0 [ 29.970260] flags: 0x0() [ 29.972866] raw: 0000000000000000 0000000000000000 ffffffbf00c10908 0000000000000400 [ 29.980840] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 29.988806] page dumped because: non-NULL mapping [ *] A start job is running for Wait for… to be Configured (32s / no limit)[ 40.160995] BUG: Bad page state in process khugepaged pfn:30a0b [ 40.164388] page:ffffffbf00c282c0 count:0 mapcount:0 mapping:0000000000000400 index:0x0 [ 40.172614] flags: 0x0() [ 40.175233] raw: 0000000000000000 0000000000000000 ffffffbf00c282c8 0000000000000400 [ 40.183199] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 40.191159] page dumped because: non-NULL mapping [ 40.196505] BUG: Bad page state in process khugepaged pfn:2fe30 [ 40.202187] page:ffffffbf00bf8c00 count:0 mapcount:0 mapping:0000000000000400 index:0x0 [ 40.210422] flags: 0x0() [ 40.213036] raw: 0000000000000000 0000000000000000 ffffffbf00bf8c08 0000000000000400 [ 40.221009] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 40.228968] page dumped because: non-NULL mapping [ **] A start job is running for W[ 40.239283] BUG: Bad page state in process rs:main Q:Reg pfn:3bfa9 [ 40.245750] page:ffffffbf00efea40 count:0 mapcount:0 mapping:0000000000000400 index:0x2 [ 40.253971] flags: 0x0() [ 40.256591] raw: 0000000000000000 dead000000000100 dead000000000200 0000000000000400 [ 40.264555] raw: 0000000000000002 0000000000000000 00000000ffffffff 0000000000000000 [ 40.272516] page dumped because: non-NULL mapping [** ] A start job is running for Wait for… to be Configured (36s / no limit)[ 43.997117] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 [ 44.003365] Mem abort info: [ 44.006228] ESR = 0x96000005 [ 44.009366] Exception class = DABT (current EL), IL = 32 bits [ 44.015454] SET = 0, FnV = 0 [ 44.018591] EA = 0, S1PTW = 0 [ 44.021814] Data abort info: [ 44.024773] ISV = 0, ISS = 0x00000005 [ 44.028715] CM = 0, WnR = 0 [ 44.031775] user pgtable: 4k pages, 39-bit VAs, pgdp = 000000003165ccbc [ 44.038574] [0000000000000000] pgd=0000000000000000, pud=0000000000000000 [ 44.045570] Internal error: Oops: 96000005 [#1] PREEMPT SMP [ 44.051296] Modules linked in: zstd zram zsmalloc bridge stp llc sch_fq_codel ip_tables x_tables mv88e6xxx dsa_core [ 44.062068] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G B 4.19.20-mvebu64 #5.75 [ 44.070648] Hardware name: Globalscale Marvell ESPRESSOBin Board (DT) [ 44.077290] pstate: a0000085 (NzCv daIf -PAN -UAO) [ 44.082240] pc : _raw_spin_lock+0x24/0x50 [ 44.086345] lr : hrtimer_start_range_ns+0x12c/0x290 [ 44.091346] sp : ffffff8008f73e10 [ 44.094751] x29: ffffff8008f73e10 x28: 0000000007ed0018 [ 44.100217] x27: 0000000000010040 x26: ffffff8008f79000 [ 44.105681] x25: ffffff8008f95dc0 x24: 0000000000010040 [ 44.111147] x23: ffffffc03ffbe7c0 x22: ffffffc03ffce800 [ 44.116614] x21: ffffffc03ffbe7c0 x20: ffffffc03ffbe800 [ 44.122072] x19: ffffffc03ffbed08 x18: 0000000000000000 [ 44.127537] x17: 0000000000000000 x16: 0000000000000000 [ 44.133003] x15: 0000000000000100 x14: 0000000000000100 [ 44.138469] x13: 0000000000000400 x12: 0000000000000000 [ 44.143934] x11: 0000000000000000 x10: 0000000000000910 [ 44.149400] x9 : ffffff8008f79348 x8 : ffffff8008f793a0 [ 44.154865] x7 : ffffff8008f79450 x6 : 00000000276222b5 [ 44.160330] x5 : 00ffffffffffffff x4 : 0000000000000001 [ 44.165796] x3 : 0000000000000000 x2 : 00000000000004b1 [ 44.171261] x1 : 0000000000000002 x0 : 0000000000000000 [ 44.176730] Process swapper/0 (pid: 0, stack limit = 0x0000000037a4da5d) [ 44.183626] Call trace: [ 44.186142] _raw_spin_lock+0x24/0x50 [ 44.189904] hrtimer_start_range_ns+0x12c/0x290 [ 44.194569] tick_nohz_idle_stop_tick+0x1c4/0x240 [ 44.199402] do_idle+0x1c4/0x298 [ 44.202716] cpu_startup_entry+0x24/0x28 [ 44.206753] rest_init+0xd0/0xe0 [ 44.210068] start_kernel+0x3ec/0x418 [ 44.213832] Code: b9001061 d2800003 d2800024 f9800011 (885ffc01) [ 44.220110] ---[ end trace 92a014c3ab3ce4c5 ]--- [ 44.224848] Kernel panic - not syncing: Attempted to kill the idle task! [ 44.231745] SMP: stopping secondary CPUs [ 44.235779] Kernel Offset: disabled [ 44.239362] CPU features: 0x0,2080200c [ 44.243210] Memory Limit: none [ 44.246354] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]--- Link to comment Share on other sites More sharing options...
Recommended Posts