Commit Graph

233 Commits

Author SHA1 Message Date
Lucien Mueller ba7c13cbc8 distro: added yocto version name as prefix on the ostree branchname for "normal" and "dev" image.
BugzID: 59761

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-10-28 14:09:35 +01:00
Alexandre Bard 5b1d348ce8 Rename package ublox-configuration to ublox-gsm-config
BugzID: 57325
2019-06-13 15:56:45 +02:00
Alexandre Bard fa7e258511 netmodule-linux-image: Add libgpiod python bindings
BugzID: 57325
2019-06-13 11:33:46 +02:00
Alexandre Bard 30d78a2958 netmodule-distro: Add python bindings for libgpiod
libgpiod simplify access to gpios from ublox-config script.
Usage: Power off and on ublox modem

BugzID: 57325
2019-06-12 13:48:20 +02:00
Alexandre Bard 285d8e97dc netmodule-linux-image: Remove deprecated modem config related scripts
All features are now merged in ublox-configuration

BugzID: 57325
2019-06-12 13:48:15 +02:00
Moesching 2966a58bea image-preprocessing: dnsmasqlease: remove useless mkdir command
Directory is already created through recipe.

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-30 10:55:25 +02:00
Ramon Moesching 3f9a68e40f dnsmasq lease: add image tasks for creating tmpfiles.d configuration
Since user move directories in /var/lib aren't deployed in sota images.
So create them by systemd's tmpfiles.d.

/var/lib/misc is required for dnsmasq lease file.

BugzID: 56729

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-24 09:46:21 +02:00
Ramon Moesching b485212300 netmodule-linux-image: move additional image tasks out of recipe
Declare additional image tasks from now in seperate include file

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-24 09:43:14 +02:00
Ramon Moesching 5b505a5ad3 dsnmasq bbappend: disable systemd service and create dir /var/lib/misc
dnsmasq is started by systemd service during booting. This process is
preventing networkmanager for e.g. bring up any wifi access point where
dnsmasq acts as dhcp server.

Directory /var/lib/misc is required for lease file.

BugzID: 56729

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-24 09:37:20 +02:00
Ramon Moesching 1c0dfb864a um-service-config: remove availability check
FCT Hotfix: Remove unnecessary ping check and fix zerobyte warning.

ip=dhcp is affecting init system and services are failing even when
target is started with/after network-online.target
Needs further investigations!

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-04-12 11:50:29 +02:00
Alexandre Bard 004fa88b74 dev-image: Add tmate
tmate is a terminal sharing tool based on tmux. It will help us
understand and help remotely
2019-04-11 16:57:45 +02:00
Alexandre Bard de7a92cdca sw-update: Fix spl update 2019-04-11 16:57:45 +02:00
Alexandre Bard 6668e24305 hw16: hw20: Add wlconf
This configuration binary was removed from linux-firmware and
has now it how recipe
2019-04-09 10:56:23 +02:00
Ramon Moesching 82bbc341d7 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-05 16:03:14 +02:00
Ramon Moesching f46f7a1dca 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-05 16:00:06 +02:00
Alexandre Bard e13bb7edfe 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-02 19:02:20 +02:00
Alexandre Bard e596289652 hw21:netmodule-linux-image: Add sim-config
BugzID: 56371
2019-04-02 14:58:41 +02:00
Ramon Moesching 6a94f1fbfa 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-02 14:51:58 +02:00
Alexandre Bard 3c9a5b02d3 hw21:netmodule-linux-image: Add mac-address-set
BugzID: 54514
2019-04-02 14:51:15 +02:00
Alexandre Bard f4d745f2f2 hw21:netmodule-linux-image: Add modem-config-dump
BugzID: 56305
2019-04-02 14:50:39 +02:00
Ramon Moesching dcd8b9cfb9 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-02-25 16:45:17 +01:00
Alexandre Bard e38843c6ff hydra: Add hydra library
This library is required to build some NRSW tools
2019-02-22 12:28:23 +01:00
Lucien Mueller a5b6175c50 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-02-21 18:31:22 +01:00
Ramon Moesching f54623c871 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-02-18 16:43:39 +01:00
Ramon Moesching 8b67634527 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-02-14 13:54:29 +01:00
Patrick Zysset 477ae213e0 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-02-07 12:58:02 +01: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