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.

PROCESSOR-SDK-AM335X: AM335x flash U-boot to eMMC boot partition 0

Part Number: PROCESSOR-SDK-AM335X

Hi TI experts,

customer want to boot custom AM335x board from eMMC flash with 4bit mode.

Now, they flash eMMC with below way

1)boot custom board with on-board NAND flash

2)echo 0 > /sys/block/mmcblk0boot0/force_ro  enable write access to the emmc boot0 partition

3)dd if=MLO of=/dev/mmcblk0boot0 seek=0

4)dd if=u-boot.img of=/dev/mmcblk0boot0 seek=768

5)Reboot board and pause U-boot

6)change u-boot environment variable 

mmc bootbus 0 1 0 0 
mmc partconf 0 1 1 1
7)set board to eMMC boot mode and power again.
But can't see anything on UART terminal. it's means that U-boot failed to boot-up
Could you pls check whether the operation process correct, or is there a better way to write U-boot into the boot0 partition of eMMC?


Thanks so much for your reply

Best regards,
Jason

  • 按照回复方式写入启动未成功,在uboot烧录也未成功

    Starting xmodem transfer. Press Ctrl+C to cancel.
    Transferring u-boot-spl.bin...
    100% 76 KB 2 KB/sec 00:00:26 0 Errors


    U-Boot SPL 2015.07-gfdcc6d5-dirty (Aug 23 2023 - 11:41:38)
    CCCCCC
    Transferring u-boot.img, errors 1...l+C to cancel.
    100% 370 KB 3 KB/sec 00:02:00 2 Errors

    YHLO#
    YHLO#
    YHLO#
    YHLO# md.l 0x44E10040 1
    44e10040: 004203f7 ..B.
    YHLO# setenv ipaddr 192.168.1.2
    YHLO# setenv serverip 192.168.1.1
    YHLO# setenv gatewayip 192.168.1.1
    YHLO# saveenv
    Saving Environment to NAND...
    Erasing NAND...
    Erasing at 0x300000 -- 100% complete.
    Writing to NAND... OK
    YHLO# ping 192.168.1.1
    link up on port 0, speed 1000, full duplex
    Using cpsw device
    host 192.168.1.1 is alive
    YHLO# tftp MLO
    link up on port 0, speed 1000, full duplex
    Using cpsw device
    TFTP from server 192.168.1.1; our IP address is 192.168.1.2
    Filename 'MLO'.
    Load address: 0x82000000
    Loading: ######
    1.2 MiB/s
    done
    Bytes transferred = 79160 (13538 hex)
    YHLO# mmc write 0x82000000 0x0 0x300

    MMC write: dev # 0, block # 0, count 768 ... 768 blocks written: OK
    YHLO# tftp u-boot.img
    link up on port 0, speed 1000, full duplex
    Using cpsw device
    TFTP from server 192.168.1.1; our IP address is 192.168.1.2
    Filename 'u-boot.img'.
    Load address: 0x82000000
    Loading: ##########################
    1.4 MiB/s
    done
    Bytes transferred = 379128 (5c8f8 hex)
    YHLO# mmc write 0x82000000 0x300 0x400

    MMC write: dev # 0, block # 768, count 1024 ... 1024 blocks written: OK
    YHLO# mmc bootbus 0 1 0 0
    YHLO# mmc partconf 0 1 1 1
    YHLO# boot
    WARNING: Could not determine device tree to use
    Card did not respond to voltage select!
    SD/MMC found on device 1
    Card did not respond to voltage select!
    ** Bad device mmc 1 **
    Card did not respond to voltage select!
    ** Bad device mmc 1 **
    syntax error
    Card did not respond to voltage select!
    SD/MMC found on device 1
    Card did not respond to voltage select!
    ** Bad device mmc 1 **
    Card did not respond to voltage select!
    SD/MMC found on device 1
    Card did not respond to voltage select!
    ** Bad device mmc 1 **
    Card did not respond to voltage select!
    ** Bad device mmc 1 **
    syntax error
    Card did not respond to voltage select!
    SD/MMC found on device 1
    Card did not respond to voltage select!
    ** Bad device mmc 1 **
    Booting from nand ...

    NAND read: device 0 offset 0x80000, size 0x40000
    262144 bytes read: OK

    NAND read: device 0 offset 0x340000, size 0x800000
    8388608 bytes read: OK
    Bad Linux ARM zImage magic!

    NAND read: device 0 offset 0xc0000, size 0x40000
    262144 bytes read: OK

    NAND read: device 0 offset 0xb40000, size 0x800000
    8388608 bytes read: OK
    Bad Linux ARM zImage magic!
    YHLO# mmc bootbus 0 1 0 0
    YHLO# mmc partconf 0 1 1 1
    YHLO# md.l 0x44E10040 1
    44e10040: 004203f7 ..B.
    YHLO# boot
    WARNING: Could not determine device tree to use
    Card did not respond to voltage select!
    SD/MMC found on device 1
    Card did not respond to voltage select!
    ** Bad device mmc 1 **
    Card did not respond to voltage select!
    ** Bad device mmc 1 **
    syntax error
    Card did not respond to voltage select!
    SD/MMC found on device 1
    Card did not respond to voltage select!
    ** Bad device mmc 1 **
    Card did not respond to voltage select!
    SD/MMC found on device 1
    Card did not respond to voltage select!
    ** Bad device mmc 1 **
    Card did not respond to voltage select!
    ** Bad device mmc 1 **
    syntax error
    Card did not respond to voltage select!
    SD/MMC found on device 1
    Card did not respond to voltage select!
    ** Bad device mmc 1 **
    Booting from nand ...

    NAND read: device 0 offset 0x80000, size 0x40000
    262144 bytes read: OK

    NAND read: device 0 offset 0x340000, size 0x800000
    8388608 bytes read: OK
    Bad Linux ARM zImage magic!

    NAND read: device 0 offset 0xc0000, size 0x40000
    262144 bytes read: OK

    NAND read: device 0 offset 0xb40000, size 0x800000

  • mmc boot0为1M

  • 重新上电的打印

  • Hi Nick,

    This forum only support posts in English. Please either post your messages in English here, or post your question to https://e2echina.ti.com/. Thanks.

  • Hi Bin,

    Thanks so much for your reply. you can close this one, and  I will post a new forum.

    Best regards,

    Jason