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.

AM335x UART boot

Other Parts Discussed in Thread: AM3356

Hi,

I am using am3356 custom board with ti-processor-sdk-linux-am335x-evm-01.00.00.00. Now i want to boot am3356 from UART0 boot mode. My boot sequence is SYSBOOT[4:0] = 11100 - MMC1 -> MMC0 -> UART0 -> USB0.

From boards.cfg i am using

Active  arm         armv7          am33xx      ti              am335x              am335x_evm_uart1                      am335x_evm:SERIAL2,CONS_INDEX=2,NAND                                                                                              Tom Rini <trini@ti.com>


is it correct? If not please suggest me proper config for uart0 boot. After building uboot with this configuration when i transfer spl/u-boot-spl.bin from XMODEM nothing happens on console and CCCC remains as it is.

Please help me.

Regards,

Nilesh

  • Hi,

    I got it solved by doing am335x_evm:SERIAL1,CONS_INDEX=1,NAND in my case.

    Also able to load dtb, zImage through ymodem on specific location using loady. Also load file system from nfs.

    My issues get resolved.

    Thanks,
    Nilesh

  • Thanks for updating the thread.
  • HI Nilesh
    Can you explain how to load kernel image dtb and zImage through ymodem .Did you changed zimage to zimage.bin or directly loaded?we are using uart0 booting.
    we are using ti-processor sdk-3.00.00.4 ,kernel version is 4.4.12 and my filesystem size is after extracting 80MB .Is it possible to load through uart0?

    sudo picocom -b 115200 /dev/ttyUSB0 --send-cmd "sx -vv -Y"

    and zImage rename to zIamge.bin

    am335x-evm.dtb directlry loaded



    Can you guide me.

    Thanks
    veera

  • Hi Veera,

    I had followed below steps and it was worked for me. I have used ti-processor-sdk-linux-am335x-evm-01.00.00.00-Linux-x86-Install.bin.

    From uboot directory:
    -------------------------------------------------------
    Open board.cfg file and add below things.
     
    Active  arm         armv7          am33xx      ti             edge              am335x_evm_uart0                      edge:SERIAL1,CONS_INDEX=1,NAND                                                                                              Tom Rini <trini@ti.com>
     
    To build it:
    sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=UART am335x_evm_uart0_config
    sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=UART

    After that
    open minicom in linux
    when CCCC come press CTRL+A+S
    now goto xmodem and give path to spl/u-boot-spl.bin
    now goto ymodem and give path to u-boot.img
    press any key just after completion of transfer to stop in uboot
    now loady 0x88000000 115200
    goto ymodem
    give path to am335x-edge.dtb
    now loady 0x82000000 115200
    goto ymodem
    give path to zImage
    setenv nandargs 'setenv bootargs console=ttyS0,115200n8 noinitrd rw root=/dev/nfs nfsroot=10.103.2.69:/home/AM335x/filesystem,nolock ip=dhcp earlyprintk'
    now write "boot" to boot kernel
    ---------------------------------------------------------------------------
    It's done. Here I have set nandargs because at the time of booting that bootargs were used. You may have differ bootargs to set. Don't forget to export path in NFS server and restarting of it.
    Regards,
    Nilesh Kadivar

  • Hi Nilesh,

    Thanks for your reply.
    we want uart booting.Dont want NAND boot.If i want emmc boot .what are the arguments we need to pass ?

    Thanks
    veera
  • Hi veera,

    Don't go in detail with nandargs it is only which I used as bootargs. You can remove NAND from board.cfg and try. So remove NAND from cfg and simply set bootargs instead of nandargs and then try I think it will work.

    Regards,
    Nilesh Kadivar
  • HI Nilesh,
    Thanks for your reply.Our Latest u-boot source code has not having the boards.cfg. Its having the menuconfig.

    We got below logs:
    => setenv bootargs console=ttyS0,115200n8 noinitrd rw root=/dev/ttyUSB0 filesystem,nolock earlyprintk
    => boot
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    No ethernet found.
    missing environment variable: pxeuuid
    Retrieving file: pxelinux.cfg/00000000
    No ethernet found.
    Retrieving file: pxelinux.cfg/0000000
    No ethernet found.
    Retrieving file: pxelinux.cfg/000000
    No ethernet found.
    Retrieving file: pxelinux.cfg/00000
    No ethernet found.
    Retrieving file: pxelinux.cfg/0000
    No ethernet found.
    Retrieving file: pxelinux.cfg/000
    No ethernet found.
    Retrieving file: pxelinux.cfg/00
    No ethernet found.
    Retrieving file: pxelinux.cfg/0
    No ethernet found.
    Retrieving file: pxelinux.cfg/default-arm-am33xx
    No ethernet found.
    Retrieving file: pxelinux.cfg/default-arm
    No ethernet found.
    Retrieving file: pxelinux.cfg/default
    No ethernet found.
    Config file not found
    No ethernet found.
    =>


    Thanks
    veera