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.

DRA821U: u-boot can not ums emmc to linux computer

Part Number: DRA821U
Other Parts Discussed in Thread: DRA829, DRA821

when I  finished  the make u-boot,I have founded the tiboot3.bin tifs.bin u-boot.image,then I copyed them to DDR by the DFU.and the uboot is successful.

then I tryed to ums 0 mmc 0 ,it failed.

and the image is below:

Do I need to execute other instructions when make u-boot。

  • Hi,

    I am seeing the same logs at my end. What is your end use case?

    - Keerthy

  • I want to boot from EMMC,put the filesystem in EMMC。

  • Hi:

    Can you give me some guide?

    Many thanks and appreciate! 

  • Hi,

    This is the expected output on the target(EVM) side:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    U-Boot SPL 2021.01-00007-g313c806f79 (Jun 24 2021 - 21:34:12 +0530)
    SYSFW ABI: 3.1 (firmware rev 0x0015 '21.5.0--v2021.05 (Terrific Llam')
    Trying to boot from MMC2
    Starting ATF on ARM64 core...
    NOTICE: BL31: v2.4(release):v2.4-73-g65dd16b-dirty
    NOTICE: BL31: Built : 12:55:41, Jan 23 2021
    U-Boot SPL 2021.01-00007-g313c806f79 (Jun 24 2021 - 21:35:02 +0530)
    SYSFW ABI: 3.1 (firmware rev 0x0015 '21.5.0--v2021.05 (Terrific Llam')
    Detected: J7X-BASE-CPB rev E3
    Detected: J7X-GESI-EXP rev E3
    Trying to boot from MMC2
    U-Boot 2021.01-00007-g313c806f79 (Jun 24 2021 - 21:35:02 +0530)
    SoC: J721E SR1.0
    Model: Texas Instruments K3 J721E SoC
    Board: J721EX-PM2-SOM rev E6
    DRAM: 4 GiB
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    On the host side i.e the PC side here is the output.

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    [382544.771001] usb 1-5.3.1: new high-speed USB device number 14 using xhci_hcd
    [382544.875552] usb 1-5.3.1: New USB device found, idVendor=0451, idProduct=6163, bcdDevice= 2.24
    [382544.875561] usb 1-5.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [382544.875567] usb 1-5.3.1: Product: USB download gadget
    [382544.875572] usb 1-5.3.1: Manufacturer: Texas Instruments
    [382544.875578] usb 1-5.3.1: SerialNumber: 0000000000000039
    [382544.878061] usb-storage 1-5.3.1:1.0: USB Mass Storage device detected
    [382544.879188] scsi host4: usb-storage 1-5.3.1:1.0
    [382545.907653] scsi 4:0:0:0: Direct-Access Linux UMS disk 0 ffff PQ: 0 ANSI: 2
    [382545.908581] sd 4:0:0:0: Attached scsi generic sg2 type 0
    [382545.908909] sd 4:0:0:0: [sdc] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB)
    [382545.909102] sd 4:0:0:0: [sdc] Write Protect is off
    [382545.909110] sd 4:0:0:0: [sdc] Mode Sense: 0f 00 00 00
    [382545.909287] sd 4:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [382545.931200] sdc: sdc1 sdc2
    [382545.959781] sd 4:0:0:0: [sdc] Attached SCSI removable disk
    [382546.732530] FAT-fs (sdc1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [382546.765532] EXT4-fs (sdc2): recovery complete
    [382546.765542] EXT4-fs (sdc2): mounted filesystem with ordered data mode. Opts: (null)
    /dev/sdc1 133M 2.6M 131M 2% /media/a0132425/boot
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Can you share the dmesg logs from the host PC/Laptop side. Please use Linux host on the host side. I did Not
    have much luck with Linux VM. The above is from one of my colleague's native ubuntu Laptop.

    Note: The above is for DRA829 & DRA821 should work similarly.

    Best Regards,
    Keerthy

  • Hi Keerthy:

    thanks for your reply.

    below is our dmesg log from my linux host pc:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    hirain@hirain-QiTianM4600-N000:~$ dmesg
    [ 0.000000] microcode: microcode updated early to revision 0xea, date = 2021-01-25
    [ 0.000000] Linux version 5.4.0-70-generic (buildd@lgw01-amd64-039) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #78~18.04.1-Ubuntu SMP Sat Mar 20 14:10:07 UTC 2021 (Ubuntu 5.4.0-70.78~18.04.1-generic 5.4.94)
    [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-70-generic root=UUID=330c1bd2-8535-4c4f-977a-c02d09a5d8c0 ro quiet splash vt.handoff=1
    [ 0.000000] KERNEL supported cpus:
    [ 0.000000] Intel GenuineIntel
    [ 0.000000] AMD AuthenticAMD
    [ 0.000000] Hygon HygonGenuine
    [ 0.000000] Centaur CentaurHauls
    [ 0.000000] zhaoxin Shanghai
    [ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
    [ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
    [ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
    [ 0.000000] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
    [ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
    [ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
    [ 0.000000] x86/fpu: xstate_offset[3]: 832, xstate_sizes[3]: 64
    [ 0.000000] x86/fpu: xstate_offset[4]: 896, xstate_sizes[4]: 64
    [ 0.000000] x86/fpu: Enabled xstate features 0x1f, context size is 960 bytes, using 'compacted' format.
    [ 0.000000] BIOS-provided physical RAM map:
    [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    please help us to find the problems. Many thanks!

  • Hi Keerthy:

    I am looking forward to your reply.

  • I am looking forward to your reply.

  • Hi,what should I do then?

  • Hi,

    [382545.931200]  sdc: sdc1 sdc2
    [382545.959781] sd 4:0:0:0: [sdc] Attached SCSI removable disk
    [382546.732530] FAT-fs (sdc1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [382546.765532] EXT4-fs (sdc2): recovery complete
    [382546.765542] EXT4-fs (sdc2): mounted filesystem with ordered data mode. Opts: (null)
    
    /dev/sdc1       133M  2.6M  131M   2% /media/a0132425/boot
    /dev/sdc2       2.3G  1.2G  951M  56% /media/a0132425/root

    Is something that is missing from your log. Have you partitioned eMMC?


    Do you have SD card slot on your custom EVM?

    - Keerthy