全志的sdk是真的难找啊
C
camperzzz 发布的最佳帖子
camperzzz 发布的最新帖子
-
回复: Ubuntu20.04到底能不能使用livesuit烧录系统?awusb.ko安装失败
@kunyi 谢谢回复。很奇怪我们两个的内核版本都是一样的,我的用dkms方法安装之后,还是一样的报错
jyh@jyh:~$ sudo dkms status [sudo] jyh 的密码: awdev, 0.5, 5.15.0-107-generic, x86_64: installed (WARNING! Diff between built and installed module!) awdev, 0.5.1, 5.15.0-107-generic, x86_64: built nvidia, 535.183.01, 5.15.0-107-generic, x86_64: installed jyh@jyh:~$ sudo dkms remove awdev/0.5 --all -------- Uninstall Beginning -------- Module: awdev Version: 0.5 Kernel: 5.15.0-107-generic (x86_64) ------------------------------------- Status: Before uninstall, this module version was ACTIVE on this kernel. awusb.ko: - Uninstallation - Deleting from: /lib/modules/5.15.0-107-generic/ rmdir: 删除 '' 失败: 没有那个文件或目录 - Original module - No original module was found for this module on this kernel. - Use the dkms install command to reinstall any previous module version. depmod... DKMS: uninstall completed. ------------------------------ Deleting module version: 0.5 completely from the DKMS tree. ------------------------------ Done. jyh@jyh:~$ sudo dkms status awdev, 0.5.1, 5.15.0-107-generic, x86_64: built nvidia, 535.183.01, 5.15.0-107-generic, x86_64: installed jyh@jyh:~$ sudo dkms remove awdev/0.5.1 --all -------- Uninstall Beginning -------- Module: awdev Version: 0.5.1 Kernel: 5.15.0-107-generic (x86_64) ------------------------------------- Status: This module version was INACTIVE for this kernel. depmod... DKMS: uninstall completed. ------------------------------ Deleting module version: 0.5.1 completely from the DKMS tree. ------------------------------ Done. jyh@jyh:~$ ls /usr/src/ -l 总用量 28 drwxr-xr-x 5 root root 4096 6月 25 15:54 awdev-0.5 drwxr-xr-x 2 root root 4096 6月 25 13:52 awdev-0.5.1 drwxr-xr-x 7 root root 4096 6月 25 11:22 linux-headers-5.15.0-107-generic drwxr-xr-x 2 root root 4096 2月 26 17:23 linux-headers-5.15.0-92-generic drwxr-xr-x 2 root root 4096 3月 9 06:15 linux-headers-5.15.0-97-generic drwxr-xr-x 25 root root 4096 6月 25 11:22 linux-hwe-5.15-headers-5.15.0-107 drwxr-xr-x 9 root root 4096 6月 25 11:51 nvidia-535.183.01 jyh@jyh:~$ sudo dkms add /usr/src/awdev-0.5/ Creating symlink /var/lib/dkms/awdev/0.5/source -> /usr/src/awdev-0.5 DKMS: add completed. jyh@jyh:~$ sudo dkms build awdev/0.5 Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... make -j20 KERNELRELEASE=5.15.0-107-generic default KERNELVERSION=5.15.0-107-generic... Signing module: - /var/lib/dkms/awdev/0.5/5.15.0-107-generic/x86_64/module/awusb.ko Secure Boot not enabled on this system. cleaning build area... DKMS: build completed. jyh@jyh:~$ sudo dkms install awdev/0.5 awusb.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/5.15.0-107-generic/updates/ depmod... DKMS: install completed. jyh@jyh:~$ sudo dkms status awdev, 0.5, 5.15.0-107-generic, x86_64: installed nvidia, 535.183.01, 5.15.0-107-generic, x86_64: installed jyh@jyh:~$ sudo modprobe awusb modprobe: ERROR: could not insert 'awusb': Exec format error
可以看一下你电脑上的headers是不是有这两个包吗,linux-headers-5.15.0-107-generic和linux-hwe-5.15-headers-5.15.0-107
jyh@jyh:~$ sudo dpkg -l|grep headers|grep linux [sudo] jyh 的密码: ii libselinux1-dev:amd64 3.0-1build2 amd64 SELinux development headers ii linux-headers-5.15.0-107-generic 5.15.0-107.117~20.04.1 amd64 Linux kernel headers for version 5.15.0 on 64 bit x86 SMP ii linux-hwe-5.15-headers-5.15.0-107 5.15.0-107.117~20.04.1 all Header files related to Linux kernel version 5.15.0
-
回复: Ubuntu20.04到底能不能使用livesuit烧录系统?awusb.ko安装失败
modprobe: ERROR: could not insert 'awusb': Exec format error 这个错误大佬们怎么解决的呀。看了论坛的所有方法,都是相同的结果。
-
Ubuntu20.04到底能不能使用livesuit烧录系统?awusb.ko安装失败
Ubuntu20.04到底能不能装上awusb驱动啊。在ubuntu20.04真机上面烧录个镜像这么难吗?
全志的大佬能出来回答一下嘛。如果不行我就不折腾了啊。折腾好几天了。驱动编译步骤
ubuntu20.04 环境$ uname -a Linux jyh 5.15.0-107-generic #117~20.04.1-Ubuntu SMP Tue Apr 30 10:35:57 UTC 2024 x86_64 x86_64 x86_64 GNU/Linu
ubuntu20.04中下载源码
git clone https://github.com/linux-sunxi/sunxi-livesuite.git $ tree . ├── awusb │ ├── awusb.c │ ├── dkms.conf │ └── Makefile ├── LiveSuit.sh ├── README ├── x86 │ ├── common_fun.lua │ ├── imgdec_fun.lua │ ├── ini_fun.lua │ ├── LangPlg.dll │ ├── libQtCore.so.4 │ ├── libQtGui.so.4 │ ├── LiveProc.Plg │ ├── LiveSuit │ ├── LiveSuit.lan │ ├── luaBase.dll │ ├── luadec.dll │ ├── luaeFex.dll │ ├── plgvector.dll │ ├── regbasefun.lua │ ├── regdecode.lua │ └── regdemo.lua └── x86-64 ├── common_fun.lua ├── imgdec_fun.lua ├── ini_fun.lua ├── LangPlg.dll ├── libQtCore.so.4 ├── libQtGui.so.4 ├── LiveProc.Plg ├── LiveSuit ├── livesuit.ini ├── LiveSuit.lan ├── luaBase.dll ├── luadec.dll ├── luaeFex.dll ├── plgvector.dll ├── regbasefun.lua ├── regdecode.lua ├── regdemo.lua └── tools.scj 3 directories, 39 files
修改awusb/Makefile文件
obj-m := awusb.o KDIR := /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) default: $(MAKE) -C $(KDIR) M=$(PWD) modules clean: $(MAKE) -C $(KDIR) M=$(PWD) clean rm -rf Module.markers module.order module.sysvers
编译
$ cd awusb/ $ sudo make [sudo] jyh 的密码: make -C /lib/modules/5.15.0-107-generic/build M=/home/jyh/livesuit/sunxi-livesuite/awusb modules make[1]: 进入目录“/usr/src/linux-headers-5.15.0-107-generic” CC [M] /home/jyh/livesuit/sunxi-livesuite/awusb/awusb.o MODPOST /home/jyh/livesuit/sunxi-livesuite/awusb/Module.symvers CC [M] /home/jyh/livesuit/sunxi-livesuite/awusb/awusb.mod.o LD [M] /home/jyh/livesuit/sunxi-livesuite/awusb/awusb.ko make[1]: 离开目录“/usr/src/linux-headers-5.15.0-107-generic”
安装驱动报错
modprobe: ERROR: could not insert 'awusb': Exec format error$ ls -la 总用量 1012 drwxrwxr-x 2 jyh jyh 4096 6月 25 16:15 . drwxrwxr-x 6 jyh jyh 4096 6月 25 09:55 .. -rw-rw-r-- 1 jyh jyh 15547 6月 25 15:42 awusb.c -rw-r--r-- 1 root root 443480 6月 25 16:15 awusb.ko -rw-r--r-- 1 root root 424 6月 25 16:15 .awusb.ko.cmd -rw-r--r-- 1 root root 82 6月 25 16:15 awusb.mod -rw-r--r-- 1 root root 1801 6月 25 16:15 awusb.mod.c -rw-r--r-- 1 root root 274 6月 25 16:15 .awusb.mod.cmd -rw-r--r-- 1 root root 110744 6月 25 16:15 awusb.mod.o -rw-r--r-- 1 root root 31357 6月 25 16:15 .awusb.mod.o.cmd -rw-r--r-- 1 root root 334480 6月 25 16:15 awusb.o -rw-r--r-- 1 root root 43242 6月 25 16:15 .awusb.o.cmd -rw-rw-r-- 1 jyh jyh 192 6月 25 09:55 dkms.conf -rw-rw-r-- 1 jyh jyh 225 6月 25 10:39 Makefile -rw-r--r-- 1 root root 82 6月 25 16:15 modules.order -rw-r--r-- 1 root root 300 6月 25 16:15 .modules.order.cmd -rw-r--r-- 1 root root 0 6月 25 16:15 Module.symvers -rw-r--r-- 1 root root 350 6月 25 16:15 .Module.symvers.cmd jyh@jyh:~/livesuit/sunxi-livesuite/awusb$ sudo cp awusb.ko /lib/modules/`uname -r`/kernel/ jyh@jyh:~/livesuit/sunxi-livesuite/awusb$ sudo depmod -a jyh@jyh:~/livesuit/sunxi-livesuite/awusb$ sudo modprobe awusb -v insmod /lib/modules/5.15.0-107-generic/kernel/awusb.ko modprobe: ERROR: could not insert 'awusb': Exec format error $ dmesg [ 752.129112] module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 000000000d99cf9f, val ffffffffc0c64cc2
-
回复: R818 ubuntu20.04编译
@daizebin 我看网上ubuntu20.04编译R818 Tina sdk需要改一堆东西,我尝试过,的确要改。请教一下官网哪个版本的R818 Tina sdk,可以在ubuntu20上一次性编译通过呢