I resized the second partition of a prebuilt image using GParted.
When I try to boot it on Espressobin it stalls. Here's the log.
TIM-1.0
WTMI-devel-18.07.0-6050fd5
WTMI: system early-init
CPU VDD voltage default value: 1.155V
NOTICE: Booting Trusted Firmware
NOTICE: BL1: v1.5(release):711ecd3 (Marvell-armada-18.09.4)
NOTICE: BL1: Built : 15:13:47, Sep 7 2018
NOTICE: BL1: Booting BL2
NOTICE: BL2: v1.5(release):711ecd3 (Marvell-armada-18.09.4)
NOTICE: BL2: Built : 15:13:50, Sep 7 2018
NOTICE: BL1: Booting BL31
NOTICE: BL31: v1.5(release):711ecd3 (Marvell-armada-18.09.4)
NOTICE: BL31: Built : 15:1
U-Boot 2017.03-armada-18.09.1-ga92bd86-armbian (Sep 05 2018 - 21:49:34 +0200)
Model: Marvell Armada 3720 Community Board ESPRESSOBin
CPU 1000 [MHz]
L2 1000 [MHz]
NB AXI 250 [MHz]
SB AXI 250 [MHz]
DDR 800 [MHz]
DRAM: 2 GiB
U-Boot DT blob at : 000000007f7142d8
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 up
MMC: sdhci@d0000: 0
SF: Detected w25q32dw with page size 256 Bytes, erase size 4 KiB, total 4 MiB
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...
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
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
/
** Bad device mmc 1 **
## Executing script at 06d00000
Wrong image format for "source" command
/boot/
** Bad device mmc 1 **
## Executing script at 06d00000
Wrong image format for "source" command
/
328 bytes read in 7 ms (44.9 KiB/s)
## Executing script at 06d00000
7814 bytes read in 6 ms (1.2 MiB/s)
8046600 bytes read in 352 ms (21.8 MiB/s)
## Flattened Device Tree blob at 06000000
Booting using the fdt blob at 0x6000000
Using Device Tree in place at 0000000006000000, end 0000000006004e85
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.75 (buildbot@slashdirt-02) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r8313-7186520)) #0 SMP Fri Oct 12 07:36:05 2018
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] Machine model: Globalscale Marvell ESPRESSOBin Board
[ 0.000000] earlycon: ar3700_uart0 at MMIO 0x00000000d0012000 (options '')
[ 0.000000] bootconsole [ar3700_uart0] enabled
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] random: get_random_bytes called from start_kernel+0x7c/0x44c with crng_init=0
[ 0.000000] percpu: Embedded 17 pages/cpu @ffffffc07ffc5000 s29080 r8192 d32360 u69632
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] Speculative Store Bypass Disable mitigation not required
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 516096
[ 0.000000] Kernel command line: root=PARTUUID=15393297-02 rw rootwait console=ttyMV0,115200 earlycon=ar3700_uart,0xd0012000
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Memory: 2052872K/2097152K available (5502K kernel code, 370K rwdata, 1600K rodata, 320K init, 268K bss, 44280K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000 ( 250 GB)
[ 0.000000] .text : 0xffffff8008080000 - 0xffffff80085e0000 ( 5504 KB)
[ 0.000000] .rodata : 0xffffff80085e0000 - 0xffffff8008780000 ( 1664 KB)
[ 0.000000] .init : 0xffffff8008780000 - 0xffffff80087d0000 ( 320 KB)
[ 0.000000] .data : 0xffffff80087d0000 - 0xffffff800882c808 ( 371 KB)
[ 0.000000] .bss : 0xffffff800882c808 - 0xffffff800886f930 ( 269 KB)
[ 0.000000] fixed : 0xffffffbefe7fb000 - 0xffffffbefec00000 ( 4116 KB)
[ 0.000000] PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000 ( 16 MB)
[ 0.000000] vmemmap : 0xffffffbf00000000 - 0xffffffc000000000 ( 4 GB maximum)
[ 0.000000] 0xffffffbf00000000 - 0xffffffbf02000000 ( 32 MB actual)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc080000000 ( 2048 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] CONFIG_RCU_FANOUT set to non-default value of 32
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: no VLPI support, no direct LPI support
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000d1d40000
[ 0.000000] arch_timer: cp15 timer(s) running at 12.50MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[ 0.000004] sched_clock: 56 bits at 12MHz, resolution 80ns, wraps every 4398046511080ns
[ 0.008351] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=125000)
[ 0.018942] pid_max: default: 32768 minimum: 301
[ 0.023770] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.030608] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.038656] ASID allocator initialised with 32768 entries
[ 0.044216] Hierarchical SRCU implementation.
[ 0.048983] smp: Bringing up secondary CPUs ...
[ 0.053871] Detected VIPT I-cache on CPU1
[ 0.053899] GICv3: CPU1: found redistributor 1 region 0:0x00000000d1d60000
[ 0.053929] CPU1: Booted secondary processor [410fd034]
[ 0.054005] smp: Brought up 1 node, 2 CPUs
[ 0.074711] SMP: Total of 2 processors activated.
[ 0.079551] CPU features: detected feature: GIC system register CPU interface
[ 0.086903] CPU features: detected feature: 32-bit EL0 Support
[ 0.092900] CPU features: detected feature: Kernel page table isolation (KPTI)
[ 0.102716] CPU: All CPU(s) started at EL2
[ 0.106853] alternatives: patching kernel code
[ 0.113349] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.123438] futex hash table entries: 512 (order: 4, 65536 bytes)
[ 0.129756] pinctrl core: initialized pinctrl subsystem
[ 0.135650] NET: Registered protocol family 16
[ 0.140891] cpuidle: using governor ladder
[ 0.145161] vdso: 2 pages (1 code @ ffffff80085e4000, 1 data @ ffffff80087d4000)
[ 0.152863] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.159925] d0012000.serial: ttyMV0 at MMIO 0xd0012000 (irq = 8, base_baud = 0) is a mvebu-uart
[ 0.168822] console [ttyMV0] enabled
[ 0.168822] console [ttyMV0] enabled
[ 0.176194] bootconsole [ar3700_uart0] disabled
[ 0.176194] bootconsole [ar3700_uart0] disabled
[ 0.194072] SCSI subsystem initialized
[ 0.198252] usbcore: registered new interface driver usbfs
[ 0.203878] usbcore: registered new interface driver hub
[ 0.209255] usbcore: registered new device driver usb
[ 0.215122] clocksource: Switched to clocksource arch_sys_counter
[ 0.221901] NET: Registered protocol family 2
[ 0.226679] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.234005] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[ 0.240985] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.247696] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.253892] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.260578] NET: Registered protocol family 1
[ 0.265507] Crashlog allocated RAM at address 0x3f00000
[ 0.270702] workingset: timestamp_bits=62 max_order=19 bucket_order=0
[ 0.280763] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.286738] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.298315] io scheduler noop registered
[ 0.302106] io scheduler deadline registered (default)
[ 0.309796] OF: PCI: host bridge /soc/pcie@d0070000 ranges:
[ 0.315538] OF: PCI: MEM 0xe8000000..0xe8ffffff -> 0xe8000000
[ 0.321593] OF: PCI: IO 0xe9000000..0xe900ffff -> 0xe9000000
[ 0.425125] advk-pcie d0070000.pcie: link up
[ 0.429419] advk-pcie d0070000.pcie: PCI host bridge to bus 0000:00
[ 0.435946] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.441504] pci_bus 0000:00: root bus resource [mem 0xe8000000-0xe8ffffff]
[ 0.448705] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] (bus address [0xe9000000-0xe900ffff])
[ 0.459038] pci 0000:00:00.0: BAR 0: assigned [mem 0xe8000000-0xe80fffff 64bit pref]
[ 0.466821] pci 0000:00:00.0: BAR 2: assigned [mem 0xe8100000-0xe81fffff 64bit pref]
[ 0.475885] mv_xor d0060900.xor: Marvell shared XOR driver
[ 0.535662] mv_xor d0060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[ 0.595666] mv_xor d0060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[ 0.603141] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.610802] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.619189] loop: module loaded
[ 0.622654] ahci-mvebu d00e0000.sata: AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl platform mode
[ 0.631785] ahci-mvebu d00e0000.sata: flags: ncq sntf led only pmp fbs pio slum part sxs
[ 0.640772] scsi host0: ahci-mvebu
[ 0.644425] ata1: SATA max UDMA/133 mmio [mem 0xd00e0000-0xd00e1fff] port 0x100 irq 13
[ 0.656211] random: fast init done
[ 0.662376] m25p80 spi0.0: w25q32dw (4096 Kbytes)
[ 0.667913] libphy: Fixed MDIO Bus: probed
[ 0.672544] libphy: orion_mdio_bus: probed
[ 0.676864] mv88e6085 d0032004.mdio-mii:01: switch 0x3410 detected: Marvell 88E6341, revision 0
[ 0.693492] libphy: /soc/internal-regs@d0000000/mdio@32004/switch0@1/mdio: probed
[ 0.709717] mvneta d0030000.ethernet eth0: Using device tree mac address 00:51:82:11:22:00
[ 0.718444] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.724841] ehci-pci: EHCI PCI platform driver
[ 0.729413] ehci-platform: EHCI generic platform driver
[ 0.735000] ehci-orion: EHCI orion driver
[ 0.739519] orion-ehci d005e000.usb: EHCI Host Controller
[ 0.744682] orion-ehci d005e000.usb: new USB bus registered, assigned bus number 1
[ 0.752675] orion-ehci d005e000.usb: irq 11, io mem 0xd005e000
[ 0.785119] orion-ehci d005e000.usb: USB 2.0 started, EHCI 1.00
[ 0.791529] hub 1-0:1.0: USB hub found
[ 0.795066] hub 1-0:1.0: 1 port detected
[ 0.800098] xhci-hcd d0058000.usb: xHCI Host Controller
[ 0.805550] xhci-hcd d0058000.usb: new USB bus registered, assigned bus number 2
[ 0.813221] xhci-hcd d0058000.usb: hcc params 0x0a000998 hci version 0x100 quirks 0x00010010
[ 0.821738] xhci-hcd d0058000.usb: irq 10, io mem 0xd0058000
[ 0.827900] hub 2-0:1.0: USB hub found
[ 0.831527] hub 2-0:1.0: 1 port detected
[ 0.835665] xhci-hcd d0058000.usb: xHCI Host Controller
[ 0.840866] xhci-hcd d0058000.usb: new USB bus registered, assigned bus number 3
[ 0.848703] xhci-hcd d0058000.usb: Host supports USB 3.0 SuperSpeed
[ 0.855477] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[ 0.863882] hub 3-0:1.0: USB hub found
[ 0.867434] hub 3-0:1.0: 1 port detected
[ 0.872072] usbcore: registered new interface driver usb-storage
[ 0.878407] i2c /dev entries driver
[ 0.882357] sdhci: Secure Digital Host Controller Interface driver
[ 0.888411] sdhci: Copyright(c) Pierre Ossman
[ 0.893313] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.899130] xenon-sdhci d00d0000.sdhci: Got CD GPIO
[ 0.904555] NET: Registered protocol family 10
[ 0.909946] Segment Routing with IPv6
[ 0.913511] NET: Registered protocol family 17
[ 0.918031] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 0.931664] 8021q: 802.1Q VLAN Support v1.8
[ 0.938019] mv88e6085 d0032004.mdio-mii:01: switch 0x3410 detected: Marvell 88E6341, revision 0
[ 0.954677] libphy: /soc/internal-regs@d0000000/mdio@32004/switch0@1/mdio: probed
[ 0.968888] DSA: switch 0 0 parsed
[ 0.972234] DSA: tree 0 parsed
[ 0.976401] ata1: SATA link down (SStatus 0 SControl 300)
[ 1.677055] Marvell 88E6390 !soc!internal-regs@d0000000!mdio@32004!switch0@1!mdio:11: attached PHY driver [Marvell 88E6390] (mii_bus:phy_addr=!soc!internal-regs@d0000000!mdio@32004!switch0@1!mdio:11, irq=POLL)
[ 1.797066] Marvell 88E6390 !soc!internal-regs@d0000000!mdio@32004!switch0@1!mdio:12: attached PHY driver [Marvell 88E6390] (mii_bus:phy_addr=!soc!internal-regs@d0000000!mdio@32004!switch0@1!mdio:12, irq=POLL)
[ 1.917061] Marvell 88E6390 !soc!internal-regs@d0000000!mdio@32004!switch0@1!mdio:13: attached PHY driver [Marvell 88E6390] (mii_bus:phy_addr=!soc!internal-regs@d0000000!mdio@32004!switch0@1!mdio:13, irq=POLL)
[ 1.936941] xenon-sdhci d00d0000.sdhci: Got CD GPIO
[ 2.005251] genirq: Setting trigger mode 3 for irq 34 failed (armada_37xx_irq_set_type+0x0/0xe0)
[ 2.014369] mmc0: SDHCI controller on d00d0000.sdhci [d00d0000.sdhci] using ADMA
[ 2.022377] hctosys: unable to open rtc device (rtc0)
[ 2.029032] Waiting for root device PARTUUID=15393297-02...
[ 2.127370] mmc0: new ultra high speed SDR104 SDHC card at address aaaa
[ 2.135729] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[ 2.146089] mmcblk0: p1 p2
This is the U-boot environment from Armbian:
env default -a
setenv fdt_addr 0x6000000
setenv kernel_addr 0x7000000
setenv loadaddr 0x8000000
setenv initrd_size 0x2000000
setenv initrd_addr 0x1100000
setenv scriptaddr 0x6d00000
setenv initrd_image uInitrd
setenv boot_targets 'usb sata mmc1 mmc0'
setenv boot_prefixes '/ /boot/'
setenv bootcmd_mmc0 'setenv devnum 0; setenv boot_interface mmc; run scan_dev_for_boot;'
setenv bootcmd_mmc1 'setenv devnum 1; setenv boot_interface mmc; run scan_dev_for_boot;'
setenv bootcmd_sata 'setenv devnum 0; scsi scan; scsi dev 0; setenv boot_interface scsi; run scan_dev_for_boot;'
setenv bootcmd_usb 'setenv devnum 0; usb start;setenv boot_interface usb; run scan_dev_for_boot;'
setenv bootcmd 'for target in ${boot_targets}; do run bootcmd_${target}; done'
setenv scan_dev_for_boot 'for prefix in ${boot_prefixes}; do echo ${prefix};run boot_a_script; done'
setenv boot_a_script 'ext4load ${boot_interface} ${devnum}:1 ${scriptaddr} ${prefix}boot.scr;source ${scriptaddr};'
saveenv
# Including this line to make sure saveenv is executed.
More info can be found here: https://www.armbian.com/espressobin/