Comments (14)
Hi,
this is wrong:
echo "dtparam=nrf24-spi0-overlay" >> /boot/config.txt
You have nrf24-spi0.dtbo so do the following:
echo "dtparam=nrf24-spi0" >> /boot/config.txt
And do not comment out dtparam=spi=on. Leave it enabled.
Marcin
from nrf24.
Okay uncommented it and changed the dtparam as you indicated. Also moved out /boot/overlays/spi*.dtbo just in case. Same dmesg output (just the kernel taint line). No luck yet!
from nrf24.
Is your Log Level set to debug? What does cat /proc/sys/kernel/printk
say?
from nrf24.
Not sure on the Log Level.
$ cat /proc/sys/kernel/printk
4 4 1 7
Update: I tried insmod again after running the following, but got no extra output in dmesg (or otherwise):
echo 8 | sudo tee /proc/sys/kernel/printk
from nrf24.
Weird...
Do you see any spidev in /dev or any nrf* folder in /proc/device-tree/soc/spi@7e204000/ ?
from nrf24.
Nope on /dev. Here's proc (grep -i nrf isn't finding anything):
/proc/device-tree/soc/spi@7e204000/:
total 0
-r--r--r-- 1 root root 4 Dec 20 14:00 #address-cells
-r--r--r-- 1 root root 8 Dec 20 14:00 clocks
-r--r--r-- 1 root root 17 Dec 20 14:00 compatible
-r--r--r-- 1 root root 24 Dec 20 14:00 cs-gpios
-r--r--r-- 1 root root 6 Dec 20 14:00 dma-names
-r--r--r-- 1 root root 16 Dec 20 14:00 dmas
-r--r--r-- 1 root root 8 Dec 20 14:00 interrupts
-r--r--r-- 1 root root 4 Dec 20 14:00 name
-r--r--r-- 1 root root 4 Dec 20 14:00 phandle
-r--r--r-- 1 root root 8 Dec 20 14:00 pinctrl-0
-r--r--r-- 1 root root 8 Dec 20 14:00 pinctrl-names
-r--r--r-- 1 root root 8 Dec 20 14:00 reg
-r--r--r-- 1 root root 4 Dec 20 14:00 #size-cells
drwxr-xr-x 2 root root 0 Dec 20 14:00 spidev@0/
drwxr-xr-x 2 root root 0 Dec 20 14:00 spidev@1/
-r--r--r-- 1 root root 5 Dec 20 14:00 status
/proc/device-tree/soc/spi@7e204000/spidev@0:
total 0
-r--r--r-- 1 root root 4 Dec 20 14:00 #address-cells
-r--r--r-- 1 root root 7 Dec 20 14:00 compatible
-r--r--r-- 1 root root 7 Dec 20 14:00 name
-r--r--r-- 1 root root 4 Dec 20 14:00 phandle
-r--r--r-- 1 root root 4 Dec 20 14:00 reg
-r--r--r-- 1 root root 4 Dec 20 14:00 #size-cells
-r--r--r-- 1 root root 4 Dec 20 14:00 spi-max-frequency
/proc/device-tree/soc/spi@7e204000/spidev@1:
total 0
-r--r--r-- 1 root root 4 Dec 20 14:00 #address-cells
-r--r--r-- 1 root root 7 Dec 20 14:00 compatible
-r--r--r-- 1 root root 7 Dec 20 14:00 name
-r--r--r-- 1 root root 4 Dec 20 14:00 phandle
-r--r--r-- 1 root root 4 Dec 20 14:00 reg
-r--r--r-- 1 root root 4 Dec 20 14:00 #size-cells
-r--r--r-- 1 root root 4 Dec 20 14:00 spi-max-frequency
from nrf24.
There is something wrong with Device Tree overlay. It is not loaded. If loaded there should be nrf0@0 folder in /proc/device-tree/soc/spi@7e204000/.
Paste /boot/config.txt please.
Are you sure that dtc compiled dts to dtbo?
I use quite new kernel (Linux pi 4.15.0-rc4-v7+ #4 SMP Wed Dec 20 11:20:28 -00 2017 armv7l GNU/Linux) but don't think it should be a problem...
from nrf24.
file /boot/overlays/nrf24-spi0.dtbo:
/boot/overlays/nrf24-spi0.dtbo: Device Tree Blob version 17, size=1487, boot CPU=0, string block size=215, DT structure block size=1216
/boot/config.txt:
# For more options and information see
# http://rpf.io/configtxtreadme
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on
# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=off
enable_uart=1
dtparam=i2c1_baudrate=400000
dtparam=nrf24-spi0
from nrf24.
Change dtparam=nrf24-spi0
to dtoverlay=nrf24-spi0
in /boot/config.txt
from nrf24.
That did the trick! Thanks a lot!
For posterity:
[ 22.022768] nrf24: loading out-of-tree module taints kernel.
[ 22.096026] nrf24 nrf0: nrf24_create_pipe: device created: major(244), minor(0)
[ 22.187412] nrf24 nrf0: nrf24_create_pipe: device created: major(244), minor(1)
[ 22.278623] nrf24 nrf0: nrf24_create_pipe: device created: major(244), minor(2)
[ 22.369499] nrf24 nrf0: nrf24_create_pipe: device created: major(244), minor(3)
[ 22.460449] nrf24 nrf0: nrf24_create_pipe: device created: major(244), minor(4)
[ 22.551145] nrf24 nrf0: nrf24_create_pipe: device created: major(244), minor(5)
[ 22.643850] nrf24 nrf0: nrf24_tx_thread: waiting for new messages
from nrf24.
No problem 😉
from nrf24.
@mciupak a little bit off-topic, do you have a proven working arm64 mainline kernel config at hand ?
Asking because I saw your message "I use quite new kernel"
from nrf24.
Have not tried this, but apparently for Upstream BCM2837 as far as I know defconfig should be fine. Have you tried this?
from nrf24.
@mciupak I am sure it needs some tweaks.. I tried it, yes.. it might be fine but I see that it builds all possible platforms... There should be a lot useless stuff.
One more question: how do you usually prepare rpi rootfs ? Do you use your own scripts or any open-source ?
from nrf24.
Related Issues (8)
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 nrf24.