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.

Booting BBB from SD card

Dear TI

I used on one your prebuilt image from this link

i have use the one with sha256sum: da97d7794d834ee785265162635aedcca80fd6dc374593dd05473c0a25f0ac73

flash on the sd card using the command given in bellow sudo dd if=/path/to/downloaded.img of=/dev/devicenod and then i remove power plug press the boot key(S2) and then plug the power plug

but the BBB does not seem to boot from sd card why?

REgards

  • Hi,

    TI supports only the Linux SDK provided on the TI site: software-dl.ti.com/.../index_FDS.html On this page you will find images and instructions for flashing the SD card. Linux versions provided on Beagleboard.org are not supported by TI. You can ask for support of these on the Beagleboard forums.
  • Thanks biser

    The prebuilt images of sdk  02_00_02_11 does not have a file called uEnv.txt

    but your create-sdcard.sh is looking for that file uEnv.txt in order to flash it on sd card 

    i suppose that is why it is not booting

    Regards

    Nick

  • Hello Nick,

    Please refer to this thread.

    Best regards,
    Kemal

  • hi kemal my question is simple

    if you read your create-sdimage.sh

    #################

    #check that files are in SDK

    BOOTFILEPATH="$PARSEPATH/board-support/prebuilt-images"
    MLO=`ls $BOOTFILEPATH | grep MLO | awk {'print $1'}`
    KERNELIMAGE=`ls $BOOTFILEPATH | grep [uz]Image | awk {'print $1'}`
    BOOTIMG=`ls $BOOTFILEPATH | grep u-boot | grep .img | awk {'print $1'}`
    BOOTBIN=`ls $BOOTFILEPATH | grep u-boot | grep .bin | awk {'print $1'}`
    BOOTUENV=`ls $BOOTFILEPATH | grep uEnv.txt | awk {'print $1'}`
    #rootfs
    ROOTFILEPARTH="$PARSEPATH/filesystem"
    #ROOTFSTAR=`ls $ROOTFILEPARTH | grep tisdk.*rootfs | awk {'print $1'}

    #####################

    i am using your prebuilt images i can see 2 folder filesystem and prebuilt-images

    in the prebuild images i can see zImage,uboot,MLO,dtb file but i cannot see uEnv.txt are you saying this file is not required to boot with SD card ?

    my idea is to flash image on sd and boot from sd card

  • If you do have the proper extra configuration settings for SD card booting embedded in your U-Boot binary then you don't need uEnv.txt otherwise you should export them by uEnv.txt or uboot.env The uEnv.txt is an editable text file where you can define or overwrite your additional environment parameters. By default when you create a SD card by create-sdcard.sh then put the SD card and power on the board while the S2 switch is pressed, it should boot. If not, make sure the S2 switch is not broken and makes good contact.

  • thanks kemal i got that point

    now i see that your create-sdcard.sh is creating a ext3 partition and then it is loading/copying the rootfs in that partition
    and then it is creating /boot folder in the rootfs and copying the kernel file [uz]Image to that folder

    my question is:
    1) this means [uz]Image is present in the second partion which has ext3 filesystem am i correct? i thought kernel image should be in the first partition which has fat filesystem let me know if i am wrong?
    2) if it present in second partition where ext3 filesystem is present how will u-boot know that the kernel is present in /boot directory because i thought bootloader will not be aware of filesystem so how can it locate the kernel?

    Regards

  • Nick King said:

    1) this means [uz]Image is present in the second partion which has ext3 filesystem am i correct? i thought kernel image should be in the first partition which has fat filesystem let me know if i am wrong?


    The kernel can be loaded from both fat or ext3 partitions, by default it gets loaded from the second ext3 partition.

    Nick King said:

    2) if it present in second partition where ext3 filesystem is present how will u-boot know that the kernel is present in /boot directory because i thought bootloader will not be aware of filesystem so how can it locate the kernel?

    The U-Boot reads these environment parameters and decides from where to load the kernel:

    bootdir=/boot
    bootfile=zImage
    bootpart=0:2
    loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}

    If you run these command you will see that the U-Boot can also access the ext3 partitions.

    U-Boot# ls mmc 0:2 /boot
    U-Boot# ext4ls mmc 0:2 /boot
  • thanks kemal

    then when i flash your prebuilt images on sd card and that too the latest SDK 

    the board won't boot and i have 13 boards and it does not work on any boards 

    it cannot be a boot switch issue on all boards and it cannot be SD card problem because i can see the contents of the sd card when i boot the hardware from eMMC

    and i think in your prebuilt images uEnv file is missing or it is a software issue

    can you please test yourself with prebuilt images on sd card and try to boot the board

    Regards

    Nick

     

  • Meanwhile could you attach the SD card to your host machine and post the feedback of sudo fdisk -l /dev/sdX command?

  • Please see the log file yourself

    root@VB:/media/nick/SDK/ti-processor-sdk-linux-am335x-evm-02.00.02.11/bin#

  • I can verify that the prebuild images in ti-processor-sdk-linux-am335x-evm-02.00.02.11 over BBB boots and works properly. Your SD card may get wear out, could you try with another one?
  • thanks kemal today finally i was able to boot from SD card but there was no LCD display can you please check let me know why no LCD display
  • Hi Nick,

    Please start a new thread about this concern and make sure that you have mentioned the SDK version, the board (EVM, BBB, custom) and the type of display you use.

    Best regards,
    Kemal