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.

OMAP L138 restart in u-boot

Other Parts Discussed in Thread: OMAPL138, AM1808

Hi

      I've custom OMAPl138 board based on omap LCDK board. when i boot the board first time with the following files from SD card /board-support/prebuilt-images/ u-boot-lcdk.bin, u-boot-lcdk_ais.bin, uImage successfully it got boot. 

But suddenly its getting restarting and its not booting again it failing in u-boot. log is here. and it have NAND memory. 

stop stop5 stop51 stop53 stop54 stop56*** Warning - bad CRC, using default environment

stop57 stop58 stop59 stop60 stop6In: serial
Out: serial
Err: serial
ARM Clock : 300000000 Hz
DDR Clock : 150000000 Hz
Net: Ethernet PHY: GENERIC @ 0x07
DaVinci-EMAC
Hit any key to stop autoboot: 0
NAND: eee!!!
vvvvvvvvv!!!
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xbc (Micron NAND 512MiB 1,8V 16-bit)
NAND bus width 16 instead 16 bit
gggggg!!!
hhhh!!!
512 MiB
MMC: vinothrajdavinci: 0
stop stop5 stop51 stop53 stop54 stop56*** Warning - bad CRC, using default environment

stop57 stop58 stop59 stop60 stop6In: serial
Out: serial
Err: serial
ARM Clock : 300000000 Hz
DDR Clock : 150000000 Hz
Net: Ethernet PHY: GENERIC @ 0x07
DaVinci-EMAC
Hit any key to stop autoboot: 0
NAND: eee!!!
vvvvvvvvv!!!
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xbc (Micron NAND 512MiB 1,8V 16-bit)
NAND bus width 16 instead 16 bit
gggggg!!!
hhhh!!!
512 MiB
MMC: vinothrajdavinci: 0
stop stop5 stop51 stop53 stop54 stop56*** Warning - bad CRC, using default environment

This is the log i'm getting again again.

How can i resolve it. ?

  • Hi,

    when i boot the board first time with the following files from SD card /board-support/prebuilt-images/ u-boot-lcdk.bin, u-boot-lcdk_ais.bin, uImage successfully it got boot.

    Are you using pre-built u-boot binaries for your custom board ?

    But u-boot log is seems to be not a pre-built and It is compiled binary with user logs,

    Correct me if I'm wrong.

    Do you have SPI flash on your board?

    Please provide us detailed steps that you followed for both cases working and not working(restart) ,

  • Hi Mr.stalin 

             No it doesn't have SPI flash but it have parallel 16 bit Micron NAND flash (MT29F4G16ABADAH4).

             Now its working fine but i didn't make any changes just turn on the board its booting with no issues. 

            Its confusing me, Please let me know the answer for following questions,

                1. First i have the above mentioned three files in SD card and booting is success. then i delete the u-boot file then boot the board but the boot log is like SD card have u-boot and its again restart. 

    (I just copy and paste the files didn't use any script file for transfer this boot files but its showing log of already used u-boot)

                    Do the u-boot will be copied to the NAND?

                2. After uflash cmd i got the following log 

    AM1808/pre-build-images_MMC$ sudo ./uflash -d /dev/sdb -u u-boot_mmc.ais -p OMAPL138 -vv


    OMAPL138
    UBL Size 348611
    U-Boot Size 511
    First partition starts at 305235(156280320)
    Required Blocks 808, Available Blocks 305234
    UBL Magic Number : a1aced00
    UBL Entry Point : 00000100
    UBL Number of Blocks : 000002a8
    UBL Starting Block : 00000075
    UBL Load Address : 00000000
    Writing UBL Signature
    Writing UBL

    After the log there is no files into my SD card. is the u-boot_mmc.ais file is hidden in SD card at the defined sectors or it  visible to the user ?

           3. How to prepare the SD card with the two partitions for u-boot and file system ?

    Please clear me and what is purpose of AISign.

          I changed the various u-boot prebuilt but the logs are not changing according to the new uboot. log are for the previous uboot but i dont have the uboot at my SDcard i deleted the file but same log. 

    Thanks

    Sangly kumar. 

  • Hi,

    To avoid confusion, Please delete the contents of NAND flash and try to boot your board from SD card,

    If you wish to boot the board from NAND only then remove the SD card from board.

    After the log there is no files into my SD card. is the u-boot_mmc.ais file is hidden in SD card at the defined sectors or it  visible to the user ?

    Actually, It is written to unformatted partition of SD card,

    When you are formatting the SD card, We have to keep the AIS formatted u-boot file into unformatted partition of SD and will have the uImage (kernel) into 1st partition of SD  card then we have filesystem on 2nd partition of SD card.

    http://processors.wiki.ti.com/index.php/OMAP-L138_Preparing_SD_Card_for_Boot#CCS
    http://processors.wiki.ti.com/index.php/How_to_boot_OMAP-L138_LCDK_from_SD_card

    Please clear me and what is purpose of AISign.

    RBL will boot only AIS formatted binaries If you are booting any other media,

    So, You need to flash u-boot with AIS format only (NAND/SPI/SD)

    Refer the below ti e2e post for creating 3 partitions of SD card and make it bootable for OMAPL138

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/327050.aspx

             Now its working fine but i didn't make any changes just turn on the board its booting with no issues.

    After done all the above experiments and try to boot the board from any one of the media NAND boot or SD card boot (erase the content of NAND or remove the SD card from board)

    If the same problem continues then Please check at hardware level it may due to misbehave of your board(resetting).

  • Hi Mr.stalin 

            Already i tried to erase the NAND with the "nand erase.chip" its showing the process but again its show the same log. 

           Kindly let me know the procedure of delete NAND flash. 

    Thanks

    Sanglykumar

  • Hi,

           Kindly let me know the procedure of delete NAND flash.

    "nand erase.chip",

    This command is sufficient,

            Already i tried to erase the NAND with the "nand erase.chip" its showing the process but again its show the same log.

    Then you are booting from SD card only,

    As I suggested from my previous reply and from above old ti e2e thread, You can create your own built binary on your SD card and test it.

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/327050.aspx

  • Hi Mr.Stalin 

          Thanks for your help and the problem is solved. 

          Problem is not sufficient power for board. actually i powered the board from USB so V & A are not sufficient.

          You helped me to know the purpose of AIS and SD card partitions thanks for your patient explanation. 

    Thanks

    Sangly 

  • Sounds good,

    Thanks for your update.