arjun.a
range data
5aefcf4
raw
history blame
13.6 kB
Ticket Name: Linux/TDA2: spl_load_file_fat: error reading file dra7-ipu1-fw.lzop, err - -1
Query Text:
Part Number: TDA2 Other Parts Discussed in Thread: PMP Tool/software: Linux Hi, I did installation using this binary PROCESSOR_SDK_VISION_03_04_00_00_setuplinux.bin I just did a board bring up of TDA2Px referring VisionSDK_Linux_UserGuide.pdf. After build, by default uenv.txt had fdtfile=dra7-evm-infoadas.dtb, so I changed it to fdtfile=dra76-evm-infoadas.dtb and I was able to boot the system. But I have few errors in the Log. Can you please guide me to solve this errors. U-Boot SPL 2016.05-00010-g9551b3d (Sep 03 2018 - 13:37:29) DRA762-GP ES1.0 no pinctrl for hs200_1_8v no pinctrl for ddr_1_8v *** Warning - MMC init failed, using default environment Trying to boot from MMC1 reading dra7-ipu2-fw.lzop reading dra7-dsp1-fw.lzop reading dra7-dsp2-fw.lzop reading dra7-ipu1-fw.lzop spl_load_file_fat: error reading file dra7-ipu1-fw.lzop, err - -1 (Build didn't generate this file) spl: error reading image dra7-ipu1-fw.lzop, err - -1 Error loading remotecore IPU1!,Continuing with boot ... spl: falcon_args_file not set in environment, falling back to default reading single-stage-boot.dtb spl_load_image_fat_os: error reading image single-stage-boot.dtb, err - -1 (Build didn't generate this file) reading u-boot.img reading u-boot.img reading u-boot.img reading u-boot.img U-Boot 2016.05-00010-g9551b3d (Sep 03 2018 - 13:37:29 +0900) CPU : DRA762-GP ES1.0 Model: TI DRA762 EVM Board: DRA76x EVM REV A.2 DRAM: 4 GiB MMC: mmc@4809c000: fail to find sdr104 mode FDT_ERR_NOTFOUND no pinctrl for sdr104 mmc@4809c000: fail to find ddr50 mode FDT_ERR_NOTFOUND no pinctrl for ddr50 mmc@4809c000: fail to find sdr50 mode FDT_ERR_NOTFOUND no pinctrl for sdr50 mmc@4809c000: fail to find sdr25 mode FDT_ERR_NOTFOUND no pinctrl for sdr25 mmc@4809c000: fail to find sdr12 mode FDT_ERR_NOTFOUND no pinctrl for sdr12 OMAP SD/MMC: 0, OMAP SD/MMC: 1 *** Warning - MMC init failed, using default environment ERROR: invalid mmc device at arch/arm/cpu/armv7/omap-common/utils.c:193/mmc_get_part_size() Warning: fastboot.userdata_size: unable to calc SCSI: SATA link 0 timeout. AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst scanning bus for devices... Found 0 device(s). Net: Warning: ethernet@48484000 using MAC address from ROM eth0: ethernet@48484000 Hit any key to stop autoboot: 0 ## Error: "board_findfdt" not defined switch to partitions #0, OK mmc0 is current device SD/MMC found on device 0 reading boot.scr ** Unable to read file boot.scr ** reading uEnv.txt 166 bytes read in 2 ms (81.1 KiB/s) Loaded env from uEnv.txt Importing environment from mmc0 ... switch to partitions #0, OK mmc0 is current device SD/MMC found on device 0 3559664 bytes read in 166 ms (20.4 MiB/s) 107957 bytes read in 11 ms (9.4 MiB/s) Booting from mmc0 ... Kernel image @ 0x82000000 [ 0x000000 - 0x3650f0 ] ## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Loading Device Tree to 8ffe2000, end 8ffff5b4 ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 . [ OK ] Started Create list of required sta...ce nodes for the current kernel. [FAILED] Failed to start Load Kernel Modules. See 'systemctl status systemd-modules-load.service' for details. . [ OK ] Reached target System Time Synchronized. Starting Synchronize System and HW clocks... [FAILED] Failed to start Synchronize System and HW clocks. See 'systemctl status sync-clocks.service' for details. . [ 8.944970] omap-iommu 55082000.mmu: 55082000.mmu: version 2.1 [ 8.973304] ------------[ cut here ]------------ [ 8.977956] WARNING: CPU: 0 PID: 219 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x25c/0x368() [ 8.980353] net eth0: phy found : id is : 0x2000a231 [ 8.992452] 44000000.ocp:L3 Custom Error: MASTER MPU TARGET L4_PER1_P3 (Idle): Data Access in Supervisor mode during Functional access [ 8.993204] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 9.010431] Modules linked in: dwc3(+) udc_core virtio_rpmsg_bus(+) ahci_platform libahci_platform pvrsrvkm(O) libahci libata omap_aes_driver extcon_usb_gpio dwc3_omap omap_sham scsi_mod extcon omap_des omap_rng rng_core omap_remoteproc remoteproc m_can virtio can_dev virtio_ring sch_fq_codel [ 9.036600] CPU: 0 PID: 219 Comm: systemd-udevd Tainted: G O 4.4.84-00027-g018eb62 #1 [ 9.045590] Hardware name: Generic DRA74X (Flattened Device Tree) [ 9.051703] Backtrace: [ 9.054167] [<c0013b1c>] (dump_backtrace) from [<c0013d18>] (show_stack+0x18/0x1c) [ 9.061765] r7:c02e0130 r6:200f0193 r5:00000000 r4:c0953590 [ 9.067470] [<c0013d00>] (show_stack) from [<c02b39a8>] (dump_stack+0x8c/0xa0) [ 9.074719] [<c02b391c>] (dump_stack) from [<c003581c>] (warn_slowpath_common+0x88/0xb8) [ 9.082837] r7:c02e0130 r6:00000093 r5:00000009 r4:ed8a3748 [ 9.088541] [<c0035794>] (warn_slowpath_common) from [<c0035884>] (warn_slowpath_fmt+0x38/0x40) [ 9.097270] r8:00000017 r7:c0848844 r6:00000000 r5:c0848904 r4:c08489a8 [ 9.104028] [<c0035850>] (warn_slowpath_fmt) from [<c02e0130>] (l3_interrupt_handler+0x25c/0x368) [ 9.112931] r3:ef208a00 r2:c08489a8 [ 9.116527] r4:80080003 [ 9.119075] [<c02dfed4>] (l3_interrupt_handler) from [<c0082048>] (handle_irq_event_percpu+0xb4/0x160) [ 9.128414] r10:c0982c4b r9:ef1f9240 r8:00000017 r7:00000000 r6:00000000 r5:ef1f92a0 [ 9.136300] r4:ef208f00 [ 9.138847] [<c0081f94>] (handle_irq_event_percpu) from [<c0082134>] (handle_irq_event+0x40/0x64) [ 9.147751] r10:00000002 r9:ef250a00 r8:ef008000 r7:00000000 r6:c093bc84 r5:ef1f92a0 [ 9.155639] r4:ef1f9240 [ 9.158187] [<c00820f4>] (handle_irq_event) from [<c0085478>] (handle_fasteoi_irq+0xc0/0x194) [ 9.166744] r7:00000000 r6:c093bc84 r5:ef1f92a0 r4:ef1f9240 [ 9.172448] [<c00853b8>] (handle_fasteoi_irq) from [<c0081674>] (generic_handle_irq+0x2c/0x3c) [ 9.181090] r7:00000000 r6:ed8a3a20 r5:00000017 r4:c093140c [ 9.186796] [<c0081648>] (generic_handle_irq) from [<c008194c>] (__handle_domain_irq+0x64/0xbc) [ 9.195529] [<c00818e8>] (__handle_domain_irq) from [<c00094f0>] (gic_handle_irq+0x40/0x7c) [ 9.203908] r9:ef250a00 r8:fa213000 r7:fa212000 r6:ed8a3908 r5:fa21200c r4:c09368e4 [ 9.211708] [<c00094b0>] (gic_handle_irq) from [<c0014854>] (__irq_svc+0x54/0x90) [ 9.219216] Exception stack(0xed8a3908 to 0xed8a3950) [ 9.224287] 3900: 00000000 c09862c0 00000000 00000000 00000202 00000012 [ 9.232496] 3920: ed8a2000 00000000 ef008000 ef250a00 00000002 ed8a39b4 ed8a39b8 ed8a3958 [ 9.240702] 3940: c00399e4 c0039550 600f0113 ffffffff [ 9.245768] r9:ef250a00 r8:ef008000 r7:ed8a393c r6:ffffffff r5:600f0113 r4:c0039550 [ 9.253571] [<c00394bc>] (__do_softirq) from [<c00399e4>] (irq_exit+0xbc/0x11c) [ 9.260904] r10:00000002 r9:ef250a00 r8:ef008000 r7:00000000 r6:00000000 r5:00000012 [ 9.268793] r4:ffffe000 [ 9.271341] [<c0039928>] (irq_exit) from [<c0081950>] (__handle_domain_irq+0x68/0xbc) [ 9.279197] r5:00000012 r4:c093140c [ 9.282795] [<c00818e8>] (__handle_domain_irq) from [<c00094f0>] (gic_handle_irq+0x40/0x7c) [ 9.291178] r9:ef250a00 r8:fa213000 r7:fa212000 r6:ed8a3a20 r5:fa21200c r4:c09368e4 [ 9.298979] [<c00094b0>] (gic_handle_irq) from [<c0014854>] (__irq_svc+0x54/0x90) [ 9.306486] Exception stack(0xed8a3a20 to 0xed8a3a68) [ 9.311555] 3a20: ef247674 600f0013 00000001 0000000e 00000000 00000004 ef247674 600f0013 [ 9.319764] 3a40: 00000000 ef250a00 00000002 ed8a3a7c ed8a3a80 ed8a3a70 c03f2bc8 c0688304 [ 9.327971] 3a60: 200f0013 ffffffff [ 9.331469] r9:ef250a00 r8:00000000 r7:ed8a3a54 r6:ffffffff r5:200f0013 r4:c0688304 [ 9.339278] [<c06882dc>] (_raw_spin_unlock_irqrestore) from [<c03f2bc8>] (__pm_runtime_idle+0x74/0x84) [ 9.348623] [<c03f2b54>] (__pm_runtime_idle) from [<c0032814>] (_omap_dm_timer_request+0x10c/0x31c) [ 9.357700] r7:00000000 r6:ef67cb78 r5:00000003 r4:ef3da190 [ 9.363405] [<c0032708>] (_omap_dm_timer_request) from [<c0032a84>] (omap_dm_timer_request_by_node+0x1c/0x28) [ 9.373354] r9:ef250a00 r8:ef67cb78 r7:ee70fa78 r6:ef67cb78 r5:ed9245d0 r4:00000000 [ 9.381161] [<c0032a68>] (omap_dm_timer_request_by_node) from [<c002f68c>] (omap_rproc_request_timer+0x14/0x88) [ 9.391296] [<c002f678>] (omap_rproc_request_timer) from [<bf0b6360>] (omap_rproc_enable_timers+0xd8/0x274 [omap_remoteproc]) [ 9.402641] r7:ee70fa78 r6:c094575c r5:ed9245d0 r4:00000000 [ 9.408346] [<bf0b6288>] (omap_rproc_enable_timers [omap_remoteproc]) from [<bf0b6ba4>] (omap_rproc_start+0x90/0x1a0 [omap_remoteproc]) [ 9.420563] r10:d9300000 r9:ef250a00 r8:c094574c r7:ee70f800 r6:00000000 r5:ef250a10 [ 9.428449] r4:ee70fa78 [ 9.431003] [<bf0b6b14>] (omap_rproc_start [omap_remoteproc]) from [<bf069d14>] (rproc_boot+0x45c/0x55c [remoteproc]) [ 9.441650] r9:00000000 r8:ee70f820 r7:ee70f9ac r6:ee70f9b4 r5:00000000 r4:ee70f800 [ 9.449463] [<bf0698b8>] (rproc_boot [remoteproc]) from [<bf06aae4>] (rproc_virtio_find_vqs+0x18c/0x1f0 [remoteproc]) [ 9.460112] r10:ee70f820 r9:00000002 r8:bf247d5c r7:ed611c10 r6:ed611df0 r5:ed8a3c44 [ 9.468001] r4:00000002 [ 9.470558] [<bf06a958>] (rproc_virtio_find_vqs [remoteproc]) from [<bf2472f0>] (rpmsg_probe+0xbc/0x474 [virtio_rpmsg_bus]) [ 9.481727] r10:00000000 r9:00000000 r8:ed611c10 r7:ed8a3c38 r6:ee70f800 r5:ed838280 [ 9.489614] r4:bf06a958 [ 9.492167] [<bf247234>] (rpmsg_probe [virtio_rpmsg_bus]) from [<bf03d85c>] (virtio_dev_probe+0x230/0x310 [virtio]) [ 9.502640] r10:00000000 r9:00000000 r8:00000000 r7:ed611c20 r6:ed611c10 r5:00000000 [ 9.510525] r4:00000000 [ 9.513074] [<bf03d62c>] (virtio_dev_probe [virtio]) from [<c03e9564>] (driver_probe_device+0x204/0x2f8) [ 9.522588] r10:00000000 r9:ee7e3188 r8:00000013 r7:bf247dfc r6:00000000 r5:ed611c20 [ 9.530477] r4:c09bfa44 [ 9.533022] [<c03e9360>] (driver_probe_device) from [<c03e96ec>] (__driver_attach+0x94/0x98) [ 9.541489] r9:ee7e3188 r8:1181ce9c r7:00000000 r6:ed611c54 r5:bf247dfc r4:ed611c20 [ 9.549295] [<c03e9658>] (__driver_attach) from [<c03e77ec>] (bus_for_each_dev+0x70/0xa4) [ 9.557500] r7:00000000 r6:c03e9658 r5:bf247dfc r4:00000000 [ 9.563205] [<c03e777c>] (bus_for_each_dev) from [<c03e8e50>] (driver_attach+0x24/0x28) [ 9.571238] r6:bf03dd58 r5:edb93380 r4:bf247dfc [ 9.575888] [<c03e8e2c>] (driver_attach) from [<c03e8a8c>] (bus_add_driver+0x1a8/0x220) [ 9.583924] [<c03e88e4>] (bus_add_driver) from [<c03e9e8c>] (driver_register+0x80/0x100) [ 9.592042] r7:ee7e3280 r6:c09396f0 r5:bf24b000 r4:bf247dfc [ 9.597751] [<c03e9e0c>] (driver_register) from [<bf03daa4>] (register_virtio_driver+0x30/0x44 [virtio]) [ 9.607264] r5:bf24b000 r4:00000000 [ 9.610868] [<bf03da74>] (register_virtio_driver [virtio]) from [<bf24b044>] (rpmsg_init+0x44/0x84 [virtio_rpmsg_bus]) [ 9.621610] [<bf24b000>] (rpmsg_init [virtio_rpmsg_bus]) from [<c000988c>] (do_one_initcall+0x98/0x1e4) [ 9.631037] r5:bf24b000 r4:c09396f0 [ 9.634636] [<c00097f4>] (do_one_initcall) from [<c00d0c70>] (do_init_module+0x68/0x398) [ 9.642754] r10:bf247f00 r9:ee7e3188 r8:1181ce9c r7:00000001 r6:ee7e3240 r5:00000001 [ 9.650639] r4:bf247f00 [ 9.653188] [<c00d0c08>] (do_init_module) from [<c00ad660>] (load_module+0x1df8/0x2068) [ 9.661219] r6:ee7e3180 r5:00000001 r4:ed8a3f44 [ 9.665869] [<c00ab868>] (load_module) from [<c00adabc>] (SyS_finit_module+0x88/0x98) [ 9.673726] r10:00000000 r9:ed8a2000 r8:c000fe24 r7:0000017b r6:b6e60d90 r5:00000007 [ 9.681613] r4:00000000 [ 9.684161] [<c00ada34>] (SyS_finit_module) from [<c000fc60>] (ret_fast_syscall+0x0/0x3c) [ 9.692367] r6:00000000 r5:00495928 r4:00000000 [ 9.697017] ---[ end trace 00f62522afd768ec ]--- [ 9.704279] remoteproc0: remote processor 55020000.ipu is now up [ 9.719893] virtio_rpmsg_bus virtio1: rpmsg host is online Starting Save/Restore Sound Card State...[ 9.728101] remoteproc1: powering up 40800000.dsp [ 9.744669] remoteproc1: Booting fw image dra7-dsp1-fw.xe66, size 5583583 Can you please what is the reason for above crash. Regards, Sukesh.R
Responses:
Hi Sukesh, Could you please let us know 1. What MAKECONFIG you build for ? 2. Are you booting from SD card (If yes, Check if your PIN setting is for SD boot mode or not) ? Regards Surya
Hi Surya, MAKECONFIG=tda2px_evm_linux_all And SD card boot. It is booting and apps also running. Regards, Sukesh.R
Hi Sukesh, Addressing the issues raised with the logs: spl_load_file_fat: error reading file dra7-ipu1-fw.lzop, err - -1 (Build didn't generate this file) spl_load_image_fat_os: error reading image single-stage-boot.dtb, err - -1 (Build didn't generate this file) This isn't an error. The build does generate the lzop files, it resides in the lib/firmware/ folder of your target file-system. The boot-loader tries to search for these files in the boot partition and doesn't find it, hence it throws the error. Regarding the single-stage-boot.dtb, when early boot late-attach is enabled while building kernel, there is a script in vision-SDK (early-boot-update.sh), which copies relevant files to the boot partition, and the dtb which is used is renamed as single-stage-boot.dtb. The error above could be because of the following: 1. Are you using an SD boot with the file-system also present in the SD card? If yes, please set the switch settings to production SD mode ( SYSBOOT 0-15: 00001100 10000001) 2. Please run the make linux and make linux install commands and flash the card once again. The error you're noticing is because there is a missmatch between the kernel image used (/boot/zImage) and the modules built for the kernel (/lib/modules folder). I would also recommend halting at u-boot and running the below commands and then rebooting the board: => env default -fa => saveenv Regards Shravan