This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

  • Resolved

Linux/AM3358: Custom board without USB boot up issue

Prodigy 190 points

Replies: 23

Views: 404

Part Number: AM3358

Tool/software: Linux

HI,

I have a custom board using AM3358, and it does not have any USB. I am trying to boot the board with Sitara SDK but it stops at U-boot when it can't find a USB. How can I create a custom boot-loader without USB? 

Thank you

  • In reply to Kemal R. Shakir:

    Processor side is similar to beaglebone.
  • In reply to Samy Ab:

    Can you check whether your board boots with these attached images?

    MLO_and_u-boot.img_with_hardcoded_A335BNLT_board_name.tar.xz

  • In reply to Kemal R. Shakir:

    I tested with the MLO and U-boot you provided and still the same issue. Bad device mmc 0.

  • In reply to Samy Ab:

    Have you tried to boot with another SD card?
  • In reply to Kemal R. Shakir:

    Yes I have tried with multiple SD cards. Same SD card works fine with beaglebone black with the same image. Same SD card also works fine with my custom board on a beaglebone's image. But it just doesn't want to boot with TI SDK.
    Is there any other way I can boot the board like TFTP or NFS and then flash eMMC through that?
  • In reply to Samy Ab:

    Yes, there is but, can you post the output of these commands? Do you have the source code of the beaglebone's U-Boot image? Can you compress and attach it?

    => mmc list
    => mmc dev 0
    => mmc part
    => mmc info
    => mmc dev 1
    => mmc part
    => mmc info
    => mmc rescan
    => mmc list
    => mmc dev 0
    => mmc dev 1
  • In reply to Kemal R. Shakir:

    Here is the output for all these commands:

    => mmc list                                                                    

    OMAP SD/MMC: 0                                                                  

    OMAP SD/MMC: 1 (eMMC)                                                          

    => mmc dev 0                                                                    

    => mmc part                                                                    

    ## Unknown partition table type 0                                              

    => mmc info                                                                    

    Device: OMAP SD/MMC                                                            

    Manufacturer ID: 45                                                            

    OEM: 100                                                                        

    Name: DG400                                                                    

    Bus Speed: 48000000                                                            

    Mode : MMC High Speed (52MHz)                                                  

    Rd Block Len: 512                                                              

    MMC version 5.1                                                                

    High Capacity: Yes                                                              

    Capacity: 7.3 GiB                                                              

    Bus Width: 4-bit                                                                

    Erase Group Size: 512 KiB                                                      

    User Capacity: 7.3 GiB WRREL                                                    

    Boot Capacity: 4 MiB ENH                                                        

    RPMB Capacity: 4 MiB ENH                                                        

    => mmc dev 1                                                                    

    switch to partitions #0, OK                                                    

    mmc1(part 0) is current device                                                  

    => mmc part                                                                    

    ## Unknown partition table type 0                                              

    => mmc info                                                                    

    Device: OMAP SD/MMC                                                            

    Manufacturer ID: 45                                                            

    OEM: 100                                                                        

    Name: DG400                                                                    

    Bus Speed: 48000000                                                            

    Mode : MMC High Speed (52MHz)                                                  

    Rd Block Len: 512                                                              

    MMC version 5.1                                                                

    High Capacity: Yes                                                              

    Capacity: 7.3 GiB                                                              

    Bus Width: 4-bit                                                                

    Erase Group Size: 512 KiB                                                      

    User Capacity: 7.3 GiB WRREL                                                    

    Boot Capacity: 4 MiB ENH                                                        

    RPMB Capacity: 4 MiB ENH                                                        

    => mmc rescan                                                                  

    => mmc list                                                                    

    OMAP SD/MMC: 0                                                                  

    OMAP SD/MMC: 1 (eMMC)                                                          

    => mmc dev 0                                                                    

    => mmc dev 1                                                                    

    switch to partitions #0, OK                                                    

    mmc1(part 0) is current device

    I am not able to attach u-boot as the file size is 170MB even after compressing it. This link here shows how to get u-boot for beaglebone: www.digikey.com/.../BeagleBone Black

  • In reply to Samy Ab:

    Can you now boot the board with the beaglebone's U-Boot image, and post the output of these commands again to compare them?

    => mmc list
    => mmc dev 0
    => mmc part
    => mmc info
    => mmc dev 1
    => mmc part
    => mmc info
    => mmc rescan
    => mmc list
    => mmc dev 0
    => mmc dev 1
  • In reply to Kemal R. Shakir:

    Here it is:

    => mmc list
    OMAP SD/MMC: 0 (SD)
    OMAP SD/MMC: 1
    => mmc dev 0
    switch to partitions #0, OK
    mmc0 is current device
    => mmc part

    Partition Map for MMC device 0 -- Partition Type: DOS

    Part Start Sector Num Sectors UUID Type
    1 8192 6955008 7f863e1e-01 83 Boot
    => mmc info
    Device: OMAP SD/MMC
    Manufacturer ID: 3
    OEM: 5344
    Name: SL08G
    Bus Speed: 48000000
    Mode : SD High Speed (50MHz)
    Rd Block Len: 512
    SD version 3.0
    High Capacity: Yes
    Capacity: 7.4 GiB
    Bus Width: 4-bit
    Erase Group Size: 512 Bytes
    => mmc info
    Device: OMAP SD/MMC
    Manufacturer ID: 3
    OEM: 5344
    Name: SL08G
    Bus Speed: 48000000
    Mode : SD High Speed (50MHz)
    Rd Block Len: 512
    SD version 3.0
    High Capacity: Yes
    Capacity: 7.4 GiB
    Bus Width: 4-bit
    Erase Group Size: 512 Bytes
    => mmc dev 1
    switch to partitions #0, OK
    mmc1(part 0) is current device
    => mmc part
    ## Unknown partition table type 0
    => mmc info
    Device: OMAP SD/MMC
    Manufacturer ID: 45
    OEM: 100
    Name: DG400
    Bus Speed: 48000000
    Mode : MMC High Speed (52MHz)
    Rd Block Len: 512
    MMC version 5.1
    High Capacity: Yes
    Capacity: 7.3 GiB
    Bus Width: 4-bit
    Erase Group Size: 512 KiB
    HC WP Group Size: 8 MiB
    User Capacity: 7.3 GiB WRREL
    Boot Capacity: 4 MiB ENH
    RPMB Capacity: 4 MiB ENH
    => mmc rescan
    => mmc list
    OMAP SD/MMC: 0 (SD)
    OMAP SD/MMC: 1 (eMMC)
    => mmc dev 0
    switch to partitions #0, OK
    mmc0 is current device
    => mmc dev 1
    switch to partitions #0, OK
    mmc1(part 0) is current device
  • In reply to Samy Ab:

    Please see this message.

    => mmc dev 0
    switch to partitions #0, OK
    mmc0 is current device

    You must see the same message with the Processor SDK too.

    You have the two U-Boot sources right?
    Can you compare the <Processor SDK>/board-support/u-boot-<version>/board/ti/am335x/board.c, <Processor SDK>/board-support/u-boot-<version>/board/ti/am335x/mux.c, <Processor SDK>/board-support/u-boot-<version>/configs/am335x_evm_defconfig, <Processor SDK>/board-support/u-boot-<version>/arch/arm/dts/am335x-boneblack.dts, <Processor SDK>/board-support/u-boot-<version>/arch/arm/dts/am335x-bone-common.dtsi files and see what is different in the beaglebone's U-Boot?

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.