Giter Site home page Giter Site logo

Comments (9)

mariuspod avatar mariuspod commented on September 2, 2024 1

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.

StefanScherer avatar StefanScherer commented on September 2, 2024

@flochtililoch Thank you for investigating the problem. As mentioned in raspberrypi/firmware#655 we should check the arguments for mkknlimg in

${LINUX_KERNEL}/scripts/mkknlimg $LINUX_KERNEL/arch/arm/boot/Image $BUILD_RESULTS/$PI_VERSION/${IMAGE_NAME[${PI_VERSION}]}

from rpi-kernel.

StefanScherer avatar StefanScherer commented on September 2, 2024

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.

StefanScherer avatar StefanScherer commented on September 2, 2024

ping @DieterReuter PTAL

from rpi-kernel.

StefanScherer avatar StefanScherer commented on September 2, 2024

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.

mariuspod avatar mariuspod commented on September 2, 2024

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.

mariuspod avatar mariuspod commented on September 2, 2024

@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.

DieterReuter avatar DieterReuter commented on September 2, 2024

@mariuspod if this is resolved for you now, you could close the issue. 😏

from rpi-kernel.

mariuspod avatar mariuspod commented on September 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.