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.

DM3730 Bootloader

Other Parts Discussed in Thread: DM3730, LINUXDVSDK-DM37X

I am developing a custom DM3730 based board.I have some doubts regarding the bootloader section.

1.Is it possible to load X-loader seperately ? 

2. I could find some documents like "Using the AM18xx Bootloader" (www.ti.com/lit/zip/spraba5).Is such document is available for DM3730.

3.To customize u boot code, what all section need to be updated?

  • Soumya,

    You can refer chapter 26 of the DM3730 TRM to understand the boot process. If you let us know what exactly you are trying to with the 3730 bootloaders, we will be able to give better suggestions.

  • I have to run some test firmware using u boot to test the peripheral devices such as ethernet,flash,usb etc.Initially i would like to use DDR to download the u boot image.

    how to initialize the DDR to download U boot?

    My final aim is to load Linux kernel using u boot.

  • Soumya,

    You don't have to re-invent the wheel again. Its an already solved problem. You can use the DVSDK available from TI, which does pretty much all what you've asked for. 

    Download the package, install and follow the user guide to boot x-loader, u-boot and kernel as well.

    http://www.ti.com/tool/linuxdvsdk-dm37x

  • whats the difference between TMS320DM3730 and DM3730. do both are same?

  • Soumya,

    Both are same.

  • Hai Renjith

    I'm working on the same processor.

    When i compile the uboot & uimage using arago toolchain.It compiles well.Then i creates my boot partition to boot the board. uboot boots well but my kernel doesn't.I'm using custom board.

    Hit any key to stop autoboot: 0
    error waiting for i2c address ACK (status=0x1012)
    timed out in wait_for_bb: I2C_STAT=1000
    Loading file "/boot/uImage" from mmc device 0:2 (xxa2)
    ** File not found /boot/uImage
    Booting from mmc ...
    Wrong Image Format for bootm command
    ERROR: can't get kernel image!
    Hello world
    timed out in wait_for_bb: I2C_STAT=1000

    MSP found!!
    MSP MASTER enabled
    uboot EVO1.0 >> printenv
    baudrate=115200
    beaglerev=xMA
    bootargs=console=none mpurate=auto buddy=none camera=none vram=12M omapfb.mode=dvi:1024x600MR-32@60 omapdss.def_disp=dvi root=/dev/mmcblk0p2 rw rootfstt
    bootcmd=mmc rescan; run loaduimage; run mmcboot
    bootdelay=0
    bootenv=uEnv.txt
    bootfile=uImage.beagle
    buddy=none
    camera=none
    console=none
    defaultdisplay=dvi
    dieid#=53ee00029ff800000154997407017003
    dvimode=1024x600MR-32@60
    filesize=352BDC
    importbootenv=echo Importing environment from mmc ...; env import -t $loadaddr $filesize
    kloadaddr=0x80007fc0
    loadaddr=0x80200000
    loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}
    loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gz
    loaduimage=ext2load mmc ${mmcdev}:2 ${kloadaddr} /boot/uImage
    loaduimagefat=fatload mmc ${mmcdev} ${kloadaddr} uImage
    mmcargs=setenv bootargs console=${console} ${optargs} mpurate=${mpurate} buddy=${buddy} camera=${camera} vram=${vram} omapfb.mode=dvi:${dvimode} omapds}
    mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${kloadaddr}
    mmcdev=0
    mmcroot=/dev/mmcblk0p2 rw
    mmcrootfstype=ext3 rootwait
    mpurate=auto
    nand=bootargs
    nandboot=echo Booting from nand ...; run mmcargs; bootm ${kloadaddr}
    ramargs=setenv bootargs console=${console} ${optargs} mpurate=${mpurate} buddy=${buddy} vram=${vram} omapfb.mode=dvi:${dvimode} omapdss.def_disp=${defa}
    ramboot=echo Booting from ramdisk ...; run ramargs; bootm ${kloadaddr}
    ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=0x81000000,64M
    ramrootfstype=ext2
    rdaddr=0x81000000
    usbethaddr=de:ad:be:ef
    usbtty=cdc_acm
    vram=12M

    Environment size: 1744/131068 bytes

    It stuck in this window.Kernel doesn't boots automatically.when i setenv it works then i save it,automatically saves in NAND,i don't know why???

    How to erase the NAND bootargs completely from code not in printenv setup.I want boot from mmc alone....

    Thanks in advance.

  • Sekra,

    Copy the uImage to the partition where MLO and u-boot is copied. Use loaduimagefat instead of loaduimage in bootcmd.

  • Hai

    Yes renjith i tried it that you had post.

    To type

    > run loaduimagefat

    >run mmcboot

    it gets bootup.But i wants to boot automatically.How do i modify the print environment.

    In my boot partition of the sd card-MLO,uboot.img,uImage tats all,i didn't had uEnv.txt,boot.scr,boot.cmd.

    Thankyou.

  • Sekra,

    If you have NAND flash, then you can save the env by using "saveenv" command. Otherwise you've to create boot.scr by following the procedure mentioned in the below link.

    http://omappedia.org/wiki/PandaBoard_FAQ#How_do_I_saveenv_for_boot_args_on_a_PandaBoard.3F

  • Hai Renjith

    I met some other problem in there.I made that script file but nothing will happens there.Again it stops after uboot completion.Is there any other modification i want to do??

    One more question renjith...

    When i boot the above bootloader then type the command to boot uimage.it works but it doesn't shows up the boot log messages.

    But when i boot ti given bootloader (MLO,uboot.img),it boots up and shows the kernel's boot message.

    I didn't know why?Is there any relationship for uboot and uimage for showing boot message.

    Thankyou

  • Sekra,

    Do printenv to verify whether the environment variables are read from boot.scr properly or not. If not, please revisit the steps that you've done. 

    Kernel logs might not be coming from your image because of wrong bootargs. Please check and compare the bootargs of the working configuration.