Comments (9)
hi,
I had the same issue with several DS18B20 thermal sensors with dtoverlay=w1-gpio
in /boot/config
. The kernel modules got loaded without any errors but no devices had shown up in /sys/bus/w1/devices
at all, no error messages in the logs.
I've fixed it with the proposed workaround from here to truncate the kernel images so it doesn't contain the trailer anymore since DT should be activated by default on latest kernels and if there's no trailer in it would just activate it.
So now I can query all my 5 thermal sensors 🐼
The hypriot kernel I'm running is: Linux black-pearl 4.4.39-hypriotos+ #2 PREEMPT Sun Dec 18 15:33:58 UTC 2016 armv6l GNU/Linux
@StefanScherer I think the --ddtk
flag would fix it as well and I'm happy to test it.
one more thing: hypriot is great! Thanks for that! 👍
from rpi-kernel.
@flochtililoch Thank you for investigating the problem. As mentioned in raspberrypi/firmware#655 we should check the arguments for mkknlimg
in
rpi-kernel/scripts/compile_kernel.sh
Line 142 in 2c0172b
from rpi-kernel.
Some documentation https://github.com/raspberrypi/documentation/blob/228fb7155665405d3586b581cc3c329d14b4c0fd/configuration/device-tree.md#31-overlays-and-configtxt
and
https://github.com/raspberrypi/tools/blob/648a6eeb1e3c2b40af4eb34d88941ee0edeb3e9a/mkimage/README
Haven't found a script that uses arguments to mkknlimg
, but it seems that we need to use --ddtk
https://github.com/raspberrypi/linux/blob/12d5fa2dc64a11ac0d2faefeee501f6ed97dbc3b/scripts/mkknlimg#L39-L42
from rpi-kernel.
ping @DieterReuter PTAL
from rpi-kernel.
I have prepared a pull request #36 and some artifacts at https://circleci.com/gh/hypriot/rpi-kernel/45#artifacts/containers/0
After installing them the DDTK shows y.
$ ./knlinfo /boot/kernel.img
Kernel trailer found at 9546780/0x91ac1c:
KVer: "Linux version 4.4.50-hypriotos+ (ubuntu@box1211) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #2 PREEMPT Sun Mar 19 16:08:02 UTC 2017"
DTOK: y
DDTK: y
270X: y
283X: n
283x: n
@mariuspod would you like to install the kernel deb files from the CircleCI build and test it if it works for you?
I have tested it with these steps
mkdir ddtk
cd ddtk
wget https://45-32913687-gh.circle-artifacts.com/0/tmp/circle-artifacts.3ba4vbR/libraspberrypi-bin_20170319-145049_armhf.deb
wget https://45-32913687-gh.circle-artifacts.com/0/tmp/circle-artifacts.3ba4vbR/libraspberrypi-dev_20170319-145049_armhf.deb
wget https://45-32913687-gh.circle-artifacts.com/0/tmp/circle-artifacts.3ba4vbR/raspberrypi-bootloader_20170319-145049_armhf.deb
wget https://45-32913687-gh.circle-artifacts.com/0/tmp/circle-artifacts.3ba4vbR/libraspberrypi0_20170319-145049_armhf.deb
wget https://45-32913687-gh.circle-artifacts.com/0/tmp/circle-artifacts.3ba4vbR/raspberrypi-kernel_20170319-145049_armhf.deb
sudo dpkg -i raspberrypi-bootloader_20170319-145049_armhf.deb
sudo dpkg -i raspberrypi-kernel_20170319-145049_armhf.deb
sudo dpkg -i libraspberrypi0_20170319-145049_armhf.deb
sudo dpkg -i libraspberrypi-bin_20170319-145049_armhf.deb
sudo dpkg -i libraspberrypi-dev_20170319-145049_armhf.deb
sudo reboot && exit
from rpi-kernel.
The kernel trailer is looking good 👍
$ ./knlinfo /boot/kernel.img
Kernel trailer found at 9546780/0x91ac1c:
KVer: "Linux version 4.4.50-hypriotos+ (ubuntu@box1211) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #2 PREEMPT Sun Mar 19 16:08:02 UTC 2017"
DTOK: y
DDTK: y
270X: y
283X: n
283x: n
Will have to test with my temp sensors later this week.
Thanks for the fix! 😄
from rpi-kernel.
@StefanScherer successfully tested with a I2C OLED display with two DT flags in /boot/config.txt
:
dtparam=i2c1=on
dtparam=i2c_arm=on
from rpi-kernel.
@mariuspod if this is resolved for you now, you could close the issue. 😏
from rpi-kernel.
not sure I can do it, I wasn't the original issue creator and there's no button. @flochtililoch can you close it ? From me there's a 👍
from rpi-kernel.
Related Issues (20)
- Build and deploy kernel with CircleCI to packagecloud HOT 1
- Deploy to packagecloud HOT 1
- SPI inside Docker Container HOT 4
- pi3-disable-bt dont work on hypriotOS
- fix dirty cow HOT 2
- can we make it easier to correlate releases and their files? HOT 4
- Vagrant build of "upgrade-kernel-to-4.4.27" HOT 2
- enable onboard HCI Bluetooth for Pi 0 HOT 1
- Kernel should support 'dtoverlay=pi3-disable-bt' HOT 3
- raspberrypi-kernel-headers 4.9.80 package contains old files
- Allocate reasonable disk space to the image HOT 2
- Kernel 4.14.70 not present in packagecloud.io/hypriot/rpi HOT 3
- Kernel 4.14.79 does not have dependency map HOT 13
- deleting kernel source and firmware tools any time the build script is launched HOT 2
- Permissions issue HOT 1
- Deb without prebuilt stuff
- copy overlays HOT 1
- Arm64? HOT 4
- fatal error: version number
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 rpi-kernel.