SD1 eMMC 4Bit Failed to Start
Answer.
Buildroot:
- Enter the following path and modify the TF-A code
Modify ma35d1_common.c (~/MA35D1_Buildroot/output/build/arm-trusted-firmware-custom/plat/nuvoton/ma35d1)And change as follows :Code: Select all
vi ma35d1_common.c
Code: Select all
static void ma35d1_sdhc_setup(struct mmc *mmc) { int node; // ma35d1_sdhc_hw_init(mmc); // <<<<<<<<<<<<<<<<<<<<<<<< Move this code to below >> /* get device tree information */ if (fdt_check_header(fdt) < 0) { WARN("device tree header check error.\n"); } … mmc->offset = fdt_read_uint32_default(fdt, node, "mmc-image-offset", 0); mmc->bus_width = fdt_read_uint32_default(fdt, node, "bus-width", 1); ma35d1_sdhc_hw_init(mmc); // <<<<<<<<<<<<<<<<<<<<< move code here >>>>>>>>> …
- Rebuild TF-A code
Code: Select all
~/Buildroot_MA35D1$ make arm-trusted-firmware-rebuild
- Repack Image
Code: Select all
~/Buildroot_MA35D1$ make
- Burn Image to MA35D1 board
#MA35D1 #SD1 #eMMC #boot
.