JasonFreeLab / HiSTBLinuxV100R005C00SPC060

Hisilicon SDK for SoC Hi3798Mv100 / Hi3798Cv200 / Hi3798Mv200 / Hi3798Mv300.
7 stars 2 forks source link

Bluetooth and wifi compilation issue #1

Open ibexnet opened 1 month ago

ibexnet commented 1 month ago

Hi, I'm trying to use the SDK for compiling the kernel for an board with hi3798cv200 chip with bluetooth and WiFi support. During the compiling I found two problems. For the Bluetooth I get an error while untar the file bluez_install.tar.gz located under source/component_bluetooth/src. Seem that the file provided is corrupted. I solved the problem by download the file from an older SDK founded on git ( https://github.com/LeeSSXX/HiSTBLinuxV100R005C00SPC050/blob/master/source/component/bluetooth/src/bluez_install.tar.gz ). After I replaced the file I found another issue regarding the copy of the bluetooth's files under the _$outdir directory for kmod The make script stop the execution because can't find the directory $sdk_path/$out_dir/... /kmod Simply I solved the issue creating manually the directory.

Anyway I'm not able to go ahead for the WiFi compiling issue. I got two errors about ld: cannot find -lnl-genl-3 and ld: cannot find -lnl-3

Below the output snippet regarding the errors :

CC   util.o
CC   vendor.o
CC   wowlan.o
CC   version.o
CC   iw
/home/myusername/.local/src/HiSTBLinuxV100R005C00SPC060/tools/linux/toolchains/aarch64-histbv100-linux/bin/../lib/gcc/aarch64-gcc51_glibc222-linux-gnu/5.1.1/../../../../aarch64-gcc51_glibc222-linux-gnu/bin/ld: skipping incompatible /home/myusername/.local/src/HiSTBLinuxV100R005C00SPC060/out/hi3798cv200/hi3798cv2dmo/obj64/source/component/wifi/tools/libnl/_install/lib/libnl-genl-3.so when searching for -lnl-genl-3
/home/myusername/.local/src/HiSTBLinuxV100R005C00SPC060/tools/linux/toolchains/aarch64-histbv100-linux/bin/../lib/gcc/aarch64-gcc51_glibc222-linux-gnu/5.1.1/../../../../aarch64-gcc51_glibc222-linux-gnu/bin/ld: skipping incompatible /home/myusername/.local/src/HiSTBLinuxV100R005C00SPC060/out/hi3798cv200/hi3798cv2dmo/obj64/source/component/wifi/tools/libnl/_install/lib/libnl-genl-3.a when searching for -lnl-genl-3
/home/myusername/.local/src/HiSTBLinuxV100R005C00SPC060/tools/linux/toolchains/aarch64-histbv100-linux/bin/../lib/gcc/aarch64-gcc51_glibc222-linux-gnu/5.1.1/../../../../aarch64-gcc51_glibc222-linux-gnu/bin/ld: cannot find -lnl-genl-3
/home/myusername/.local/src/HiSTBLinuxV100R005C00SPC060/tools/linux/toolchains/aarch64-histbv100-linux/bin/../lib/gcc/aarch64-gcc51_glibc222-linux-gnu/5.1.1/../../../../aarch64-gcc51_glibc222-linux-gnu/bin/ld: skipping incompatible /home/myusername/.local/src/HiSTBLinuxV100R005C00SPC060/out/hi3798cv200/hi3798cv2dmo/obj64/source/component/wifi/tools/libnl/_install/lib/libnl-3.so when searching for -lnl-3
/home/myusername/.local/src/HiSTBLinuxV100R005C00SPC060/tools/linux/toolchains/aarch64-histbv100-linux/bin/../lib/gcc/aarch64-gcc51_glibc222-linux-gnu/5.1.1/../../../../aarch64-gcc51_glibc222-linux-gnu/bin/ld: skipping incompatible /home/myusername/.local/src/HiSTBLinuxV100R005C00SPC060/out/hi3798cv200/hi3798cv2dmo/obj64/source/component/wifi/tools/libnl/_install/lib/libnl-3.a when searching for -lnl-3
/home/myusername/.local/src/HiSTBLinuxV100R005C00SPC060/tools/linux/toolchains/aarch64-histbv100-linux/bin/../lib/gcc/aarch64-gcc51_glibc222-linux-gnu/5.1.1/../../../../aarch64-gcc51_glibc222-linux-gnu/bin/ld: cannot find -lnl-3
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:110: iw] Error 1
make[5]: Leaving directory '/home/myusername/.local/src/HiSTBLinuxV100R005C00SPC060/out/hi3798cv200/hi3798cv2dmo/obj64/source/component/wifi/tools/iw/iw-6.9'
make[4]: *** [Makefile:64: iw-6.9_build] Error 2
make[4]: Leaving directory '/home/myusername/.local/src/HiSTBLinuxV100R005C00SPC060/source/component/wifi/tools/iw'
make[3]: *** [Makefile:106: iw] Error 2
make[3]: Leaving directory '/home/myusername/.local/src/HiSTBLinuxV100R005C00SPC060/source/component/wifi/tools'
make[2]: *** [Makefile:34: tools] Error 2
make[2]: Leaving directory '/home/myusername/.local/src/HiSTBLinuxV100R005C00SPC060/source/component/wifi'
make[1]: *** [Makefile:157: wifi] Error 2
make[1]: Leaving directory '/home/myusername/.local/src/HiSTBLinuxV100R005C00SPC060/source/component'
make: *** [Makefile:262: component] Error 2

 #### make target "build -j8" failed !!!(04:04 (mm:ss)) ####

can you suggest to me any possible solutions? any help is appreciated, regards

ibexnet commented 1 month ago

Update. I found the problem causing the error. Sorry but was an misconfiguration of the build environment. Anyway I met other two errors, under the directory source/kernel/linux-4.4.y/scripts miss two folders: -basic -kconfig

I copied it from other source on github and I was able to go ahead but I got other several errors:

/home/myuser/.local/src/HiSTBLinuxV100R005C00SPC060/source/kernel/linux-4.4.y/drivers/msp/gpu/midgard/drivers/gpu/arm/midgard/Kbuild:37: "src=drivers/msp/gpu/midgard/drivers/gpu/arm/midgard.............."
  Building modules, stage 2.
  MODPOST 74 modules
ERROR: "wiphy_free" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "cfg80211_unlink_bss" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "ieee80211_frequency_to_channel" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "cfg80211_rx_mgmt" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "cfg80211_mgmt_tx_status" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "cfg80211_vendor_cmd_reply" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "__ieee80211_get_channel" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "cfg80211_get_bss" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "wiphy_unregister" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "cfg80211_del_sta_sinfo" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "cfg80211_connect_result" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "cfg80211_michael_mic_failure" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "wiphy_apply_custom_regulatory" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "cfg80211_ibss_joined" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "__cfg80211_send_event_skb" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "cfg80211_roamed" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "cfg80211_put_bss" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "__cfg80211_alloc_event_skb" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "__cfg80211_alloc_reply_skb" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "wiphy_register" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "cfg80211_ready_on_channel" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "wiphy_new_nm" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "cfg80211_disconnected" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "cfg80211_new_sta" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "cfg80211_remain_on_channel_expired" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "cfg80211_scan_done" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
ERROR: "cfg80211_inform_bss_frame_data" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!
make[4]: *** [/home/myuser/.local/src/HiSTBLinuxV100R005C00SPC060/source/kernel/linux-4.4.y/scripts/Makefile.modpost:91: __modpost] Error 1
make[3]: *** [/home/myuser/.local/src/HiSTBLinuxV100R005C00SPC060/source/kernel/linux-4.4.y/Makefile:1120: modules] Error 2
make[3]: Leaving directory '/home/myuser/.local/src/HiSTBLinuxV100R005C00SPC060/out/hi3798cv200/hi3798cv2dmo/obj64/source/kernel/linux-4.4.y'
make[2]: *** [Makefile:150: sub-make] Error 2
make[2]: Leaving directory '/home/myuser/.local/src/HiSTBLinuxV100R005C00SPC060/source/kernel/linux-4.4.y'
make[1]: *** [Makefile:224: /home/myuser/.local/src/HiSTBLinuxV100R005C00SPC060/out/hi3798cv200/hi3798cv2dmo/obj64/source/kernel/linux-4.4.y/arch/arm64/boot/uImage] Error 2
make[1]: Leaving directory '/home/myuser/.local/src/HiSTBLinuxV100R005C00SPC060/source/kernel'
make: *** [Makefile:181: linux] Error 2

 #### make target "build -j8" failed !!!(10:54 (mm:ss)) ####

any ideas for the possible cause? regards

ibexnet commented 1 month ago

another step ahead. Putting #undef CONFIG_IOCTL_CFG80211 on the file _/home/ibex/.local/src/HiSTBLinuxV100R005C00SPC060/source/component/wifi/drv/usb_rtl8188eu/rtl8188EUS_linux_v4.3.2416705.20160509/include/autoconf.h solve the issue (thanks to this conversation https://github.com/friendlyarm/h3_lichee/issues/6 ). Anyway now I got this error:

ERROR: "wireless_send_event" [drivers/wifi/usb_rtl8188eu/rtl8188EUS_linux_v4.3.24_16705.20160509/rtl8188eu.ko] undefined!

regards