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.

TDA4VM: Partition and copy boot and rootfs images from USB to EMMC in Uboot

Part Number: TDA4VM
Other Parts Discussed in Thread: UNIFLASH

Hi,

I created two Images one for the boot Partition and one for the rootfs using the dd on my host machine. I can not use the sdcard and Network.

I have the uboot working from OSPI interface and can load files from a USB storage.

For creating the partition on the EMMC I am using this:

setenv uuid_gpt_disk 37c84ec5-8cc8-42e6-85d0-dfd0ebde3257
setenv uuid_gpt_rootfs b0e8add0-befc-41d2-baed-900d580f605b
setenv uuid_gpt_boot 53e2091a-5ba3-42e5-b79e-dda6c9b371e2
gpt write mmc 0 "uuid_disk=${uuid_gpt_disk};name=boot,start=0,size=20M,bootable,type=ebd0a0a2-b9e5-4433-87c0-68b6b72699c7,uuid=${uuid_gpt_boot};name=rootfs,start=20M,size=-,uuid=${uuid_gpt_rootfs},type=linux;"

when I run the mmc part command, I see the following:

Part Start LBA End LBA  Name
 Attributes
 Type GUID
 Partition GUID
  1 0x00000022 0x0000a021 "boot"
 attrs: 0x0000000000000004
 type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
 guid: 53e2091a-5ba3-42e5-b79e-dda6c9b371e2
  2 0x0000a000 0x01da3fde "rootfs"
 attrs: 0x0000000000000000
 type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
 guid: b0e8add0-befc-41d2-baed-900d580f605b

I copy the Image using the following commands:

load usb 0 ${loadaddr} boot.img
mmc write $loadaddr  0x00000022 0XA000
load usb 0 $loadaddr rootfs.img 0x20000000 0x00
mmc write $loadaddr 0xa000 0x100000
load usb 0 $loadaddr rootfs.img 0x20000000 0x20000000
mmc write $loadaddr 0x10a000 0x100000
load usb 0 $loadaddr rootfs.img 0x20000000 0x40000000
mmc write $loadaddr 0x20a000 0x100000
load usb 0 $loadaddr rootfs.img 0x20000000 0x60000000
mmc write $loadaddr 0x30a000 0x100000
load usb 0 $loadaddr rootfs.img 0x20000000 0x80000000
mmc write $loadaddr 0x40a000 0x100000
Upon booting, in OSPI mode the following error is seen:
SW8: 0000 0000
SW9: 0100 0000
Loading rproc fw image from device 3 not supported!
Loading rproc fw image from device 3 not supported!
Starting ATF on ARM64 core...
NOTICE:  BL31: v2.2(release):ti2019.05-rc1
NOTICE:  BL31: Built : 09:32:00, Feb 17 2020
I/TC:
I/TC: OP-TEE version: ti2019.05-rc1-dev (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 Mon Feb 17 09:40:16 UTC 2020 aarch64
I/TC: Initialized
U-Boot SPL 2019.01-g350f3927b8 (Feb 17 2020 - 09:48:06 +0000)
Detected: J7X-BASE-CPB rev E3
Detected: J7X-GESI-EXP rev E3
Detected: J7X-VSC8514-ETH rev E2
Trying to boot from SPI
U-Boot 2019.01-g350f3927b8 (Feb 17 2020 - 09:48:06 +0000)
SoC:   J721E PG 1.0
Model: Texas Instruments K3 J721E SoC
Board: J721EX-PM2-SOM rev E7
DRAM:  4 GiB
Flash: 0 Bytes
MMC:   sdhci@4fb0000 - probe failed: -123
sdhci@4f80000: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment
In:    serial@2800000
Out:   serial@2800000
Err:   serial@2800000
Detected: J7X-BASE-CPB rev E3
Detected: J7X-GESI-EXP rev E3
Detected: J7X-VSC8514-ETH rev E2
Net:  
Warning: ethernet@046000000 using MAC address from ROM
eth0: ethernet@046000000
Hit any key to stop autoboot:  0
no mmc device at slot 1
SD/MMC found on device 1
Trying to boot Android from eMMC ...
switch to partitions #0, OK
mmc0(part 0) is current device
MMC read: dev # 0, block # 34, count 40960 ... 40960 blocks read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Upon booting in EMMC mode:
SW8: 1000 0000
SW9: 0100 0000
I dont see anything on the console.

So I have the following question:

1) The type for the rootfs is not set correctly (It should be Linux but it is not). How can I have a Linux Partition using uboot?

2) How can I make the uboot load Linux from EMMC when the OSPI loads uboot and rootfs Comes from EMMC?

3) How can I make the emmc only boot mode work (Uboot and rootfs both Comes from emmc)?

Thanks,

Pouyan

  • The partition type problem was the cause of not being able to boot the Linux from EMMC.

    Using the sd-card (And booting to Linux) I was able to change the parition type for the emmc paritition (rootfs) to Linux. With this and the following commad I am now able to load Linux from EMMC.  

    => mmc part
    Partition Map for MMC device 0  --   Partition Type: EFI
    Part Start LBA End LBA  Name
     Attributes
     Type GUID
     Partition GUID
      1 0x00000022 0x0000a021 "boot"
     attrs: 0x0000000000000004
     type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
     guid: 53e2091a-5ba3-42e5-b79e-dda6c9b371e2
      2 0x0000a022 0x01da3fde ""
     attrs: 0x0000000000000000
     type: 0fc63daf-8483-4772-8e79-3d69d8477de4
     guid: 3ffa56ef-a407-9d4b-8181-bd702f00bb41

    setenv bootargs console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 vm.overcommit_ratio=5 vm.overcommit_memory=2 root=/dev/mmcblk0p2 ip=dhcp
    setenv bootcmd "setenv autoload no;ext4load mmc 0:2 0x82000000 /boot/Image;ext4load mmc 0:2 0x81200000 /boot/k3-j721e-common-proc-board.dtb; booti 0x82000000 - 0x81200000"
    saveenv

    The Linux is booted but stops after 5 seconds or so and I dont see any errors. I attch the log to this thread.

    
    U-Boot SPL 2019.01-g350f3927b8 (Feb 17 2020 - 09:46:23 +0000)
    SYSFW ABI: 2.9 (firmware rev 0x0013 '19.12.1-v2019.12a (Terrific Lla')
    Trying to boot from SPI
    Loading Environment from MMC... spl: unsupported mmc boot device.
    sdhci@4f80000 - probe failed: -19
    spl: unsupported mmc boot device.
    sdhci@4fb0000 - probe failed: -19
    *** Warning - No MMC card found, using default environment
    
    Loading rproc fw image from device 3 not supported!
    Loading rproc fw image from device 3 not supported!
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.2(release):ti2019.05-rc1
    NOTICE:  BL31: Built : 09:32:00, Feb 17 2020
    I/TC: 
    I/TC: OP-TEE version: ti2019.05-rc1-dev (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 Mon Feb 17 09:40:16 UTC 2020 aarch64
    I/TC: Initialized
    
    U-Boot SPL 2019.01-g350f3927b8 (Feb 17 2020 - 09:48:06 +0000)
    Detected: J7X-BASE-CPB rev E3
    Detected: J7X-GESI-EXP rev E3
    Detected: J7X-VSC8514-ETH rev E2
    Trying to boot from SPI
    
    
    U-Boot 2019.01-g350f3927b8 (Feb 17 2020 - 09:48:06 +0000)
    
    SoC:   J721E PG 1.0
    Model: Texas Instruments K3 J721E SoC
    Board: J721EX-PM2-SOM rev E7
    DRAM:  4 GiB
    Flash: 0 Bytes
    MMC:   sdhci@4f80000: 0, sdhci@4fb0000: 1
    Loading Environment from MMC... OK
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Detected: J7X-BASE-CPB rev E3
    Detected: J7X-GESI-EXP rev E3
    Detected: J7X-VSC8514-ETH rev E2
    Net:   eth0: ethernet@046000000
    Hit any key to stop autoboot:  2  1  0 
    13338632 bytes read in 45 ms (282.7 MiB/s)
    99354 bytes read in 3 ms (31.6 MiB/s)
    ## Flattened Device Tree blob at 81200000
       Booting using the fdt blob at 0x81200000
       Loading Device Tree to 00000000fdea4000, end 00000000fdebf419 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
    [    0.000000] Linux version 4.19.94-g5a23bc00e0 (oe-user@oe-host) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 SMP PREEMPT Mon Feb 17 09:01:06 UTC 2020
    [    0.000000] Machine model: Texas Instruments K3 J721E SoC
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [    0.000000] bootconsole [ns16550a0] enabled
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a0000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a0100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a1000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a1100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a2000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a2100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a3000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a3100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a4000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a4100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a5000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a5000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a5100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@a5100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c66-dma-memory@a6000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c66-memory@a6100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a7000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c66-dma-memory@a7000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a7100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c66-memory@a7100000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a8000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node c71-dma-memory@a8000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a8100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node c71-memory@a8100000, compatible id shared-dma-pool
    [    0.000000] cma: Reserved 512 MiB at 0x00000000c0000000
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv1.1 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: Trusted OS migration not required
    [    0.000000] psci: SMC Calling Convention v1.1
    [    0.000000] random: get_random_bytes called from start_kernel+0x94/0x3e4 with crng_init=0
    [    0.000000] percpu: Embedded 2 pages/cpu s48536 r8192 d74344 u131072
    [    0.000000] Detected PIPT I-cache on CPU0
    [    0.000000] CPU features: enabling workaround for EL2 vector hardening
    [    0.000000] Speculative Store Bypass Disable mitigation not required
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 62339
    [    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 vm.overcommit_ratio=5 vm.overcommit_memory=2 root=/dev/mmcblk0p2 ip=dhcp
    [    0.000000] Dentry cache hash table entries: 524288 (order: 6, 4194304 bytes)
    [    0.000000] Inode-cache hash table entries: 262144 (order: 5, 2097152 bytes)
    [    0.000000] software IO TLB: mapped [mem 0xf9ea0000-0xfdea0000] (64MB)
    [    0.000000] Memory: 3377664K/3993600K available (8510K kernel code, 738K rwdata, 3136K rodata, 576K init, 641K bss, 91648K reserved, 524288K cma-reserved)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=2.
    [    0.000000] 	Tasks RCU enabled.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
    [    0.000000] GICv3: Distributor has no Range Selector support
    [    0.000000] GICv3: no VLPI support, no direct LPI support
    [    0.000000] ITS [mem 0x01820000-0x0182ffff]
    [    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
    [    0.000000] ITS@0x0000000001820000: allocated 1048576 Devices @8c0800000 (flat, esz 8, psz 64K, shr 0)
    [    0.000000] ITS: using cache flushing for cmd queue
    [    0.000000] GIC: using LPI property table @0x00000008c00a0000
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000
    [    0.000000] CPU0: using LPI pending table @0x00000008c00b0000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [    0.000001] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.008347] Console: colour dummy device 80x25
    [    0.012900] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.023569] pid_max: default: 32768 minimum: 301
    [    0.028309] Security Framework initialized
    [    0.032513] Mount-cache hash table entries: 8192 (order: 0, 65536 bytes)
    [    0.039368] Mountpoint-cache hash table entries: 8192 (order: 0, 65536 bytes)
    [    0.070700] ASID allocator initialised with 32768 entries
    [    0.084226] rcu: Hierarchical SRCU implementation.
    [    0.097167] Platform MSI: gic-its@1820000 domain created
    [    0.102699] PCI/MSI: /interconnect@100000/interrupt-controller@1800000/gic-its@1820000 domain created
    [    0.120135] smp: Bringing up secondary CPUs ...
    [    0.157038] Detected PIPT I-cache on CPU1
    [    0.157055] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
    [    0.157083] CPU1: using LPI pending table @0x00000008c0310000
    [    0.157106] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
    [    0.157148] smp: Brought up 1 node, 2 CPUs
    [    0.184984] SMP: Total of 2 processors activated.
    [    0.189794] CPU features: detected: GIC system register CPU interface
    [    0.196376] CPU features: detected: 32-bit EL0 Support
    [    0.201855] CPU: All CPU(s) started at EL2
    [    0.206042] alternatives: patching kernel code
    [    0.211013] devtmpfs: initialized
    [    0.218719] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.228682] futex hash table entries: 512 (order: -1, 32768 bytes)
    [    0.235386] pinctrl core: initialized pinctrl subsystem
    [    0.241049] NET: Registered protocol family 16
    [    0.245916] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
    [    0.253479] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.262654] DMA: preallocated 256 KiB pool for atomic allocations
    [    0.275943] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.282795] HugeTLB registered 512 MiB page size, pre-allocated 0 pages
    [    0.290194] cryptd: max_cpu_qlen set to 1000
    [    0.295035] vsys_3v3: supplied by evm_12v0
    [    0.299297] vsys_5v0: supplied by evm_12v0
    [    0.303824] SCSI subsystem initialized
    [    0.307879] media: Linux media interface: v0.10
    [    0.312520] videodev: Linux video capture interface: v2.00
    [    0.318134] pps_core: LinuxPPS API ver. 1 registered
    [    0.323206] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.332545] PTP clock support registered
    [    0.336557] EDAC MC: Ver: 3.0.0
    [    0.340360] Advanced Linux Sound Architecture Driver Initialized.
    [    0.346887] clocksource: Switched to clocksource arch_sys_counter
    [    0.353177] VFS: Disk quotas dquot_6.6.0
    [    0.357220] VFS: Dquot-cache hash table entries: 8192 (order 0, 65536 bytes)
    [    0.366616] NET: Registered protocol family 2
    [    0.371317] tcp_listen_portaddr_hash hash table entries: 4096 (order: 0, 65536 bytes)
    [    0.379368] TCP established hash table entries: 32768 (order: 2, 262144 bytes)
    [    0.386852] TCP bind hash table entries: 32768 (order: 3, 524288 bytes)
    [    0.393915] TCP: Hash tables configured (established 32768 bind 32768)
    [    0.400641] UDP hash table entries: 2048 (order: 0, 65536 bytes)
    [    0.406823] UDP-Lite hash table entries: 2048 (order: 0, 65536 bytes)
    [    0.413494] NET: Registered protocol family 1
    [    0.422161] RPC: Registered named UNIX socket transport module.
    [    0.428213] RPC: Registered udp transport module.
    [    0.433017] RPC: Registered tcp transport module.
    [    0.437819] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.444637] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
    [    0.454294] Initialise system trusted keyrings
    [    0.458913] workingset: timestamp_bits=46 max_order=16 bucket_order=0
    [    0.466941] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.473089] NFS: Registering the id_resolver key type
    [    0.478261] Key type id_resolver registered
    [    0.482532] Key type id_legacy registered
    [    0.486630] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.493529] 9p: Installing v9fs 9p2000 file system support
    [    0.500633] Key type asymmetric registered
    [    0.504820] Asymmetric key parser 'x509' registered
    [    0.509822] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.517382] io scheduler noop registered
    [    0.521388] io scheduler deadline registered
    [    0.525790] io scheduler cfq registered (default)
    [    0.530596] io scheduler mq-deadline registered
    [    0.535222] io scheduler kyber registered
    [    0.540115] pinctrl-single 4301c000.pinmux: 94 pins, size 376
    [    0.546194] pinctrl-single 11c000.pinmux: 173 pins, size 692
    [    0.552328] pinctrl-single a40000.timesync_router: 512 pins, size 2048
    [    0.561280] ti-pat 31010000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.567698] ti-pat 31010000.pat: Failed to create 31010000.pat debugfs directory
    [    0.575370] ti-pat 31011000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.581782] ti-pat 31011000.pat: Failed to create 31011000.pat debugfs directory
    [    0.589427] ti-pat 31012000.pat: Found PAT Rev 1.0 with 16384 pages
    [    0.595841] ti-pat 31012000.pat: Failed to create 31012000.pat debugfs directory
    [    0.603485] ti-pat 31013000.pat: Found PAT Rev 1.0 with 2048 pages
    [    0.609807] ti-pat 31013000.pat: Failed to create 31013000.pat debugfs directory
    [    0.617443] ti-pat 31014000.pat: Found PAT Rev 1.0 with 2048 pages
    [    0.623765] ti-pat 31014000.pat: Failed to create 31014000.pat debugfs directory
    [    0.632655] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.643828] brd: module loaded
    [    0.649563] loop: module loaded
    [    0.653832] libphy: Fixed MDIO Bus: probed
    [    0.658171] tun: Universal TUN/TAP device driver, 1.6
    [    0.663554] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
    [    0.671561] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
    [    0.677626] sky2: driver version 1.30
    [    0.681914] VFIO - User Level meta-driver version: 0.3
    [    0.687506] i2c /dev entries driver
    [    0.691506] sdhci: Secure Digital Host Controller Interface driver
    [    0.697824] sdhci: Copyright(c) Pierre Ossman
    [    0.702457] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.708684] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.715497] optee: probing for conduit method from DT.
    [    0.720760] optee: revision 3.7 (5208e5c1)
    [    0.720907] optee: initialized driver
    [    0.729530] NET: Registered protocol family 17
    [    0.734132] 9pnet: Installing 9P2000 support
    [    0.738509] Key type dns_resolver registered
    [    0.743068] registered taskstats version 1
    [    0.747254] Loading compiled-in X.509 certificates
    [    0.756663] ti-sci 44083000.dmsc: ABI: 2.9 (firmware rev 0x0013 '19.12.1-v2019.12a (Terrific Lla')
    [    0.781506] random: fast init done
    [    0.823555] omap_i2c 40b00000.i2c: bus 0 rev0.12 at 100 kHz
    [    0.829473] omap_i2c 40b10000.i2c: bus 1 rev0.12 at 100 kHz
    [    0.835419] omap_i2c 42120000.i2c: bus 2 rev0.12 at 100 kHz
    [    0.841427] pca953x 3-0020: 3-0020 supply vcc not found, using dummy regulator
    [    0.848834] pca953x 3-0020: Linked as a consumer to regulator.0
    [    0.879425] pca953x 3-0022: 3-0022 supply vcc not found, using dummy regulator
    [    0.886823] pca953x 3-0022: Linked as a consumer to regulator.0
    [    0.893695] GPIO line 481 (MCASP/TRACE_MUX_S0) hogged as output/low
    [    0.900419] GPIO line 482 (MCASP/TRACE_MUX_S1) hogged as output/high
    [    0.906979] omap_i2c 2000000.i2c: bus 3 rev0.12 at 400 kHz
    [    0.912986] omap_i2c 2010000.i2c: bus 4 rev0.12 at 400 kHz
    [    0.918853] omap_i2c 2020000.i2c: bus 5 rev0.12 at 100 kHz
    [    0.924804] pca953x 6-0020: 6-0020 supply vcc not found, using dummy regulator
    [    0.932206] pca953x 6-0020: Linked as a consumer to regulator.0
    [    0.959552] GPIO line 464 (CODEC_RSTz) hogged as output/high
    [    0.965443] omap_i2c 2030000.i2c: bus 6 rev0.12 at 400 kHz
    [    0.971302] omap_i2c 2040000.i2c: bus 7 rev0.12 at 100 kHz
    [    0.977147] omap_i2c 2050000.i2c: bus 8 rev0.12 at 100 kHz
    [    0.983056] pca953x 9-0020: 9-0020 supply vcc not found, using dummy regulator
    [    0.990456] pca953x 9-0020: Linked as a consumer to regulator.0
    [    1.019309] omap_i2c 2060000.i2c: bus 9 rev0.12 at 400 kHz
    [    1.034175] cdns-torrent-phy 5050000.serdes: 4 lanes, max bit rate 5.400 Gbps
    [    1.042817] cdns-pcie-host d000000.pcie: missing "mem"
    [    1.048418] cdns-pcie-host d000000.pcie: Linked as a consumer to phy-5000000.serdes.0
    [    2.050922] cdns-pcie-host d000000.pcie: Phy link never came up
    [    2.056974] cdns-pcie-host d000000.pcie: host bridge /interconnect@100000/pcie@2900000/pcie@d000000 ranges:
    [    2.066945] cdns-pcie-host d000000.pcie:    IO 0x10001000..0x10010fff -> 0x10001000
    [    2.074776] cdns-pcie-host d000000.pcie:   MEM 0x4000000000..0x407fffffff -> 0x00000000
    [    2.083017] cdns-pcie-host d000000.pcie: PCI host bridge to bus 0000:00
    [    2.089778] pci_bus 0000:00: root bus resource [bus 00-0f]
    [    2.095383] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x10001000-0x10010fff])
    [    2.105074] pci_bus 0000:00: root bus resource [mem 0x4000000000-0x407fffffff] (bus address [0x00000000-0x7fffffff])
    [    2.115855] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
    [    2.125725] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
    [    2.135617] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x92 may corrupt adjacent RW1C bits
    [    2.145578] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0xb2 may corrupt adjacent RW1C bits
    [    2.155566] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x84 may corrupt adjacent RW1C bits
    [    2.167316] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    2.175499] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
    [    2.185457] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
    [    2.195416] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
    [    2.205375] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x6 may corrupt adjacent RW1C bits
    [    2.216997] pci_bus 0000:00: 1-byte config write to 0000:00:00.0 offset 0x1a may corrupt adjacent RW1C bits
    [    2.226965] pci 0000:00:00.0: PCI bridge to [bus 01]
    [    2.232418] cdns-pcie-host d800000.pcie: missing "mem"
    [    2.238075] cdns-pcie-host d800000.pcie: Linked as a consumer to phy-5010000.serdes.1
    [    3.247448] cdns-pcie-host d800000.pcie: Phy link never came up
    [    3.253501] cdns-pcie-host d800000.pcie: host bridge /interconnect@100000/pcie@2910000/pcie@d800000 ranges:
    [    3.263469] cdns-pcie-host d800000.pcie:    IO 0x18001000..0x18010fff -> 0x18001000
    [    3.271299] cdns-pcie-host d800000.pcie:   MEM 0x4100000000..0x417fffffff -> 0x00000000
    [    3.279533] cdns-pcie-host d800000.pcie: PCI host bridge to bus 0001:00
    [    3.286294] pci_bus 0001:00: root bus resource [bus 00-0f]
    [    3.291899] pci_bus 0001:00: root bus resource [io  0x10000-0x1ffff] (bus address [0x18001000-0x18010fff])
    [    3.301767] pci_bus 0001:00: root bus resource [mem 0x4100000000-0x417fffffff] (bus address [0x00000000-0x7fffffff])
    [    3.314299] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    3.324253] pci 0001:00:00.0: PCI bridge to [bus 01]
    [    3.329665] cdns-pcie-host e000000.pcie: missing "mem"
    [    3.335253] cdns-pcie-host e000000.pcie: Linked as a consumer to phy-5020000.serdes.2
    [    4.344624] cdns-pcie-host e000000.pcie: Phy link never came up
    [    4.350676] cdns-pcie-host e000000.pcie: host bridge /interconnect@100000/pcie@2920000/pcie@e000000 ranges:
    [    4.360644] cdns-pcie-host e000000.pcie:    IO 0x4400001000..0x4400010fff -> 0x00001000
    [    4.368829] cdns-pcie-host e000000.pcie:   MEM 0x4400011000..0x4407ffffff -> 0x00011000
    [    4.377063] cdns-pcie-host e000000.pcie: PCI host bridge to bus 0002:00
    [    4.383824] pci_bus 0002:00: root bus resource [bus 00-0f]
    [    4.389429] pci_bus 0002:00: root bus resource [io  0x20000-0x2ffff] (bus address [0x1000-0x10fff])
    [    4.398676] pci_bus 0002:00: root bus resource [mem 0x4400011000-0x4407ffffff] (bus address [0x00011000-0x07ffffff])
    [    4.411199] pci 0002:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    4.421136] pci 0002:00:00.0: PCI bridge to [bus 01]
    [    4.426596] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
    [    4.436470] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
    [    4.443229] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [    4.450905] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[440,150] sci-dev-id:211
    [    4.461041] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
    [    4.467800] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [    4.475415] omap8250 40a00000.serial: PM domain pd:149 will not be powered off
    [    4.482943] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 7, base_baud = 6000000) is a 8250
    [    4.492048] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 19, base_baud = 3000000) is a 8250
    [    4.500785] console [ttyS2] enabled
    [    4.500785] console [ttyS2] enabled
    [    4.507818] bootconsole [ns16550a0] disabled
    [    4.507818] bootconsole [ns16550a0] disabled
    [    4.516708] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 20, base_baud = 3000000) is a 8250
    [    4.525498] 2840000.serial: ttyS6 at MMIO 0x2840000 (irq = 21, base_baud = 3000000) is a 8250
    [    4.534216] arm-smmu-v3 36600000.smmu: ias 48-bit, oas 48-bit (features 0x00001faf)
    [    4.542939] arm-smmu-v3 36600000.smmu: msi_domain absent - falling back to wired irqs
    [    4.552573] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vdd-hba-supply regulator, assuming enabled
    [    4.563086] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vcc-supply regulator, assuming enabled
    [    4.573239] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq-supply regulator, assuming enabled
    [    4.583480] cdns-ufshcd 4e84000.ufs: ufshcd_populate_vreg: Unable to find vccq2-supply regulator, assuming enabled
    [    4.594293] scsi host0: ufshcd
    [    4.609020] cadence-qspi 47040000.spi: mt35xu512aba (65536 Kbytes)
    [    4.624440] cdns-ufshcd 4e84000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[1, 1], lane[1, 1], pwr[SLOWAUTO_MODE, SLOWAUTO_MODE], rate = 0
    [    4.638982] cadence-qspi 47040000.spi: Cadence QSPI NOR probe failed -517
    [    4.646447] cadence-qspi 47050000.spi: n25q512a (65536 Kbytes)
    [    4.657024] cdns-ufshcd 4e84000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[3, 3], lane[2, 2], pwr[FAST MODE, FAST MODE], rate = 2
    [    4.668688] cdns-ufshcd 4e84000.ufs: ufshcd_find_max_sup_active_icc_level: Regulator capability was not set, actvIccLevel=0
    [    4.670980] cadence-qspi 47050000.spi: Cadence QSPI NOR probe failed -517
    [    4.679916] scsi 0:0:0:49488: Well-known LUN    TOSHIBA  THGAF8G8T23BAILB 0300 PQ: 0 ANSI: 6
    [    4.695304] scsi 0:0:0:49476: Well-known LUN    TOSHIBA  THGAF8G8T23BAILB 0300 PQ: 0 ANSI: 6
    [    4.703744] am65-cpsw-nuss 46000000.ethernet: rx-flow-id-base is not set -22
    [    4.710819] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2
    [    4.710903] cdns-ufshcd 4e84000.ufs: ufshcd_scsi_add_wlus: BOOT WLUN not found
    [    4.722252] UDMA has not been proped
    [    4.732960] am65-cpsw-nuss 46000000.ethernet: Failed to request tx dma channel -517
    [    4.741374] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010a, freq:200000000, add_val:4 pps:0
    [    4.749855] mmc0: Unknown controller version (4). You may experience problems.
    [    4.757101] mmc0: CQHCI version 5.10
    [    4.791388] mmc0: SDHCI controller on 4f80000.sdhci [4f80000.sdhci] using ADMA 64-bit
    [    4.805270] vdd_mmc1: supplied by vsys_3v3
    [    4.809775] pca953x 4-0020: 4-0020 supply vcc not found, using dummy regulator
    [    4.817014] pca953x 4-0020: Linked as a consumer to regulator.0
    [    4.847571] GPIO line 448 (DP0_PWR_SW_EN) hogged as output/high
    [    4.854226] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc7100
    [    4.861118] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc7100
    [    4.868055] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fc7100
    [    4.874748] mmc0: Command Queue Engine enabled
    [    4.879187] mmc0: new HS400 MMC card at address 0001
    [    4.884178] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fc7100
    [    4.891043] mmcblk0: mmc0:0001 S0J56X 14.8 GiB 
    [    4.895814] mmcblk0boot0: mmc0:0001 S0J56X partition 1 31.5 MiB
    [    4.902038] mmcblk0boot1: mmc0:0001 S0J56X partition 2 31.5 MiB
    [    4.907987] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fc7100
    [    4.914640] mmcblk0rpmb: mmc0:0001 S0J56X partition 3 4.00 MiB, chardev (242:0)
    [    4.930152]  mmcblk0: p1 p2
    [    5.236543] ti-udma 285c0000.udmap: Channels: 24 (tchan: 48, echan: 0, rchan: 48, rflow: 96)
    [    5.246103] ti-udma 31150000.udmap: Channels: 84 (tchan: 140, echan: 160, rchan: 140, rflow: 300)
    [    5.258879] cadence-qspi 47040000.spi: mt35xu512aba (65536 Kbytes)
    [    5.267247] cadence-qspi 47050000.spi: n25q512a (65536 Kbytes)
    [    5.274994] am65-cpsw-nuss 46000000.ethernet: rx-flow-id-base is not set -22
    [    5.282049] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2
    [    5.299717] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
    [    5.310201] pps pps0: new PPS source ptp1
    [    5.314329] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:1
    [    5.323273] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 0.4
    [    5.330479] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    5.374895] am65-cpsw-nuss 46000000.ethernet: davinci mdio revision 9.7, bus freq 1000000
    [    5.383055] libphy: 46000000.ethernet: probed
    [    5.388640] sdhci-am654 4fb0000.sdhci: Linked as a consumer to regulator.4
    [    5.395523] sdhci-am654 4fb0000.sdhci: Linked as a consumer to regulator.5
    [    5.402411] mmc1: Unknown controller version (4). You may experience problems.
    [    5.409659] mmc1: CQHCI version 5.10
    [    5.443447] mmc1: SDHCI controller on 4fb0000.sdhci [4fb0000.sdhci] using ADMA 64-bit
    [    5.460793] input: gpio-keys as /devices/platform/gpio-keys/input/input0
    [    5.467706] hctosys: unable to open rtc device (rtc0)
    [    5.480428] TI DP83867 k3-cpsw-mdio:00: attached PHY driver [TI DP83867] (mii_bus:phy_addr=k3-cpsw-mdio:00, irq=POLL)
    [    6.515922] am65-cpsw-nuss 46000000.ethernet eth0: Link is Down
    [    6.865565] mmc1: new ultra high speed DDR50 SDHC card at address aaaa
    [    6.872628] mmcblk1: mmc1:aaaa SC16G 14.8 GiB 
    [    6.886583]  mmcblk1: p1 p2
    [   10.612131] am65-cpsw-nuss 46000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
    

  • Pouyan,

    In the defect description you mentioned: "I can not use the sdcard and Network.".

    In the next comment you mentioned you used SD card to boot to Linux. So i assume you
    have sd card interface.

    To get u-boot follow the thread: https://e2e.ti.com/support/processors/f/791/t/886980

    To write Image, dtb & rootfs to eMMC please follow the thread: https://e2e.ti.com/support/processors/f/791/t/887773

    Basically you can get bootloader kernel & filesystem all on eMMC.

    In u-boot prompt you need to do:
    gpt write mmc 0 ${partitions}

    With SD you need to boot to Linux prompt:
    In kernel Make a ext4 fs using:


    mkfs.ext4 /dev/mmcblk0p1

    mkdir rootfs

    mount /dev/mmcblk0p1 rootfs

    Now untar tisdk-rootfs-image-j7-evm.tar.xz which is present in the filesystem folder of SDK.(Make sure you copy tisdk-rootfs-image-j7-evm.tar.xz to SD card filesystem so that you can tar that to rootfs)

    cp tisdk-rootfs-image-j7-evm.tar.xz rootfs
    cd rootfs
    tar -xvf tisdk-rootfs-image-j7-evm.tar.xz

    This should create the needed fs in eMMC.

    Then follow the second thread mentioned with the bootargs to get to Linux prompt on eMMC.

    Regards,
    Keerthy

  • So changing the:

    setenv bootargs console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 vm.overcommit_ratio=5 vm.overcommit_memory=2 root=/dev/mmcblk0p2 ip=dhcp

    to:

    setenv bootargs console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 vm.overcommit_ratio=5 vm.overcommit_memory=2 root=/dev/mmcblk0p2

    (removing ip=dhcp) solve the error above. Now I can boot Linux till the command prompt.

  • Hi Keerthy,

    I have sd-card only on the EVM but not on my custom board. So the partitioning using the Uboot should work? and this does not work correctly. Thats my Question at the Moment.

    Thanks for the Info,

    Pouyan

  • Hi Pouyan,

    I believe you mentioned you have USB on your custom board.

    Can you try something like below:
    http://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-jacinto7/latest/exports/docs/linux/Foundational_Components_U-Boot.html#sd-emmc-or-usb-storage

    The dfu can be of help to you.

    Regards,
    Keerthy

  • Hi Keerthy,

    I followed the page:

    uuid_disk=${uuid_gpt_disk};name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}

    has single Partition.

    I have two -> one fat for boot and the other Linux for rootfs:

    uuid_disk=${uuid_gpt_disk};name=boot,start=0,size=20M,bootable,type=ebd0a0a2-b9e5-4433-87c0-68b6b72699c7,uuid=${uuid_gpt_boot};name=rootfs,start=20M,size=-,uuid=${uuid_gpt_rootfs},type=linux;"

    So the Problem ist that the type is not set correctly when I run gpt write mmc command with this variables in uboot, both of my Partitions are fat. but the root should be a Linux one:

    => mmc part
    Part Start LBA End LBA  Name
     Attributes
     Type GUID
     Partition GUID
      1 0x00000022 0x0000a021 "boot"
     attrs: 0x0000000000000004
     type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
     guid: 53e2091a-5ba3-42e5-b79e-dda6c9b371e2
      2 0x0000a000 0x01da3fde "rootfs"
     attrs: 0x0000000000000000
     type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 (This should be 0fc63daf-8483-4772-8e79-3d69d8477de4 (Linux) but it is not!)
     guid: b0e8add0-befc-41d2-baed-900d580f605b

    Thanks,

    Pouyan

  • Pouyan,

    Apologies for the long silence on this. Are you still facing the issue here? May i know the exact use case or the
    requirement here?

    - Keerthy

  • Hi Keerthy,

    yes, sadly I am still facing this issue. The usecase is that I want to have the partitioning of the EMMC done in uboot and this can not be done correctly as it is documented.

    Best regards,

    Pouyan

  • Hi Pouyan,

    Can you copy paste the entire set of instructions/commands that you are trying
    on u-boot to reproduce on my setup? Also please share the  dip switch settings
    that you are using.

    - Keerthy

  • Dear Keerthy,

    thanks for the Reply. To test this on the SDK 6.2. Go to the uboot prompt and run the following commands:

    => setenv uuid_gpt_disk 37c84ec5-8cc8-42e6-85d0-dfd0ebde3257
    => setenv uuid_gpt_rootfs b0e8add0-befc-41d2-baed-900d580f605b
    => setenv uuid_gpt_boot 53e2091a-5ba3-42e5-b79e-dda6c9b371e2
    => gpt write mmc 0 "uuid_disk=${uuid_gpt_disk};name=boot,start=0,size=20M,bootable,type=ebd0a0a2-b9e5-4433-87c0-68b6b72699c7,uuid=${uuid_gpt_boot};name=rootfs,start=20M,size=-,uuid=${uuid_gpt_rootfs},type=linux;"
    Writing GPT: success!
    => mmc part
    
    Partition Map for MMC device 0  --   Partition Type: EFI
    
    Part	Start LBA	End LBA		Name
    	Attributes
    	Type GUID
    	Partition GUID
      1	0x00000022	0x0000a021	"boot"
    	attrs:	0x0000000000000004
    	type:	ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
    	guid:	53e2091a-5ba3-42e5-b79e-dda6c9b371e2
      2	0x0000a000	0x01da3fde	"rootfs"
    	attrs:	0x0000000000000000
    	type:	ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
    	guid:	b0e8add0-befc-41d2-baed-900d580f605b
    

    The type of rootfs is not Linux but fat and thats the bug at the Moment. The Dips Setting are ospi (SW8:0000 0000, SW9: 0100 0000) (I loaded the uboot on the OSPI using the UNIFLASH and UART) but any other uboot prompt would give you the same result as we use the same binaries.

    Thanks,

    Pouyan

  • Hi Pouyan,

    Thanks i am able to reproduce the issue. This seems more with the core gpt layer. I will consult
    the expert and get back to you.

    - Keerthy

  • Hi Pouyan,

    I could reproduce the issue you were observing.

    I followed: board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/doc/README.gpt

    Partition type GUID:
    ====================

    For created partition, the used partition type GUID is
    PARTITION_BASIC_DATA_GUID (EBD0A0A2-B9E5-4433-87C0-68B6B72699C7).

    If you define 'CONFIG_PARTITION_TYPE_GUID', a optionnal parameter 'type'
    can specify a other partition type guid:

    So i enabled CONFIG_PARTITION_TYPE_GUID in the defconfig:

    diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig
    index 955f108a7c..8979c05467 100644
    --- a/configs/j721e_evm_a72_defconfig
    +++ b/configs/j721e_evm_a72_defconfig
    @@ -199,3 +199,6 @@ CONFIG_FAT_WRITE=y
     CONFIG_OF_LIBFDT_OVERLAY=y
     CONFIG_SOC_DEVICE=y
     CONFIG_SOC_DEVICE_TI_K3=y
    +CONFIG_PARTITION_TYPE_GUID=y

    and built the binaries.

    => setenv uuid_gpt_disk 37c84ec5-8cc8-42e6-85d0-dfd0ebde3257
    => setenv uuid_gpt_rootfs b0e8add0-befc-41d2-baed-900d580f605b
    => setenv uuid_gpt_boot 53e2091a-5ba3-42e5-b79e-dda6c9b371e2
    => gpt write mmc 0 "uuid_disk=${uuid_gpt_disk};name=boot,start=0,size=20M,bootable,type=ebd0a0a2-b9e5-4433-87c0-68b6b72699c7,uuid=${uuid_gpt_boot};name=rootfs,start=20M,size=-,uuid=${uuid_gpt_rootfs},typ"
    Writing GPT: success!
    => mmc part

    Partition Map for MMC device 0  --   Partition Type: EFI
    Part    Start LBA       End LBA         Name
            Attributes
            Type GUID
            Partition GUID
      1     0x000022        0x0000a021      "boot"
            attrs:  0x0000000000000004
            type:   e0a0a2-b9e5-4433-87c0-68b6b72699c7
            type:   data
            guid:   53e2091a-5ba3-42e5-b79e-dda6c9b371e2
      2     0x0000a000      0x01da3fde      ootfs"
            attrs:  0x0000000000000000
            type:   0fc63daf-8483-4772-79-3d69d8477de4
            type:   linux
            guid:   b0e8add0-befc-41d2-baed-900d580f605b

    With that i am able to see Linux as type. Hope this solves your issue.

    Please resolve this issue if you are unblocked.

    Regards,
    Keerthy

  • Thanks for the help, I will test it on my device!