trikset / meta-trik

Meta layer for trik platform
0 stars 14 forks source link

[WIP] New age revisited #136

Open anastasiia-kornilova opened 3 years ago

anastasiia-kornilova commented 3 years ago

List of cleanups for the new age

  1. rng-tools. Open ssh, which we use in the new age, pulls recommended dependency on rng-tools -- set of tools to speed up entropy calculation using the special "hw rng" chip in CPU. Discussion on appearance this in OE could be found here -- https://patches.openembedded.org/patch/161052/ . Since TRIK board doesn't have such a chip, rng-tools usage increases boot time up to 3 minutes in comparison to old one haveged rng (less than 1 min). BAD_RECOMMENDS flag is a standard way to decline such recommended package, in that case old haveged is used. To discuss: maybe this config should be placed in another config.

  2. psplash. Psplash script creates /mnt/.psplash folder during runtime execution, but we have issues with write access to file system at the moment when 0 level of Sysv runs. Some time after it is remouted and becomes rw (see logs below). This bug was before new_age (let's say this is TODO/potential issue), but it was invisible because psplash.bb created this folder during distro build, not in runtime. As current solution, I'm doing the same, extending psplash.bbappend. Also, an important bug that doesn't allow mounting folder is fixed via existing patch from Dunfell version (should be dropped away after migrating to Dunfell).

[    2.861328] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[    2.870087] VFS: Mounted root (ext4 filesystem) readonly on device 179:1.
[    2.879447] devtmpfs: mounted
[    2.884042] Freeing unused kernel memory: 240K
[    2.888739] This architecture does not have kernel memory protection.
INIT: version 2.88 booting
mkdir: cannot create directory '/mnt/.psplash': Read-only file system
...
[   12.407345] EXT4-fs (mmcblk0p1): re-mounted. Opts: stripe=16,data=ordered

Tiny fixes:

TODO: