Commit Graph

221 Commits

Author SHA1 Message Date
Alexandre Bard b73e22bcc3 hw16: hw20: Add wlconf
This configuration binary was removed from linux-firmware and
has now it how recipe
2019-04-09 11:01:24 +02:00
Ramon Moesching f5f902fbb6 socket-uart: add runtime configuration through um-service-cfg
All serial based services gets their network configuration through
/etc/user-module/network.conf file
Introduced systemd target user-module

BugzID: 56443

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-09 11:01:24 +02:00
Ramon Moesching 1ce9e1b862 um-service-cfg: Configuration support for user module services
User module provides few information over i2c bus, e.g. ip, version,..
Access /proc/device-tree/user_module/ for checking availability of user
module and get information and stores settings under /etc/user-module/
Port definitions for each services is provided through this recipe
and not through device tree. Would be nice feature for future improvements.

socket-uart and cannelloni depends on that recipe.

BugzID: 56443

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-09 11:01:24 +02:00
Alexandre Bard f5f9246151 busybox: Make syslog service stop later
It will avoid some applications log to come to the console when
stopping the system
BugzID: 55006
2019-04-09 11:01:24 +02:00
Alexandre Bard 5517b388ca hw21:netmodule-linux-image: Add sim-config
BugzID: 56371
2019-04-09 11:01:24 +02:00
Ramon Moesching fa73575c29 socket-uart: provide uart, kline and lin serial interfaces from one recipe
Start systemd services for providing serial interfaces of remote machine:
- UART (ttyUM0)
- KLINE (ttyUM1)
- LIN (ttyUM2)

Caution: UserModule connection settings are hardcoded within the services!
BugzID: 56441

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-09 11:01:24 +02:00
Alexandre Bard e244e992e8 hw21:netmodule-linux-image: Add mac-address-set
BugzID: 54514
2019-04-09 11:01:24 +02:00
Alexandre Bard 83dce85efd hw21:netmodule-linux-image: Add modem-config-dump
BugzID: 56305
2019-04-09 11:01:24 +02:00
Ramon Moesching 3344a7b4a7 socket-uart: Change to correct systemd type and revise socat pty parameters
Systemd service file Type "forking" leads to service restart which
caused socket disconnection. ExecStart process was never forked.
Now Type=simple fixed this issue. It' anyway recommended for
long running tasks.

Socat:
- Fixed typo rawer to raw
- Set echo off
- Defined bitrate

BugzID: 52063

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-09 11:01:24 +02:00
Alexandre Bard 39c553af0d hydra: Add hydra library
This library is required to build some NRSW tools
2019-04-09 11:01:24 +02:00
Lucien Mueller 01a2b20b1c ostree: remove custom ostree recipe
patch-file is now available in meta-updater and thus this bbappend file
is not required anymore.

BugzID: 55796

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-04-09 11:01:24 +02:00
Ramon Moesching 24f65fc2e1 socket-uart: Set runtime dependency only to real package and fix typo
Set runtime dependency only to package with executables
and fix typo.

BugzID: 52063
Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-09 11:01:24 +02:00
Ramon Moesching 36b8009c17 socket-uart: refelct origin uart as pseudo tty device on local host
Bind pseudo tty and origin uart with socat usage (tcp socket)
Socat is started by systemd service.
BugzID: 52063

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-09 11:01:24 +02:00
Patrick Zysset d6ceaa61d4 board-descriptor: remove bd tool from rel images
This tool have been provided for debugging purposes. Therefore it is
removed from release and minimal images and only used in development
images.

BugzID: 55615

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-04-09 11:01:23 +02:00
Ramon Moesching 748a3bc835 archiver-dev.bbclass: Introduce patched archiver class with package selection and .git/ removement
Extend archiver class with selectiv package archiving (masking)
and option to remove .git/ repository

Hold changes in this new created file and try to bring it upstream
Referenced to commit id: a2eb50176b800c49c3899fa2f87585a869690bfa
from poky

BugzID: 54327

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-01-25 13:35:23 +01:00
Lucien Mueller b05c71cc6d nmhw-auto-part: Fixed License.
BugzID: 55165

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-01-15 15:23:10 +01:00
Lucien Mueller ddecaacf69 parted: ignore invalid partitions
Parted now ignores mmcblk1boot* and mmcblk1rpmb while scanning our emmc device.

BugzID: 54565

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-01-15 15:21:44 +01:00
Patrick Zysset 448b9f8b3e recipes-core: add more benchmark tools to dev img
adding stress-ng and rt-tests default recipes from openembedded:
https://layers.openembedded.org/layerindex/recipe/72405/
https://layers.openembedded.org/layerindex/recipe/742/

BugzId: 55188

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-01-15 14:49:34 +01:00
Lucien Mueller be97c8d11d nmhw-auto-part: fixed regular functionality.
BugzID: 55005

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-01-07 11:36:07 +01:00
Lucien Mueller 84eb8da797 ostree/rpm: Add symlink /var/lib/rpm -> /usr/lib/rpm
BugzID: 54869

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-12-20 16:37:57 +01:00
Lucien Mueller 89ed797685 ostree-initrd: Remove the immutable flag from root before creating the /data folder.
BugzID: 54936

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-12-20 10:02:46 +01:00
Alexandre Bard f83a9b93f0 sw-update: Update config to use mmcblk1 on all devices
A change in latest kernel made the name of the mmc memory
to change from mmc0 to mmc1 at least for HW16, 20 and 21
2018-12-19 08:38:46 +01:00
Alexandre Bard 867b7b74cd hw21:dev-image: Add ublox gnss fw update tool an firmware
BugzID: 54544
2018-12-18 13:27:18 +01:00
Ramon Moesching d42102fd2e local.conf.sample: add image-mklibs and image-prelink to USER_CLASSES
The mklibs process optimizes the size of the libraries,
while the prelink process optimizes the dynamic linking
of shared libraries to reduce start up time of executables.


Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2018-12-18 09:13:53 +01:00
Lucien Mueller ab3b84370b python3: Removes pycache.
INCLUDE_PYC = 0 should prevent the python recipe to build pycache.
Because it still produces half the pycache (bug?),
I added a script to find and remove all pycache directories before they are packaged.

BugzID: 53805

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-12-14 17:15:39 +01:00
Lucien Mueller 0722982b5c nmhw-auto-part: Now shows usage when presented with an unsupported argument.
BugzID: 54510

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-12-14 10:18:58 +01:00
Lucien Mueller cc0f881661 nmhw-auto-part: The overlay is now mounted during the initramdisk script.
This makes sure, that every service will work with the changes made to the
rootfs, while the overlay is active.

BugzID: 54854

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-12-13 16:50:08 +01:00
Lucien Mueller e8b8d4c0cd ostree-initrd: Suppressed init-script informational output. Fixed initramfs unmount bug.
BugzID: 54171

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-12-12 11:27:02 +01:00
Lucien Mueller a67e0803aa nmhw-auto-part: Now prints a small help message when the script finishes.
BugzID:54512

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-12-10 17:29:27 +01:00
Lucien Mueller 7235d88103 externalgitsrc: changed so that the variable is now only set once instead of beeing read every time its assigned.
This also rebuilds recipes which use the EXTERNALSRC_GIT_SRCREV variable, when the variable changes.

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-12-10 16:05:32 +01:00
Lucien Mueller 4f2ee73047 nmhw-auto-part: improved nmhw-auto-part tool help and verbosity.
BugzID: 54511

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-12-05 14:31:23 +01:00
Lucien Mueller 6cca5429e5 nmhw-auto-part: Added the parted-3.2 as preferred version.
This freezes the parted version to 3.2 to improve the stability of the script.

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-12-04 14:54:14 +01:00
Lucien Mueller 3f94a206e1 nmhw-auto-part: mount-overlay service description fixed.
Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-12-04 14:54:04 +01:00
Lucien Mueller 036f914dd1 nmhw-auto-part: Script now uses parted instead of fdisk.
BugzID: 54458

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-12-04 14:53:48 +01:00
Lucien Mueller 212421128a nmhw-auto-part: improved script.
Script now automatically aborts, when an error occours.

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-12-04 14:49:20 +01:00
Alexandre Bard 45e0d28fdf Fix nmcli warning: terminal not fully functional 2018-11-30 16:51:20 +01:00
Alexandre Bard fdd3159b5a nmhw-auto-part: Use default fdisk unit : sector
fdisk 'u' commands changed the unit to cylinders which is deprecated
according to warning thrown by fdisk. Furthemore, itcreates a mismatch
between the values used in fdisk and the values read from the sysfs
(start, size, etc...) which lead to an error
2018-11-26 17:22:50 +01:00
Ramon Moesching 6d08a24f22 netmodule-linux distro conf: Set IMAGE_LINGUAS to en_us
Get rid of en_gb by defining image linguas to en_us.

BugzID: 54234

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2018-11-26 14:07:28 +01:00
Ramon Moesching e0533cb69d netmodule-linux distro conf: use git describe for distro version
Set distro version from git describe of project root.

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2018-11-22 15:57:40 +01:00
Ramon Moesching 22640795f0 ostree bbappend: ostree finalize shutdown service give infinity time
OSTree is doing some finalizing tasks after system upgrade. But systemd
shutdown timeout is now default on 10s (or what ever). With this commit
ostree finalize service is indepent from systemd's default value.

BugzID: 53646

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2018-11-22 13:53:35 +01:00
Ramon Moesching 95dd5a5a3b systemd bbappend: add config file for nmhw21 and decrease default timeout
Deploy pre defined configuration file for nmhw21 and set default
timeout to 10s instead of 90s.

BugzID: 53646

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2018-11-21 14:41:34 +01:00
Alexandre Bard 9e9a7c8fae Move OSTREE_BRANCHNAME to image recipe 2018-11-20 15:22:25 +01:00
Ramon Moesching dbb45e6faa netmodule-linux-image: get rid of athk* firmware packages
Hardware nmhw21 doesn't have any atheros wifi nor bluetooth chip. So remove
these two firmware packages.

BugzID: 53810

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2018-11-20 14:44:05 +01:00
Alexandre Bard 80bcc5d2ba distro: Autoload cryptodev module
cryptodev is needed for HW accelerated crypto

BugzID: 54246
2018-11-19 17:27:03 +01:00
Ramon Moesching 8e73405d5e base_files bbappend: Quiet basehash errors, removed DATE variable
Previous fixes didn't helped so remove DATE variable from recipe
to get some silence in here. Also removed do_configure and
do_install_remove [nostamp] since they are not really necessary.
But let do_comile and do_install [nostamp] stay for forcing rebuild and
installation to keep files in final rootfs up to date.

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2018-11-19 15:17:43 +01:00
Alexandre Bard 81d05cf8e8 battery-test: Always use master branch
Using ${MACHINE} directly in the recipe is problematic
when building recipes for MACHINE for which there is no branch
on the battery-test repo.

Even if the recipe is not used, bitbake will fail while before doing
anything during the parsing step.

Workaround would be to overwrite this SRC_URI in machine.conf file.
2018-11-16 11:58:44 +01:00
Alexandre Bard c51ece98cc netmodule-linux-image:hw21: Add cryptodev
BugzID: 54246
It enables the crypto HW acceleration
2018-11-16 11:51:58 +01:00
Alexandre Bard de693de98d hw18: Add sota capabilities 2018-11-14 21:11:21 +01:00
Alexandre Bard a720f3150e nrhw18 : Enable watchdog support in systemd 2018-11-14 21:11:21 +01:00
Alexandre Bard 44701bdfdf Remove useless recipes
devmem2:
 recipe in meta-openembedded vs static C file

gettext:
 0.19.8.1 in meta-openembedded vs 0.19.7

keyutils: not used

libxcrypt: useless dependency
2018-11-14 21:10:48 +01:00