-
Notifications
You must be signed in to change notification settings - Fork 206
Open
Description
Checklist
- Checked the issue tracker for similar issues to ensure this is not a duplicate
- Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
- Tested with the latest version to ensure the issue hasn't been fixed
How often does this bug occurs?
always
Expected behavior
After loading, it can interact normally with esp32c6 and wifi can be used normally
Actual behavior (suspected bug)
When using esp_hosted_fg, an error occurs when loading esp32_sdio.ko. The mcu is esp32c6, and a timeout occurs when reading the register while loading the driver
Error logs or terminal output
[root@Ingenic-uc1_1:~]# dmesg
[ 0.000000] Linux version 4.4.94 (root@hisi) (gcc version 7.2.0 (Ingenic Linux-Release5.1.9-Default_xburst2_uclibc0.9.33.2 Fix: uclibc popen and pclose 2023.08-15 10:02:56) ) #11 SMP PREEMPT Thu Oct 16 03:21:12 UTC 2025
[ 0.000000] Ingenic Kernel-4.4.94 version H20240807a
[ 0.000000] CPU0 RESET ERROR PC:3277BFFE
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00132100 (Ingenic XBurst@II)
[ 0.000000] FPU revision is: 00f32100
[ 0.000000] MIPS: machine is ingenic,marmot
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 0072f000 @ 00010000 (usable)
[ 0.000000] memory: 00041000 @ 0073f000 (usable after init)
[ 0.000000] User-defined physical RAM map:
[ 0.000000] memory: 06400000 @ 00000000 (usable)
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x00000000063fffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x00000000063fffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000063fffff]
[ 0.000000] On node 0 totalpages: 25600
[ 0.000000] free_area_init_node: node 0, pgdat 8073c2c0, node_mem_map 81014680
[ 0.000000] Normal zone: 200 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 25600 pages, LIFO batch:7
[ 0.000000] [SMP] Slave CPU(s) 1 available.
[ 0.000000] Primary instruction cache 32kB, VIPT, 8-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 8-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] Unified secondary cache 128kB 8-way, linesize 64 bytes.
[ 0.000000] PERCPU: Embedded 11 pages/cpu @81117000 s12624 r8192 d24240 u45056
[ 0.000000] pcpu-alloc: s12624 r8192 d24240 u45056 alloc=11*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping off. Total pages: 25400
[ 0.000000] Kernel command line: console=ttyS1,115200n8 mem=100M@0x0 rmem=128M@0x6400000 nmem=28M@0xE400000 init=/linuxrc ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs rw mtdparts=sfc0_nand:1M(uboot),3M(kernel),20M(root),-(appfs) lpj=11968512
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 93252K/102400K available (5482K kernel code, 293K rwdata, 1572K rodata, 260K init, 156K bss, 9148K reserved, 0K cma-reserved)
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] parse cpu-intc-iomap, intc define in dt is too large!
[ 0.000000] core irq setup finished and percpu irq inited! NR_IRQS = 419
[ 0.000000] t41 Clock Power Management Unit init sucess!
[ 0.000000] parse cpu-ost-iomap, ost number define in dt is too large!
[ 0.000000] percpu cpu_num:0 timerevent init
[ 0.000000] clockevents_config_and_register success.
[ 0.000000] clocksource: jz_clocksource: mask: 0x7fffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000000] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000402] Console: colour dummy device 80x25
[ 0.004842] Calibrating delay loop (skipped) preset value.. 2393.70 BogoMIPS (lpj=11968512)
[ 0.013303] pid_max: default: 32768 minimum: 301
[ 0.018171] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.024803] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.032520] [SMP] Prepare 2 cores., cpu: 0
[ 0.115993] [SMP] Booting CPU1 ...
[ 0.119364] CPU1 RESET ERROR PC:3EBE3E3E
[ 0.119379] Primary instruction cache 32kB, VIPT, 8-way, linesize 32 bytes.
[ 0.119384] Primary data cache 32kB, 8-way, VIPT, no aliases, linesize 32 bytes
[ 0.119388] Unified secondary cache 128kB 8-way, linesize 64 bytes.
[ 0.119447] percpu cpu_num:1 timerevent init
[ 0.119461] clockevents_config_and_register success.
[ 0.119466] CPU1 revision is: 00132100 (Ingenic XBurst@II)
[ 0.119468] FPU revision is: 00f32100
[ 0.119690] Brought up 2 CPUs
[ 0.166478] devtmpfs: initialized
[ 0.174244] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.184225] futex hash table entries: 512 (order: 2, 16384 bytes)
[ 0.190499] pinctrl core: initialized pinctrl subsystem
[ 0.196182] NET: Registered protocol family 16
[ 0.205354] ingenic pinctrl 10010000.pinctrl: 4 gpio chip add success, pins 128
[ 0.213393] ingenic pinctrl 10010000.pinctrl: ingenic pinctrl probe success
[ 0.226518] dmmu_init 807 PTRS_PER_PTE = 1024
[ 0.312941] ingenic-dma 13420000.dma: INGENIC SoC DMA initialized
[ 0.319983] SCSI subsystem initialized
[ 0.324497] usbcore: registered new interface driver usbfs
[ 0.330200] usbcore: registered new interface driver hub
[ 0.335674] usbcore: registered new device driver usb
[ 0.340944] inno phy probe success
[ 0.346048] Bluetooth: Core ver 2.21
[ 0.349815] NET: Registered protocol family 31
[ 0.354251] Bluetooth: HCI device and connection manager initialized
[ 0.360762] Bluetooth: HCI socket layer initialized
[ 0.365638] Bluetooth: L2CAP socket layer initialized
[ 0.370837] Bluetooth: SCO socket layer initialized
[ 0.377170] clocksource: Switched to clocksource jz_clocksource
[ 0.401867] NET: Registered protocol family 2
[ 0.406651] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.413732] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.420181] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.426604] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.432545] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.439064] NET: Registered protocol family 1
[ 0.443727] RPC: Registered named UNIX socket transport module.
[ 0.449716] RPC: Registered udp transport module.
[ 0.454422] RPC: Registered tcp transport module.
[ 0.459230] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.468285] squashfs: version 4.0 (2021/14/49) Phillip Lougher
[ 0.474583] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.480905] yaffs: yaffs Installing.
[ 0.487756] jitterentropy: Initialization failed with host not compliant with requirements: 2
[ 0.496875] io scheduler noop registered
[ 0.500850] io scheduler deadline registered
[ 0.505120] io scheduler cfq registered (default)
[ 0.511764] Ingenic drawbox probe sucess!
[ 0.516097] vpu_register
[ 0.518667] helix probe success
[ 0.522655] dma_malloc of jzaip_t is ok! size = 1024 Bytes
[ 0.528608] dma_malloc of jzaip_f is ok! size = 106600 Bytes
[ 0.534712] dma_malloc of jzaip_p is ok! size = 221184 Bytes
[ 0.540862] @@@ AIP driver init sucess (Version: v20240103) @@@
[ 0.547401] 10031000.serial: ttyS1 at MMIO 0x10031000 (irq = 58, base_baud = 7291666) is a uart1
[ 0.556295] console [ttyS1] enabled
[ 0.563529] bootconsole [early0] disabled
[ 0.574329] ingenic SADC driver registeres over!
[ 0.579894] ingenic sadc aux probe success
[ 0.584576] ingenic sadc aux probe success
[ 0.589336] ingenic sadc aux probe success
[ 0.594007] ingenic sadc aux probe success
[ 0.600733] ingenic-tcu 10002000.tcu: Ingenic TCU driver register completed ret = 0
[ 0.610178] ingenic-sfc 13440000.sfc0: Found Supported nand device, id = 0x2c24,name = MT29F2G01A
[ 0.619677] use nand common get feature interface!
[ 0.624785] Scanning device for bad blocks
[ 0.632844] random: nonblocking pool is initialized
[ 0.837770] ingenic-sfc 13440000.sfc0: NOTICE: this flash haven`t param, magic_num:3040506
[ 0.846555] ingenic-sfc 13440000.sfc0: read partition from flash failed!
[ 0.853701] ingenic-sfc 13440000.sfc0: read mtdparts!
[ 0.859090] 4 cmdlinepart partitions found on MTD device sfc0_nand
[ 0.865653] Creating 4 MTD partitions on "sfc0_nand":
[ 0.871042] 0x000000000000-0x000000100000 : "uboot"
[ 0.877753] 0x000000100000-0x000000400000 : "kernel"
[ 0.884424] 0x000000400000-0x000001800000 : "root"
[ 0.890973] 0x000001800000-0x000010000000 : "appfs"
[ 0.897771] ingenic-sfc 13440000.sfc0: SPI NAND MTD LOAD OK
[ 0.904550] Bus Mode Reg after reset: 0x00020101, cnt=0
[ 0.913714] libphy: ingenic_mii_bus: probed
[ 0.998106] dwc-mac 134b0000.mac: Ingenic on-chip Ethernet MAC driver, Version 1.0
[ 1.006516] dwc2 13500000.otg: Configuration mismatch. Forcing host mode
[ 1.013802] OTG CLK 1f8f5fc4
[ 1.018187] CPCCR CLK 1580
[ 1.230139] dwc2 13500000.otg: DWC OTG Controller
[ 1.235166] dwc2 13500000.otg: new USB bus registered, assigned bus number 1
[ 1.242747] dwc2 13500000.otg: irq 29, io mem 0x00000000
[ 1.249429] hub 1-0:1.0: USB hub found
[ 1.253465] hub 1-0:1.0: 1 port detected
[ 1.258368] usbcore: registered new interface driver uas
[ 1.264211] usbcore: registered new interface driver usb-storage
[ 1.270809] usbcore: registered new interface driver ums_eneub6250
[ 1.277761] usbcore: registered new interface driver usbserial
[ 2.370225] i8042: i8042 controller selftest timeout
[ 2.376573] ingenic-i2c 10050000.i2c: register i2c0 success.
[ 2.383924] usbcore: registered new interface driver btusb
[ 2.389829] Bluetooth: Generic Bluetooth SDIO driver ver 0.1
[ 2.396129] sdhci: Secure Digital Host Controller Interface driver
[ 2.402756] sdhci: Copyright(c) Pierre Ossman
[ 2.407592] ingenic,sdhci 13070000.msc: H20240807a
[ 2.457207] mmc0: SDHCI controller on ingenic-sdhci [13070000.msc] using ADMA
[ 2.465055] usbcore: registered new interface driver usbhid
[ 2.471062] usbhid: USB HID core driver
[ 2.479672] Netfilter messages via NETLINK v0.30.
[ 2.491436] ip_set: protocol 6
[ 2.497388] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 2.503156] NET: Registered protocol family 17
[ 2.510028] Bluetooth: RFCOMM TTY layer initialized
[ 2.519709] Bluetooth: RFCOMM socket layer initialized
[ 2.525232] Bluetooth: RFCOMM ver 1.11
[ 2.529301] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 2.534946] Bluetooth: BNEP filters: protocol
[ 2.539712] Bluetooth: BNEP socket layer initialized
[ 2.546758] soc_vpu probe success,version:1.0.0-03203fd46d
[ 2.557472] mmc0: queuing unknown CIS tuple 0x01 (3 bytes)
[ 2.563654] ubi0: attaching mtd2
[ 2.574392] mmc0: queuing unknown CIS tuple 0x1a (5 bytes)
[ 2.583471] mmc0: queuing unknown CIS tuple 0x1b (8 bytes)
[ 2.592727] mmc0: queuing unknown CIS tuple 0x80 (1 bytes)
[ 2.598712] mmc0: queuing unknown CIS tuple 0x81 (1 bytes)
[ 2.604614] mmc0: queuing unknown CIS tuple 0x82 (1 bytes)
[ 2.607812] ubi0: scanning is finished
[ 2.616647] mmc0: queuing unknown CIS tuple 0x80 (1 bytes)
[ 2.622967] mmc0: queuing unknown CIS tuple 0x81 (1 bytes)
[ 2.623139] ubi0: attached mtd2 (name "root", size 20 MiB)
[ 2.623144] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 2.623147] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 2.623150] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 2.623153] ubi0: good PEBs: 160, bad PEBs: 0, corrupted PEBs: 0
[ 2.623156] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 2.623161] ubi0: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 19779144
[ 2.623164] ubi0: available PEBs: 33, total reserved PEBs: 127, PEBs reserved for bad PEB handling: 40
[ 2.623551] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[ 2.623669] ubi0: background thread "ubi_bgt0d" started, PID 518
[ 2.630307] evbug: Connected device: input0 (gpio_keys at gpio-keys/input0)
[ 2.703736] mmc0: queuing unknown CIS tuple 0x82 (1 bytes)
[ 2.709826] mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
[ 2.715711] mmc0: new high speed SDIO card at address 0001
[ 2.756436] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 533
[ 2.814710] UBIFS (ubi0:0): start fixing up free space
[ 3.403798] UBIFS (ubi0:0): free space fixup complete
[ 3.436540] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 3.444461] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 3.455016] UBIFS (ubi0:0): FS size: 8888320 bytes (8 MiB, 70 LEBs), journal size 1650688 bytes (1 MiB, 13 LEBs)
[ 3.465837] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[ 3.472046] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID E9C84B5D-11B1-4754-BAC6-49731CF914E1, small LPT model
[ 3.484870] UBIFS (ubi0:0): full atime support is enabled.
[ 3.490774] VFS: Mounted root (ubifs filesystem) on device 0:14.
[ 3.497650] devtmpfs: mounted
[ 3.500951] Freeing unused kernel memory: 260K
[ 3.722910] jffs2: inconsistent device description
[ 17.605556] esp32_sdio: esp_probe: ESP network device detected
[ 17.817429] esp32_sdio: init_context: clockspeed = 5MHz !!!!!!!!!
[ 19.226434] esp32_sdio: init_context: Read: PACKET_LEN reg 1073041504 - Err[-145]
[ 19.234636] esp_sdio: probe of mmc0:0001:1 failed with error -145
[root@Ingenic-uc1_1:~]#Steps to reproduce the behavior
An error will occur when loading esp32_sdio.ko after the device starts up
Project release version
v1.0.0.0.0
System architecture
other (details in Additional context)
Operating system
Linux
Operating system version
Ubuntu 18.04
Shell
ZSH
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels