Home › Forum › Software discussion › Blank eMMC, failure in U-Boot after running from SD card
I have 4 MacchiatoBin boards purchased from SolidRun, all with blank onboard e-MMC. It’s the same problem as from this thread.
I followed instructions from this wiki page to get a board booting from the micro-SD card, and brought up Linux from there. Specifically, In U-Boot I ran:
mmc dev 1
setenv image_name boot/vmlinuz-4.14.126-mvebu64
setenv fdt_name boot/dtb-4.14.126-mvebu64/marvell/armada-8040-mcbin.dtb
setenv bootmmc 'mmc dev 1; ext4load mmc 1:1 $kernel_addr $image_name;ext4load mmc 1:1 $fdt_addr $fdt_name;setenv bootargs $console root=/dev/mmcblk1p1 rw rootwait; booti $kernel_addr - $fdt_addr'
saveenv
run bootmmc
Here’s the problem: after a clean shutdown, the next boot fails in the bootloader. U-Boot gets to “Hit any key to stop autoboot…” but then freezes. No prompt or anything. I went through the same process with another board, had it running from micro-SD, and again it failed after a shutdown and fresh power-on. Since I can’t do anything in U-Boot, both boards are effectively useless. SolidRun support is not responsive. Any ideas?
Thanks for your help,
Josh
Hi,
You can configure jumpers and a microSD to load another bootloader from the microSD.
– Boot Selection
– Setup alternative boot sources
or
– Marvell ARMADA 8040 Dipswitch
– Armada 8040 U-Boot and ATF
Thank you, I didn’t notice the board had jumpers for selecting the boot option. (I wish I had looked at the board more closely!) I can get back into Linux now.
Best regards,
Josh
It turns out I’m still having this problem, but it’s intermittent. The MacchiatoBin appears to not read from the SD card correctly, even though it’s well-seated and it’s a card I’ve used successfully in the past (SanDisk Ultra). My boot sequence shows:
BootROM - 2.03
Starting CP-0 IOROM 1.07
Booting from SD 0 (0x29)
SD - wait_for_sd_interrupt: Error interrupt - 00008000
SD - wait_for_sd_interrupt: Error interrupt status 00000003
SD - sd_get_cmd_response: Get command response failed.
SD - sd_init: Failed - ret = 00000081
Error: Failed initializing interface
Error: Failed boot attempt 01. error = 0x0C1
BootROM - 2.03
Starting CP-0 IOROM 1.07
Booting from SD 0 (0x29)
SD - wait_for_sd_interrupt: Error interrupt - 00008000
SD - wait_for_sd_interrupt: Error interrupt status 00000003
SD - sd_get_cmd_response: Get command response failed.
SD - sd_init: Failed - ret = 00000081
Error: Failed initializing interface
Found valid image at boot postion 0x000
lNOTICE: Starting binary extension
NOTICE: SVC: DEV ID: 8040, FREQ Mode: 0x6
NOTICE: SVC: AVS work point changed from 0x28 to 0x28
mv_ddr: mv_ddr-armada-17.10.3-g656440a (Jan 30 2018 - 08:26:37)
mv_ddr: completed successfully
NOTICE: Cold boot
NOTICE: Booting Trusted Firmware
NOTICE: BL1: v1.3(release):armada-17.10.3:71dd56e
NOTICE: BL1: Built : 08:26:42, Jan 30 2018
NOTICE: BL1: Booting BL2
lNOTICE: BL2: v1.3(release):armada-17.10.3:71dd56e
NOTICE: BL2: Built : 08:26:44, Jan 30 2018
BL2: Initiating SCP_BL2 transfer to SCP
NOTICE: SCP_BL2 contains 2 concatenated images
NOTICE: Load image to CP1 MSS
NOTICE: Loading MSS image from address 0x4023020 Size 0x1378 to MSS at 0xf4280000
NOTICE: Done
NOTICE: Load image to AP MSS
NOTICE: Loading MSS image from address 0x4024398 Size 0x1f68 to MSS at 0xf0580000
N
FreeRTOS 7.3.0 - Marvell cm3 - A8K release armada-17.10.1
OTICE: Done
NOTICE: SCP Image doesn't contain PM firmware
NOTICE: BL1: Booting BL31
lNOTICE: MSS PM is not supported in this build
NOTICE: BL31: v1.3(release):armada-17.10.3:71dd56e
NOTICE: BL31: Built : 08:26:46, Jan 30 2018
l
U-Boot 2017.03-armada-17.10.1-g9e422a2-dirty (Jan 30 2018 - 08:25:55 +0000)
Model: MACCHIATOBin-8040
Clock: CPU 1800 [MHz]
DDR 1200 [MHz]
FABRIC 1200 [MHz]
MSS 200 [MHz]
DRAM: 16 GiB
U-Boot DT blob at : 000000007f70ac38
EEPROM configuration pattern not detected.
Comphy chip #0:
Comphy-0: PEX0
Comphy-1: PEX0
Comphy-2: PEX0
Comphy-3: PEX0
Comphy-4: SFI
Comphy-5: SATA1
Comphy chip #1:
Comphy-0: SGMII1 1.25 Gbps
Comphy-1: SATA0
Comphy-2: USB3_HOST0
Comphy-3: SATA1
Comphy-4: SFI
Comphy-5: SGMII2 3.125 Gbps
UTMI PHY 0 initialized to USB Host0
going to start mss_periodic_ihb_wa for mss
SATA link 0 timeout.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
SATA link 0 timeout.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
PCIE-0: Link down
MMC: sdhci@6e0000: 0, sdhci@780000: 1
*** Warning - bad CRC, using default environment
Net: eth0: mvpp2-0 [PRIME]mdio_register: non unique device name 'ethernet@0'
, eth1: mvpp2-3, eth2: mvpp2-4, eth3: mvpp2-5
Hit any key to stop autoboot: 2
I previously thought I just had a bad micro-SD card, as I was using a generic 8GB one, but now the problem’s occurring with known-good cards as well. Any advice?
Thanks,
Josh
In my case,
when cold boot is starting,
the following error messages are reported.
BootROM - 2.03
Starting CP-0 IOROM 1.07
Booting from SD 0 (0x29)
SD - wait_for_sd_interrupt: Error interrupt - 00008000
SD - wait_for_sd_interrupt: Error interrupt status 00000120
SD - read_buffer_pio: Failed - ret = 00000081
SD - wait_for_sd_interrupt: Error interrupt - 00008000
SD - wait_for_sd_interrupt: Error interrupt status 00000120
SD - wait_transfer_complete: wait for transfer completion timeout.
Error: failed reading from boot position 0x00000000
Error: Failed boot attempt 01. error = 0x0C1
BootROM - 2.03
Starting CP-0 IOROM 1.07
Booting from SD 0 (0x29)
SD - wait_for_sd_interrupt: Error interrupt - 00008000
SD - wait_for_sd_interrupt: Error interrupt status 00000120
SD - read_buffer_pio: Failed - ret = 00000081
SD - wait_for_sd_interrupt: Error interrupt - 00008000
SD - wait_for_sd_interrupt: Error interrupt status 00000120
SD - wait_transfer_complete: wait for transfer completion timeout.
Error: failed reading from boot position 0x00000000
Found valid image at boot postion 0x002
lNOTICE: Starting binary extension
But no problems appear when accessing the SD card.
The only malfunction is that
a legacy (<=2GB) SD card is not usable for boot source.
BootROM - 2.03
Starting CP-0 IOROM 1.07
Booting from SD 0 (0x29)
SD - sd_init: Only Standard Capacity SD cards are supported.
Error: Failed initializing interface
Error: Failed boot attempt 01. error = 0x0C3
BootROM - 2.03
Starting CP-0 IOROM 1.07
Booting from SD 0 (0x29)
SD - sd_init: Only Standard Capacity SD cards are supported.
Error: Failed initializing interface
Error: Failed boot attempt 02. error = 0x0C3
BootROM - 2.03
Starting CP-0 IOROM 1.07
Booting from SD 0 (0x29)
SD - sd_init: Only Standard Capacity SD cards are supported.
Error: Failed initializing interface
Error: Failed boot attempt 03. error = 0x0C3
BootROM - 2.03
Starting CP-0 IOROM 1.07
Booting from SD 0 (0x29)
SD - sd_init: Only Standard Capacity SD cards are supported.
Error: Failed initializing interface
Error: Failed boot attempt 04. error = 0x0C3
Trying Uart..
Technical specification tables can not be displayed on mobile. Please view on desktop