Comments (9)
Please copy the built module to /lib/modules/<kernel-version>/extra/
of your target board.
It is described in Building External Modules
from lora.
This project makes the sx1278 as an external module which does not exist in original Linux kernel. So, I have not tried the cross-compiling for it. However, you can build it on an arm board manually, just like on x86 computers.
Or, you can move the source file into Linux kernel source code by yourself for experiment. Then, also prepare and modify the related Kconfigs and Makefiles which enables to choose the sx1278 module in make menuconfig
.
from lora.
i compile my kernel with crosscompile (don't want doing on target-machine) so i added it to lora makefile too, as described above. i also changed path to my kernel-source...i know that it is not existing in kernel itself, but makefile needs kernel-sources so i only changed the path to them
problem is that module seems not to be compatible with 4.19, many missing, duplicate and different definitions
have compiled it against 4.19 kernel-sources yet?
from lora.
Please show the compiling error.
BTW, have you tried the commit which is just pushed few hours ago? I have tried it on my laptop whose kernel is 4.20.
from lora.
have now added the patch and got this result:
make -C ../.. M=/media/data_ext/bpi-r2-kernel/github/utils/lora modules
make[1]: Entering directory '/media/data_ext/bpi-r2-kernel/github'
CC [M] /media/data_ext/bpi-r2-kernel/github/utils/lora/sx1278.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: "ieee802154_xmit_complete" [/media/data_ext/bpi-r2-kernel/github/utils/lora/sx1278.ko] undefined!
WARNING: "ieee802154_rx_irqsafe" [/media/data_ext/bpi-r2-kernel/github/utils/lora/sx1278.ko] undefined!
WARNING: "ieee802154_register_hw" [/media/data_ext/bpi-r2-kernel/github/utils/lora/sx1278.ko] undefined!
WARNING: "ieee802154_alloc_hw" [/media/data_ext/bpi-r2-kernel/github/utils/lora/sx1278.ko] undefined!
WARNING: "ieee802154_free_hw" [/media/data_ext/bpi-r2-kernel/github/utils/lora/sx1278.ko] undefined!
WARNING: "ieee802154_unregister_hw" [/media/data_ext/bpi-r2-kernel/github/utils/lora/sx1278.ko] undefined!
CC /media/data_ext/bpi-r2-kernel/github/utils/lora/sx1278.mod.o
LD [M] /media/data_ext/bpi-r2-kernel/github/utils/lora/sx1278.ko
make[1]: Leaving directory '/media/data_ext/bpi-r2-kernel/github'
from lora.
The log says sx1278 module is built now. Please copy it to /lib/modules/<kernel-version>/extra/
of your target board.
All of the functions in the warnings are provided by the mac802154 module in Linux kernel. You can check the mac802154 is built within the Linux kernel or not for the warnings. If it is not, please toggle it to Y or M in make menuconfig
when you build Linux kernel.
from lora.
thank you, this fixes that
now i'm hanging on overlay (have changed target-dir and removed sudo)...
dtc -I dts -O dtb -@ -o rpi-lora-spi.dtbo rpi-lora-spi-overlay.dts
rpi-lora-spi.dtbo: Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property
rpi-lora-spi.dtbo: Warning (unit_address_vs_reg): Node /fragment@0/__overlay__/spidev@0 has a unit name, but no reg property
rpi-lora-spi.dtbo: Warning (unit_address_vs_reg): Node /fragment@0/__overlay__/spidev@1 has a unit name, but no reg property
btw. uploaded my staging here:
https://github.com/frank-w/BPI-R2-4.14/tree/4.19-lora_new
created a separate dts for bpi-r2 where only spi0 is defined (no spidev), so only the top-node (fragment 0) brings this warning
make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm
dtc -I dts -O dtb -@ -o bpi-r2-lora-spi.dtbo bpi-r2-lora-spi-overlay.dts
bpi-r2-lora-spi.dtbo: Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property
build is a symlink to my source-directory on my host-machine (invalid on target)...imho the module has to be inside /lib/modules/kernelname/kernel/...but where?
from lora.
The original issue is solved.
The overlay question is another issue. Please separate it to a new ticket.
from lora.
Ok,have opened a new issue for dts
Where should i put the module? build-symlink is invalid on target
from lora.
Related Issues (14)
- Prepare for send patch to Linux mainline HOT 1
- How can I test the lora driver? HOT 3
- dts compile warnings HOT 1
- 6LoWPAN Communications Using Global Addresses
- G5 maybe -36 db more than -26 db in LnaGain of RegLna
- Is it compatible with Dragino LoRa / GPS HAT? HOT 2
- Not detecting RF output HOT 2
- Use regmap rather than SPI directly HOT 1
- make file not working HOT 1
- observing an issue with reading the data
- Unable to make
- Make it IEEE 802.15.4 compatible HOT 1
- Can't make module on raspberry pi3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lora.