FAQ_MA35D1 SD1 eMMC 4Bit Failed to Start

Post Reply
yhcheng3
Posts: 15
Joined: 02 Dec 2022, 10:46

05 Dec 2022, 16:29

Question :

SD1 eMMC 4Bit Failed to Start


Answer.


Buildroot:
  1. 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)

    Code: Select all

    vi ma35d1_common.c
    And change as follows :

    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  >>>>>>>>>
    …
    
    
  2. Rebuild TF-A code

    Code: Select all

    ~/Buildroot_MA35D1$ make arm-trusted-firmware-rebuild
  3. Repack Image

    Code: Select all

    ~/Buildroot_MA35D1$ make
  4. Burn Image to MA35D1 board



#MA35D1 #SD1 #eMMC #boot
.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest