Skip to content

Commit

Permalink
EBcL 1.2 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
thir820 authored Jul 11, 2024
1 parent 9ed9879 commit 6f874c8
Show file tree
Hide file tree
Showing 40 changed files with 134 additions and 132 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
"name": "EB corbos Linux SDK 1.1.1",
"name": "EB corbos Linux SDK 1.2",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "linux.elektrobit.com/ebcl/sdk:1.1.1",
"image": "linux.elektrobit.com/ebcl/sdk:1.2",
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog for the EBcL VS Code workspace template

## Relesae 1.2 - 2024-07-11

Update for EBcL release 1.2.

Changes:
- Update URLs to new APT repository for EBcL 1.2
- Adapt example images to new crinit package split
- Improve example images


## Relesae 1.1.1 - 2024-04-25

Expand Down
File renamed without changes.
43 changes: 35 additions & 8 deletions images/berrymill.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,65 @@ repos:
# Architecture
# Conforms to Debian standard: https://wiki.debian.org/SupportedArchitectures
amd64:
# Just an alias of the repo, free form
Jammy:
url: http://archive.ubuntu.com/ubuntu
type: apt-deb
key: file:///etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg
name: jammy
components: main

Jammy-Security:
url: http://archive.ubuntu.com/ubuntu
type: apt-deb
key: file:///etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg
name: jammy-security
components: main

EBcL:
url: http://linux.elektrobit.com/eb-corbos-linux/1.1.1
url: http://linux.elektrobit.com/eb-corbos-linux/1.2
type: apt-deb
key: file:///etc/berrymill/keyrings.d/repo_eb_gm.pub.gpg
name: ebcl
components: prod

EBcL-Not-Supported:
url: http://linux.elektrobit.com/eb-corbos-linux/1.1.1
url: http://linux.elektrobit.com/eb-corbos-linux/1.2
type: apt-deb
key: file:///etc/berrymill/keyrings.d/repo_eb_gm.pub.gpg
name: ebcl
components: all
components: dev

arm64:
Jammy:
url: http://ports.ubuntu.com/ubuntu-ports
type: apt-deb
key: file:///etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg
name: jammy
components: main

Jammy-Security:
url: http://ports.ubuntu.com/ubuntu-ports
type: apt-deb
key: file:///etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg
name: jammy-security
components: main

EBcL:
url: http://linux.elektrobit.com/eb-corbos-linux/1.1.1
url: http://linux.elektrobit.com/eb-corbos-linux/1.2
type: apt-deb
key: file:///etc/berrymill/keyrings.d/repo_eb_gm.pub.gpg
name: ebcl
components: prod

EBcL-Not-Supported:
url: http://linux.elektrobit.com/eb-corbos-linux/1.1.1
url: http://linux.elektrobit.com/eb-corbos-linux/1.2
type: apt-deb
key: file:///etc/berrymill/keyrings.d/repo_eb_gm.pub.gpg
name: ebcl
components: all
components: dev

EBcL-NXP-RDB2:
url: http://linux.elektrobit.com/eb-corbos-linux/1.1.1
url: http://linux.elektrobit.com/eb-corbos-linux/1.2
type: apt-deb
key: file:///etc/berrymill/keyrings.d/repo_eb_gm.pub.gpg
name: ebcl_nxp_public
Expand Down
41 changes: 34 additions & 7 deletions images/berrymill.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,33 @@ repos:
# Architecture
# Conforms to Debian standard: https://wiki.debian.org/SupportedArchitectures
amd64:
# Just an alias of the repo, free form
Jammy:
url: http://archive.ubuntu.com/ubuntu
type: apt-deb
key: file:///etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg
name: jammy
components: main

Jammy-Security:
url: http://archive.ubuntu.com/ubuntu
type: apt-deb
key: file:///etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg
name: jammy-security
components: main

EBcL:
url: http://linux.elektrobit.com/eb-corbos-linux/1.1.1
url: http://linux.elektrobit.com/eb-corbos-linux/1.2
type: apt-deb
key: file:///etc/berrymill/keyrings.d/repo_eb_gm.pub.gpg
name: ebcl
components: prod

EBcL-Not-Supported:
url: http://linux.elektrobit.com/eb-corbos-linux/1.1.1
url: http://linux.elektrobit.com/eb-corbos-linux/1.2
type: apt-deb
key: file:///etc/berrymill/keyrings.d/repo_eb_gm.pub.gpg
name: ebcl
components: all
components: dev

app:
url: http://REPOIP:8000
Expand All @@ -34,22 +47,36 @@ repos:
components: main

arm64:
Jammy:
url: http://ports.ubuntu.com/ubuntu-ports
type: apt-deb
key: file:///etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg
name: jammy
components: main

Jammy-Security:
url: http://ports.ubuntu.com/ubuntu-ports
type: apt-deb
key: file:///etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg
name: jammy-security
components: main

EBcL:
url: http://linux.elektrobit.com/eb-corbos-linux/1.1.1
url: http://linux.elektrobit.com/eb-corbos-linux/1.2
type: apt-deb
key: file:///etc/berrymill/keyrings.d/repo_eb_gm.pub.gpg
name: ebcl
components: prod

EBcL-Not-Supported:
url: http://linux.elektrobit.com/eb-corbos-linux/1.1.1
url: http://linux.elektrobit.com/eb-corbos-linux/1.2
type: apt-deb
key: file:///etc/berrymill/keyrings.d/repo_eb_gm.pub.gpg
name: ebcl
components: all

EBcL-NXP-RDB2:
url: http://linux.elektrobit.com/eb-corbos-linux/1.1.1
url: http://linux.elektrobit.com/eb-corbos-linux/1.2
type: apt-deb
key: file:///etc/berrymill/keyrings.d/repo_eb_gm.pub.gpg
name: ebcl_nxp_public
Expand Down
16 changes: 7 additions & 9 deletions images/qemu-crinit-aarch64/appliance.kiwi
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@
<!-- system -->
<!-- crinit and related packages -->
<package name="crinit"/>
<package name="crinit-shutdown"/>
<package name="crinit-ctl"/>
<package name="elos"/>
<package name="elos-coredump"/>
<package name="elos-plugin-backend-json"/>
<package name="elos-plugin-backend-dummy"/>
<package name="elos-plugin-scanner-kmsg"/>
<package name="elos-plugin-scanner-syslog"/>
<package name="netifd"/>
<package name="crinit-machine-id-gen"/>
<package name="udhcpc"/>
<package name="ubus"/>
<!-- core tools -->
Expand All @@ -50,27 +53,22 @@
<package name="findutils"/>
<!-- modprobe - for loading USB drivers -->
<package name="kmod"/>
<!-- licenses tool -->
<package name="dpkg-licenses"/>
<!-- ssh -->
<package name="openssh-server"/>
<package name="openssh-client"/>
<!-- network tools -->
<package name="iproute2"/>
<package name="iptables"/>
<package name="iputils-ping"/>
<!-- apt support -->
<package name="apt-utils"/>
<!-- required for apt gpg key verification -->
<package name="gnupg"/>
<!-- required for apt update -->
<package name="dialog"/>
<!-- add editors -->
<package name="vim"/>
<package name="nano"/>
<!-- dependency of my-json-app -->
<package name="libjsoncpp25"/>
<!-- debug tools -->
<package name="gdbserver"/>
<package name="libc6-dbg"/>
<package name="socat"/>
<package name="iperf3"/>
<package name="tcpdump"/>
Expand Down
2 changes: 1 addition & 1 deletion images/qemu-crinit-aarch64/appliance_sysroot.kiwi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<image schemaversion="6.8" name="Ubuntu-22.04_appliance">
<inherit path="/tmp/img/appliance.kiwi"/>
<inherit path="appliance.kiwi"/>
<!--
Add libjsoncpp headers.
-->
Expand Down
5 changes: 0 additions & 5 deletions images/qemu-crinit-aarch64/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ test -f /.kconfig && . /.kconfig

set -ex

#======================================
# Create license information
#--------------------------------------
/usr/local/bin/dpkg-licenses/dpkg-licenses > /licenses

#==================================
# Turn grub-mkconfig into a noop
#----------------------------------
Expand Down
2 changes: 1 addition & 1 deletion images/qemu-crinit-aarch64/root/etc/apt/sources.list
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
deb http://linux.elektrobit.com/eb-corbos-linux/1.1.1 ebcl prod dev
deb http://linux.elektrobit.com/eb-corbos-linux/1.2 ebcl prod dev
deb [arch=amd64] http://archive.ubuntu.com/ubuntu jammy main universe multiverse restricted
deb [arch=amd64] http://archive.ubuntu.com/ubuntu jammy-security main universe multiverse restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy main universe multiverse restricted
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
NAME = earlysetup

COMMAND = /bin/hostname qemucrinitvm
/usr/bin/machine-id-gen

PROVIDES = machine-id:wait
RESPAWN = NO
Expand Down
1 change: 1 addition & 0 deletions images/qemu-crinit-aarch64/root/etc/machine-id
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
004711
13 changes: 7 additions & 6 deletions images/qemu-crinit-x86_64/appliance.kiwi
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@
<!-- system -->
<!-- crinit and related packages -->
<package name="crinit"/>
<package name="crinit-shutdown"/>
<package name="crinit-ctl"/>
<package name="elos"/>
<package name="elos-coredump"/>
<package name="elos-plugin-backend-json"/>
<package name="elos-plugin-backend-dummy"/>
<package name="elos-plugin-scanner-kmsg"/>
<package name="elos-plugin-scanner-syslog"/>
<package name="netifd"/>
<package name="crinit-machine-id-gen"/>
<package name="udhcpc"/>
<package name="ubus"/>
<!-- core tools -->
Expand All @@ -52,24 +55,22 @@
<package name="findutils"/>
<!-- modprobe - for loading USB drivers -->
<package name="kmod"/>
<!-- licenses tool -->
<package name="dpkg-licenses"/>
<!-- ssh -->
<package name="openssh-server"/>
<package name="openssh-client"/>
<!-- network tools -->
<package name="iproute2"/>
<package name="iptables"/>
<package name="iputils-ping"/>
<!-- apt support -->
<package name="apt-utils"/>
<!-- required for apt gpg key verification -->
<package name="gnupg"/>
<!-- required for apt update -->
<package name="dialog"/>
<!-- add editors -->
<package name="vim"/>
<package name="nano"/>
<!-- dependency of my-json-app -->
<package name="libjsoncpp25"/>
<!-- debug tools -->
<package name="gdbserver"/>
<package name="libc6-dbg"/>
Expand Down
2 changes: 1 addition & 1 deletion images/qemu-crinit-x86_64/appliance_sysroot.kiwi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<image schemaversion="6.8" name="Ubuntu-22.04_appliance">
<inherit path="/tmp/img/appliance.kiwi"/>
<inherit path="appliance.kiwi"/>
<!--
Add libjsoncpp headers.
-->
Expand Down
5 changes: 0 additions & 5 deletions images/qemu-crinit-x86_64/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ test -f /.kconfig && . /.kconfig

set -ex

#======================================
# Create license information
#--------------------------------------
/usr/local/bin/dpkg-licenses/dpkg-licenses > /licenses

#==================================
# Turn grub-mkconfig into a noop
#----------------------------------
Expand Down
2 changes: 1 addition & 1 deletion images/qemu-crinit-x86_64/root/etc/apt/sources.list
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
deb http://linux.elektrobit.com/eb-corbos-linux/1.1.1 ebcl prod dev
deb http://linux.elektrobit.com/eb-corbos-linux/1.2 ebcl prod dev
deb [arch=amd64] http://archive.ubuntu.com/ubuntu jammy main universe multiverse restricted
deb [arch=amd64] http://archive.ubuntu.com/ubuntu jammy-security main universe multiverse restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy main universe multiverse restricted
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
NAME = earlysetup

COMMAND = /bin/hostname qemucrinitvm
/usr/bin/machine-id-gen

PROVIDES = machine-id:wait
RESPAWN = NO
Expand Down
19 changes: 5 additions & 14 deletions images/qemu-crinit-x86_64/root/etc/elos/elosd.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,13 @@
],
"ClientInputs": {
"PluginSearchPath": "/usr/local/lib/elos/client",
"Plugins": {}
"Plugins": {

}
},
"EventLogging": {
"PluginSearchPath": "/usr/lib/x86_64-linux-gnu/elos/backend",
"Plugins": {
"coredump": {
"File": "backend_json.so",
"Run": "always",
"Filter": [
".e.messageCode 5005 EQ"
],
"Config": {
"StoragePath": "/var/log/coredumps_%host%_%date%_%count%.log"
}
},
"everythingElse": {
"File": "backend_json.so",
"Run": "always",
Expand All @@ -49,10 +41,9 @@
"SyslogPath": "/dev/log",
"MappingRules": {
"MessageCodes": {
"4000": ".event.source.appName 'ssh' STRCMP",
"2000": ".event.source.appName 'crinit' STRCMP",
"1000": ".event.source.appName 'login' STRCMP",
"1102": "1 1 EQ"
"1102": "1 1 EQ",
"2000": ".event.source.appName 'crinit' STRCMP"
}
}
},
Expand Down
1 change: 1 addition & 0 deletions images/qemu-crinit-x86_64/root/etc/machine-id
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
004711
Loading

0 comments on commit 6f874c8

Please sign in to comment.