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.

AM625: AM625: eMMC: Need help to boot device from eMMC as a standalone

Part Number: AM625
Other Parts Discussed in Thread: TPS65219, TMP100, TLV755

Hi Expert ,

We have AM62x SK EVM target.

On AM62xx-SK-EVM eMMC flashing done using DFU method.

We observed on eMMC boot from u-boot console every time we need to give below commands to boot kernel.

In U-boot command prompt

# => setenv mmcdev 0

#=> setenv bootpart 0

#=> boot

Is that any way to get eMMC boot as standalone ?. (Without using above commands)

Please find below  logs.

it any key to stop autoboot: 0
=> setenv mmcdev 0
=> setenv bootpart 0
=> boot
switch to partitions #0, OK
mmc0(part 0) is current device
SD/MMC found on device 0
Failed to load 'boot.scr'
** Unrecognized filesystem type **
18395648 bytes read in 102 ms (172 MiB/s)
58972 bytes read in 3 ms (18.7 MiB/s)
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 000000008feee000, end 000000008fffffff ... OK

Starting kernel ...

Thanks,.

Suraj

  • Hey Suraj,

    The above commands are required to boot from eMMC. If you wish to save the environment with those variables set then issue the following:

    setenv mmcdev 0
    setenv bootpart 0
    saveenv

    This will ensure the above commands will not need to be issued upon startup.

    Regards,

    Randolph

  • Hi 

    Thanks for your response!

    We tried same thing but getting below error msg on U-boot console.

    Saving Environment to MMC... Writing to MMC(0) ...  MMC: block number 0x3500 eceeds max(2000)

    Failed

    Failed

    Anything we need to give extra ? or  else?

    Thanks,

    Suraj.

     

  • Hi Suraj,

    I am routing your query to our U-Boot expert for comments.

  • Hi,

    It seems like you are going out of bounds when writing to eMMC. Can you do an experiment change save to eMMC to boot1:

    diff --git a/configs/am62x_evm_a53_defconfig b/configs/am62x_evm_a53_defconfig
    index d9bf9a5b7d..f3af0a6e51 100644
    --- a/configs/am62x_evm_a53_defconfig
    +++ b/configs/am62x_evm_a53_defconfig
    @@ -82,7 +82,7 @@ CONFIG_MULTI_DTB_FIT=y
     CONFIG_SPL_MULTI_DTB_FIT=y
     CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y
     CONFIG_ENV_IS_IN_MMC=y
    -CONFIG_SYS_MMC_ENV_PART=1
    +CONFIG_SYS_MMC_ENV_PART=2
     CONFIG_NET_RANDOM_ETHADDR=y
     CONFIG_DM=y
     CONFIG_SPL_DM=y
    


    ~ Judith

  • Hi ,

    Thanks for your response!

    Just applied above changes and tested.

    It is showing same error. 

    Can you cross check it once?  it was not saved env.

    Thanks,

    Suraj.

  • As an alternative, you could also make those changes directly in the U-Boot source tree. No need to rely on an ENV that is stored somewhere just to get the system to boot.

    Andreas

  • Thanks for your response!

    Where we can apply those changes exactly.

    and CONFIG_SYS_MMC_ENV_PART=2 change is sufficient? 

    Thanks,

    Suraj.

  • Hi Suraj,

    Can you try the following change in u-boot:

    diff --git a/include/configs/am62x_evm.h b/include/configs/am62x_evm.h
    index 97bd7c1fd7..641ad8cd92 100644
    --- a/include/configs/am62x_evm.h
    +++ b/include/configs/am62x_evm.h
    @@ -137,8 +137,8 @@
     /* U-Boot MMC-specific configuration */
     #define EXTRA_ENV_AM625_BOARD_SETTINGS_MMC                             \
            "boot=mmc\0"                                                    \
    -       "mmcdev=1\0"                                                    \
    -       "bootpart=1:2\0"                                                \
    +       "mmcdev=0\0"                                                    \
    +       "bootpart=0:2\0"                                                \
            "bootdir=/boot\0"                                               \
            "rd_spec=-\0"                                                   \
            "init_mmc=run args_all args_mmc\0"                              \
    jmende27@judy-hp:~/src/ti-uboot/ti-08.06-emmc-boot-no-nitin-fix$ 
    
    

    The tiboot3.bin, tispl.bin, and u-boot.img that you build will then be flashed to eMMC. Let me know if this works.

    ~ Judith

  • Hi Judith,

    Applied below changes and tested.

    -CONFIG_SYS_MMC_ENV_PART=1
    +CONFIG_SYS_MMC_ENV_PART=2

    #define EXTRA_ENV_AM625_BOARD_SETTINGS_MMC \
    "boot=mmc\0" \
    - "mmcdev=1\0" \
    - "bootpart=1:2\0" \
    + "mmcdev=0\0" \
    + "bootpart=0:2\0" \
    "bootdir=/boot\0" \
    "rd_spec=-\0" \
    "init_mmc=run args_all args_mmc\0"

    Same thing observed. Same error is coming.

    *******************************************************************************************************************************

    Saving Environment to MMC... Writing to MMC(0) ...  MMC: block number 0x3500 eceeds max(2000)

    Failed

    Failed

    *****************************************************************************************

    Above changes not supporting for that so.

    Thanks,

    Suraj.

  • Hi Suraj,

    Did you try to do the following command:

    => saveenv

    Or does this print in bootlog as you boot?
    please show bootlog to better understand your at what point you are seeing this error.

    ~ Judith

  • Yes Judith,

    I tried saveenv command as well.

    for boot logs please find it here.

    *********************************************************************

    NOTICE: BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty
    NOTICE: BL31: Built : 00:42:57, Jan 13 2023
    I/TC:
    I/TC: OP-TEE version: 3.19.0-15-gd6c5d0037-dev (gcc version 9.5.0 (GCC)) #1 Thu Oct 27 08:43:50 UTC 2022 aarch64
    I/TC: WARNING: This OP-TEE configuration might be insecure!
    I/TC: WARNING: Please check optee.readthedocs.io/.../porting_guidelines.html
    I/TC: Primary CPU initializing
    I/TC: SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.1--v08.06.01 (Chill Capybar')
    I/TC: HUK Initialized
    I/TC: Activated SA2UL device
    I/TC: Fixing SA2UL firewall owner for GP device
    I/TC: Enabled firewalls for SA2UL TRNG device
    I/TC: SA2UL TRNG initialized
    I/TC: SA2UL Drivers initialized
    I/TC: Primary CPU switching to normal world boot

    U-Boot SPL 2021.01-g999 (Aug 07 2023 - 11:55:18 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.1--v08.06.01 (Chill Capybar')
    Trying to boot from MMC1


    U-Boot 2021.01-g999 (Aug 07 2023 - 11:55:18 +0000)

    SoC: AM62X SR1.0 GP
    Model: Carrier onecontrol am625 devlopment board
    DRAM: 2 GiB
    MMC: mmc@fa10000: 0, mmc@fa00000: 1, mmc@fa20000: 2
    Loading Environment from MMC... MMC: block number 0x3500 exceeds max(0x2000)
    *** Warning - !read failed, using default environment

    In: serial@2800000
    Out: serial@2800000
    Err: serial@2800000
    Net: Could not get PHY for ethernet@8000000port@1: addr 0
    am65_cpsw_nuss_port ethernet@8000000port@1: phy_connect() failed
    No ethernet found.

    Hit any key to stop autoboot: 0
    => setenv mmcdev 0
    => setenv bootpart 0
    => saveenv
    Saving Environment to MMC... Writing to MMC(0)... MMC: block number 0x3500 exceeds max(0x2000)
    failed
    Failed (1)
    => boot
    switch to partitions #0, OK
    mmc0(part 0) is current device
    SD/MMC found on device 0
    Failed to load 'boot.scr'
    ** Unrecognized filesystem type **
    19640832 bytes read in 109 ms (171.8 MiB/s)
    59600 bytes read in 3 ms (18.9 MiB/s)
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Loading Device Tree to 000000008feee000, end 000000008fffffff ... OK

    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
    [ 0.000000] Linux version 5.10.184-rt90-gcfc102d877 (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 9.5.0, GNU ld (GNU Binutils)3
    [ 0.000000] Machine model: Onecontrol AM625 Dev Board-28022023
    [ 0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [ 0.000000] printk: bootconsole [ns16550a0] enabled
    [ 0.000000] efi: UEFI not found.
    [ 0.000000] Reserved memory: created DMA memory pool at 0x000000009cb00000, size 1 MiB
    [ 0.000000] OF: reserved mem: initialized node m4f-dma-memory@9cb00000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: created DMA memory pool at 0x000000009cc00000, size 15 MiB
    [ 0.000000] OF: reserved mem: initialized node m4f-memory@9cc00000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: created DMA memory pool at 0x000000009db00000, size 12 MiB
    [ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@9db00000, compatible id shared-dma-pool
    [ 0.000000] Zone ranges:
    [ 0.000000] DMA [mem 0x0000000080000000-0x00000000ffffffff]
    [ 0.000000] DMA32 empty
    [ 0.000000] Normal empty
    [ 0.000000] Movable zone start for each node
    [ 0.000000] Early memory node ranges
    [ 0.000000] node 0: [mem 0x0000000080000000-0x000000009cafffff]
    [ 0.000000] node 0: [mem 0x000000009cb00000-0x000000009e6fffff]
    [ 0.000000] node 0: [mem 0x000000009e700000-0x000000009e77ffff]
    [ 0.000000] node 0: [mem 0x000000009e780000-0x000000009fffffff]
    [ 0.000000] node 0: [mem 0x00000000a0000000-0x00000000ffffffff]
    [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000ffffffff]
    [ 0.000000] On node 0 totalpages: 524288
    [ 0.000000] DMA zone: 8192 pages used for memmap
    [ 0.000000] DMA zone: 0 pages reserved
    [ 0.000000] DMA zone: 524288 pages, LIFO batch:63
    [ 0.000000] cma: Reserved 512 MiB at 0x00000000dd000000
    [ 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.2
    [ 0.000000] percpu: Embedded 18 pages/cpu s35392 r8192 d30144 u73728
    [ 0.000000] pcpu-alloc: s35392 r8192 d30144 u73728 alloc=18*4096
    [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
    [ 0.000000] Detected VIPT I-cache on CPU0
    [ 0.000000] CPU features: detected: ARM erratum 845719
    [ 0.000000] CPU features: detected: GIC system register CPU interface
    [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 516096
    [ 0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=PARTUUID=1d1db3de-ebcd-c742-a0dt
    [ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
    [ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
    [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [ 0.000000] Memory: 1458696K/2097152K available (11456K kernel code, 1260K rwdata, 4408K rodata, 1920K init, 477K bss, 114168K r)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [ 0.000000] rcu: Preemptible hierarchical RCU implementation.
    [ 0.000000] rcu: RCU event tracing is enabled.
    [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
    [ 0.000000] rcu: RCU priority boosting: priority 1 delay 500 ms.
    [ 0.000000] rcu: RCU_SOFTIRQ processing moved to rcuc kthreads.
    [ 0.000000] No expedited grace period (rcu_normal_after_boot).
    [ 0.000000] Trampoline variant of Tasks RCU enabled.
    [ 0.000000] Tracing variant of Tasks RCU enabled.
    [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
    [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
    [ 0.000000] GICv3: 256 SPIs implemented
    [ 0.000000] GICv3: 0 Extended SPIs implemented
    [ 0.000000] GICv3: Distributor has no Range Selector support
    [ 0.000000] GICv3: 16 PPIs implemented
    [ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001880000
    [ 0.000000] ITS [mem 0x01820000-0x0182ffff]
    [ 0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
    [ 0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
    [ 0.000000] ITS@0x0000000001820000: allocated 524288 Devices @80800000 (flat, esz 8, psz 64K, shr 0)
    [ 0.000000] ITS: using cache flushing for cmd queue
    [ 0.000000] GICv3: using LPI property table @0x0000000080040000
    [ 0.000000] GIC: using cache flushing for LPI property table
    [ 0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000080050000
    [ 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.000000] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [ 0.008552] Console: colour dummy device 80x25
    [ 0.013150] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [ 0.023831] pid_max: default: 32768 minimum: 301
    [ 0.028661] LSM: Security Framework initializing
    [ 0.033478] AppArmor: AppArmor initialized
    [ 0.037722] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
    [ 0.045306] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
    [ 0.055336] rcu: Hierarchical SRCU implementation.
    [ 0.060815] Platform MSI: msi-controller@1820000 domain created
    [ 0.067203] PCI/MSI: /bus@f0000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [ 0.076498] EFI services will not be available.
    [ 0.081477] smp: Bringing up secondary CPUs ...
    I/TC: Secondary CPU 1 initializing
    I/TC: Secondary CPU 1 switching to normal world boot
    [ 0.094955] Detected VIPT I-cache on CPU1
    [ 0.099088] GICv3: CPU1: found redistributor 1 region 0:0x00000000018a0000
    [ 0.106126] GICv3: CPU1: using allocated LPI pending table @0x0000000080060000
    [ 0.113564] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
    I/TC: Secondary CPU 2 initializing
    I/TC: Secondary CPU 2 switching to normal world boot
    [ 0.129150] Detected VIPT I-cache on CPU2
    [ 0.133276] GICv3: CPU2: found redistributor 2 region 0:0x00000000018c0000
    [ 0.140311] GICv3: CPU2: using allocated LPI pending table @0x0000000080070000
    [ 0.147728] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
    I/TC: Secondary CPU 3 initializing
    I/TC: Secondary CPU 3 switching to normal world boot
    [ 0.163235] Detected VIPT I-cache on CPU3
    [ 0.167353] GICv3: CPU3: found redistributor 3 region 0:0x00000000018e0000
    [ 0.174386] GICv3: CPU3: using allocated LPI pending table @0x0000000080080000
    [ 0.181799] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
    [ 0.188566] smp: Brought up 1 node, 4 CPUs
    [ 0.192770] SMP: Total of 4 processors activated.
    [ 0.197588] CPU features: detected: 32-bit EL0 Support
    [ 0.202849] CPU features: detected: CRC32 instructions
    [ 0.215822] CPU: All CPU(s) started at EL2
    [ 0.220031] alternatives: patching kernel code
    [ 0.225833] devtmpfs: initialized
    [ 0.237920] KASLR disabled due to lack of seed
    [ 0.242676] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [ 0.252657] futex hash table entries: 1024 (order: 5, 131072 bytes, linear)
    [ 0.274423] pinctrl core: initialized pinctrl subsystem
    [ 0.280421] DMI not present or invalid.
    [ 0.285065] NET: Registered protocol family 16
    [ 0.291672] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
    [ 0.299049] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [ 0.307150] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [ 0.315383] audit: initializing netlink subsys (disabled)
    [ 0.321182] audit: type=2000 audit(0.256:1): state=initialized audit_enabled=0 res=1
    [ 0.321767] thermal_sys: Registered thermal governor 'step_wise'
    [ 0.322405] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [ 0.342284] ASID allocator initialised with 65536 entries
    [ 0.375662] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
    [ 0.382574] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
    [ 0.389440] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
    [ 0.396337] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
    [ 0.404267] cryptd: max_cpu_qlen set to 1000
    [ 0.411931] k3-chipinfo 43000014.chipid: Family:AM62X rev:SR1.0 JTAGID[0x0bb7e02f] Detected
    [ 0.421121] vcc_5v0: supplied by vmain_pd
    [ 0.425676] vcc_3v3_sys: supplied by vmain_pd
    [ 0.430580] vcc_1v8: supplied by vcc_3v3_sys
    [ 0.436082] iommu: Default domain type: Translated
    [ 0.441500] SCSI subsystem initialized
    [ 0.445851] mc: Linux media interface: v0.10
    [ 0.450270] videodev: Linux video capture interface: v2.00
    [ 0.455965] pps_core: LinuxPPS API ver. 1 registered
    [ 0.461039] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.470389] PTP clock support registered
    [ 0.474427] EDAC MC: Ver: 3.0.0
    [ 0.478332] omap-mailbox 29000000.mailbox: omap mailbox rev 0x66fc9100
    [ 0.485582] FPGA manager framework
    [ 0.489180] Advanced Linux Sound Architecture Driver Initialized.
    [ 0.496372] clocksource: Switched to clocksource arch_sys_counter
    [ 0.502872] VFS: Disk quotas dquot_6.6.0
    [ 0.506943] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [ 0.514623] AppArmor: AppArmor Filesystem Enabled
    [ 0.525590] NET: Registered protocol family 2
    [ 0.530355] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
    [ 0.539222] tcp_listen_portaddr_hash hash table entries: 1024 (order: 4, 65536 bytes, linear)
    [ 0.548067] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
    [ 0.556317] TCP bind hash table entries: 16384 (order: 7, 917504 bytes, linear)
    [ 0.564873] TCP: Hash tables configured (established 16384 bind 16384)
    [ 0.571859] UDP hash table entries: 1024 (order: 5, 131072 bytes, linear)
    [ 0.578985] UDP-Lite hash table entries: 1024 (order: 5, 131072 bytes, linear)
    [ 0.586813] NET: Registered protocol family 1
    [ 0.591849] RPC: Registered named UNIX socket transport module.
    [ 0.597948] RPC: Registered udp transport module.
    [ 0.602758] RPC: Registered tcp transport module.
    [ 0.607565] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.614157] NET: Registered protocol family 44
    [ 0.618716] PCI: CLS 0 bytes, default 64
    [ 0.623624] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
    [ 0.636148] Initialise system trusted keyrings
    [ 0.641007] workingset: timestamp_bits=46 max_order=19 bucket_order=0
    [ 0.652589] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [ 0.659280] NFS: Registering the id_resolver key type
    [ 0.664552] Key type id_resolver registered
    [ 0.668851] Key type id_legacy registered
    [ 0.673038] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [ 0.679895] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [ 0.687708] 9p: Installing v9fs 9p2000 file system support
    [ 0.727765] NET: Registered protocol family 38
    [ 0.732370] Key type asymmetric registered
    [ 0.736568] Asymmetric key parser 'x509' registered
    [ 0.741602] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
    [ 0.749189] io scheduler mq-deadline registered
    [ 0.753832] io scheduler kyber registered
    [ 0.760323] pinctrl-single 4084000.pinctrl: 34 pins, size 136
    [ 0.766769] pinctrl-single f4000.pinctrl: 171 pins, size 684
    [ 0.775512] pwm-backlight backlight-lvds: supply power not found, using dummy regulator
    [ 0.790284] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [ 0.800602] panel-lvds panel-lvds: /panel-lvds: problems parsing panel-timing (-2)
    [ 0.808418] panel-lvds: probe of panel-lvds failed with error -2
    [ 0.817242] panel-simple display: supply power not found, using dummy regulator
    [ 0.834387] brd: module loaded
    [ 0.846656] loop: module loaded
    [ 0.850983] megasas: 07.714.04.00-rc1
    [ 0.859131] tun: Universal TUN/TAP device driver, 1.6
    [ 0.864632] CAN device driver interface
    [ 0.869200] igbvf: Intel(R) Gigabit Virtual Function Network Driver
    [ 0.875619] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
    [ 0.881744] sky2: driver version 1.30
    [ 0.886595] VFIO - User Level meta-driver version: 0.3
    [ 0.893164] i2c /dev entries driver
    [ 0.898192] sdhci: Secure Digital Host Controller Interface driver
    [ 0.904525] sdhci: Copyright(c) Pierre Ossman
    [ 0.909334] sdhci-pltfm: SDHCI platform and OF driver helper
    [ 0.916681] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [ 0.925129] optee: probing for conduit method.
    [ 0.929738] optee: revision 3.19 (d6c5d003)
    [ 0.930052] optee: dynamic shared memory is enabled
    [ 0.939752] optee: initialized driver
    [ 0.945771] NET: Registered protocol family 17
    [ 0.950396] can: controller area network core
    [ 0.954950] NET: Registered protocol family 29
    [ 0.959650] 9pnet: Installing 9P2000 support
    [ 0.964103] Key type dns_resolver registered
    [ 0.968891] printk: bootconsole [ns16550a0]: printing thread started
    [ 0.968949] Loading compiled-in X.509 certificates
    [ 0.972542] Loaded X.509 cert 'Build time autogenerated kernel key: 8b5e01630fc81fa12ea331a4b41c46e80ebb4af5'
    [ 0.974011] AppArmor: AppArmor sha1 policy hashing enabled
    [ 0.978896] pwm-backlight backlight-lvds: supply power not found, using dummy regulator
    [ 0.980783] panel-simple display: supply power not found, using dummy regulator
    [ 0.986906] ti-sci 44043000.system-controller: lpm region is required for suspend but not provided.
    [ 0.986994] ti-sci 44043000.system-controller: ABI: 3.1 (firmware rev 0x0008 '8.6.1--v08.06.01 (Chill Capybar')
    [ 1.049787] omap_timer 2400000.timer: PM domain pd:36 will not be powered off
    [ 1.055019] omap-gpmc 3b000000.memory-controller: GPMC revision 6.0
    [ 1.055037] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [ 1.058327] tps65219 0-0030: Failed to request IRQ 0 for tps65219_irq: -22
    [ 1.058428] tps65219: probe of 0-0030 failed with error -22
    [ 1.058499] omap_i2c 20000000.i2c: bus 0 rev0.12 at 400 kHz
    [ 1.060231] omap_i2c 20010000.i2c: bus 1 rev0.12 at 400 kHz
    [ 1.084894] pcf85363 2-0051: registered as rtc0
    [ 1.085231] pcf85363 2-0051: setting system clock to 2023-08-21T18:50:55 UTC (1692643855)
    [ 1.085695] lm75 2-004e: supply vs not found, using dummy regulator
    [ 1.086455] hwmon hwmon0: temp1_input not attached to any thermal zone
    [ 1.116203] printk: console [ttyS2]: printing thread started
    [ 1.086464] lm75 2-004e: hwmon0: sensor 'tmp100'
    [ 1.116220] printk: console [ttyS2] enabled
    [ 1.116223] printk: bootconsole [ns16550a0] disabled
    [ 1.133274] printk: bootconsole [ns16550a0]: printing thread stopped
    [ 1.134260] panel-simple display: supply power not found, using dummy regulator
    [ 1.136973] [drm] Initialized tidss 1.0.0 20180215 for 30200000.dss on minor 0
    [ 1.142445] tidss 30200000.dss: [drm] fb0: tidssdrmfb frame buffer device
    [ 1.156968] davinci_mdio 8000f00.mdio: Configuring MDIO in manual mode
    [ 1.196382] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [ 1.197640] davinci_mdio 8000f00.mdio: phy[2]: device 8000f00.mdio:02, driver TI DP83867
    [ 1.197754] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA01103, cpsw version 0x6BA81103 Ports: 3 qu6
    [ 1.198209] am65-cpsw-nuss 8000000.ethernet: Use random MAC address
    [ 1.198221] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.5
    [ 1.198228] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512
    [ 1.199058] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:0
    [ 1.204598] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
    [ 1.208904] rtc-ti-k3 2b1f0000.rtc: registered as rtc1
    [ 1.312999] mmc0: CQHCI version 5.10
    [ 1.313150] mmc1: CQHCI version 5.10
    [ 1.313713] mmc2: CQHCI version 5.10
    [ 1.324439] gpio-wdt: probe of watchdog failed with error -22
    [ 1.325949] debugfs: Directory 'pd:53' with parent 'pm_genpd' already present!
    [ 1.326005] debugfs: Directory 'pd:52' with parent 'pm_genpd' already present!
    [ 1.326067] debugfs: Directory 'pd:51' with parent 'pm_genpd' already present!
    1.326498] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
    [ 1.341602] ALSA device list:
    [ 1.341617] No soundcards found.
    [ 1.365614] mmc0: SDHCI controller on fa10000.mmc [fa10000.mmc] using ADMA 64-bit
    [ 1.366154] mmc1: SDHCI controller on fa00000.mmc [fa00000.mmc] using ADMA 64-bit
    [ 1.502659] mmc0: error -110 whilst initialising MMC card
    [ 1.648872] mmc0: Command Queue Engine enabled
    [ 1.648895] mmc0: new HS200 MMC card at address 0001
    [ 1.649692] mmcblk0: mmc0:0001 DG4016 14.7 GiB
    [ 1.649891] mmcblk0boot0: mmc0:0001 DG4016 partition 1 4.00 MiB
    [ 1.650094] mmcblk0boot1: mmc0:0001 DG4016 partition 2 4.00 MiB
    [ 1.650328] mmcblk0rpmb: mmc0:0001 DG4016 partition 3 4.00 MiB, chardev (237:0)
    [ 1.654181] mmcblk0: p1
    [ 2.832414] sdhci-am654 fa20000.mmc: Power on failed
    [ 2.863045] mmc2: SDHCI controller on fa20000.mmc [fa20000.mmc] using ADMA 64-bit
    [ 3.244553] EXT4-fs (mmcblk0p1): recovery complete
    [ 3.245531] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
    [ 3.245620] VFS: Mounted root (ext4 filesystem) on device 179:1.
    [ 3.246015] devtmpfs: mounted
    [ 3.247434] Freeing unused kernel memory: 1920K
    [ 3.247549] Run /sbin/init as init process
    INIT: version 2.96 booting
    Starting board_start
    FBIOPUT_VSCREENINFO failed, double buffering disabled[ 3.691789] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
    [ 4.539429] random: dd: uninitialized urandom read (512 bytes read)
    ALSA: Restoring mixer settings...
    /usr/sbin/alsactl: load_state:1735: No soundcards found...
    chown: invalid user: 'fireapp'
    starting /root/test/TestCases/Server_TestCases/Server.sh
    OK
    starting /etc/init.d/inotify_test.sh
    OK
    Configuration file wrong or corrupted
    INIT: Entering runlevel: 5
    Configuring network interfaces... [ 4.892286] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:02] driver [TI DP83867] (i)
    [ 4.892322] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
    SIOCSIFFLAGS: No such device
    Cannot find device "wlan0"
    Cannot find device "wlan0"
    Cannot find device "wlan0"
    Starting system message bus: [ 8.471340] random: dbus-daemon: uninitialized urandom read (12 bytes read)
    [ 8.482351] random: dbus-daemon: uninitialized urandom read (12 bytes read)
    dbus.
    [ 8.735765] pvrsrvkm: loading out-of-tree module taints kernel.
    [ 8.742834] pvrsrvkm: module verification failed: signature and/or required key missing - tainting kernel
    [ 8.762759] PVR_K: 430: Read BVNC 33.15.11.3 from HW device registers
    [ 8.762877] PVR_K: 430: RGX Device registered with BVNC 33.15.11.3
    [ 8.763602] [drm] Initialized pvr 1.15.6133109 20170530 for fd00000.gpu on minor 1
    openvt: can't find open VT
    Couldn't start Weston automatically.
    Loaded PowerVR consumer services.
    Setting environment variables...Starting UI app... UI app started.
    Starting rpcbind daemon...[ 9.555746] NET: Registered protocol family 10
    [ 9.559445] Segment Routing with IPv6
    done.
    Starting Quagga daemons: zebraQStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/var/volatile/tmp/runtime-root'
    bgpd[ 9.676465] PVR_K: 458: RGX Firmware image 'rgx.fw.33.15.11.3' loaded
    [ 9.682412] PVR_K: 458: Shader binary image 'rgx.sh.33.15.11.3' loaded
    Upgrade : MMC0 EXIST
    ripd ripngd ospfd ospf6d isisd.
    Starting advanced power management daemon: No APM support in kernel
    (failed.)
    Starting ntpd: done
    starting rsyslogd ... done
    arch elf mapping not found
    There was an error in line 54 of /etc/audit/audit.rules
    * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
    [ 10.378453] random: avahi-daemon: uninitialized urandom read (4 bytes read)
    [ 10.386563] random: avahi-daemon: uninitialized urandom read (4 bytes read)
    ...done.
    Starting LCDproc display server daemon: Could not open driver module /usr/lib/lcdproc/curses.so: /usr/lib/lcdproc/curses.so: cannoty
    Driver [curses] binding failed
    Could not load driver curses
    There is no output driver
    Critical error while initializing, abort.
    Starting LCDproc system status monitor: sock_connect: connect failed
    Error connecting to LCD server localhost on port 13666.
    Check to see that the server is running and operating normally.
    [ 10.629307] random: cupsd: uninitialized urandom read (4096 bytes read)
    cups: started scheduler.
    Starting crond: OK
    Starting AppArmor profiles
    Mounting securityfs on /sys/kernel/security
    .
    Starting udev
    [ 10.993797] udevd[643]: starting version 3.2.9
    [ 11.018121] udevd[644]: starting eudev-3.2.9
    [ 11.113582] Initializing MS/TP network device driver version 1.02-003
    [ 11.132157] random: crng init done
    [ 11.132184] random: 8 urandom warning(s) missed due to ratelimiting
    [ 11.236103] m_can_platform 20701000.can: m_can device registered (irq=41, version=32)
    [ 11.284354] [FTS_TS]fts_ts_init: Enter
    [ 11.287098] [FTS_TS/I]fts_ts_probe:Touch Screen(I2C BUS) driver prboe...
    [ 11.287125] [FTS_TS]fts_ts_probe_entry: Enter
    [ 11.287129] [FTS_TS/I]fts_ts_probe_entry:Focaltech V3.2 20200422
    [ 11.287134] [FTS_TS]fts_parse_dt: Enter
    [ 11.287138] [FTS_TS/I]fts_get_dt_coords:display x(0 1024) y(0 600)
    [ 11.287168] [FTS_TS/E]fts_parse_dt:Unable to get reset_gpio
    [ 11.287189] [FTS_TS/I]fts_parse_dt:max touch number:10, irq gpio:412, reset gpio:-2
    [ 11.287194] [FTS_TS]fts_parse_dt: Exit(1262)
    [ 11.287463] [FTS_TS]fts_bus_init: Enter
    [ 11.287479] [FTS_TS]fts_bus_init: Exit(175)
    [ 11.287486] [FTS_TS]fts_input_init: Enter
    [ 11.311374] input: fts_ts as /devices/platform/bus@f0000/20010000.i2c/i2c-1/1-0038/input/input0
    [ 11.320880] [FTS_TS]fts_input_init: Exit(802)
    [ 11.320900] [FTS_TS]fts_gpio_configure: Enter
    [ 11.320919] [FTS_TS]fts_gpio_configure: Exit(1133)
    [ 11.320922] [FTS_TS]fts_power_source_init: Enter
    [ 11.320957] fts_ts 1-0038: supply vdd not found, using dummy regulator
    [ 11.337927] fts_ts 1-0038: supply vcc_i2c not found, using dummy regulator
    [ 11.345601] [FTS_TS]fts_power_source_ctrl: Enter
    [ 11.345623] [FTS_TS]fts_power_source_ctrl:regulator enable !
    [ 11.345634] [FTS_TS]fts_power_source_ctrl: Exit(978)
    [ 11.345639] [FTS_TS]fts_power_source_init: Exit(1038)
    [ 11.368775] [FTS_TS]fts_get_chip_types:verify id:0x5422
    [ 11.368799] [FTS_TS/I]fts_get_ic_information:get ic information, chip id = 0x5422
    [ 11.368829] [FTS_TS/I]fts_create_apk_debug_channel:Create proc entry success!
    [ 11.371983] [FTS_TS/I]fts_create_sysfs:[EX]: sysfs_create_group() succeeded!!
    [ 11.373208] [FTS_TS]fts_ex_mode_init:create sysfs(ex_mode) succeedfully
    [ 11.373223] [FTS_TS]fts_gesture_init: Enter
    [ 11.373654] [FTS_TS]fts_gesture_init: Exit(450)
    [ 11.378033] [FTS_TS/I]fts_irq_registration:irq:304, flag:2002
    [ 11.378283] [FTS_TS/I]fts_fwupg_init:fw upgrade init function
    [ 11.378307] [FTS_TS]fts_ts_probe_entry: Exit(1627)
    [ 11.378311] [FTS_TS/I]fts_ts_probe:Touch Screen(I2C BUS) driver prboe successfully
    [ 11.378321] [FTS_TS/I]fts_fwupg_work:FTS_AUTO_UPGRADE_EN is disabled, not upgrade when power on
    [ 11.393998] [FTS_TS]fts_ts_init: Exit(1911)
    [ 11.528212] k3-m4-rproc 5000000.m4fss: assigned reserved memory node m4f-dma-memory@9cb00000
    [ 11.528805] k3-m4-rproc 5
    [ 11.528805] k3-m4-rproc 5000000.m4fss: configured M4 for IPC-only mode

    [ 11.539250] remoteproc remoteproc0: 5000000.m4fss is available

    [ 11.539396] remoteproc remoteproc0: attaching to 5000000.m4fss

    [ 11.539422] Unable to handle kernel paging request at virtual address ffff800013ffffff
    000000.m4fss: configured
    [ 11.568594] Mem abort info:
    M4
    [ 11.571597] ESR = 0x96000007
    for IPC-
    [ 11.575654] EC = 0x25: DABT (current EL), IL = 32 bits
    only mo
    [ 11.581694] SET = 0, FnV = 0
    de
    [ 11.585241] EA = 0, S1PTW = 0
    [ 11.588695] printk: console [ttyS2]: printing thread stopped
    [ 11.589130] Data abort info:
    [ 11.597741] ISV = 0, ISS = 0x00000007
    [ 11.601683] CM = 0, WnR = 0
    [ 11.604752] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000082f93000
    [ 11.610736] platform 78000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state ()
    [ 11.612323] [ffff800013ffffff] pgd=00000000fffff003, p4d=00000000fffff003, pud=00000000ffffe003, pmd=000000008662f003, pte=000000
    [ 11.623531] platform 78000000.r5f: configured R5F for IPC-only mode
    [ 11.636028] Internal error: Oops: 96000007 [#1] PREEMPT_RT SMP
    [ 11.642263] platform 78000000.r5f: device does not have reserved memory regions, ret = -22
    [ 11.647776] Modules linked in: ti_k3_r5_remoteproc(+) virtio_rpmsg_bus ti_k3_m4_remoteproc(+) rti_wdt j721e_csi2rx sa2ul videobu)
    [ 11.656140] k3_r5_rproc bus@f0000:bus@b00000:r5fss@78000000: reserved memory init failed, ret = -22
    [ 11.684127] CPU: 2 PID: 657 Comm: udevd Tainted: G OE 5.10.184-rt90-gcfc102d877 #1
    [ 11.693193] remoteproc remoteproc1: releasing 78000000.r5f
    [ 11.701920] Hardware name: Onecontrol AM625 Dev Board-28022023 (DT)
    [ 11.707498] k3_r5_rproc bus@f0000:bus@b00000:r5fss@78000000: k3_r5_cluster_rproc_init failed, ret = -22
    [ 11.713648] pstate: 00000005 (nzcv daif -PAN -UAO -TCO BTYPE=--)
    [ 11.723552] k3_r5_rproc: probe of bus@f0000:bus@b00000:r5fss@78000000 failed with error -22
    [ 11.729012] pc : rproc_handle_resources.constprop.0+0x94/0x168
    [ 11.743192] lr : rproc_boot+0x464/0x6a0
    [ 11.747046] sp : ffff8000119737c0
    [ 11.750366] x29: ffff8000119737c0 x28: ffff800011322098
    [ 11.755694] x27: ffff00007fbe1f60 x26: ffffffffffffffff
    [ 11.761001] x25: ffff800014000000 x24: ffff800010ec5508
    [ 11.766304] x23: ffff000003466838 x22: 0000000000000000
    [ 11.771607] x21: ffff8000112944f8 x20: ffff000003466800
    [ 11.776911] x19: 0000000000000000 x18: 0000000000000000
    [ 11.782218] x17: 0000000000000000 x16: 0000000000000000
    [ 11.787527] x15: ffff0000056d0000 x14: ffffffffffffffff
    [ 11.792837] x13: ffffffffffffffff x12: ffffffffffffffff
    [ 11.798141] x11: ffffffffffffffff x10: ffffffffffdfffff
    [ 11.803444] x9 : fffffffffffdffff x8 : feffffffffffffff
    [ 11.808744] x7 : ffffffffffffffff x6 : ffff000005a84f00
    [ 11.814052] x5 : ffff00007fbb1b38 x4 : 0000000000000000
    [ 11.819356] x3 : 00000000000000fd x2 : 00000000ffffffff
    [ 11.824661] x1 : ffff800014000003 x0 : ffff800014000000
    [ 11.829968] Call trace:
    [ 11.832411] rproc_handle_resources.constprop.0+0x94/0x168
    [ 11.837896] rproc_boot+0x464/0x6a0
    [ 11.841387] rproc_add+0x88/0x168
    [ 11.844697] k3_m4_rproc_probe+0x784/0x868 [ti_k3_m4_remoteproc]
    [ 11.850705] platform_drv_probe+0x54/0xa8
    [ 11.854714] really_probe+0xec/0x400
    [ 11.858282] driver_probe_device+0x58/0xf0
    [ 11.862370] device_driver_attach+0x74/0x80
    [ 11.866544] __driver_attach+0x68/0xf8
    [ 11.870284] bus_for_each_dev+0x70/0xc8
    [ 11.874110] driver_attach+0x24/0x30
    [ 11.877678] bus_add_driver+0x150/0x210
    [ 11.881506] driver_register+0x64/0x120
    [ 11.885333] __platform_driver_register+0x48/0x58
    [ 11.890026] k3_m4_rproc_driver_init+0x20/0x1000 [ti_k3_m4_remoteproc]
    [ 11.896553] do_one_initcall+0x54/0x1c8
    [ 11.900386] do_init_module+0x44/0x1f0
    [ 11.904128] load_module+0x2204/0x27a8
    [ 11.907867] __do_sys_finit_module+0xb8/0x100
    [ 11.912213] __arm64_sys_finit_module+0x20/0x30
    [ 11.916733] el0_svc_common.constprop.0+0x78/0x1c8
    [ 11.921519] do_el0_svc+0x24/0xa0
    [ 11.924826] el0_svc+0x14/0x20
    [ 11.927875] el0_sync_handler+0xb0/0xb8
    [ 11.931707] el0_sync+0x180/0x1c0
    [ 11.935021] Code: 128002b3 91134021 97ffeb65 1400002e (b87a6b20)
    [ 11.941104] ---[ end trace 0000000000000002 ]---

    Carrier Linux Reference Distrbution 3.1.26 am62xx-onecontrol-lrd ttyS2

    Warning: Use of this System is Restricted to Authorized Users

    This computer system is the private property of the Company and may be
    used only by those individuals authorized by the Company, in accordance
    with Company policy. Unauthorized, illegal or improper use may result
    in disciplinary action and/or civil or criminal prosecution.

    Your use of Company electronic systems is subject to monitoring and
    disclosure in accordance with Company policy and applicable law. By
    continuing to access this system, you agree that your use of Company
    electronic systems is subject to the foregoing and that you have no
    expectation of privacy in regard to any files or data stored, accessed,
    transmitted or received on such systems.
    am62xx-onecontrol-lrd login: [ 11.995364] udevd[644]: worker [657] terminated by signal 11 (Segmentation fault)
    [ 11.995407] udevd[644]: worker [657] failed while handling '/devices/platform/bus@f0000/bus@f0000:bus@4000000/5000000.m4fss'
    [ 12.621697] remoteproc remoteproc1: 30074000.pru is available
    [ 12.653224] remoteproc remoteproc2: 30078000.pru is available
    [ 12.677725] cdns-csi2rx: probe of 30101000.csi-bridge failed with error -22
    [ 12.734514] dwc3 31000000.usb: Configuration mismatch. dr_mode forced to gadget
    [ 12.837484] usbcore: registered new interface driver usbfs
    [ 12.843145] usbcore: registered new interface driver hub
    [ 12.848750] usbcore: registered new device driver usb
    [ 12.905001] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [ 12.910674] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
    [ 12.918571] xhci-hcd xhci-hcd.1.auto: hcc params 0x0258fe6d hci version 0x110 quirks 0x0000000000010010
    [ 12.928263] xhci-hcd xhci-hcd.1.auto: irq 489, io mem 0x31100000
    [ 12.934556] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [ 12.940072] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
    [ 12.947759] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
    [ 12.954474] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
    [ 12.962755] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 12.969972] usb usb1: Product: xHCI Host Controller
    [ 12.974857] usb usb1: Manufacturer: Linux 5.10.184-rt90-gcfc102d877 xhci-hcd
    [ 12.981900] usb usb1: SerialNumber: xhci-hcd.1.auto
    [ 12.987539] hub 1-0:1.0: USB hub found
    [ 12.991425] hub 1-0:1.0: 1 port detected
    [ 12.997757] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [ 13.006055] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
    [ 13.014368] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 13.021601] usb usb2: Product: xHCI Host Controller
    [ 13.026507] usb usb2: Manufacturer: Linux 5.10.184-rt90-gcfc102d877 xhci-hcd
    [ 13.033602] usb usb2: SerialNumber: xhci-hcd.1.auto
    [ 13.039194] hub 2-0:1.0: USB hub found
    [ 13.043074] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
    Version of Business Unit build =
    CRLD Build

    am62xx-onecontrol-lrd login: root
    Last login: Mon Aug 21 18:40:03 UTC 2023 on ttyS2
    Last login: Mon Aug 21 18:51:20 UTC 2023 on ttyS2
    root@am62xx-onecontrol-lrd:~# [ 31.772411] tlv755: disabling

    root@am62xx-onecontrol-lrd:~#
    root@am62xx-onecontrol-lrd:~#

    *******************************************************

    Let me know if required more info.

    Thanks,

    Suraj.

  • Hi,

    Understood that this happens when you execute:

    => saveenv

    You say you still see the error even though you do not do saveenv command?

    The reason I am saying this is because if you compiled-in u-boot environment, you should not have to do saveenv command.

    Another question, how are you building u-boot?

    ~ Judith

  • Hi Judith,

    Thanks for your response!

    This is the logs which we got for standalone boot.

    *********************************************************************

    U-Boot SPL 2021.01-g999 (Aug 21 2023 - 01:48:31 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.1--v08.06.01 (Chill Capybar')
    Trying to boot from MMC1


    U-Boot 2021.01-g999 (Aug 21 2023 - 01:48:31 +0000)

    SoC: AM62X SR1.0 GP
    Model: Carrier onecontrol am625 devlopment board
    DRAM: 2 GiB
    MMC: mmc@fa10000: 0, mmc@fa00000: 1, mmc@fa20000: 2
    Loading Environment from MMC... MMC: block number 0x3500 exceeds max(0x2000)
    *** Warning - !read failed, using default environment

    In: serial@2800000
    Out: serial@2800000
    Err: serial@2800000
    Net: am65_cpsw_nuss_port ethernet@8000000port@1: Invalid PHY mode 'rmii-rxid', port 1
    No ethernet found.

    Hit any key to stop autoboot: 0
    i2c_write: error waiting for data ACK (status=0x116)
    pca953x gpio@22: Error reading output register
    Card did not respond to voltage select! : -110
    Card did not respond to voltage select! : -110
    i2c_write: error waiting for data ACK (status=0x116)
    pca953x gpio@22: Error reading output register
    Card did not respond to voltage select! : -110
    i2c_write: error waiting for data ACK (status=0x116)
    pca953x gpio@22: Error reading output register
    Card did not respond to voltage select! : -110
    i2c_write: error waiting for data ACK (status=0x116)
    pca953x gpio@22: Error reading output register
    Card did not respond to voltage select! : -110
    libfdt fdt_check_header(): FDT_ERR_BADMAGIC
    No FDT memory address configured. Please configure
    the FDT address via "fdt addr <address>" command.
    Aborting!
    Bad Linux ARM64 Image magic!
    =>


    Another question, how are you building u-boot?

    --->

    On YOCTO seteup  we are building.

    Created workspace using devtool and applied patches then compiled.

    Let me know if required more info.

    Thanks,

    Suraj.

  • Hi,

    Did you modify any of the following environment variables in u-boot?


    CONFIG_ENV_SIZE
    CONFIG_ENV_OFFSET
    CONFIG_ENV_SECT_SIZE

    The "Saving Environment to MMC... Writing to MMC(0)... MMC: block number 0xxx exceeds max(0xxx)" is typically seen when these u-boot environment variables are not correct.

    ~ Judith

  • If saveenv command is not working, another method can be using uEnv.txt:

    Writing to MMC/EMMC
       => env export -t $loadaddr
       => fatwrite mmc ${mmcdev} ${loadaddr} ${bootenvfile} ${filesize}

    Reading from MMC/EMMC
    By default run envboot will read it from the MMC/EMMC partition ( based on
    mmcdev) and set the environments.

    If manually needs to be done then the environment can be read from the
    filesystem and then imported

       => fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile}
       => env import -t ${loadaddr} ${filesize}

    ~ Judith