Re: [yocto] /var/volatile not mounted as tmpfs on read-only rootfs when migrating to Warrior

2019-08-02 Thread Stelling2 Carsten
Hi Ryan,

Regarding to timesyncd, have a look at 
https://wiki.archlinux.org/index.php/systemd-timesyncd, especially the section
“Note: The service writes to a local file /var/lib/systemd/timesync/clock with 
every synchronization.
This location is hard-coded and cannot be changed. This may be problematic for 
running off
read-only root partition or trying to minimize writes to an SD card.”

See also https://github.com/systemd/systemd/issues/5610 for your problem with 
systemd-resolved.
According to this, /var, /var/tmp, /run, and /tmp should be writable.

I think the problem is not Yocto specific, but possibly I overlook something.

Best regards,

Carsten

Von: yocto-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org] Im 
Auftrag von Ryan Harkin
Gesendet: Freitag, 2. August 2019 13:09
An: yocto@yoctoproject.org
Cc: openembedded
Betreff: [yocto] /var/volatile not mounted as tmpfs on read-only rootfs when 
migrating to Warrior

Hi,

I have a working system based on Sumo. The system boots with a read-only 
rootfs, then applies are read-write overlay for /etc.

When I migrate to Warrior, systemd-resolved fails to start. If I mount the same 
rootfs via NFS, it starts and works fine.  systemd-timesyncd is also failing, 
but I haven't looked into that yet. It also works fine on the NFS mounted 
system.

The resolve problem seems to be caused by two things:
- /var/volatile is read-only
- /run/systemd/resolve has the wrong ownership
  drwxr-xr-x  2 systemd-network systemd-journal  80 Jul 12 16:23 resolve/
  I think this permissions problem may be a result of the /var/volatile 
mounting
  problems; it looks fine on the NFS mounted system.

If I manually mount /var/volatile (it's in fstab) and change the ownership on 
/run/systemd/resolve, the service starts just fine.

I also notice that /tmp is not mounted at all, which may be related.

Here are the various tmp mount points on my read-only rootfs:

$ mount | grep tmp
devtmpfs on /dev type devtmpfs (rw,nosuid,size=112036k,nr_inodes=28009,mode=755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
overlay on /etc type overlay 
(rw,relatime,lowerdir=/tmp/lower/etc,upperdir=/tmp/upper/etc,workdir=/tmp/upper/work/etc)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=23840k,mode=700)

On the NFS mounted system, I see these:

$ mount | grep tmp
devtmpfs on /dev type devtmpfs 
(rw,relatime,size=118180k,nr_inodes=29545,mode=755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
tmpfs on /var/volatile type tmpfs (rw,relatime)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=23840k,mode=700)

As you can see, NFS has these extra mounts:

tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
tmpfs on /var/volatile type tmpfs (rw,relatime)

I've tried reverting a few commits that may be related, but I haven't had any 
luck working out things have changed, eg:

c4acf1b531  2018-10-19  volatile-binds: use overlayfs if available  
[Matt Hoosier]

Advice would be appreciated. Are there any particular areas I should be looking 
to work out what's going wrong?

Kind regards,
Ryan.
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Multiple ubifs partition

2019-03-07 Thread Stelling2 Carsten
Hi Gabriele,

Have you seen https://github.com/pengutronix/genimage?

Regards,

Carsten

Von: yocto-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org] Im 
Auftrag von Gabriele Zampieri
Gesendet: Montag, 4. März 2019 12:17
An: yocto@yoctoproject.org
Betreff: [yocto] Multiple ubifs partition

Hi all,

I'm trying to build a distribution that has multiple partitions. The desiderata 
is something like:

- rootfs.ubifs mounted on /
- data.ubifs mounted on /data
- opt.ubifs mounted on /opt

I was wondering if there is a standard way to achieve the goal. I see that 
there is a tool called wic, but it does not seems to support ubifs. I could 
post process the tarball image and doing stuff with my scripts, but I'd prefer 
doing this in a single bitbake run. Can you suggest something?

Thanks,
Gabriele
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Failed to populate SDK after upgrade from sumo to thud

2019-01-29 Thread Stelling2 Carsten
Hi,

after upgrade from sumo (2.5.2) to thud (2.6.0) populating the SDK fails with 
following error:

ERROR: kernel-devsrc-1.0-r0 do_install: Function failed: do_install
...
cp cannot stat 'arch/arm/tools/syscall*': No such file or directory.

When I remove the following line from the recipe 
meta/recipes-kernel/linux/kernel-devsrc.bb
cp -a --parents arch/arm/tools/syscall* $kerneldir/build
the SDK can be build.

My kernel version is 4.9.26 (no YP kernel).

Possibly, I missed to set a variable, which wasn't needed in sumo, but required 
by thud?

Any help would be very appreciated.

Thanks

Carsten



-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto