Compare commits
18 Commits
b28ef280d8
...
10c6f4e374
| Author | SHA1 | Date |
|---|---|---|
|
|
10c6f4e374 | |
|
|
34c69f68ab | |
|
|
6f8a55775a | |
|
|
6be13a7db6 | |
|
|
694d02aea1 | |
|
|
1be3029e38 | |
|
|
f6e5b36d1e | |
|
|
504e367a0c | |
|
|
e2ecd080a0 | |
|
|
66216504ee | |
|
|
c4f38ccd97 | |
|
|
f601e2d57d | |
|
|
7b7a373dbf | |
|
|
535e4a4c8a | |
|
|
68f1d6876b | |
|
|
8a75c1b88a | |
|
|
da7c62fa14 | |
|
|
20b10c6179 |
|
|
@ -2,7 +2,7 @@ SUMMARY = "Display or change ethernet card settings"
|
|||
DESCRIPTION = "A small utility for examining and tuning the settings of your ethernet-based network interfaces."
|
||||
HOMEPAGE = "http://www.kernel.org/pub/software/network/ethtool/"
|
||||
SECTION = "console/network"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
||||
file://ethtool.c;beginline=4;endline=17;md5=c19b30548c582577fc6b443626fc1216"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
PACKAGE_PREPROCESS_FUNCS += "${@ 'clean_pycache' if not bb.utils.to_boolean(d.getVar('INCLUDE_PYCS')) else '' }"
|
||||
|
||||
clean_pycache(){
|
||||
find ${PKGD} | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
|
||||
}
|
||||
|
||||
do_install:append(){
|
||||
cd ${D}${libdir}/python${PYTHON_MAJMIN}
|
||||
rm -rf turtle.py turtledemo/
|
||||
cd -
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
PACKAGECONFIG:append = " tftp"
|
||||
|
|
@ -1,52 +1,51 @@
|
|||
diff --git a/init.sh
|
||||
index 4818a07..c2b2c64 100644
|
||||
diff --git a/init.sh b/init.sh
|
||||
index e599451..ab6e016 100644
|
||||
--- a/init.sh
|
||||
+++ b/init.sh
|
||||
@@ -3,20 +3,17 @@ set -eu
|
||||
|
||||
# -------------------------------------------
|
||||
@@ -1,20 +1,17 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
-log_info() { echo "$0[$$]: $*" >&2; }
|
||||
log_error() { echo "$0[$$]: ERROR $*" >&2; }
|
||||
|
||||
do_mount_fs() {
|
||||
- log_info "mounting FS: $*"
|
||||
[[ -e /proc/filesystems ]] && { grep -q "$1" /proc/filesystems || { log_error "Unknown filesystem"; return 1; } }
|
||||
[[ -d "$2" ]] || mkdir -p "$2"
|
||||
- [[ -e /proc/mounts ]] && { grep -q -e "^$1 $2 $1" /proc/mounts && { log_info "$2 ($1) already mounted"; return 0; } }
|
||||
+ [[ -e /proc/mounts ]] && { grep -q -e "^$1 $2 $1" /proc/mounts && { return 0; } }
|
||||
mount -t "$1" "$1" "$2"
|
||||
- log_info "mounting FS: $*"
|
||||
[ -e /proc/filesystems ] && { grep -q "$1" /proc/filesystems || { log_error "Unknown filesystem"; return 1; } }
|
||||
[ -d "$2" ] || mkdir -p "$2"
|
||||
- [ -e /proc/mounts ] && { grep -q -e "^$1 $2 $1" /proc/mounts && { log_info "$2 ($1) already mounted"; return 0; } }
|
||||
+ [ -e /proc/mounts ] && { grep -q -e "^$1 $2 $1" /proc/mounts && { return 0; } }
|
||||
mount -t "$1" "$1" "$2"
|
||||
}
|
||||
|
||||
bail_out() {
|
||||
log_error "$@"
|
||||
- log_info "Rebooting..."
|
||||
#exec reboot -f
|
||||
exec sh
|
||||
log_error "$@"
|
||||
- log_info "Rebooting..."
|
||||
#exec reboot -f
|
||||
exec sh
|
||||
}
|
||||
@@ -34,7 +31,6 @@ get_ostree_sysroot() {
|
||||
@@ -33,8 +30,6 @@ get_ostree_sysroot() {
|
||||
|
||||
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/lib/ostree
|
||||
|
||||
-log_info "Starting OSTree initrd script"
|
||||
|
||||
-
|
||||
do_mount_fs proc /proc
|
||||
do_mount_fs sysfs /sys
|
||||
@@ -58,14 +54,13 @@ ostree_sysroot=$(get_ostree_sysroot)
|
||||
do_mount_fs devtmpfs /dev
|
||||
@@ -57,14 +52,12 @@ ostree_sysroot=$(get_ostree_sysroot)
|
||||
mount "$ostree_sysroot" /sysroot || {
|
||||
# The SD card in the R-Car M3 takes a bit of time to come up
|
||||
# Retry the mount if it fails the first time
|
||||
- log_info "Mounting $ostree_sysroot failed, waiting 5s for the device to be available..."
|
||||
sleep 5
|
||||
mount "$ostree_sysroot" /sysroot || bail_out "Unable to mount $ostree_sysroot as physical sysroot"
|
||||
# The SD card in the R-Car M3 takes a bit of time to come up
|
||||
# Retry the mount if it fails the first time
|
||||
- log_info "Mounting $ostree_sysroot failed, waiting 5s for the device to be available..."
|
||||
sleep 5
|
||||
mount "$ostree_sysroot" /sysroot || bail_out "Unable to mount $ostree_sysroot as physical sysroot"
|
||||
}
|
||||
|
||||
-ostree-prepare-root /sysroot
|
||||
+ostree-prepare-root /sysroot > /dev/null 2>&1
|
||||
+
|
||||
|
||||
-log_info "Switching to rootfs"
|
||||
# shellcheck disable=SC2093
|
||||
exec switch_root /sysroot /sbin/init
|
||||
|
||||
bail_out "Failed to switch_root to $ostree_sysroot"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
||||
|
||||
SRC_URI += "file://0001-Remove-log-info-from-init.patch"
|
||||
|
|
@ -2,10 +2,7 @@ require netmodule-linux.conf
|
|||
DISTRO = "netmodule-linux-minimal"
|
||||
DISTRO_VARIANT = " for minimal fitImage"
|
||||
|
||||
INCLUDE_PYCS:pn-python3 = "0"
|
||||
|
||||
#export SOURCE_DATE_EPOCH ?= "0"
|
||||
#REPRODUCIBLE_TIMESTAMP_ROOTFS = ""
|
||||
include ${LAYERSERIES_CORENAMES}/distro-minimal.inc
|
||||
|
||||
PREFERRED_PROVIDER_virtual/netmodule-image = "netmodule-fitimage"
|
||||
INITRAMFS_IMAGE:pn-netmodule-fitimage = "netmodule-linux-image-minimal"
|
||||
|
|
|
|||
|
|
@ -1,11 +1,14 @@
|
|||
# Global
|
||||
|
||||
TARGET_VENDOR = "-netmodule"
|
||||
SANITY_TESTED_DISTROS ?= " \
|
||||
debian-10 \n \
|
||||
debian-11 \n \
|
||||
debian-12 \n \
|
||||
"
|
||||
|
||||
# Make shared states compatible with all build host
|
||||
require conf/distro/include/yocto-uninative.inc
|
||||
INHERIT += "uninative"
|
||||
# Don't append libc name in tmp directory
|
||||
# eg. build/tmp instead of build/tmp-glibc
|
||||
# Since we only support glibc, we don't need different tmp directories
|
||||
|
|
@ -34,7 +37,7 @@ EXTRA_IMAGECMD:append_ota-ext4 = " -O ^64bit"
|
|||
|
||||
|
||||
# Packages
|
||||
PACKAGECONFIG:append:pn-curl = " openssl"
|
||||
PACKAGECONFIG:append:pn-curl = " tftp openssl"
|
||||
PACKAGECONFIG:remove:pn-curl = "gnutls"
|
||||
|
||||
PACKAGECONFIG:append:pn-wget = " openssl"
|
||||
|
|
@ -45,6 +48,9 @@ PACKAGECONFIG:append:pn-networkmanager = " modemmanager"
|
|||
PACKAGECONFIG:pn-gpsd = ""
|
||||
PACKAGECONFIG:append:pn-openssl = " cryptodev-linux"
|
||||
|
||||
PACKAGECONFIG:pn-lmsensors = ""
|
||||
PACKAGECONFIG:pn-libqmi = ""
|
||||
|
||||
# These rules may make gpsd start automatically when detecting a
|
||||
# receiver. We don't want that since gpsd is started by gnss-mgr
|
||||
PACKAGE_EXCLUDE = "gpsd-udev"
|
||||
|
|
@ -55,3 +61,6 @@ SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${TUNE_PKGARCH}"
|
|||
SDKPATH = "/opt/${DISTRO}/${SDK_VERSION}"
|
||||
SDK_VENDOR = "-netmodule"
|
||||
SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}"
|
||||
|
||||
# Changes specific to current yocto version
|
||||
include ${LAYERSERIES_CORENAMES}/distro.inc
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
INHERIT += "reproducible_build_simple"
|
||||
export SOURCE_DATE_EPOCH ?= "0"
|
||||
REPRODUCIBLE_TIMESTAMP_ROOTFS = ""
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
# in newer versions, networkmanager is splitted
|
||||
PACKAGES:append:pn-networkmanager += "networkmanager-wwan \
|
||||
networkmanager-wifi \
|
||||
networkmanager-bluetooth \
|
||||
networkmanager-nmcli \
|
||||
"
|
||||
ALLOW_EMPTY_networkmanager-wwan = "1"
|
||||
ALLOW_EMPTY_networkmanager-wifi = "1"
|
||||
ALLOW_EMPTY_networkmanager-bluetooth = "1"
|
||||
ALLOW_EMPTY_networkmanager-nmcli = "1"
|
||||
|
||||
# ssl the former equivalent of openssl
|
||||
PACKAGECONFIG:append:pn-curl = " ssl"
|
||||
PACKAGECONFIG:remove:pn-curl = " openssl"
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
LIC_FILES_CHKSUM = "${@bb.utils.contains('LICENSE', 'GPL-2.0-only', \
|
||||
'file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6', \
|
||||
'', \
|
||||
d)}"
|
||||
|
|
@ -1,7 +1,9 @@
|
|||
DESCRIPTION = "CPU Benchmarking bin"
|
||||
HOMEPAGE = "http://www.netmodule.com/"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
|
||||
|
||||
include ${LAYERSERIES_CORENAMES}/licenses.inc
|
||||
LIC_FILES_CHKSUM ?= "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
|
||||
|
||||
PROVIDES = "benchmarking-cpu"
|
||||
|
||||
|
|
|
|||
|
|
@ -14,13 +14,13 @@ RDEPENDS:${PN}-base = " \
|
|||
iproute2 \
|
||||
packagegroup-core-ssh-openssh \
|
||||
openssh-sftp-server \
|
||||
ethtool \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-extended= " \
|
||||
ethtool \
|
||||
iptables \
|
||||
iptables-module-ipt-masquerade \
|
||||
iptables-module-ip6t-masquerade \
|
||||
bridge-utils \
|
||||
openvpn \
|
||||
networkmanager-openvpn \
|
||||
"
|
||||
|
|
|
|||
|
|
@ -7,5 +7,6 @@ inherit populate_sdk
|
|||
TOOLCHAIN_TARGET_TASK:append = " \
|
||||
cpputest-staticdev \
|
||||
libnmapp-staticdev \
|
||||
libc-staticdev \
|
||||
"
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ SUMMARY = "Battery Test tool"
|
|||
DESCRIPTION = "Read battery state, remaining time and other informations from battery"
|
||||
AUTHOR = "Ramon Mösching (ramon.moesching@netmodule.com)"
|
||||
SECTION = "core"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
|
||||
PR = "r0"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
SUMMARY = "NetModule shared library"
|
||||
SECTION = "base"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=1f002990697cc3f88357d1c0790d47b2"
|
||||
|
||||
SRC_URI = "git://gitlab.com/netmodule/tools/libnmapp.git;protocol=ssh;user=git;branch=develop"
|
||||
SRCREV ?= "09aafd5ac85cc277cd1d9bb5cd922520b9a3dddb"
|
||||
SRCREV ?= "dcf72e619b3a5085bba14db42e3a0d86cb4acdc8"
|
||||
|
||||
PV = "0.0.1+git${SRCPV}"
|
||||
LIB_SHORT_NAME = "nmapp"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
SUMMARY = "Adds a script and a systemd service to partition the drives of the system on the first boot."
|
||||
DESCRIPTION = "Adds a script and a systemd service to partition the drives of the system on the first boot."
|
||||
PR = "r1"
|
||||
LICENSE = "GPL-3.0-or-later"
|
||||
LICENSE = "GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=2f31b266d3440dd7ee50f92cf67d8e6c"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ DESCRIPTION = "Generic NetModule update tool for firmware, bootloaders, etc"
|
|||
AUTHOR = "Alexandre Bard"
|
||||
|
||||
SECTION = "core"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-or-later;md5=fed54355545ffd980b814dab4a3b312c"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=e45effb5e2fdf3ead60ab663bccdc4b8"
|
||||
|
||||
RDEPENDS:${PN} = " \
|
||||
wget \
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
SUMMARY = "NetModule system-state-framework manager"
|
||||
SECTION = "base"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=6f1c528c9a0010ef398e26c661ff286e"
|
||||
|
||||
SRC_URI = "git://gitlab.com/netmodule/tools/ssf-mgr.git;protocol=ssh;user=git;branch=develop"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
UM_CONFIG_PATH=/etc/user-module
|
||||
UM_CONFIG_FILE=network.conf
|
||||
|
|
@ -37,16 +37,22 @@ done
|
|||
|
||||
source $UM_CONFIG
|
||||
|
||||
max_retry=30
|
||||
max_retry=15
|
||||
counter=0
|
||||
|
||||
until [[ counter -ge $max_retry ]]
|
||||
do
|
||||
echo "Probing um. #$counter"
|
||||
ping -qc 1 -W 1 $USER_MODULE_ipv4_addr && break
|
||||
sleep 1
|
||||
((counter++))
|
||||
done
|
||||
|
||||
if ! ping -qc 1 -W 1 $USER_MODULE_ipv4_addr
|
||||
then
|
||||
echo "UM not reachable"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Decide which config to load depending on the sw revision
|
||||
if `nc -z $USER_MODULE_ipv4_addr 7000` ; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue