Hi again! I should have mentioned that the image will also include a meta-mender layer for updates. Additionally an extra layer for setting up the wifi & ble for rpi and an application layer. So I am looking for an automated approach where I can make production updates through mender.
I also have tried the RPI_EXTRA_CONFIG flag to set dtoverlay that didn't make any difference. INHERIT += "mender-full" MACHINE = "raspberrypi3" RPI_USE_U_BOOT = "1" MENDER_PARTITION_ALIGNMENT = "4194304" MENDER_BOOT_PART_SIZE_MB = "40" IMAGE_INSTALL_append = " nodejs bluez5 kernel-image kernel-devicetree mender-wait-for-timesync" IMAGE_FSTYPES_remove += " rpi-sdimg" DISTRO_FEATURES_append = " bluez5 bluetooth systemd" VIRTUAL-RUNTIME_init_manager = "systemd" DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" VIRTUAL-RUNTIME_initscripts = "" IMAGE_FSTYPES = "ext4" SDIMG_ROOTFS_TYPE = "ext4" # SPI, i2c and w1-gpio settings ENABLE_SPI_BUS = "1" ENABLE_I2C = "1" RPI_EXTRA_CONFIG = ' \n \ dtoverlay=w1-gpio \n \ ' On Sat, 6 Oct 2018 at 03:13, Khem Raj <raj.k...@gmail.com> wrote: > On Fri, Oct 5, 2018 at 9:27 AM Andrei Gherzan <and...@gherzan.ro> wrote: > > > > Hi Markus, > > > > On Fri, Oct 5, 2018 at 4:28 PM Markus W <markus4...@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@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto >
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto