Other Parts Discussed in Thread: SK-AM62B-P1
Hi Team,
Processor MF no: AM6252ASGFHIAMCRQ1
Unable to boot to kernel
getting error as below on boot
U-Boot SPL 2023.04-ti-gd2612223375a (Feb 01 2024 - 15:06:40 +0000) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.7--v09.02.07 (Kool Koala)') SPL initial stack usage: 13392 bytes Trying to boot from MMC2 Authentication passed Authentication passed Authentication passed Authentication passed Authentication passed Starting ATF on ARM64 core... NOTICE: BL31: v2.10.0(release):v2.10.0-367-g00f1ec6b87-dirty NOTICE: BL31: Built : 15:06:40, Feb 1 2024 U-Boot SPL 2023.04-ti-gd2612223375a (Feb 01 2024 - 15:06:40 +0000) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.7--v09.02.07 (Kool Koala)') SPL initial stack usage: 1904 bytes i2c_write: error waiting for data ACK (status=0x116) pca953x gpio@22: Error reading output register Trying to boot from MMC2 Authentication passed Authentication passed U-Boot 2023.04-ti-gd2612223375a (Feb 01 2024 - 15:06:40 +0000) SoC: AM62X SR1.0 HS-FS Model: Texas Instruments AM625 SK EEPROM not available at 80, trying to read at 81 Board: AM62B-SKEVM-P1 rev A DRAM: 2 GiB Core: 72 devices, 32 uclasses, devicetree: separate MMC: mmc@fa10000: 0, mmc@fa00000: 1 Loading Environment from nowhere... OK In: serial Out: serial Err: serial Net: eth0: ethernet@8000000port@1 Hit any key to stop autoboot: 0 i2c_write: error waiting for data ACK (status=0x116) pca953x gpio@22: Error reading output register switch to partitions #0, OK mmc1 is current device i2c_write: error waiting for data ACK (status=0x116) pca953x gpio@22: Error reading output register SD/MMC found on device 1 Failed to load 'boot.scr' Failed to load 'uEnv.txt' ## Error: "main_cpsw0_qsgmii_phyinit" not defined 24381952 bytes read in 1011 ms (23 MiB/s) 62335 bytes read in 29 ms (2 MiB/s) Working FDT set to 88000000 ## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Working FDT set to 88000000 Loading Device Tree to 000000008feed000, end 000000008fffffff ... OK Working FDT set to 8feed000 Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 6.1.806.1.80-Raptee-g6328116b7b7a (oe-user@oe-host) (aarch64-agl-linux-gcc (GCC) 13.2.0, GNU ld (GNU Binutils) 2.42.0.20240216) #1 SMP PREEMPT Thu Feb 1 15:06:40 UTC 2024 [ 0.000000] Machine model: Texas Instruments AM625 SK [ 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 CMA memory pool at 0x00000000f7600000, size 128 MiB [ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x000000009c800000, size 3 MiB [ 0.000000] OF: reserved mem: initialized node ipc-memories@9c800000, compatible id shared-dma-pool [ 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 14 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 0x000000009da00000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@9da00000, 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-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-0x000000009c7fffff] [ 0.000000] node 0: [mem 0x000000009c800000-0x000000009e6fffff] [ 0.000000] node 0: [mem 0x000000009e700000-0x000000009e77ffff] [ 0.000000] node 0: [mem 0x000000009e780000-0x000000009fffffff] [ 0.000000] node 0: [mem 0x00000000a0000000-0x00000000ff6fffff] [ 0.000000] node 0: [mem 0x00000000ff700000-0x00000000fffeffff] [ 0.000000] node 0: [mem 0x00000000ffff0000-0x00000000ffffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000ffffffff] [ 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.4 [ 0.000000] percpu: Embedded 29 pages/cpu s78056 r8192 d32536 u118784 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: detected: GIC system register CPU interface [ 0.000000] CPU features: detected: ARM erratum 845719 [ 0.000000] alternatives: applying boot alternatives [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 516096 [ 0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=spi-nand0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),256k(ospi.env.backup),98048k@32m(ospi.rootfs),256k@130816k(ospi.phypattern);omap2-nand.0:2m(NAND.tiboot3),2m(NAND.tispl),2m(NAND.tiboot3.backup),4m(NAND.u-boot),256k(NAND.u-boot-env),256k(NAND.u-boot-env.backup),-(NAND.file-system) root=PARTUUID=07e1c071-02 rw rootfstype=ext4 rootwait [ 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: 1834104K/2097152K available (13376K kernel code, 2242K rwdata, 4860K rodata, 3200K init, 475K bss, 131976K reserved, 131072K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] trace event string verifier disabled [ 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] 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] Root IRQ handler: gic_handle_irq [ 0.000000] GICv3: GICv3 features: 16 PPIs [ 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 @0x00000000800e0000 [ 0.000000] GIC: using cache flushing for LPI property table [ 0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000000800f0000 [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention. [ 0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0x3ffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns [ 0.000000] sched_clock: 58 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns [ 0.008618] Console: colour dummy device 80x25 [ 0.013224] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000) [ 0.023913] pid_max: default: 32768 minimum: 301 [ 0.028722] LSM: Security Framework initializing [ 0.033492] LSM support for eBPF active [ 0.037533] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.045127] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.055324] cblist_init_generic: Setting adjustable number of callback queues. [ 0.062797] cblist_init_generic: Setting shift to 2 and lim to 1. [ 0.069115] cblist_init_generic: Setting adjustable number of callback queues. [ 0.076512] cblist_init_generic: Setting shift to 2 and lim to 1. [ 0.082942] rcu: Hierarchical SRCU implementation. [ 0.087853] rcu: Max phase no-delay instances is 1000. [ 0.093691] Platform MSI: msi-controller@1820000 domain created [ 0.100090] PCI/MSI: /bus@f0000/interrupt-controller@1800000/msi-controller@1820000 domain created [ 0.109502] EFI services will not be available. [ 0.114443] smp: Bringing up secondary CPUs ... [ 0.119936] Detected VIPT I-cache on CPU1 [ 0.120068] GICv3: CPU1: found redistributor 1 region 0:0x00000000018a0000 [ 0.120088] GICv3: CPU1: using allocated LPI pending table @0x0000000080100000 [ 0.120162] CPU1: Booted secondary processor 0x0000000001 [0x410fd034] [ 5.138709] CPU2: failed to come online [ 5.167810] CPU2: failed in unknown state : 0x0 [ 10.276097] CPU3: failed to come online [ 10.280027] CPU3: failed in unknown state : 0x0 [ 10.284748] smp: Brought up 1 node, 2 CPUs [ 10.288959] SMP: Total of 2 processors activated. [ 10.293774] CPU features: detected: 32-bit EL0 Support [ 10.299045] CPU features: detected: CRC32 instructions [ 10.304385] CPU: All CPU(s) started at EL2 [ 10.308571] alternatives: applying system-wide alternatives [ 10.316480] devtmpfs: initialized [ 10.329886] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 10.339935] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 10.352996] pinctrl core: initialized pinctrl subsystem [ 10.359140] DMI not present or invalid. [ 10.363814] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 10.371249] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations [ 10.378687] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 10.386769] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 10.394953] audit: initializing netlink subsys (disabled) [ 10.400790] audit: type=2000 audit(10.304:1): state=initialized audit_enabled=0 res=1 [ 10.401360] thermal_sys: Registered thermal governor 'step_wise' [ 10.408828] thermal_sys: Registered thermal governor 'power_allocator' [ 10.415028] cpuidle: using governor menu [ 10.425935] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 10.432941] ASID allocator initialised with 65536 entries [ 10.450492] platform a40000.pinctrl: Fixed dependency cycle(s) with /bus@f0000/pinctrl@a40000/cpsw-cpts [ 10.464591] KASLR disabled due to lack of seed [ 10.477202] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages [ 10.484188] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page [ 10.490624] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages [ 10.497615] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page [ 10.504025] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages [ 10.510964] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page [ 10.517371] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages [ 10.524310] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page [ 10.532768] k3-chipinfo 43000014.chipid: Family:AM62X rev:SR1.0 JTAGID[0x0bb7e02f] Detected [ 10.543749] iommu: Default domain type: Translated [ 10.548833] iommu: DMA domain TLB invalidation policy: strict mode [ 10.555633] SCSI subsystem initialized [ 10.559923] usbcore: registered new interface driver usbfs [ 10.565584] usbcore: registered new interface driver hub [ 10.571062] usbcore: registered new device driver usb [ 10.576878] pps_core: LinuxPPS API ver. 1 registered [ 10.581962] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 10.591319] PTP clock support registered [ 10.595479] EDAC MC: Ver: 3.0.0 [ 10.599900] omap-mailbox 29000000.mailbox: omap mailbox rev 0x66fc9100 [ 10.607137] FPGA manager framework [ 10.610739] Advanced Linux Sound Architecture Driver Initialized. [ 10.618155] clocksource: Switched to clocksource arch_sys_counter [ 10.624872] VFS: Disk quotas dquot_6.6.0 [ 10.628977] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 10.642107] NET: Registered PF_INET protocol family [ 10.647467] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 10.656873] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear) [ 10.665690] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 10.673629] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 10.681858] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear) [ 10.689976] TCP: Hash tables configured (established 16384 bind 16384) [ 10.696950] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 10.703874] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 10.711457] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 10.717895] RPC: Registered named UNIX socket transport module. [ 10.724003] RPC: Registered udp transport module. [ 10.728812] RPC: Registered tcp transport module. [ 10.733625] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 10.740217] NET: Registered PF_XDP protocol family [ 10.745130] PCI: CLS 0 bytes, default 64 [ 10.750039] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available [ 10.760617] Initialise system trusted keyrings [ 10.765542] workingset: timestamp_bits=46 max_order=19 bucket_order=0 [ 10.777034] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 10.783772] NFS: Registering the id_resolver key type [ 10.789014] Key type id_resolver registered [ 10.793315] Key type id_legacy registered [ 10.797482] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 10.804337] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 10.847956] NET: Registered PF_ALG protocol family [ 10.852878] Key type asymmetric registered [ 10.857065] Asymmetric key parser 'x509' registered [ 10.862127] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245) [ 10.869959] io scheduler mq-deadline registered [ 10.874644] io scheduler kyber registered [ 10.882964] pinctrl-single 4084000.pinctrl: 34 pins, size 136 [ 10.889822] pinctrl-single f4000.pinctrl: 171 pins, size 684 [ 10.897644] pinctrl-single a40000.pinctrl: 512 pins, size 2048 [ 10.911363] Serial: 8250/16550 driver, 12 ports, IRQ sharing enabled [ 10.929061] loop: module loaded [ 10.933755] megasas: 07.719.03.00-rc1 [ 10.941209] tun: Universal TUN/TAP device driver, 1.6 [ 10.947364] VFIO - User Level meta-driver version: 0.3 [ 10.953661] usbcore: registered new interface driver usb-storage [ 10.959987] usbcore: registered new interface driver usbserial_generic [ 10.966701] usbserial: USB Serial support registered for generic [ 10.972880] usbcore: registered new interface driver cp210x [ 10.978598] usbserial: USB Serial support registered for cp210x [ 10.985555] i2c_dev: i2c /dev entries driver [ 10.990000] usbcore: registered new interface driver i2c-tiny-usb [ 10.998068] sdhci: Secure Digital Host Controller Interface driver [ 11.004449] sdhci: Copyright(c) Pierre Ossman [ 11.009166] sdhci-pltfm: SDHCI platform and OF driver helper [ 11.015890] ledtrig-cpu: registered to indicate activity on CPUs [ 11.022282] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping .... [ 11.029395] usbcore: registered new interface driver usbhid [ 11.035100] usbhid: USB HID core driver [ 11.040083] optee: probing for conduit method. [ 11.044694] optee: revision 4.1 (012cdca4) [ 11.045069] optee: dynamic shared memory is enabled [ 11.054714] optee: initialized driver [ 11.059985] usbcore: registered new interface driver snd-usb-audio [ 11.067234] Initializing XFRM netlink socket [ 11.071667] NET: Registered PF_PACKET protocol family [ 11.076957] Key type dns_resolver registered [ 11.082191] registered taskstats version 1 [ 11.086428] Loading compiled-in X.509 certificates [ 11.103357] ti-sci 44043000.system-controller: ABI: 3.1 (firmware rev 0x0009 '9.2.7--v09.02.07 (Kool Koala)') [ 11.161784] ti-sci-clk 44043000.system-controller:clock-controller: recalc-rate failed for dev=81, clk=20, ret=-19 [ 11.197323] omap_i2c 4900000.i2c: bus 5 rev0.12 at 100 kHz [ 11.204576] omap_i2c 20000000.i2c: bus 0 rev0.12 at 400 kHz [ 11.212458] omap_i2c 20010000.i2c: bus 1 rev0.12 at 100 kHz [ 11.219575] omap_i2c 20020000.i2c: bus 2 rev0.12 at 400 kHz [ 11.225622] ti-sci-intr bus@f0000:interrupt-controller@a00000: Interrupt Router 3 domain created [ 11.234914] ti-sci-inta 48000000.interrupt-controller: Interrupt Aggregator domain 28 created [ 11.247478] simple-framebuffer ff700000.framebuffer: framebuffer at 0xff700000, 0x8ca000 bytes [ 11.256343] simple-framebuffer ff700000.framebuffer: format=a8r8g8b8, mode=1920x1200x32, linelength=7680 [ 11.282572] Console: switching to colour frame buffer device 240x75 [ 11.303681] simple-framebuffer ff700000.framebuffer: fb0: simplefb registered! [ 11.312916] ti-udma 485c0100.dma-controller: Number of rings: 82 [ 11.321506] ti-udma 485c0100.dma-controller: Channels: 48 (bchan: 18, tchan: 12, rchan: 18) [ 11.332953] ti-udma 485c0000.dma-controller: Number of rings: 150 [ 11.343549] ti-udma 485c0000.dma-controller: Channels: 35 (tchan: 20, rchan: 15) [ 11.354199] printk: console [ttyS2] disabled [ 11.358668] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 241, base_baud = 3000000) is a 8250 [ 11.367578] printk: console [ttyS2] enabled [ 11.367578] printk: console [ttyS2] enabled [ 11.376038] printk: bootconsole [ns16550a0] disabled [ 11.376038] printk: bootconsole [ns16550a0] disabled U-Boot SPL 2023.04-ti-gd2612223375a (Feb 01 2024 - 15:06:40 +0000) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.7--v09.02.07 (Kool Koala)') SPL initial stack usage: 13392 bytes Trying to boot from MMC2 Authentication passed Authentication passed Authentication passed Authentication passed Authentication passed Starting ATF on ARM64 core... NOTICE: BL31: v2.10.0(release):v2.10.0-367-g00f1ec6b87-dirty NOTICE: BL31: Built : 15:06:40, Feb 1 2024 U-Boot SPL 2023.04-ti-gd2612223375a (Feb 01 2024 - 15:06:40 +0000) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.7--v09.02.07 (Kool Koala)') SPL initial stack usage: 1904 bytes i2c_write: error waiting for data ACK (status=0x116) pca953x gpio@22: Error reading output register Trying to boot from MMC2 Authentication passed Authentication passed U-Boot 2023.04-ti-gd2612223375a (Feb 01 2024 - 15:06:40 +0000) SoC: AM62X SR1.0 HS-FS Model: Texas Instruments AM625 SK EEPROM not available at 80, trying to read at 81 Board: AM62B-SKEVM-P1 rev A DRAM: 2 GiB Core: 72 devices, 32 uclasses, devicetree: separate MMC: mmc@fa10000: 0, mmc@fa00000: 1 Loading Environment from nowhere... OK In: serial Out: serial Err: serial Net: eth0: ethernet@8000000port@1 Hit any key to stop autoboot: 1
Below is the Patch we have done,
diff --git a/board/ti/am62x/evm.c b/board/ti/am62x/evm.c index 9146361b3a..543d4ea061 100644 --- a/board/ti/am62x/evm.c +++ b/board/ti/am62x/evm.c @@ -50,7 +50,7 @@ static struct gpio_desc board_det_gpios[AM62X_LPSK_BRD_DET_COUNT]; #define board_is_am62x_skevm() (board_ti_k3_is("AM62-SKEVM") || \ board_ti_k3_is("AM62B-SKEVM")) -#define board_is_am62b_p1_skevm() board_ti_k3_is("AM62B-SKEVM-P1") +#define board_is_am62b_p1_skevm() true //Bypassing #define board_is_am62x_lp_skevm() board_ti_k3_is("AM62-LP-SKEVM") #define board_is_am62x_sip_skevm() board_ti_k3_is("AM62SIP-SKEVM") #define board_is_am62x_play() board_ti_k3_is("BEAGLEPLAY-A0-") diff --git a/board/ti/common/Kconfig b/board/ti/common/Kconfig index 56a65c0a40..1929b102a4 100644 --- a/board/ti/common/Kconfig +++ b/board/ti/common/Kconfig @@ -16,13 +16,13 @@ config EEPROM_BUS_ADDRESS int "Board EEPROM's I2C bus address" range 0 8 default 0 - depends on TI_I2C_BOARD_DETECT + // depends on TI_I2C_BOARD_DETECT config EEPROM_CHIP_ADDRESS hex "Board EEPROM's I2C chip address" range 0 0xff default 0x50 - depends on TI_I2C_BOARD_DETECT + // depends on TI_I2C_BOARD_DETECT config CAPE_EEPROM_BUS_NUM int "Cape EEPROM's I2C bus address" diff --git a/board/ti/common/board_detect.c b/board/ti/common/board_detect.c index 17fe8f8069..be096ac953 100644 --- a/board/ti/common/board_detect.c +++ b/board/ti/common/board_detect.c @@ -319,10 +319,10 @@ int __maybe_unused ti_i2c_eeprom_am_get(int bus_addr, int dev_addr) rc = ti_i2c_eeprom_get(bus_addr, dev_addr, TI_EEPROM_HEADER_MAGIC, sizeof(am_ep), (uint8_t *)&am_ep); if (rc) - return rc; + strlcpy(ep->name, "AM62B-SKEVM-P1", TI_EEPROM_HDR_NAME_LEN + 1); // Modified for VCU 5.0 ep->header = am_ep.header; - strlcpy(ep->name, am_ep.name, TI_EEPROM_HDR_NAME_LEN + 1); + // strlcpy(ep->name, am_ep.name, TI_EEPROM_HDR_NAME_LEN + 1); // Modified for VCU 5.0 ti_eeprom_string_cleanup(ep->name); /* BeagleBone Green '1' eeprom, board_rev: 0x1a 0x00 0x00 0x00 */ @@ -691,25 +691,25 @@ u64 __maybe_unused board_ti_get_emif2_size(void) void __maybe_unused set_board_info_env(char *name) { - char *unknown = "unknown"; - struct ti_common_eeprom *ep = TI_EEPROM_DATA; + // char *unknown = "unknown"; + // struct ti_common_eeprom *ep = TI_EEPROM_DATA; - if (name) + // if (name) env_set("board_name", name); - else if (strlen(ep->name) != 0) - env_set("board_name", ep->name); - else - env_set("board_name", unknown); - - if (strlen(ep->version) != 0) - env_set("board_rev", ep->version); - else - env_set("board_rev", unknown); - - if (strlen(ep->serial) != 0) - env_set("board_serial", ep->serial); - else - env_set("board_serial", unknown); + // else if (strlen(ep->name) != 0) + // env_set("board_name", ep->name); + // else + // env_set("board_name", unknown); + + // if (strlen(ep->version) != 0) + env_set("board_rev", 1); + // else + // env_set("board_rev", unknown); + + // if (strlen(ep->serial) != 0) + env_set("board_serial", 1); + // else + // env_set("board_serial", unknown); }
kindly help
regards,
Pawan