Which system do you use? Android, Ubuntu, OOWOW or others?
Ubuntu 22.04 kernel 5.15
Which version of system do you use? Khadas official images, self built images, or others?
official Khadas
Please describe your issue below:
Error wile building module
I want to build ath10k module, i got code from git,
i did
make vims_defconfig
make menuconfig, enabled ath10k module i tried to build, make modules.
error is symbol exported twice, i mentioned same files in common drivers and drivers.
on linux host i got
valeriy@valeriy-Z390:~/project/khadas/fenix$ make kernel
[i] FENIX (scripts/build.sh) BUILD: /home/valeriy/project/khadas/fenix/build | DL: /home/valeriy/project/khadas/fenix/downloads | sudo: sudo -E
Info: Build host: bionic target: jammy
Info: Installing build dependencies
Info: Requires root privileges, please enter your passowrd!
many such things…as
E: The repository ‘Index of /lutris-team/lutris/ubuntu bionic Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Makefile:18: recipe for target ‘kernel’ failed
make: *** [kernel] Error 100
how can be resolved problem with export twice symbols, this is because same .c files make export, how can we ignore this or forbid export from folder common_drivers
how can be resolved problem with export twice symbols, this is because same .c files make export, how can we ignore this or forbid export from folder common_drivers
Please input git status in common_driver folder and post the log.
I think maybe you have modifeid something file which lead to this error.
The correct steps are like followings:
$ source setenv.sh
$ make kernel
$ make kernel-config
Then press the “/” key on your keyboard, input ATH, you will see a window like this
i want to build modules without fenix, can it be?
khadas@Khadas:/media/khadas/ROOTFS/home/khadas/linux_khadas/common_drivers$ git status
On branch khadas-vims-5.15.y
Your branch is up to date with ‘origin/khadas-vims-5.15.y’.
nothing to commit, working tree clean
khadas@Khadas:/media/khadas/ROOTFS/home/khadas/linux_khadas$ sudo make -j4 modules
cp: cannot create regular file ‘./.git/hooks/’: No such file or directory
make: [Makefile:2112: FORCE] Error 1 (ignored)
chmod: cannot access ‘./.git/hooks/commit-msg’: No such file or directory
make: [Makefile:2114: FORCE] Error 1 (ignored)
LD [M] common_drivers/drivers/drm/aml_drm.o
make[2]: warning: Clock skew detected. Your build may be incomplete.
AR common_drivers/drivers/built-in.a
AR drivers/built-in.a
make[1]: warning: Clock skew detected. Your build may be incomplete.
make[1]: warning: Clock skew detected. Your build may be incomplete.
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
AR init/built-in.a
LD vmlinux.o
MODPOST vmlinux.symvers
MODINFO modules.builtin.modinfo
GEN modules.builtin
LD .tmp_vmlinux.kallsyms1
KSYMS .tmp_vmlinux.kallsyms1.S
AS .tmp_vmlinux.kallsyms1.S
LD .tmp_vmlinux.kallsyms2
KSYMS .tmp_vmlinux.kallsyms2.S
AS .tmp_vmlinux.kallsyms2.S
LD vmlinux
SORTTAB vmlinux
SYSMAP System.map
make[1]: Warning: File ‘common_drivers/drivers/adla/kmd/adla_core.o’ has modification time 1850824519 s in the future
MODPOST modules-only.symvers
FATAL: modpost: common_drivers/drivers/clk/meson/amlogic-clk: ‘meson_aoclkc_probe’ exported twice. Previous export was in vmlinux
make[1]: *** [scripts/Makefile.modpost:157: modules-only.symvers] Error 1
make: *** [Makefile:1899: modules] Error 2
i have downloaded kernel as zip file, without git
I enable some ath10 configuration, because I don’t know which configuration is you wanted.
I make image in fenix, did’t meet your error and succeed to build the module
jacobe@jacobe:~/project/release/fenix/build/linux$ ll drivers/net/wireless/ath/ath10k/*.ko
-rw-rw-r-- 1 jacobe jacobe 929680 Mar 13 17:42 drivers/net/wireless/ath/ath10k/ath10k_core.ko
-rw-rw-r-- 1 jacobe jacobe 114288 Mar 13 17:42 drivers/net/wireless/ath/ath10k/ath10k_pci.ko
-rw-rw-r-- 1 jacobe jacobe 56688 Mar 13 17:42 drivers/net/wireless/ath/ath10k/ath10k_sdio.ko
-rw-rw-r-- 1 jacobe jacobe 25800 Mar 13 17:42 drivers/net/wireless/ath/ath10k/ath10k_usb.ko
jacobe@jacobe:~/project/release/fenix/build/linux/common_drivers$ git diff
diff --git a/arch/arm64/configs/kvims_defconfig b/arch/arm64/configs/kvims_defconfig
index 3befa62a..44329392 100644
--- a/arch/arm64/configs/kvims_defconfig
+++ b/arch/arm64/configs/kvims_defconfig
@@ -37,7 +37,6 @@ CONFIG_CGROUP_BPF=y
CONFIG_NAMESPACES=y
CONFIG_USER_NS=y
CONFIG_RT_SOFTINT_OPTIMIZATION=y
-CONFIG_RELAY=y
# CONFIG_RD_BZIP2 is not set
# CONFIG_RD_LZMA is not set
# CONFIG_RD_XZ is not set
@@ -889,7 +888,15 @@ CONFIG_USB_NET_CH9200=m
CONFIG_USB_NET_AQC111=m
CONFIG_USB_GOBI_NET=y
# CONFIG_WLAN_VENDOR_ADMTEK is not set
-# CONFIG_WLAN_VENDOR_ATH is not set
+CONFIG_ATH10K=m
+CONFIG_ATH10K_PCI=m
+CONFIG_ATH10K_AHB=y
+CONFIG_ATH10K_SDIO=m
+CONFIG_ATH10K_USB=m
+CONFIG_ATH10K_DEBUG=y
+CONFIG_ATH10K_DEBUGFS=y
+CONFIG_ATH10K_SPECTRAL=y
+CONFIG_ATH10K_TRACING=y
# CONFIG_WLAN_VENDOR_ATMEL is not set
# CONFIG_WLAN_VENDOR_BROADCOM is not set
# CONFIG_WLAN_VENDOR_CISCO is not set
@@ -1117,8 +1124,8 @@ CONFIG_GPIO_PISOSR=m
CONFIG_GPIO_XRA1403=m
CONFIG_W1=y
CONFIG_W1_MASTER_GPIO=y
-CONFIG_W1_SLAVE_SMEM=m
CONFIG_W1_SLAVE_THERM=y
+CONFIG_W1_SLAVE_SMEM=m
CONFIG_W1_SLAVE_DS2405=m
CONFIG_W1_SLAVE_DS2408=m
CONFIG_W1_SLAVE_DS2413=m
and send me modules via email? valeraghost@mail.ru
in fenix i have errors
GPG error: Index of /opera-stable/ stable InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 24A1004B1F11DCC9
and some others and error
Makefile:2: recipe for target ‘all’ failed
make: *** [all] Error 100
For ture, I still suggest you to build in fenix, our SDK can check the linux repository and common_driver folder exist or not. If don’t exist, it will run git clone to download these repositories.
My host PC is Linux jacobe 6.5.0-25-generic #25~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Feb 20 16:09:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
The only difference between us is the kernel version, but it won’t be the key reason.
In linux folder, make sure your git HEAD is on branch named khadas-vims-5.15.y, you can check with shell git log. If see words like this HEAD -> khadas-vims-5.15.y is correct.Then run git pull origin khadas-vims-5.15.y , it will fetch and merge coding from Khadas repository. Then enter common_driver folder, the steps are likewise.
i have build
make kernel
make kernel-config
make kernel with ath10k modules, vmlinux was build, but in boot folder on emmc was vmlinuz-5.15.149 or some how, i replaced this file with vmlinux, but it doesnot boot.
to make sd image what is the comand?
Choose install type:
1. EMMC - Image For Writing to eMMC Storage With USB Burning Tool
2. SD-USB - Image For Writing to SD/USB Storage
Which install type would you like? [1] 2
=> SD-USB
Then run make
After buidling, there is a .img file in fenix/build/image/ folder, then you can follow the document which I post last time to make sd card.
Thanks, now i made an image and burned sd card, but sbc boots from emmc. Tried image for emmc, make, but it is not recognized by windows usb tool. and utils burn tool for ubuntu doesnot burn it.
How to boot from SD, krescue sd card now doesnot boot too.