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: 565

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

  • Hello Samy,

    Probably your custom board failed to boot from all boot devices and since it tried to boot form USB as a last resort and stuck there, you got that impression that it stuck on USB detection. Can you attach the complete boot log to check this?

    Best regards,
    Kemal

    Note: While writing your text the Enter key will create a new paragraph with huge paragraph spacing between the lines, so that you can use Shift+Enter to create a regular new line.

  • In reply to Kemal R. Shakir:

    Hi Kemal,

    Thanks for quick reply. Following is my boot log:

    U-Boot 2017.01-gc68ed086bd (Mar 26 2018 - 15:08:11 -0400)

    CPU : AM335X-GP rev 2.1
    Model: TI AM335x BeagleBone Black
    DRAM: 512 MiB
    NAND: 0 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    MMC: no card present
    ** Bad device mmc 0 **
    Using default environment

    <ethaddr> not set. Validating first E-fuse MAC
    Net: cpsw, usb_ether
    Hit any key to stop autoboot: 0
    MMC: no card present
    MMC: no card present
    MMC: no card present
    MMC: no card present
    MMC: no card present
    MMC: no card present
    ## Error: "bootcmd_nand0" not defined
    starting USB...
    USB0: Port not available.
    link up on port 0, speed 100, full duplex
    BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    BOOTP broadcast 4
    BOOTP broadcast 5
    BOOTP broadcast 6
    BOOTP broadcast 7
    BOOTP broadcast 8
    BOOTP broadcast 9
    BOOTP broadcast 10
    BOOTP broadcast 11
    BOOTP broadcast 12


    I am not sure why the board would not boot from sd-card, since it boots fine with the beaglebone image.

    Thanks
  • In reply to Samy Ab:

    Can you enter these commands in U-Boot console and retry?

    => env default -f -a
    => saveenv

    Note: While writing your text the Enter key will create a new paragraph with huge paragraph spacing between the lines, so that you can use Shift+Enter to create a regular new line.

  • In reply to Kemal R. Shakir:

    It did not make a difference. Still says "MMC: no card present"

    Please see the log below:

    U-Boot 2017.01-gc68ed086bd (Mar 26 2018 - 15:08:11 -0400)

    CPU : AM335X-GP rev 2.1
    Model: TI AM335x BeagleBone Black
    DRAM: 512 MiB
    NAND: 0 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    MMC: no card present
    ** Bad device mmc 0 **
    Using default environment

    <ethaddr> not set. Validating first E-fuse MAC
    Net: cpsw, usb_ether
    Hit any key to stop autoboot: 0
    =>
    => env default -f -a
    ## Resetting to default environment
    => saveenv
    Saving Environment to FAT...
    MMC: no card present
    ** Bad device mmc 0 **
    => reset
    resetting ...

    U-Boot SPL 2017.01-gc68ed086bd (Mar 26 2018 - 15:08:11)
    Trying to boot from MMC1
    reading uboot.env

    ** Unable to read "uboot.env" from mmc0:1 **
    Using default environment

    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img


    U-Boot 2017.01-gc68ed086bd (Mar 26 2018 - 15:08:11 -0400)

    CPU : AM335X-GP rev 2.1
    Model: TI AM335x BeagleBone Black
    DRAM: 512 MiB
    NAND: 0 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    MMC: no card present
    ** Bad device mmc 0 **
    Using default environment

    <ethaddr> not set. Validating first E-fuse MAC
    Net: cpsw, usb_ether
    Hit any key to stop autoboot: 0
    MMC: no card present
    MMC: no card present
    MMC: no card present
    MMC: no card present
    MMC: no card present
    MMC: no card present
    ## Error: "bootcmd_nand0" not defined
    starting USB...
    USB0: Port not available.
    link up on port 0, speed 100, full duplex
    BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    BOOTP broadcast 4
    BOOTP broadcast 5
    BOOTP broadcast 6
    BOOTP broadcast 7
    BOOTP broadcast 8
    BOOTP broadcast 9
    BOOTP broadcast 10
    BOOTP broadcast 11
    BOOTP broadcast 12
    BOOTP broadcast 13
    BOOTP broadcast 14
    BOOTP broadcast 15
    BOOTP broadcast 16
    BOOTP broadcast 17
    BOOTP broadcast 18
    DHCP client bound to address 172.16.0.123 (30805 ms)
    Using cpsw device
    TFTP from server 0.0.0.0; our IP address is 172.16.0.123; sending through gatew1
    Filename 'zImage'.
    Load address: 0x82000000
    Loading: *
    TFTP error: 'File not found or No Access' (1)
    Not retrying...
    missing environment variable: pxeuuid
    Retrieving file: pxelinux.cfg/01-30-45-11-78-ae-8b
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/AC10007B
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/AC10007
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/AC1000
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/AC100
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/AC10
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/AC1
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/AC
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/A
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/default-arm-am33xx
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/default-arm
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/default
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Config file not found
    starting USB...
    USB0: Port not available.
    link up on port 0, speed 100, full duplex
    BOOTP broadcast 1
    DHCP client bound to address 172.16.0.123 (4 ms)
    Using cpsw device
    TFTP from server 0.0.0.0; our IP address is 172.16.0.123; sending through gatew1
    Filename 'boot.scr.uimg'.
    Load address: 0x80000000
    Loading: *
    TFTP error: 'File not found or No Access' (1)
    Not retrying...
    link up on port 0, speed 100, full duplex
    BOOTP broadcast 1
    DHCP client bound to address 172.16.0.123 (4 ms)
    Using cpsw device
    TFTP from server 0.0.0.0; our IP address is 172.16.0.123; sending through gatew1
    Filename 'boot.scr.uimg'.
    Load address: 0x82000000
    Loading: *
    TFTP error: 'File not found or No Access' (1)
    Not retrying...
  • In reply to Samy Ab:

    Can you try to boot with the U-Boot from the latest Processor SDK? There was an issue in U-Boot 2017.01 version on eMMC detection which may cause this SD card detection issue on your custom board.

    Note: While writing your text the Enter key will create a new paragraph with huge paragraph spacing between the lines, so that you can use Shift+Enter to create a regular new line.

  • In reply to Kemal R. Shakir:

    I tried the latest SDK and still ended up with the same problem. I even tried setting "env default -f -a" but no luck.
    Following is my boot log:

    U-Boot 2018.01-g313dcd69c2 (Dec 16 2018 - 09:01:09 +0000)

    CPU : AM335X-GP rev 2.1
    Model: TI AM335x BeagleBone Black
    DRAM: 512 MiB
    NAND: 0 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    ** Bad device mmc 0 **
    Using default environment

    <ethaddr> not set. Validating first E-fuse MAC
    Net: cpsw, usb_ether
    Hit any key to stop autoboot: 0
    switch to partitions #0, OK
    mmc1(part 0) is current device
    ** No partition table - mmc 1 **
    switch to partitions #0, OK
    mmc1(part 0) is current device
    SD/MMC found on device 1
    ** No partition table - mmc 1 **
    ## Error: "bootcmd_nand0" not defined
    starting USB...
    USB0: Port not available.
    link up on port 0, speed 100, full duplex
    BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    BOOTP broadcast 4
    BOOTP broadcast 5
    BOOTP broadcast 6
    BOOTP broadcast 7
    BOOTP broadcast 8
    BOOTP broadcast 9
    BOOTP broadcast 10
    BOOTP broadcast 11
    BOOTP broadcast 12
    BOOTP broadcast 13
    BOOTP broadcast 14
    BOOTP broadcast 15
    BOOTP broadcast 16
    BOOTP broadcast 17
    BOOTP broadcast 18
    DHCP client bound to address 172.16.0.123 (30792 ms)
    Using cpsw device
    TFTP from server 0.0.0.0; our IP address is 172.16.0.123; sending through gatew1
    Filename 'zImage'.
    Load address: 0x82000000
    Loading: *
    TFTP error: 'File not found or No Access' (1)
    Not retrying...
    missing environment variable: pxeuuid
    Retrieving file: pxelinux.cfg/01-30-45-11-78-ae-8b
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/AC10007B
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/AC10007
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/AC1000
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/AC100
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/AC10
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/AC1
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/AC
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/A
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/default-arm-am33xx
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/default-arm
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Retrieving file: pxelinux.cfg/default
    link up on port 0, speed 100, full duplex
    *** ERROR: `serverip' not set
    Config file not found
    starting USB...
    USB0: Port not available.
    link up on port 0, speed 100, full duplex
    BOOTP broadcast 1
    DHCP client bound to address 172.16.0.123 (2 ms)
    Using cpsw device
    TFTP from server 0.0.0.0; our IP address is 172.16.0.123; sending through gatew1
    Filename 'boot.scr.uimg'.
    Load address: 0x80000000
    Loading: *
    TFTP error: 'File not found or No Access' (1)
    Not retrying...
    link up on port 0, speed 100, full duplex
    BOOTP broadcast 1
    DHCP client bound to address 172.16.0.123 (2 ms)
    Using cpsw device
    TFTP from server 0.0.0.0; our IP address is 172.16.0.123; sending through gatew1
    Filename 'boot.scr.uimg'.
    Load address: 0x82000000
    Loading: *
    TFTP error: 'File not found or No Access' (1)
    Not retrying...
    => env default -f -a
    ## Resetting to default environment
    => saveenv
    Saving Environment to FAT...
    ** Bad device mmc 0 **

    Thanks
  • In reply to Samy Ab:

    You are trying to boot from SD card right? Can you share the SD card part of your board's schematic?

    Note: While writing your text the Enter key will create a new paragraph with huge paragraph spacing between the lines, so that you can use Shift+Enter to create a regular new line.

  • In reply to Kemal R. Shakir:

    Yes I am trying to boot from SD card and eMMC is empty in my board. I was able to boot my board successfully from beaglebone's image, but I am not sure why I am having trouble with Sd card detection in TI SDK.

    Here are my SD card and boot sequence schematics.

  • In reply to Kemal R. Shakir:

    Any suggestions on how to make my board boot on TI SDK would be greatly appreciated!

    Thanks!

  • In reply to Samy Ab:

    Post me the processor side where these MMC pins are connected.

    Note: While writing your text the Enter key will create a new paragraph with huge paragraph spacing between the lines, so that you can use Shift+Enter to create a regular new line.

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.