mirzak / meta-coral

Yocto/OE-core BSP Layer for Coral Dev Board
MIT License
40 stars 21 forks source link

zeus branch doesn't boot on eMMC #44

Open arunlee77 opened 3 years ago

arunlee77 commented 3 years ago

It looks like the zeus branch is broken w.r.t eMMC boot support.

Steps: 1) Follow the Quick start guide and setup the sources and build area 2) make the following modifications to the conf/local.conf file UBOOT_CONFIG = "emmc" UBOOT_CONFIG[emmc] = "mx8mq_phanbell_defconfig,sdcard"

The build is success.

Flashing: 1) Interrupt u-boot (boot from sd-card) and enter ums 0 mmc 0 2) dd the .wic.gz image to the enumerated disk 3) Ctrl+C at uboot prompt and enter fastboot 0 4) fastboot flash bootloader0 imx-boot 5) change the dip switches to boot from MMC

Additional Info: The above procedure works well for warrior branch.

alphaanyms05 commented 3 years ago

Hi @arunlee77, have you solved the issue? Because I am facing the same issue.

I am flashing coral board using the SD card flashing method. I am getting following errors:

Console Logs: U-Boot SPL 2017.03.4-release-day+g8523a101cd (May 12 2021 - 13:22:06) power_bd71837_init pmic debug: name=BD71837 Board id: 0 start to config phy: p0=3200mts, p1=667mts with 1D2D training check ddr4_pmu_train_imem code check ddr4_pmu_train_imem code pass check ddr4_pmu_train_dmem code check ddr4_pmu_train_dmem code pass config to do 3200 1d training. Training PASS check ddr4_pmu_train_imem code check ddr4_pmu_train_imem code pass check ddr4_pmu_train_dmem code check ddr4_pmu_train_dmem code pass config to do 3200 2d training. Training PASS check ddr4_pmu_train_imem code check ddr4_pmu_train_imem code pass check ddr4_pmu_train_dmem code check ddr4_pmu_train_dmem code pass pstate=1: set dfi clk done done Training PASS Load 201711 PIE Normal Boot Trying to boot from MMC2 hdr read sector 300, count=1

U-Boot 2017.03.4-release-day+g8523a101cd (May 12 2021 - 13:22:06 +0000)

CPU: Freescale i.MX8MQ rev2.1 1500 MHz (running at 1000 MHz) CPU: Commercial temperature grade (0C to 95C) at 40C Reset cause: POR Model: Freescale i.MX8MQ Phanbell DRAM: 3 GiB Board id: 0 Baseboard id: 1 MMC: FSL_SDHC: 0, FSL_SDHC: 1 *** Warning - bad CRC, using default environment

In: serial Out: serial Err: serial

BuildInfo:

flash target is MMC:0 Net: Warning: ethernet@30be0000 using MAC address from ROM eth0: ethernet@30be0000

Has anyone faced the same problem? Help me

arunlee77 commented 3 years ago

Never faced any issue with SD card image. My issues was with eMMC image. We decided to drop coral from our HW list due to issues with SW support.