[yocto] [meta-raspberrypi] Problem enabling w1-gpio

Khem Raj raj.khem at gmail.com
Fri Oct 5 18:12:40 PDT 2018


On Fri, Oct 5, 2018 at 9:27 AM Andrei Gherzan <andrei at gherzan.ro> wrote:
>
> Hi Markus,
>
> On Fri, Oct 5, 2018 at 4:28 PM Markus W <markus4dev at gmail.com> wrote:
>>
>> Hi!
>>
>> I'm creating a yocto image (sumo) for the raspberrypi and got stuck on how to enable the one-wire interface on boot.
>>
>> I have enabled the SPI bus and I2C in my local.conf file.
>>
>> ENABLE_SPI_BUS = "1"
>> ENABLE_I2C = "1"
>>
>> and checked that they are loaded on boot.
>>
>> I'm struggling to figure out where to set  "dtoverlay=w1-gpio" and how to enable the w1-gpio module on boot. The /boot/config.txt file doesn't exist by default after startup. If I create this file with the line above directly on the rpi and reboot it, the w1-gpio interface is still not enabled.
>
>
> /boot when you run up the image is on the rootfs while the file you are looking for is in the boot partition. You will need to mount (or set a boot mount - fstab, systemd etc) the boot partition (p1) and you will see the file afterwards. Alternatively, just mount the SD card's partitions on your working station and modify the file offline.
>

if one starts using wic image instead of old sd-card image types then
boot is automounted.

Just add

IMAGE_FSTYPES += "wic.xz"

for nice xz compressed wic image.

> ---
> Andrei
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


More information about the yocto mailing list