死鱼一条

死鱼一条

0个粉丝

3

问答

0

专栏

0

资料

死鱼一条  发布于  2026-08-08 20:53:43
采纳率 0%
3个问答
163

Hi3516CV610 + 5.10.221 + 8188eu 8188eu驱动老是炸

boot table board switch:0x00000000
boot table version :V0.2
boot table build time :2025/10/22 16:10:35
boot table file name :Hi3516CV610-DMEB_4L_DDR3_2133M_128MB_16bit-A7_950M_QFN.xlsm
DDR size: 0x00000080

System startup

Uncompress Ok!

U-Boot 2022.07 (Oct 22 2025 - 16:10:53 +0800)hi3516cv610-debug

DRAM: Relocation Offset is: 02785000
Relocating to 43f85000, new gd at 43b44ed0, sp at 43b44eb0
Core: 1 devices, 1 uclasses
SPI Nor: Boot Media isn’t SPI Nor
NAND: fmc_ip_ver_check(32): Check Flash Memory Controller v100 …fmc_ip_ver_check(38): Found
SPI Nand ID Table Version 2.7
SPI Nand(cs 0) ID: 0xef 0xaa 0x21 Name:”W25N01GVZEIG”
Block:128KB Page:2KB OOB:64B ECC:4bit/512
Chipsize:128 MiB
Loading Environment from SPIFlash… Boot Media isn’t SPI Nor
* Warning - spi_flash_probe() failed, using default environment

Loading Environment from NAND… OK
In: serial
Out: serial
Err: serial

Net: eth0
Error: eth0 address not set.

Hit any key to stop autoboot: 0

NAND read: device 0 offset 0x100000, size 0x400000
4194304 bytes read: OK

Loading kernel from FIT Image at 41000000 …

Using ‘config-1’ configuration
Trying ‘linux_kernel’ kernel subimage
Description: Linux
Type: Kernel Image
Compression: uncompressed
Data Start: 0x41003fa4
Data Size: 3796816 Bytes = 3.6 MiB
Architecture: ARM
OS: Linux
Load Address: 0x40018000
Entry Point: 0x40018000

Loading fdt from FIT Image at 41000000 …

Using ‘config-1’ configuration
Trying ‘fdt-1’ fdt subimage
Description: dtb
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x410000b0
Data Size: 15985 Bytes = 15.6 KiB
Architecture: ARM
Load Address: 0x40000000
Loading fdt from 0x410000b0 to 0x40000000
Booting using the fdt blob at 0x40000000

Loading loadables from FIT Image at 41000000 …

Trying ‘linux_kernel’ loadables subimage
Description: Linux
Type: Kernel Image
Compression: uncompressed
Data Start: 0x41003fa4
Data Size: 3796816 Bytes = 3.6 MiB
Architecture: ARM
OS: Linux
Load Address: 0x40018000
Entry Point: 0x40018000
Loading loadables from 0x41003fa4 to 0x40018000

Loading loadables from FIT Image at 41000000 …

Trying ‘fdt-1’ loadables subimage
Description: dtb
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x410000b0
Data Size: 15985 Bytes = 15.6 KiB
Architecture: ARM
Load Address: 0x40000000
Loading loadables from 0x410000b0 to 0x40000000
Loading Kernel Image
Using Device Tree in place at 40000000, end 40006e70

Starting kernel …

Booting Linux on physical CPU 0x0
Linux version 5.10.221 (yym@compileserver) (arm-v01c02-linux-musleabi-gcc (musl-1.2.3 linux-5.10 CS71.2.10.5.B002 2025-03-05 12:00:00) 10.3.0, GNU ld (GNU Binutils) 2.41) #1 SMP Wed Oct 22 16:11:12 CST 2025
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt: Machine model: Hisilicon Hi3516CV610 DEMO Board
Memory policy: Data cache writealloc
Zone ranges:
Normal [mem 0x0000000040000000-0x00000000427fffff]
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x0000000040000000-0x00000000427fffff]
Initmem setup node 0 [mem 0x0000000040000000-0x00000000427fffff]
percpu: Embedded 14 pages/cpu s26828 r8192 d22324 u57344
Built 1 zonelists, mobility grouping on. Total pages: 10160
Kernel command line: mem=40m console=ttyAMA0,115200 clk_ignore_unused root=ubi0:ubifs rootfstype=ubifs rw ubi.mtd=3 mtdparts=nand:512K(boot),512K(env),4M(kernel),96M(rootfs)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
mem X]׫)�+�� stack:off, heap alloc:on, heap free:off
Memory: 32808K/40960K available (4096K kernel code, 228K rwdata, 1520K rodata, 1024K init, 177K bss, 8152K reserved, 0K cma-reserved)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
rcu: Hierarchical RCU implementation.
rcu: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
Tracing variant of Tasks RCU enabled.
rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
arch_timer: cp15 timer(s) running at 24.00MHz (phys).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
Switching to timer-based delay loop, resolution 41ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
CPU: Testing write buffer coherency: ok
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x40100000 - 0x40100038
rcu: Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs …
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
smp: Brought up 1 node, 2 CPUs
SMP: Total of 2 processors activated (96.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 512 (order: 3, 32768 bytes, linear)
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
Serial: AMBA PL011 UART driver
SCSI subsystem initialized
ssp-pl022 11070000.spi: ARM PL022 driver, device ID: 0x00800022
ssp-pl022 11070000.spi: deassert reset
ssp-pl022 11071000.spi: ARM PL022 driver, device ID: 0x00800022
ssp-pl022 11071000.spi: deassert reset
usb_ver: 5.10 - 2.3
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
mc: Linux media interface: v0.10
videodev: Linux video capture interface: v2.00
[UPS-PHY][ups_phy_module_init]registered new ups phy driver
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.22
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
clocksource: Switched to clocksource arch_sys_counter
NET: Registered protocol family 2
IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Initialise system trusted keyrings
workingset: timestamp_bits=30 max_order=14 bucket_order=0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
Key type asymmetric registered
Asymmetric key parser ‘x509’ registered
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
brd: module loaded
loop: module loaded
bsp-sfc bsp_spi_nor.0: SPI Nor ID Table Version 1.2
bsp-sfc bsp_spi_nor.0: unrecognized Manufacturer ID
bsp-sfc bsp_spi_nor.0: spi nor register fail!
bsp-sfc: probe of bsp_spi_nor.0 failed with error -2
SPI Nand ID Table Version 2.7
SPI Nand(cs 0) ID: 0xef 0xaa 0x21
nand: device found, Manufacturer ID: 0xef, Chip ID: 0xaa
nand: Winbond W25N01GVZEIG
nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
Nand(Auto):
OOB:64B
ECC:4bit/512
nand: NAND_ECC_ENGINE_TYPE_NONE selected by board driver. This is not recommended!
4 cmdlinepart partitions found on MTD device nand
Creating 4 MTD partitions on “nand”:
0x000000000000-0x000000080000 : “boot”
0x000000080000-0x000000100000 : “env”
0x000000100000-0x000000500000 : “kernel”
0x000000500000-0x000006500000 : “rootfs”
Get ld_trim_compensation -1 from dts.
FEPHY:addr=0, la_am=0xc, ldo_am=0x5, r_tuning=0x24
attached port 0 PHY 0 to driver Generic PHY
usbcore: registered new interface driver asix
usbcore: registered new interface driver ax88179_178a
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver rndis_host
usbcore: registered new interface driver cdc_ncm
usbcore: registered new interface driver usb-storage
bsp_rtc 11110000.rtc: registered as rtc0
bsp_rtc 11110000.rtc: setting system clock to 1970-01-06T16:35:33 UTC (491733)
bsp_rtc 11110000.rtc: RTC driver for bsp enabled
i2c /dev entries driver
bsp-i2c 11060000.i2c: deassert reset
bsp-i2c 11060000.i2c: IRQ index 0 not found
bsp-i2c 11061000.i2c: deassert reset
bsp-i2c 11061000.i2c: IRQ index 0 not found
bsp-i2c 11062000.i2c: deassert reset
bsp-i2c 11062000.i2c: IRQ index 0 not found
usbcore: registered new interface driver uvcvideo
USB Video Class driver (1.1.1)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
[WING-USB][wing_usb_module_init]register wing usb driver
mmc0: SDHCI controller on 10030000.SDIO [10030000.SDIO] using ADMA
NET: Registered protocol family 17
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Registering SWP/SWPB emulation handler
Loading compiled-in X.509 certificates
uart-pl011 11040000.uart: deassert reset
11040000.uart: ttyAMA0 at MMIO 0x11040000 (irq = 30, base_baud = 0) is a PL011 rev2
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe6d hci version 0x110 quirks 0x0000000020010010
xhci-hcd xhci-hcd.0.auto: irq 71, io mem 0x10300000
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
hub 1-0:1.0: USB hub found
printk: console [ttyAMA0] enabled
hub 1-0:1.0: 1 port detected
uart-pl011 11041000.uart: deassert reset
usb usb2: We don’t know the algorithms for LPM for this host, disabling LPM.
11041000.uart: ttyAMA1 at MMIO 0x11041000 (irq = 31, base_baud = 0) is a PL011 rev2
hub 2-0:1.0: USB hub found
uart-pl011 11042000.uart: deassert reset
hub 2-0:1.0: config failed, hub doesn’t have any ports! (err -19)
11042000.uart: ttyAMA2 at MMIO 0x11042000 (irq = 32, base_baud = 0) is a PL011 rev2
usb 1-1: new high-speed USB device number 2 using xhci-hcd
pl061_gpio 11090000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 11091000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 11092000.gpio_chip: PL061 GPIO chip registered
mmc0: new high speed SDXC card at address 0001
pl061_gpio 11093000.gpio_chip: PL061 GPIO chip registered
mmcblk0: mmc0:0001 asdfg 117 GiB
pl061_gpio 11094000.gpio_chip: PL061 GPIO chip registered
mmcblk0:
pl061_gpio 11095000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 11096000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 11097000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 11098000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 11099000.gpio_chip: PL061 GPIO chip registered
pl061_gpio 1109a000.gpio_chip: PL061 GPIO chip registered
ubi0: attaching mtd3
ubi0: scanning is finished
ubi0: attached mtd3 (name “rootfs”, size 96 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 768, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 8/0, WL threshold: 4096, image sequence number: 385361902
ubi0: available PEBs: 0, total reserved PEBs: 768, PEBs reserved for bad PEB handling: 20
ubi0: background thread “ubi_bgt0d” started, PID 767
cfg80211: Loading compiled-in X.509 certificates for regulatory database
cfg80211: Loaded X.509 cert ‘sforshee: 00b28ddf47aef9cea7’
cfg80211: Loaded X.509 cert ‘wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600’
clk: Not disabling unused clocks
ALSA device list:
No soundcards found.
platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
cfg80211: failed to load regulatory.db
UBIFS (ubi0:0): Mounting in unauthenticated mode
UBIFS (ubi0:0): background thread “ubifs_bgt0_0” started, PID 774
UBIFS (ubi0:0): recovery needed
UBIFS (ubi0:0): recovery completed
UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name “ubifs”
UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS (ubi0:0): FS size: 93073408 bytes (88 MiB, 733 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID ED1AE859-1450-4B37-9A67-0D770FFBDF98, small LPT model
VFS: Mounted root (ubifs filesystem) on device 0:13.
devtmpfs: mounted
Freeing unused kernel memory: 1024K
Run /sbin/init as init process
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.conf.all.secure_redirects = 0
net.ipv4.conf.default.secure_redirects = 0
net.ipv4.conf.all.log_martians = 1
net.ipv4.conf.default.log_martians = 1
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_fin_timeout = 60
kernel.sysrq = 0
kernel.kptr_restrict = 2

mknod: /dev/console: File exists
mknod: /dev/ttyAMA0: File exists
mknod: /dev/null: File exists

udevd[788]: starting version 3.2.11
random: udevd: uninitialized urandom read (16 bytes read)
udevd[789]: starting eudev-3.2.11
random: udevd: uninitialized urandom read (16 bytes read)

  IP: 192.168.1.168

BOOTP:
GATEWAY: 192.168.1.1
NETMASK: 255.255.255.0
HOSTNAME: 192.168.1.1
NETDEV: eth0
AUTOCONF:

/etc/init.d/S90autorun.bak: line 13: ubiattach: not found
mount: mounting /dev/ubi1_0 on /app/ failed: No such file or directory
‘mount -t ubifs /dev/ubi1_0 /app/‘ failed!
sys_config: loading out-of-tree module taints kernel.
sys_config_parse_board,185: ==========board_type: dmeb_qfn==========
sys_config_parse_board,192: g_board 1
sensor_cfg,421: ==========sensor0: sc4336p==========
sensor_cfg,421: ==========sensor1: sc4336p==========
Media Memory Zone Manager
load mmz ….OK!
ot_base: module license ‘Proprietary’ taints kernel.
Disabling lock debugging due to kernel taint
load base.ko ….OK!
load vb.ko ….OK!
load vca.ko ….OK!
load sys.ko ….OK!
load region.ko ….OK!
load vpp.ko ….OK!
load vgs.ko ….OK!
load vpss.ko ….OK!
load vi.ko ….OK!
load isp.ko ….OK!
load chnl.ko ….OK!
load rc.ko ….OK!
load venc.ko ….OK!
load h264e.ko ….OK!
load h265e.ko ….OK!
load svac3e.ko ….OK!
load jpege.ko ….OK!
load svp_npu.ko ….OK!
load ive.ko ….OK!
load pwm.ko ….OK!
load ot_piris.ko ….OK!
load sensor_i2c.ko ….OK!
load aio.ko ….OK!
load ai.ko ….OK!
load ao.ko ….OK!
load aenc.ko ….OK!
load adec.ko ….OK!
load acodec.ko ….OK!
load mipirx_dev.ko ….OK!
load aiisp.ko ….OK!
load uvc.ko ….OK!
load pm.ko ….OK!
load cipher.ko success!
load km.ko success!
/komod/load3516cv610
usb 1-1: USB disconnect, device number 2
hleth 10290000.hlethernet eth0: Link is Up - 100Mbps/Full - flow control off
usb 1-1: new high-speed USB device number 3 using xhci-hcd
passwd had changed !
login[1169]: root login on ‘ttyAMA0’
FAT-fs (mmcblk0): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Welcome to Linux ROOTFS
Chip: HI3516CV610
HardWare_ver: G610Q-IPC-38E_V1.2
SDK: Hi3516CV610_SDK_V1.0.2.0
SoftWare_ver: V1.2.3.9
date: 2025-05-13
compile_time: 2025-10-22 16:10:31
commit_id: 6f64e57d9495e62a2238727fef54ffd118627a88
Author: yym
~ # ntpd: setting time to 2026-08-08 11:57:30.569818 (offset +1785698510.495112s)
random: crng init done

~ #
~ #
~ #
~ #
~ #
~ # cd /komod
/komod # tftp -g -r test_struct_sizes.ko 192.168.1.12
test_struct_sizes.ko 100% |**| 10792 0:00:00 ETA

/komod # insmod test_struct_sizes.ko 2>&1

=== KERNEL STRUCT SIZES & OFFSETS (Hi3516CV610, 5.10.221) ===

CONFIG_LOCKDEP = not set
CONFIG_DEBUG_OBJECTS = not set
CONFIG_DEBUG_SPINLOCK = not set
CONFIG_DEBUG_MUTEXES = not set
CONFIG_MUTEX_SPIN_ON_OWNER = y
CONFIG_WIRELESS_EXT = not set
CONFIG_IPV6 = not set
CONFIG_THUMB2_KERNEL = y

—- struct work_struct —-
sizeof = 16
offsetof(struct work_struct, data) = 0
offsetof(struct work_struct, entry) = 4
offsetof(struct work_struct, func) = 12

—- struct delayed_work —-
sizeof = 44
offsetof(struct delayed_work, work) = 0
offsetof(struct delayed_work, timer) = 16

—- struct timer_list —-
sizeof = 20
offsetof(struct timer_list, entry) = 0
offsetof(struct timer_list, expires) = 8
offsetof(struct timer_list, function) = 12
offsetof(struct timer_list, flags) = 16

—- spinlock types —-
sizeof(spinlock_t) = 4
sizeof(raw_spinlock_t) = 4
sizeof(arch_spinlock_t) = 4

—- struct mutex —-
sizeof = 20
offsetof(struct mutex, owner) = 0
offsetof(struct mutex, wait_lock) = 4
offsetof(struct mutex, wait_list) = 12

—- struct list_head —-
sizeof = 8
offsetof(struct list_head, next) = 0
offsetof(struct list_head, prev) = 4

—- struct hlist_node —-
sizeof = 8
offsetof(struct hlist_node, next) = 0
offsetof(struct hlist_node, pprev) = 4

—- struct hrtimer —-
sizeof = 48
offsetof(struct hrtimer, node) = 0
offsetof(struct hrtimer, _softexpires) = 24
offsetof(struct hrtimer, function) = 32
offsetof(struct hrtimer, state) = 40
offsetof(struct hrtimer, is_rel) = 41
offsetof(struct hrtimer, is_soft) = 42
offsetof(struct hrtimer, base) = 36

—- struct tasklet_struct —-
sizeof = 24
offsetof(struct tasklet_struct, next) = 0
offsetof(struct tasklet_struct, state) = 4
offsetof(struct tasklet_struct, count) = 8
offsetof(struct tasklet_struct, func) = 16

—- struct net_device —-
sizeof = 1344
offsetof(struct net_device, name) = 0
offsetof(struct net_device, name_assign_type) = 333
offsetof(struct net_device, ifindex) = 168
offsetof(struct net_device, flags) = 300
offsetof(struct net_device, priv_flags) = 304
offsetof(struct net_device, mtu) = 316
offsetof(struct net_device, type) = 328
offsetof(struct net_device, hard_header_len) = 330
offsetof(struct net_device, dev_addr) = 456
offsetof(struct net_device, addr_len) = 371
offsetof(struct net_device, tx_queue_len) = 592
offsetof(struct net_device, state) = 40
offsetof(struct net_device, stats) = 176
(wireless_handlers / wireless_data: not present — CONFIG_WIRELESS_EXT=n)
offsetof(struct net_device, ieee80211_ptr) = 448
offsetof(struct net_device, netdev_ops) = 288
offsetof(struct net_device, ethtool_ops) = 292
offsetof(struct net_device, ml_priv) = 672

—- struct wireless_dev —-
sizeof = 280
offsetof(struct wireless_dev, wiphy) = 0
offsetof(struct wireless_dev, netdev) = 16
offsetof(struct wireless_dev, iftype) = 4
offsetof(struct wireless_dev, ssid) = 64
offsetof(struct wireless_dev, ssid_len) = 96
offsetof(struct wireless_dev, list) = 8

—- struct wiphy —-
sizeof = 832
offsetof(struct wiphy, perm_addr) = 0
offsetof(struct wiphy, interface_modes) = 32
offsetof(struct wiphy, max_scan_ssids) = 68
offsetof(struct wiphy, priv) = 832

============================================================

=== END OF STRUCT INFO ===

============================================================

=== KERNEL STRUCT SIZES & OFFSETS (Hi3516CV610, 5.10.221) ===

CONFIG_LOCKDEP = not set
CONFIG_DEBUG_OBJECTS = not set
CONFIG_DEBUG_SPINLOCK = not set
CONFIG_DEBUG_MUTEXES = not set
CONFIG_MUTEX_SPIN_ON_OWNER = y
CONFIG_WIRELESS_EXT = not set
CONFIG_IPV6 = not set
CONFIG_THUMB2_KERNEL = y

—- struct work_struct —-
sizeof = 16
offsetof(struct work_struct, data) = 0
offsetof(struct work_struct, entry) =(4
offsetof(struct work_struct, func) = 12

—- struct delayed_work —-
sizeof = 44
offsetof(struct delayed_work, work) = 0
offsetof(struct delayed_work, timer) = 16

—- struct timer_list —-
sizeof = 20
offsetof(struct timer_list, entry) = 0
offsetof(struct timer_list, expires) = 8
offsetof(struct timer_list, function) = 12
offsetof(struct timer_list, flags) = 16

—- spinlock types —-
sizeof(spinlock_t) = 4
sizeof(raw_spinlock_t) = 4
sizeof(arch_spinlock_t) = 4

—- struct mutex —-
sizeof = 20
offsetof(struct mutex, owner) = 0
offsetof(struct mutex, wait_lock) = 4
offsetof(struct mutex, wait_list) = 12

—- struct list_head —-
sizeof = 8
offsetof(struct list_head, next) = 0
offsetof(struct list_head, prev) = 4

—- struct hlist_node —-
sizeof = 8
offsetof(struct hlist_node, next) = 0
offsetof(struct hlist_node, pprev) = 4

—- struct hrtimer —-
sizeof = 48
offsetof(struct hrtimer, node) = 0
offsetof(struct hrtimer, _softexpires) = 24
offsetof(struct hrtimer, function) = 32
offsetof(struct hrtimer, state) = 40
offsetof(struct hrtimer, is_rel) = 41
offsetof(struct hrtimer, is_soft) = 42
offsetof(struct hrtimer, base) = 36

—- struct tasklet_struct —-
sizeof = 24
offsetof(struct tasklet_struct, next) = 0
offsetof(struct tasklet_struct, state) = 4
offsetof(struct tasklet_struct, count) = 8
offsetof(struct tasklet_struct, func) = 16

—- struct net_device —-
sizeof = 1344
offsetof(struct net_device, name) = 0
offsetof(struct net_device, name_assign_type) = 333
offsetof(struct net_device, ifindex) = 168
offsetof(struct net_device, flags) = 300
offsetof(struct net_device, priv_flags) = 304
offsetof(struct net_device, mtu) = 316
offsetof(struct net_device, type) = 328
offsetof(struct net_device, hard_header_len) = 330
offsetof(struct net_device, dev_addr) = 456
offsetof(struct net_device, addr_len) = 371
offsetof(struct net_device, tx_queue_len) = 592
offsetof(struct net_device, state) = 40
offsetof(struct net_device, stats) = 176
(wireless_handlers / wireless_data: not present — CONFIG_WIRELESS_EXT=n)
offsetof(struct net_device, ieee80211_ptr) = 448
offsetof(struct net_device, netdev_ops) = 288
offsetof(struct net_device, ethtool_ops) = 292
offsetof(struct net_device, ml_priv) = 672

—- struct wireless_dev —-
sizeof = 280
offsetof(struct wireless_dev, wiphy) = 0
offsetof(struct wireless_dev, netdev) = 16
offsetof(struct wireless_dev, iftype) = 4
offsetof(struct wireless_dev, ssid) = 64
offsetof(struct wireless_dev, ssid_len) = 96
offsetof(struct wireless_dev, list) = 8

—- struct wiphy —-
sizeof = 832
offsetof(struct wiphy, perm_addr) = 0
offsetof(struct wiphy, interface_modes) = 32
offsetof(struct wiphy, max_scan_ssids) = 68
offsetof(struct wiphy, priv) = 832

============================================================

=== END OF STRUCT INFO ===

insmod: can’t insert ‘test_struct_sizes.ko’: No such device
/komod #
/komod #
/komod #
/komod #
/komod #
/komod #
/komod #
/komod #
/komod #
/komod # cd /komod
/komod # tftp -g -r 8188eu_hi3516cv610_v17.ko 192.168.1.12
8188eu_hi3516cv610_v 100% |**| 425k 0:00:00 ETA
/komod # insmod lib80211_hi3516cv610.ko
lib80211: common routines for IEEE802.11 drivers
/komod # insmod lib80211_crypt_wep_hi3516cv610.ko
insmod lib80211_crypt_ccmp_hi3516cv610.ko
/komod # insmod lib80211_crypt_ccmp_hi3516cv610.ko
/komod # insmod lib80211_crypt_tkip_hi3516cv610.ko
/komod # insmod 8188eu_hi3516cv610_v17.ko
r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
R8188EU: DBG_8188EU 1: rtw_drv_init entry, pusb_intf=fb18563d
R8188EU: DBG_8188EU 2a: usb_dvobj_init entry
R8188EU: DBG_8188EU 2b: usb_dvobj_init pusbd=08a753f8, actconfig=00000000
R8188EU: DBG_8188EU v10: actconfig is NULL, using interface 0 (single-iface device)
R8188EU: DBG_8188EU 2c: phost_conf=00000000
R8188EU: DBG_8188EU 2: before rtw_usb_if1_init, dvobj=360a2027
R8188EU: DBG_8188EU S3: rtw_usb_if1_init entry, dvobj=360a2027
R8188EU: DBG_8188EU S4: vzalloc padapter=4502eda0, sizeof=12792
R8188EU: DBG_8188EU S5: before rtw_init_netdev
R8188EU: DBG_8188EU S6: after rtw_init_netdev, pnetdev=3567f7e2
R8188EU: DBG_8188EU S7: after rtw_netdev_priv, padapter=4502eda0
R8188EU: DBG_8188EU S8: HalData allocated=ae53f87d
R8188EU: DBG_8188EU S9a: before rtw_hal_read_chip_version
Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)
R8188EU: DBG_8188EU S9b: after rtw_hal_read_chip_version
R8188EU: DBG_8188EU S9c: before rtw_hal_chip_configure
R8188EU: DBG_8188EU S9d: after rtw_hal_chip_configure
R8188EU: DBG_8188EU S9e: before rtw_hal_read_chip_info
R8188EU: DBG_8188EU S9f: after rtw_hal_read_chip_info
R8188EU: DBG_8188EU S10: before rtw_init_drv_sw
DBG_8188EU SW1: rtw_init_drv_sw entry
DBG_8188EU SW2: before rtw_init_mlme_priv (contains timer_setup)
DBG_8188EU T1: rtw_init_mlme_timer entry,”padapter=4502eda0, pmlmepriv=df8755d7
DBG_8188EU T2: assoc_timer set
DBG_8188EU T3: scan_to_timer set
DBG_8188EU T4: dynamic_chk_timer set, done
DBG_8188EU SW4: after rtw_init_mlme_priv SUCCESS
DBG_8188EU T5: init_mlme_ext_timer, pmlmeext=77e36070
DBG_8188EU T6: survey_timer set
DBG_8188EU T7: link_timer set, done
R8188EU: DBG_8188EU S12: after rtw_init_drv_sw SUCCESS
R8188EU: DBG_8188EU S12a: padapter=4502eda0 pnetdev=3567f7e2 dvobj=360a2027 dvobj->pusbdev=08a753f8
R8188EU: DBG_8188EU S12b: pnetdev->dev_addr=7ce989ca padapter->eeprompriv.mac_addr=00:0f:00:00:1a:b9
R8188EU: DBG_8188EU S12c: padapter->registrypriv.ifname=wlan%d
R8188EU: DBG_8188EU S13: before CONFIG_PM block, bSupportRemoteWakeup=1
R8188EU: DBG_8188EU S13a: PM: dvobj->pusbdev=08a753f8 pusb_intf=fb18563d
R8188EU: DBG_8188EU S13b: PM: do_remote_wakeup set
R8188EU: DBG_8188EU S13c:�PM: needs_remote_wakeup set
R8188EU: DBG_8188EU S14: after CONFIG_PM block
R8188EU: DBG_8188EU S15: before rtw_init_netdev_name
R8188EU: DBG_8188EU S16: after rtw_init_netdev_name
R8188EU: DBG_8188EU S17: before rtw_macaddr_cfg
R8188EU: DBG_8188EU S18: after rtw_macaddr_cfg
R8188EU: DBG_8188EU S19: before memcpy dev_addr
R8188EU: DBG_8188EU S20: after memcpy dev_addr
R8188EU: DBG_8188EU v16: relying on ether_setup for net_device fields
R8188EU: DBG_8188EU S21a: pnetdev->netdev_ops = bfbdc3b4
R8188EU: DBG_8188EU S21b: pnetdev->ethtool_ops = c0547398
R8188EU: DBG_8188EU S21c: pnetdev->addr_len = 6
R8188EU: DBG_8188EU S21d: pnetdev->dev_addr = c1c20400
R8188EU: DBG_8188EU S21e: pnetdev->type = 1
R8188EU: DBG_8188EU S21f: pnetdev->flags = 0x1002
R8188EU: DBG_8188EU S21: before register_netdev
R8188EU: DBG_8188EU S23: after register_netdev SUCCESS
R8188EU: DBG_8188EU S24: rtw_usb_if1_init all done, status=SUCCESS
R8188EU: DBG_8188EU S25: after rtw_usb_if1_init returns, if1=4502eda0
usbcore: registered new interface driver r8188eu
/komod # ip link show wlan0
3: wlan0: mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
/komod # ip link set wlan0 up
MAC Address = 00:0f:00:00:1a:b9
/komod # Alignment trap: not handling instruction e8531f00 at []
8<—- cut here —-
Unhandled fault: alignment exception (0x001) at 0x646f6d73
pgd = 3e212424
[646f6d73] *pgd=00000000
Internal error: : 1 [#1] SMP THUMB2
Modules linked in: r8188eu(CO) lib80211_crypt_tkip(O) lib80211_crypt_ccmp(O) lib80211_crypt_wep(O) lib80211(O) ot_km(O) ot_cipher(O) ot_pm(PO) ot_uvc(PO) ot_aiisp(PO) ot_mipi_rx(O) ot_acodec(PO) ot_adec(PO) ot_aenc(PO) ot_ao(PO) ot_ai(PO) ot_aio(PO) ot_sensor_i2c(O) ot_piris(O) ot_pwm(O) ot_ive(PO) ot_svp_npu(PO) ot_jpege(PO) ot_svac3e(PO) ot_h265e(PO) ot_h264e(PO) ot_venc(PO) ot_rc(PO) ot_chnl(PO) ot_isp(O) ot_vi(PO) ot_vpss(PO) ot_vgs(PO) ot_vpp(PO) ot_rgn(PO) ot_sys(PO) ot_vca(PO) ot_vb(PO) ot_base(PO) ot_mmz(O) ot_osal(O) sys_config(O)
CPU: 0 PID: 0 Comm: swapper/0 Tainted: P C O 5.10.221 #1
Hardware name: HI35XX
PC is at arch_spin_lock+0xc/0x32
LR is at arch_spin_lock+0x9/0x32
pc : [] lr : [] psr: 600001b3
sp : c0801de8 ip : 00000000 fp : 00000000
r10: c07231a4 r9 : 00000010 r8 : c07231a4
r7 : c3127128 r6 : 00000010 r5 : c0c05000 r4 : c072bb01
r3 : 646f6d73 r2 : 07ffffff r1 : 07ffffff r0 : 646f6d73
Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA Thumb Segment none
Control: 50c5387d Table: 41a8406a DAC: 00000051
Process swapper/0 (pid: 0, stack limit = 0xfe4d791d)
Stack: (0xc0801de8 to 0xc0802000)
1de0: ffffffe1 c011d0e7 00000010 c0c05000 c3127128 c3127128
1e00: 00000010 c0c05000 00000113 00000000 00000000 c0727380 c2787398 c011d247
1e20: c0803eb0 c0800000 bfbb40f1 00000100 00000122 c0147b43 c3127110 bfbb40f1
1e40: c3127110 00001bb7 c2787380 c0801e6c 00000000 c014811d 00000003 02060000
1e60: 00000007 00000040 c2788e00 00000000 00000001 c0112081 1439a5fb c0149217
1e80: c278c300 00000000 000002ae fb375551 00989680 c0800000 c0802084 00000082
1ea0: c0801eb8 c0802080 c07289c0 00000100 0000000a c0101489 00000000 c278c300
1ec0: c03a7799 00200002 000409f1 00000002 40000001 00000001 c0800000 00000000
1ee0: 00000000 c0c0c000 00000001 c081e514 c0800000 50c5387d 00000000 c011202f
1f00: 0000004e c0139e83 c0801f38 c0801f38 c07282d8 c0804124 c3002000 c010134f
1f20: c0105fd2 40000033 ffffffff c0801f6c 00000001 c0100b65 00817c94 00000000
1f40: 00817c94 c010cd61 c0800000 00000001 c0803e98 c0803edc 00000001 c071a8e0
1f60: 50c5387d 00000000 c080003c c0801f88 c0105fdb c0105fd2 40000033 ffffffff
1f80: 00000051 00000000 00000000 c04dc123 00000000 c0127683 00200002 000000dc
1fa0: c0844558 c0803e40 00000000 c0127837 00200002 c0700adf ffffffff ffffffff
1fc0: 00000000 c0700625 00000000 c071a8e0 fb325f8c 00000000 00000000 c07004a8
1fe0: 00000051 10c0387d 00001f41 40000000 410fc075 00000000 00000000 00000000
[] (arch_spin_lock) from [] (queue_work+0xbb/0x1f8)
[] (queue_work) from [] (queue_work_on+0x23/0x2e)
[] (queue_work_on) from [] (call_timer_fn.constprop.0+0x13/0x54)
[] (call_timer_fn.constprop.0) from [] (run_timer_softirq+0x209/0x230)
[] (run_timer_softirq) from [] (do_softirq+0x129/0x17c)
[] (do_softirq) from [] (irq_exit+0x7/0xe)
[] (irq_exit) from [] (handle_domain_irq+0x43/0x64)
[] (handle_domain_irq) from [] (gic_handle_irq+0x53/0x64)
[] (gic_handle_irq) from [] (irq_svc+0x65/0x94)
Exception stack(0xc0801f38 to 0xc0801f80)
1f20: 00817c94 00000000
1f40: 00817c94 c010cd61 c0800000 00000001 c0803e98 c0803edc 00000001 c071a8e0
1f60: 50c5387d 00000000 c080003c c0801f88 c0105fdb c0105fd2 40000033 ffffffff
[] (irq_svc) from [] (arch_cpu_idle+0xc/0x1e)
[] (arch_cpu_idle) from [] (default_idle_call+0x1f/0x28)
[] (default_idle_call) from [] (do_idle+0x7b/0xac)
[] (do_idle) from [] (cpu_startup_entry+0x13/0x14)
[] (cpu_startup_entry) from [] (start_kernel+0x24d/0x2de)
Code: f7ff fff4 e853 1f00 (f501) 3280
—-[ end trace 954858ce2f512a14 ]—-
Kernel panic - not syncing: Fatal exception in interrupt
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Tainted: P D C O 5.10.221 #1
Hardware name: HI35XX
[] (unwind_backtrace) from [] (show_stack+0xb/0xc)
[] (show_stack) from [] (dump_stack+0x5f/0x74)
[] (dump_stack) from [] (do_handle_IPI+0x51/0xcc)
[] (do_handle_IPI) from [] (ipi_handler+0xd/0x14)
[] (ipi_handler) from [] (generic_handle_irq+0x19/0x22)
[] (generic_handle_irq) from [] (handle_domain_irq+0x55/0x64)
[] (handle_domain_irq) from [] (gic_handle_irq+0x53/0x64)
[] (gic_handle_irq) from [] (irq_svc+0x65/0x94)
Exception stack(0xc0c61f78 to 0xc0c61fc0)
1f60: 002e9f6c 00000000
1f80: 002e9f6c c010cd61 c0c60000 00000002 c0803e98 c0803edc 4000406a 410fc075
1fa0: 00000000 00000000 c0c6003c c0c61fc8 c0105fdb c0105fd2 40000033 ffffffff
[] (irq_svc) from [] (arch_cpu_idle+0xc/0x1e)
[] (arch_cpu_idle) from [] (default_idle_call+0x1f/0x28)
[] (default_idle_call) from [] (do_idle+0x7b/0xac)
[] (do_idle) from [] (cpu_startup_entry+0x13/0x14)
[] (cpu_startup_entry) from [<40101571>] (0x40101571)
—-[ end Kernel panic - not syncing: Fatal exception in interrupt ]—-

大佬,帮我看看哪里的问题,现在的Hi3516CV610 + 5.10.221 + 8188eu
8188eu写出来驱动驱动起来,老是炸,到底哪里不对了
芯片是 Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)

我来回答
回答1个
时间排序
认可量排序

素质男孩最有素质

1个粉丝

0

问答

0

专栏

3

资料

素质男孩最有素质 2026-08-11 17:11:41
认可0

是不是驱动的编译环境和板端固件的编译环境不一样?

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区