Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux/firmware/bflb-m0-fw.h is missing #6

Open
illantalex opened this issue May 9, 2024 · 0 comments
Open

linux/firmware/bflb-m0-fw.h is missing #6

illantalex opened this issue May 9, 2024 · 0 comments

Comments

@illantalex
Copy link

I tried to build the kernel module together with the helper program but it shows me that this header is missing (I can't find it anywhere in bl808_linux repo or in the IoT SDK)

This is the command I used (the toolchain is the same one I used to compile the kernel):

make CONFIG_BL_INTF=XRAM KDIR=../bl808_linux/linux-5.10.4-808/ ARCH=riscv CROSS_COMPILE=$RISCV_TOOLCHAIN -j

And this was the output:

KCPPFLAGS="" make -C ../bl808_linux/linux-5.10.4-808/ M=/media/illantalex/lin_backup/bl808/blwnet_xram modules
make CC=cc CFLAGS= AR=ar -C userspace
make[1]: Entering directory '/media/illantalex/lin_backup/bl808/blwnet_xram/userspace'
cc -DBUILD_USERSPACE -g -c blctl_main.c -o blctl_main.o
make[1]: Entering directory '/media/illantalex/lin_backup/bl808/bl808_linux/linux-5.10.4-808'
cc -DBUILD_USERSPACE -g -c blctl.c -o blctl.o
cc -DBUILD_USERSPACE -g -c blctl_ota.c -o blctl_ota.o
cc -DBUILD_USERSPACE -g -c utils.c -o utils.o
cc -DBUILD_USERSPACE -g -c blctld_main.c -o blctld_main.o
ar rcu libblctl.a blctl.o blctl_ota.o utils.o
ar: `u' modifier ignored since `D' is the default (see `U')
cc -DBUILD_USERSPACE -g blctl_main.o libblctl.a -o blctl -L. -lblctl -lpthread
cc -DBUILD_USERSPACE -g blctld_main.o libblctl.a -o blctld -L. -lblctl -lpthread
make[1]: Leaving directory '/media/illantalex/lin_backup/bl808/blwnet_xram/userspace'
  CC [M]  /media/illantalex/lin_backup/bl808/blwnet_xram/main.o
  CC [M]  /media/illantalex/lin_backup/bl808/blwnet_xram/wifi.o
  CC [M]  /media/illantalex/lin_backup/bl808/blwnet_xram/msg_handlers.o
  CC [M]  /media/illantalex/lin_backup/bl808/blwnet_xram/ctl_port.o
  CC [M]  /media/illantalex/lin_backup/bl808/blwnet_xram/bl_xram_eth.o
  CC [M]  /media/illantalex/lin_backup/bl808/blwnet_xram/xram_msg_handlers.o
/media/illantalex/lin_backup/bl808/blwnet_xram/bl_xram_eth.c:21:10: fatal error: linux/firmware/bflb-m0-fw.h: No such file or directory
   21 | #include <linux/firmware/bflb-m0-fw.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:279: /media/illantalex/lin_backup/bl808/blwnet_xram/bl_xram_eth.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1805: /media/illantalex/lin_backup/bl808/blwnet_xram] Error 2
make[1]: Leaving directory '/media/illantalex/lin_backup/bl808/bl808_linux/linux-5.10.4-808'
make: *** [Makefile:57: lkm] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant