From 72030ce17d7424910259c2f43207147fdcdd9cd1 Mon Sep 17 00:00:00 2001 From: KrzysKond Date: Sun, 19 Apr 2026 21:31:54 +0200 Subject: [PATCH 01/14] [wip] feat:enable uart4, htop --- recipes-core/{ images => images}/fc-image.bb | 2 +- recipes-core/init-ifupdown/files/interfaces | 30 ++++++++++++ .../init-ifupdown/init-ifupdown_1.0.bbappend | 1 + recipes-core/srp-startup/srp-startup.bb | 8 +++- .../linux-yocto/0003-enable-uart4-bbb.patch | 47 +++++++++++++++++++ recipes-kernel/linux/linux-yocto/config.cfg | 8 ++++ recipes-kernel/linux/linux-yocto_%.bbappend | 1 + 7 files changed, 95 insertions(+), 2 deletions(-) rename recipes-core/{ images => images}/fc-image.bb (87%) create mode 100644 recipes-core/init-ifupdown/files/interfaces create mode 100644 recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend create mode 100644 recipes-kernel/linux/linux-yocto/0003-enable-uart4-bbb.patch diff --git a/recipes-core/ images/fc-image.bb b/recipes-core/images/fc-image.bb similarity index 87% rename from recipes-core/ images/fc-image.bb rename to recipes-core/images/fc-image.bb index a1cc72b..73601b8 100644 --- a/recipes-core/ images/fc-image.bb +++ b/recipes-core/images/fc-image.bb @@ -1,6 +1,6 @@ SUMMARY = "Flight computer image" -IMAGE_INSTALL = "packagegroup-core-boot ${CORE_IMAGE_EXTRA_INSTALL} packagegroup-core-ssh-openssh kernel-modules i2c-tools libgpiod libgpiod-dev libgpiod-tools srp-startup" +IMAGE_INSTALL = "packagegroup-core-boot ${CORE_IMAGE_EXTRA_INSTALL} packagegroup-core-ssh-openssh kernel-modules i2c-tools libgpiod libgpiod-dev libgpiod-tools htop srp-startup" IMAGE_LINGUAS = " " diff --git a/recipes-core/init-ifupdown/files/interfaces b/recipes-core/init-ifupdown/files/interfaces new file mode 100644 index 0000000..2ef6812 --- /dev/null +++ b/recipes-core/init-ifupdown/files/interfaces @@ -0,0 +1,30 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + +# Wireless interfaces +iface wlan0 inet dhcp + wireless_mode managed + wireless_essid any + wpa-driver wext + wpa-conf /etc/wpa_supplicant.conf + +iface atml0 inet dhcp + +# Wired interface +auto eth0 +iface eth0 inet static + address 192.168.10.101 + netmask 255.255.255.0 + +# Ethernet/RNDIS gadget (g_ether) +iface usb0 inet static + address 192.168.7.2 + netmask 255.255.255.0 + network 192.168.7.0 + gateway 192.168.7.1 + +# Bluetooth networking +# iface bnep0 inet dhcp diff --git a/recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend b/recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend new file mode 100644 index 0000000..8802adb --- /dev/null +++ b/recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend @@ -0,0 +1 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" diff --git a/recipes-core/srp-startup/srp-startup.bb b/recipes-core/srp-startup/srp-startup.bb index a651714..ec1e05f 100644 --- a/recipes-core/srp-startup/srp-startup.bb +++ b/recipes-core/srp-startup/srp-startup.bb @@ -8,7 +8,10 @@ SRC_URI += "\ file://srp_start.service \ " -inherit systemd +INITSCRIPT_NAME = "srp_start" +INITSCRIPT_PARAMS = "start 99 5 2 ." + +inherit systemd update-rc.d SYSTEMD_SERVICE:${PN} = "\ srp_start.service \ @@ -17,10 +20,12 @@ SYSTEMD_SERVICE:${PN} = "\ do_install:append() { install -d ${D}${systemd_system_unitdir} + install -d ${D}${sysconfdir}/init.d install -d ${D}/bin install -d ${D}/opt/cpu_simba install -m 0777 ${WORKDIR}/srp_start.sh ${D}/bin + install -m 0755 ${WORKDIR}/srp_start.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} install -m 0777 ${WORKDIR}/network_interface.sh ${D}/opt/cpu_simba install -m 0777 ${WORKDIR}/start_up.sh ${D}/opt/cpu_simba @@ -30,6 +35,7 @@ do_install:append() { FILES:${PN} += "\ /bin/srp_start.sh \ + ${sysconfdir}/init.d/${INITSCRIPT_NAME} \ ${systemd_system_unitdir}/srp_start.service \ /opt/cpu_simba/start_up.sh \ /opt/cpu_simba/network_interface.sh \ diff --git a/recipes-kernel/linux/linux-yocto/0003-enable-uart4-bbb.patch b/recipes-kernel/linux/linux-yocto/0003-enable-uart4-bbb.patch new file mode 100644 index 0000000..ed236c7 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto/0003-enable-uart4-bbb.patch @@ -0,0 +1,47 @@ +From 02b262d830263772f9035361138a99ffba19ec8b Mon Sep 17 00:00:00 2001 +From: Kondracki Krzysztof +Date: Sat, 18 Apr 2026 00:00:00 +0000 +Subject: [PATCH] ARM: dts: am335x-bone-common: enable UART4 on P9.11/P9.13 + +BeagleBone Black: mux GPMC_WAIT0 / GPMC_WPN to uart4_rxd / uart4_txd (MODE6) +and enable uart4. +--- + arch/arm/boot/dts/am335x-bone-common.dtsi | 15 +++++++++++++++ + 1 file changed, 15 insertions(+) + +diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi +index bc4b703322ee..822a2339ea63 100644 +--- a/arch/arm/boot/dts/am335x-bone-common.dtsi ++++ b/arch/arm/boot/dts/am335x-bone-common.dtsi +@@ -117,6 +117,14 @@ AM33XX_PADCONF(AM335X_PIN_UART0_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0) + >; + }; + ++ /* UART4 on BBB P9.11 (RX) / P9.13 (TX), MODE6 */ ++ bb_uart4_pins: pinmux_bb_uart4_pins { ++ pinctrl-single,pins = < ++ AM33XX_PADCONF(AM335X_PIN_GPMC_WAIT0, PIN_INPUT, MUX_MODE6) /* P9.11 uart4_rxd */ ++ AM33XX_PADCONF(AM335X_PIN_GPMC_WPN, PIN_OUTPUT_PULLDOWN, MUX_MODE6) /* P9.13 uart4_txd */ ++ >; ++ }; ++ + clkout2_pin: pinmux_clkout2_pin { + pinctrl-single,pins = < + AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR1, PIN_OUTPUT_PULLDOWN, MUX_MODE3) /* xdma_event_intr1.clkout2 */ +@@ -212,6 +220,13 @@ &uart0 { + status = "okay"; + }; + ++&uart4 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&bb_uart4_pins>; ++ ++ status = "okay"; ++}; ++ + &usb0 { + dr_mode = "peripheral"; + interrupts-extended = <&intc 18 &tps 0>; +-- +2.43.0 + diff --git a/recipes-kernel/linux/linux-yocto/config.cfg b/recipes-kernel/linux/linux-yocto/config.cfg index 35a699a..4f33635 100644 --- a/recipes-kernel/linux/linux-yocto/config.cfg +++ b/recipes-kernel/linux/linux-yocto/config.cfg @@ -57,3 +57,11 @@ CONFIG_CAN_C_CAN_PLATFORM=y CONFIG_CAN_DEBUG_DEVICES=y # end of CAN Device Drivers +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +# Enough 8250 ports for UART0..UART4 (and friends) on AM335x +CONFIG_SERIAL_8250_NR_UARTS=8 +CONFIG_SERIAL_8250_RUNTIME_UARTS=8 +CONFIG_SERIAL_CORE=y +CONFIG_SERIAL_CORE_CONSOLE=y +CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y diff --git a/recipes-kernel/linux/linux-yocto_%.bbappend b/recipes-kernel/linux/linux-yocto_%.bbappend index 5419b92..916e790 100644 --- a/recipes-kernel/linux/linux-yocto_%.bbappend +++ b/recipes-kernel/linux/linux-yocto_%.bbappend @@ -2,5 +2,6 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" SRC_URI += "file://config.cfg \ file://0001-bus-config.patch file://0002-pin-config.patch \ + file://0003-enable-uart4-bbb.patch \ " From 044f82d8ac0c09f9a7dd78160ff65d68e6830642 Mon Sep 17 00:00:00 2001 From: KrzysKond Date: Tue, 21 Apr 2026 00:50:00 +0200 Subject: [PATCH 02/14] fix: remove interfaces --- recipes-core/init-ifupdown/files/interfaces | 30 ------------------- .../init-ifupdown/init-ifupdown_1.0.bbappend | 1 - 2 files changed, 31 deletions(-) delete mode 100644 recipes-core/init-ifupdown/files/interfaces delete mode 100644 recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend diff --git a/recipes-core/init-ifupdown/files/interfaces b/recipes-core/init-ifupdown/files/interfaces deleted file mode 100644 index 2ef6812..0000000 --- a/recipes-core/init-ifupdown/files/interfaces +++ /dev/null @@ -1,30 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback - -# Wireless interfaces -iface wlan0 inet dhcp - wireless_mode managed - wireless_essid any - wpa-driver wext - wpa-conf /etc/wpa_supplicant.conf - -iface atml0 inet dhcp - -# Wired interface -auto eth0 -iface eth0 inet static - address 192.168.10.101 - netmask 255.255.255.0 - -# Ethernet/RNDIS gadget (g_ether) -iface usb0 inet static - address 192.168.7.2 - netmask 255.255.255.0 - network 192.168.7.0 - gateway 192.168.7.1 - -# Bluetooth networking -# iface bnep0 inet dhcp diff --git a/recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend b/recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend deleted file mode 100644 index 8802adb..0000000 --- a/recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend +++ /dev/null @@ -1 +0,0 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/files:" From d8a6b195ce3cb4fa131fea8bd42b7ca18ca9d4e5 Mon Sep 17 00:00:00 2001 From: KrzysKond Date: Tue, 21 Apr 2026 00:55:44 +0200 Subject: [PATCH 03/14] restore old srp startup --- recipes-core/srp-startup/srp-startup.bb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/recipes-core/srp-startup/srp-startup.bb b/recipes-core/srp-startup/srp-startup.bb index ec1e05f..fa892c5 100644 --- a/recipes-core/srp-startup/srp-startup.bb +++ b/recipes-core/srp-startup/srp-startup.bb @@ -8,10 +8,7 @@ SRC_URI += "\ file://srp_start.service \ " -INITSCRIPT_NAME = "srp_start" -INITSCRIPT_PARAMS = "start 99 5 2 ." - -inherit systemd update-rc.d +inherit systemd SYSTEMD_SERVICE:${PN} = "\ srp_start.service \ @@ -20,12 +17,10 @@ SYSTEMD_SERVICE:${PN} = "\ do_install:append() { install -d ${D}${systemd_system_unitdir} - install -d ${D}${sysconfdir}/init.d install -d ${D}/bin install -d ${D}/opt/cpu_simba install -m 0777 ${WORKDIR}/srp_start.sh ${D}/bin - install -m 0755 ${WORKDIR}/srp_start.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} install -m 0777 ${WORKDIR}/network_interface.sh ${D}/opt/cpu_simba install -m 0777 ${WORKDIR}/start_up.sh ${D}/opt/cpu_simba @@ -35,8 +30,7 @@ do_install:append() { FILES:${PN} += "\ /bin/srp_start.sh \ - ${sysconfdir}/init.d/${INITSCRIPT_NAME} \ ${systemd_system_unitdir}/srp_start.service \ /opt/cpu_simba/start_up.sh \ /opt/cpu_simba/network_interface.sh \ -" +" \ No newline at end of file From 65377b84b40abe89b29a22db7eb933f8cf59d9c1 Mon Sep 17 00:00:00 2001 From: KrzysKond Date: Tue, 21 Apr 2026 01:15:52 +0200 Subject: [PATCH 04/14] fix: remove trailing dashes --- .cursor/.gitignore | 1 + recipes-core/srp-startup/srp-startup.bb | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 .cursor/.gitignore diff --git a/.cursor/.gitignore b/.cursor/.gitignore new file mode 100644 index 0000000..8bf7cc2 --- /dev/null +++ b/.cursor/.gitignore @@ -0,0 +1 @@ +plans/ diff --git a/recipes-core/srp-startup/srp-startup.bb b/recipes-core/srp-startup/srp-startup.bb index fa892c5..245524b 100644 --- a/recipes-core/srp-startup/srp-startup.bb +++ b/recipes-core/srp-startup/srp-startup.bb @@ -5,8 +5,7 @@ SRC_URI += "\ file://srp_start.sh \ file://start_up.sh \ file://network_interface.sh \ - file://srp_start.service \ -" + file://srp_start.service" inherit systemd @@ -32,5 +31,4 @@ FILES:${PN} += "\ /bin/srp_start.sh \ ${systemd_system_unitdir}/srp_start.service \ /opt/cpu_simba/start_up.sh \ - /opt/cpu_simba/network_interface.sh \ -" \ No newline at end of file + /opt/cpu_simba/network_interface.sh" \ No newline at end of file From 10f61c8bdf23b042537fab0ee38ee856e8b13c8a Mon Sep 17 00:00:00 2001 From: KrzysKond Date: Tue, 21 Apr 2026 01:16:25 +0200 Subject: [PATCH 05/14] remove cursor gitignore --- .cursor/.gitignore | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .cursor/.gitignore diff --git a/.cursor/.gitignore b/.cursor/.gitignore deleted file mode 100644 index 8bf7cc2..0000000 --- a/.cursor/.gitignore +++ /dev/null @@ -1 +0,0 @@ -plans/ From 18d79cbb694ba1c810cb54054416b7e560d66af7 Mon Sep 17 00:00:00 2001 From: KrzysKond Date: Tue, 21 Apr 2026 01:17:02 +0200 Subject: [PATCH 06/14] remove trailing dash --- recipes-kernel/linux/linux-yocto_%.bbappend | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes-kernel/linux/linux-yocto_%.bbappend b/recipes-kernel/linux/linux-yocto_%.bbappend index 916e790..91ee832 100644 --- a/recipes-kernel/linux/linux-yocto_%.bbappend +++ b/recipes-kernel/linux/linux-yocto_%.bbappend @@ -2,6 +2,5 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" SRC_URI += "file://config.cfg \ file://0001-bus-config.patch file://0002-pin-config.patch \ - file://0003-enable-uart4-bbb.patch \ - " + file://0003-enable-uart4-bbb.patch" From b4b6327edfa46836180ed9288576fe13c1875326 Mon Sep 17 00:00:00 2001 From: KrzysKond Date: Sun, 26 Apr 2026 21:23:34 +0200 Subject: [PATCH 07/14] direclty copy files from meta-srp-platforrm with fixed ip address --- .vscode/settings.json | 2 + recipes-core/srp-recover/files/srp_recover.sh | 54 ++++++++++++++ recipes-core/srp-recover/srp-recover.bb | 22 ++++++ .../srp-startup/files/srp_start.service | 18 ----- recipes-core/srp-startup/files/srp_start.sh | 46 ------------ recipes-core/srp-startup/srp-startup.bb | 34 --------- recipes-core/srp-user/srp-user.bb | 73 +++++++++++++++++++ recipes-core/srp-user/srp-user/file1 | 0 recipes-core/srp-user/srp-user/file2 | 0 recipes-core/srp-user/srp-user/file3 | 0 recipes-core/srp-user/srp-user/file4 | 0 .../files/network_interface.sh | 11 ++- recipes-core/srp/files/srp_start.sh | 39 ++++++++++ .../{srp-startup => srp}/files/start_up.sh | 10 +-- recipes-core/srp/files/test.txt | 3 + recipes-core/srp/files/token.hex | 2 + recipes-core/srp/files/token.hex.sha1 | 1 + recipes-core/srp/files/token.hex.verified | 1 + recipes-core/srp/srp.bb | 45 ++++++++++++ 19 files changed, 251 insertions(+), 110 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 recipes-core/srp-recover/files/srp_recover.sh create mode 100644 recipes-core/srp-recover/srp-recover.bb delete mode 100644 recipes-core/srp-startup/files/srp_start.service delete mode 100644 recipes-core/srp-startup/files/srp_start.sh delete mode 100644 recipes-core/srp-startup/srp-startup.bb create mode 100644 recipes-core/srp-user/srp-user.bb create mode 100644 recipes-core/srp-user/srp-user/file1 create mode 100644 recipes-core/srp-user/srp-user/file2 create mode 100644 recipes-core/srp-user/srp-user/file3 create mode 100644 recipes-core/srp-user/srp-user/file4 rename recipes-core/{srp-startup => srp}/files/network_interface.sh (75%) create mode 100644 recipes-core/srp/files/srp_start.sh rename recipes-core/{srp-startup => srp}/files/start_up.sh (55%) create mode 100644 recipes-core/srp/files/test.txt create mode 100644 recipes-core/srp/files/token.hex create mode 100644 recipes-core/srp/files/token.hex.sha1 create mode 100644 recipes-core/srp/files/token.hex.verified create mode 100644 recipes-core/srp/srp.bb diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7a73a41 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/recipes-core/srp-recover/files/srp_recover.sh b/recipes-core/srp-recover/files/srp_recover.sh new file mode 100644 index 0000000..badae48 --- /dev/null +++ b/recipes-core/srp-recover/files/srp_recover.sh @@ -0,0 +1,54 @@ +#!/bin/bash + +out_put_file="/srp/token/token.hex" +out_put_file_ver="/srp/token/token.hex.sha1" + +if [ ! -d "/srp/update" ]; then + cd /srp + mkdir update + echo "[SRP-PLATFORM]: [INFO] SRP sw dir added" +fi + +if [ ! -d "/srp/update/backup" ]; then + cd /srp/update + mkdir backup + echo "[SRP-PLATFORM]: [INFO] Backup dir added" +fi + +if [ ! -d "/srp/update/new" ]; then + cd /srp/update + mkdir new + echo "[SRP-PLATFORM]: [INFO] New dir added" +fi + +if [ ! -d "/srp/update/current" ]; then + cd /srp/update + mkdir current + echo "[SRP-PLATFORM]: [INFO] Current dir added" +fi + +if [ ! -e "/srp/token/token.hex" ] +then + if [ ! -d "/srp/token" ]; then + cd /srp + mkdir token + fi + var1="$(cat /sys/class/net/*/address | tr -d '\n')" + sec='sec_token2' + eng='eng_token2' + upload='upload_token2' + sec=$var1$sec + sec="$(echo $sec | sha256sum)" + eng=$var1$eng + eng="$(echo $eng | sha256sum)" + upload=$var1$upload + upload="$(echo $upload | sha256sum)" + echo ${sec::-3} > $out_put_file + echo ${eng::-3} >> $out_put_file + echo ${upload::-3} >> $out_put_file + ver_hash="$(sha1sum $out_put_file)" + echo $ver_hash > $out_put_file_ver + chmod -w $out_put_file + chmod -w $out_put_file_ver + reboot +fi \ No newline at end of file diff --git a/recipes-core/srp-recover/srp-recover.bb b/recipes-core/srp-recover/srp-recover.bb new file mode 100644 index 0000000..89057b3 --- /dev/null +++ b/recipes-core/srp-recover/srp-recover.bb @@ -0,0 +1,22 @@ +DESCRIPTION = "SRP Initscripts" +LICENSE = "CLOSED" + +SRC_URI += "\ + file://srp_recover.sh \ +" + +INITSCRIPT_NAME = "srp_recover.sh" +INITSCRIPT_PARAMS = "start 99 5 ." + +inherit update-rc.d + +S = "${UNPACKDIR}" + +do_install () { + install -d ${D}${sysconfdir}/init.d/ + install -c -m 755 ${UNPACKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} +} + +DEPENDS = "bash" + +RDEPENDS:${PN} = "bash" diff --git a/recipes-core/srp-startup/files/srp_start.service b/recipes-core/srp-startup/files/srp_start.service deleted file mode 100644 index 96d90bd..0000000 --- a/recipes-core/srp-startup/files/srp_start.service +++ /dev/null @@ -1,18 +0,0 @@ -[Unit] -Description=SRP platform start -StartLimitIntervalSec=30 -StartLimitBurst=2 -After=multi-user.target -AllowIsolate=yes - -[Service] -Type=simple -ExecStart=/bin/srp_start.sh -StandardOutput=journal+console -StandardError=journal+console -SyslogIdentifier=srp_start -Restart=on-failure -RestartSec=5 - -[Install] -WantedBy=multi-user.target diff --git a/recipes-core/srp-startup/files/srp_start.sh b/recipes-core/srp-startup/files/srp_start.sh deleted file mode 100644 index e83d6aa..0000000 --- a/recipes-core/srp-startup/files/srp_start.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -if [ ! -d "/etc/simba" ]; then - cd /etc - mkdir simba - echo "SRP sw dir added" -fi - -if [ ! -d "/etc/simba/backup" ]; then - cd /etc/simba - mkdir backup - echo "Backup dir added" -fi - -if [ ! -d "/etc/simba/new" ]; then - cd /etc/simba - mkdir new - echo "New dir added" -fi - -if [ ! -d "/etc/simba/current" ]; then - cd /etc/simba - mkdir current - echo "Current dir added" -fi - -if [ "$(ls -A /etc/simba/new | grep .tar)" ]; then - echo "SRP update detected:" - ls -A /etc/simba/new - - if [ ! -d "/opt/cpu_simba/update.sh" ]; then - echo "Update script not detected !!!" - for file in /etc/simba/new/*.tar; do - echo "Opening: $file" - cp $file /etc/simba/current - tar -xvf $file -C / - rm $file - done - else - sh /opt/cpu_simba/update.sh - fi -else - echo "SRP update not detected" -fi - -sh /opt/cpu_simba/start_up.sh \ No newline at end of file diff --git a/recipes-core/srp-startup/srp-startup.bb b/recipes-core/srp-startup/srp-startup.bb deleted file mode 100644 index 245524b..0000000 --- a/recipes-core/srp-startup/srp-startup.bb +++ /dev/null @@ -1,34 +0,0 @@ -SUMMARY = "SRP platform init" -LICENSE = "CLOSED" - -SRC_URI += "\ - file://srp_start.sh \ - file://start_up.sh \ - file://network_interface.sh \ - file://srp_start.service" - -inherit systemd - -SYSTEMD_SERVICE:${PN} = "\ - srp_start.service \ -" - -do_install:append() { - - install -d ${D}${systemd_system_unitdir} - install -d ${D}/bin - install -d ${D}/opt/cpu_simba - - install -m 0777 ${WORKDIR}/srp_start.sh ${D}/bin - - install -m 0777 ${WORKDIR}/network_interface.sh ${D}/opt/cpu_simba - install -m 0777 ${WORKDIR}/start_up.sh ${D}/opt/cpu_simba - - install -m 0644 ${WORKDIR}/srp_start.service ${D}${systemd_system_unitdir} -} - -FILES:${PN} += "\ - /bin/srp_start.sh \ - ${systemd_system_unitdir}/srp_start.service \ - /opt/cpu_simba/start_up.sh \ - /opt/cpu_simba/network_interface.sh" \ No newline at end of file diff --git a/recipes-core/srp-user/srp-user.bb b/recipes-core/srp-user/srp-user.bb new file mode 100644 index 0000000..2e4252c --- /dev/null +++ b/recipes-core/srp-user/srp-user.bb @@ -0,0 +1,73 @@ +SUMMARY = "Example recipe for using inherit useradd" +DESCRIPTION = "This recipe serves as an example for using features from useradd.bbclass" +SECTION = "examples" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +SRC_URI = "file://file1 \ + file://file2 \ + file://file3 \ + file://file4" + +S = "${WORKDIR}/sources" +UNPACKDIR = "${S}" + +inherit useradd + +PACKAGES =+ "${PN}-user3" + +# You must set USERADD_PACKAGES when you inherit useradd. This +# lists which output packages will include the user/group +# creation code. +USERADD_PACKAGES = "${PN} ${PN}-user3" + +# You must also set USERADD_PARAM and/or GROUPADD_PARAM when +# you inherit useradd. + +# USERADD_PARAM specifies command line options to pass to the +# useradd command. Multiple users can be created by separating +# the commands with a semicolon. Here we'll create two users, +# user1 and user2: + +GROUPADD_PARAM:${PN} = "-g 1000 srp ; -g 1001 logs ; -g 1002 persistence ; -g 1003 com ; -g 890 group2;--system gpio;--system i2c;--system tty;--system bin" + +# Likewise, we'll manage group3 in the useradd-example-user3 package: +GROUPADD_PARAM:${PN}-user3 = "-g 900 group3" + +USERADD_PARAM:${PN} = "-u 1000 -d /home/srpapp -r -s /bin/bash --groups srp,gpio,i2c,tty,bin,logs,persistence,com srpapp" + +# user3 will be managed in the useradd-example-user3 package: +# As an example, we use the -p option to set password ('user3') for user3 +USERADD_PARAM:${PN}-user3 = "-u 1202 -d /home/user3 -r -s /bin/bash -p '\$6\$XAWr.8nc\$bUE4pYYaVb8n6BbnBitU0zeJMtfhTpFpiOBLL9zRl4e4YQo88UU4r/1kjRzmTimCy.BvDh4xoFwVqcO.pihLa1' user3" + + +GROUPADD_PARAM:${PN}-user3 = "-g 900 group3" + +do_install () { + install -d -m 755 ${D}${datadir}/srpapp + install -d -m 755 ${D}${datadir}/user3 + install -p -m 644 file1 ${D}${datadir}/srpapp/ + + install -p -m 644 file3 ${D}${datadir}/user3/ + install -p -m 644 file4 ${D}${datadir}/user3/ + install -d ${D}/persistence + install -d ${D}/logs + chmod 0666 ${D}/persistence + chmod 0666 ${D}/logs +} + +do_rootfs() { + chgrp -R persistence ${D}/persistence + chgrp -R logs ${D}/logs + chgrp -R com ${D}/run +} + +FILES:${PN} = "${datadir}/srpapp/* \ + /logs \ + /persistence \ +" +FILES:${PN}-user3 = "${datadir}/user3/*" + +# Prevents do_package failures with: +# debugsources.list: No such file or directory: +# INHIBIT_PACKAGE_DEBUG_SPLIT = "1" diff --git a/recipes-core/srp-user/srp-user/file1 b/recipes-core/srp-user/srp-user/file1 new file mode 100644 index 0000000..e69de29 diff --git a/recipes-core/srp-user/srp-user/file2 b/recipes-core/srp-user/srp-user/file2 new file mode 100644 index 0000000..e69de29 diff --git a/recipes-core/srp-user/srp-user/file3 b/recipes-core/srp-user/srp-user/file3 new file mode 100644 index 0000000..e69de29 diff --git a/recipes-core/srp-user/srp-user/file4 b/recipes-core/srp-user/srp-user/file4 new file mode 100644 index 0000000..e69de29 diff --git a/recipes-core/srp-startup/files/network_interface.sh b/recipes-core/srp/files/network_interface.sh similarity index 75% rename from recipes-core/srp-startup/files/network_interface.sh rename to recipes-core/srp/files/network_interface.sh index f0861c8..d52ccc5 100644 --- a/recipes-core/srp-startup/files/network_interface.sh +++ b/recipes-core/srp/files/network_interface.sh @@ -1,14 +1,13 @@ - -#!/bin/sh + #!/bin/bash ################################################################################ # # Copyright (c) 2024 Bartosz Snieg. -# +# ################################################################################ -# +# echo "Setting interface: eth0 for ec " -echo "ip: 192.168.10.101" +echo "ip: 192.168.10.52" echo "net mask 255.255.255.0 " -ifconfig eth0 192.168.10.101 netmask 255.255.255.0 +ifconfig eth0 192.168.10.52 netmask 255.255.255.0 echo "Interface set [DONE]" \ No newline at end of file diff --git a/recipes-core/srp/files/srp_start.sh b/recipes-core/srp/files/srp_start.sh new file mode 100644 index 0000000..ad94968 --- /dev/null +++ b/recipes-core/srp/files/srp_start.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +out_put_file="/srp/token/token.hex" +out_put_file_ver="/srp/token/token.hex.sha1" + +if [ ! -d "/srp/update" ]; then + cd /srp + mkdir update + echo "[SRP-PLATFORM]: [INFO] SRP sw dir added" +fi + +if [ ! -d "/srp/update/backup" ]; then + cd /srp/update + mkdir backup + echo "[SRP-PLATFORM]: [INFO] Backup dir added" +fi + +if [ ! -d "/srp/update/new" ]; then + cd /srp/update + mkdir new + echo "[SRP-PLATFORM]: [INFO] New dir added" +fi + +if [ ! -d "/srp/update/current" ]; then + cd /srp/update + mkdir current + echo "[SRP-PLATFORM]: [INFO] Current dir added" +fi + +if sha1sum -c $out_put_file_ver; +then +sh /srp/opt/cpu_srp/start_up.sh +else +echo "[SRP-PLATFORM]: [ERROR] Security file breach detected" +echo "[SRP-PLATFORM]: [INFO] Deletion of invalid token" +rm $out_put_file +rm $out_put_file_ver +echo "[SRP-PLATFORM]: [INFO] Reboot the system" +fi \ No newline at end of file diff --git a/recipes-core/srp-startup/files/start_up.sh b/recipes-core/srp/files/start_up.sh similarity index 55% rename from recipes-core/srp-startup/files/start_up.sh rename to recipes-core/srp/files/start_up.sh index 50eb94f..759ddcf 100644 --- a/recipes-core/srp-startup/files/start_up.sh +++ b/recipes-core/srp/files/start_up.sh @@ -1,14 +1,12 @@ - -#!/bin/sh + #!/bin/bash ################################################################################ # # Copyright (c) 2024 Bartosz Snieg. # ################################################################################ # -echo "Simab SRP start up script" +echo "SRP start up script" -sh /opt/cpu_simba/network_interface.sh -sh /opt/cpu_simba/component_start_up.sh +sh /srp/opt/cpu_srp/network_interface.sh -echo "Simab SRP start up script [DONE]" +echo "SRP start up script [DONE]" diff --git a/recipes-core/srp/files/test.txt b/recipes-core/srp/files/test.txt new file mode 100644 index 0000000..da7ae7a --- /dev/null +++ b/recipes-core/srp/files/test.txt @@ -0,0 +1,3 @@ + +f0fe281ebf48da4c8cb23d1cdf5a908c04824b8065fff81f8494730abe4e62b8 +3171dc64bae40fd17caab150af3012e4d6f3a560900c56d2c84af211d98870d9 diff --git a/recipes-core/srp/files/token.hex b/recipes-core/srp/files/token.hex new file mode 100644 index 0000000..bece978 --- /dev/null +++ b/recipes-core/srp/files/token.hex @@ -0,0 +1,2 @@ +f0fe281ebf48da4c8cb23d1cdf5a908c04824b8065fff81f8494730abe4e62b8 +3171dc64bae40fd17caab150af3012e4d6f3a560900c56d2c84af211d98870d9 diff --git a/recipes-core/srp/files/token.hex.sha1 b/recipes-core/srp/files/token.hex.sha1 new file mode 100644 index 0000000..1fe0798 --- /dev/null +++ b/recipes-core/srp/files/token.hex.sha1 @@ -0,0 +1 @@ +697c683dab6a72bb16e01ca51b085d34e9a23dff token.hex diff --git a/recipes-core/srp/files/token.hex.verified b/recipes-core/srp/files/token.hex.verified new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/recipes-core/srp/files/token.hex.verified @@ -0,0 +1 @@ + diff --git a/recipes-core/srp/srp.bb b/recipes-core/srp/srp.bb new file mode 100644 index 0000000..0932095 --- /dev/null +++ b/recipes-core/srp/srp.bb @@ -0,0 +1,45 @@ +DESCRIPTION = "SRP Initscripts" +LICENSE = "CLOSED" + +SRC_URI += "\ + file://srp_start.sh \ + file://start_up.sh \ + file://network_interface.sh \ +" + +INITSCRIPT_NAME = "srp_start.sh" +INITSCRIPT_PARAMS = "start 1 S ." + +inherit update-rc.d + +S = "${UNPACKDIR}" + +do_install () { + + install -d ${D}/srp + install -d ${D}/srp/opt + install -d ${D}/srp/opt/cpu_srp + # install -d ${D}/persistance + # install -d ${D}/logs + chmod 0755 ${D}/srp + # chmod 0666 ${D}/persistance + # touch ${D}/persistance/.keep + # chmod 0666 ${D}/logs + # touch ${D}/logs/.keep + install -d ${D}${sysconfdir}/init.d/ + install -c -m 755 ${UNPACKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} + + install -m 0755 ${UNPACKDIR}/network_interface.sh ${D}/srp/opt/cpu_srp + install -m 0755 ${UNPACKDIR}/start_up.sh ${D}/srp/opt/cpu_srp +} + +DEPENDS = "bash" + +RDEPENDS:${PN} = "bash" + +FILES:${PN} += "\ + /srp/opt/cpu_srp/start_up.sh \ + /srp/opt/cpu_srp/network_interface.sh \ + # /persistance/.keep \ + # /logs/.keep \ +" \ No newline at end of file From cbb3256afd46b4ede247c2c2d343666822d97217 Mon Sep 17 00:00:00 2001 From: KrzysKond Date: Sun, 26 Apr 2026 21:31:48 +0200 Subject: [PATCH 08/14] update image target --- recipes-core/images/fc-image.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-core/images/fc-image.bb b/recipes-core/images/fc-image.bb index 73601b8..31d45d0 100644 --- a/recipes-core/images/fc-image.bb +++ b/recipes-core/images/fc-image.bb @@ -1,6 +1,6 @@ SUMMARY = "Flight computer image" -IMAGE_INSTALL = "packagegroup-core-boot ${CORE_IMAGE_EXTRA_INSTALL} packagegroup-core-ssh-openssh kernel-modules i2c-tools libgpiod libgpiod-dev libgpiod-tools htop srp-startup" +IMAGE_INSTALL = "packagegroup-core-boot ${CORE_IMAGE_EXTRA_INSTALL} packagegroup-core-ssh-openssh kernel-modules i2c-tools libgpiod libgpiod-dev libgpiod-tools htop srp srp-recover srp-user" IMAGE_LINGUAS = " " From abce74e8e5c2d40ad197942faf5de5bc2f77e163 Mon Sep 17 00:00:00 2001 From: KrzysKond Date: Sun, 26 Apr 2026 21:50:29 +0200 Subject: [PATCH 09/14] path changes --- recipes-core/srp-recover/srp-recover.bb | 4 ++-- recipes-core/srp/srp.bb | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/recipes-core/srp-recover/srp-recover.bb b/recipes-core/srp-recover/srp-recover.bb index 89057b3..c81ce73 100644 --- a/recipes-core/srp-recover/srp-recover.bb +++ b/recipes-core/srp-recover/srp-recover.bb @@ -10,11 +10,11 @@ INITSCRIPT_PARAMS = "start 99 5 ." inherit update-rc.d -S = "${UNPACKDIR}" +S = "${WORKDIR}" do_install () { install -d ${D}${sysconfdir}/init.d/ - install -c -m 755 ${UNPACKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} + install -c -m 755 ${WORKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} } DEPENDS = "bash" diff --git a/recipes-core/srp/srp.bb b/recipes-core/srp/srp.bb index 0932095..b4d9f7c 100644 --- a/recipes-core/srp/srp.bb +++ b/recipes-core/srp/srp.bb @@ -12,7 +12,7 @@ INITSCRIPT_PARAMS = "start 1 S ." inherit update-rc.d -S = "${UNPACKDIR}" +S = "${WORKDIR}" do_install () { @@ -27,10 +27,10 @@ do_install () { # chmod 0666 ${D}/logs # touch ${D}/logs/.keep install -d ${D}${sysconfdir}/init.d/ - install -c -m 755 ${UNPACKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} + install -c -m 755 ${WORKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} - install -m 0755 ${UNPACKDIR}/network_interface.sh ${D}/srp/opt/cpu_srp - install -m 0755 ${UNPACKDIR}/start_up.sh ${D}/srp/opt/cpu_srp + install -m 0755 ${WORKDIR}/network_interface.sh ${D}/srp/opt/cpu_srp + install -m 0755 ${WORKDIR}/start_up.sh ${D}/srp/opt/cpu_srp } DEPENDS = "bash" From be48b40fc881e35d9b1f4f69dcabfc8080e72e45 Mon Sep 17 00:00:00 2001 From: KrzysKond Date: Sun, 26 Apr 2026 21:52:30 +0200 Subject: [PATCH 10/14] path changes srp-user --- recipes-core/srp-user/srp-user.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes-core/srp-user/srp-user.bb b/recipes-core/srp-user/srp-user.bb index 2e4252c..31f1d3f 100644 --- a/recipes-core/srp-user/srp-user.bb +++ b/recipes-core/srp-user/srp-user.bb @@ -46,10 +46,10 @@ GROUPADD_PARAM:${PN}-user3 = "-g 900 group3" do_install () { install -d -m 755 ${D}${datadir}/srpapp install -d -m 755 ${D}${datadir}/user3 - install -p -m 644 file1 ${D}${datadir}/srpapp/ + install -p -m 644 ${WORKDIR}/file1 ${D}${datadir}/srpapp/ - install -p -m 644 file3 ${D}${datadir}/user3/ - install -p -m 644 file4 ${D}${datadir}/user3/ + install -p -m 644 ${WORKDIR}/file3 ${D}${datadir}/user3/ + install -p -m 644 ${WORKDIR}/file4 ${D}${datadir}/user3/ install -d ${D}/persistence install -d ${D}/logs chmod 0666 ${D}/persistence From f6568ee49bd22a0c0e4ff87603703181bb651f5d Mon Sep 17 00:00:00 2001 From: KrzysKond Date: Mon, 27 Apr 2026 20:04:49 +0200 Subject: [PATCH 11/14] match original repo --- recipes-core/srp-recover/srp-recover.bb | 6 +++--- recipes-core/srp-user/srp-user.bb | 9 ++++----- recipes-core/srp/srp.bb | 8 ++++---- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/recipes-core/srp-recover/srp-recover.bb b/recipes-core/srp-recover/srp-recover.bb index c81ce73..f3a1ad9 100644 --- a/recipes-core/srp-recover/srp-recover.bb +++ b/recipes-core/srp-recover/srp-recover.bb @@ -10,13 +10,13 @@ INITSCRIPT_PARAMS = "start 99 5 ." inherit update-rc.d -S = "${WORKDIR}" +S = "${UNPACKDIR}" do_install () { install -d ${D}${sysconfdir}/init.d/ - install -c -m 755 ${WORKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} + install -c -m 755 ${UNPACKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} } DEPENDS = "bash" -RDEPENDS:${PN} = "bash" +RDEPENDS:${PN} = "bash" \ No newline at end of file diff --git a/recipes-core/srp-user/srp-user.bb b/recipes-core/srp-user/srp-user.bb index 31f1d3f..01da9d6 100644 --- a/recipes-core/srp-user/srp-user.bb +++ b/recipes-core/srp-user/srp-user.bb @@ -9,8 +9,7 @@ SRC_URI = "file://file1 \ file://file3 \ file://file4" -S = "${WORKDIR}/sources" -UNPACKDIR = "${S}" +S = "${UNPACKDIR}" inherit useradd @@ -46,10 +45,10 @@ GROUPADD_PARAM:${PN}-user3 = "-g 900 group3" do_install () { install -d -m 755 ${D}${datadir}/srpapp install -d -m 755 ${D}${datadir}/user3 - install -p -m 644 ${WORKDIR}/file1 ${D}${datadir}/srpapp/ + install -p -m 644 ${UNPACKDIR}/file1 ${D}${datadir}/srpapp/ - install -p -m 644 ${WORKDIR}/file3 ${D}${datadir}/user3/ - install -p -m 644 ${WORKDIR}/file4 ${D}${datadir}/user3/ + install -p -m 644 ${UNPACKDIR}/file3 ${D}${datadir}/user3/ + install -p -m 644 ${UNPACKDIR}/file4 ${D}${datadir}/user3/ install -d ${D}/persistence install -d ${D}/logs chmod 0666 ${D}/persistence diff --git a/recipes-core/srp/srp.bb b/recipes-core/srp/srp.bb index b4d9f7c..0932095 100644 --- a/recipes-core/srp/srp.bb +++ b/recipes-core/srp/srp.bb @@ -12,7 +12,7 @@ INITSCRIPT_PARAMS = "start 1 S ." inherit update-rc.d -S = "${WORKDIR}" +S = "${UNPACKDIR}" do_install () { @@ -27,10 +27,10 @@ do_install () { # chmod 0666 ${D}/logs # touch ${D}/logs/.keep install -d ${D}${sysconfdir}/init.d/ - install -c -m 755 ${WORKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} + install -c -m 755 ${UNPACKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} - install -m 0755 ${WORKDIR}/network_interface.sh ${D}/srp/opt/cpu_srp - install -m 0755 ${WORKDIR}/start_up.sh ${D}/srp/opt/cpu_srp + install -m 0755 ${UNPACKDIR}/network_interface.sh ${D}/srp/opt/cpu_srp + install -m 0755 ${UNPACKDIR}/start_up.sh ${D}/srp/opt/cpu_srp } DEPENDS = "bash" From 373561f62aa546d523a7c4e049041b70547afe3a Mon Sep 17 00:00:00 2001 From: KrzysKond Date: Mon, 27 Apr 2026 20:26:38 +0200 Subject: [PATCH 12/14] test new paths --- recipes-core/srp-recover/srp-recover.bb | 2 +- recipes-core/srp/srp.bb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes-core/srp-recover/srp-recover.bb b/recipes-core/srp-recover/srp-recover.bb index f3a1ad9..634154f 100644 --- a/recipes-core/srp-recover/srp-recover.bb +++ b/recipes-core/srp-recover/srp-recover.bb @@ -2,7 +2,7 @@ DESCRIPTION = "SRP Initscripts" LICENSE = "CLOSED" SRC_URI += "\ - file://srp_recover.sh \ + file://files/srp_recover.sh \ " INITSCRIPT_NAME = "srp_recover.sh" diff --git a/recipes-core/srp/srp.bb b/recipes-core/srp/srp.bb index 0932095..3fa0755 100644 --- a/recipes-core/srp/srp.bb +++ b/recipes-core/srp/srp.bb @@ -2,9 +2,9 @@ DESCRIPTION = "SRP Initscripts" LICENSE = "CLOSED" SRC_URI += "\ - file://srp_start.sh \ - file://start_up.sh \ - file://network_interface.sh \ + file://files/srp_start.sh \ + file://files/start_up.sh \ + file://files/network_interface.sh \ " INITSCRIPT_NAME = "srp_start.sh" From c9743aaccacb62db4e0ac76531db3c10a5df4a92 Mon Sep 17 00:00:00 2001 From: KrzysKond Date: Mon, 27 Apr 2026 20:28:31 +0200 Subject: [PATCH 13/14] test another paths --- recipes-core/srp-recover/srp-recover.bb | 4 ++-- recipes-core/srp/srp.bb | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/recipes-core/srp-recover/srp-recover.bb b/recipes-core/srp-recover/srp-recover.bb index 634154f..49a32c7 100644 --- a/recipes-core/srp-recover/srp-recover.bb +++ b/recipes-core/srp-recover/srp-recover.bb @@ -2,10 +2,10 @@ DESCRIPTION = "SRP Initscripts" LICENSE = "CLOSED" SRC_URI += "\ - file://files/srp_recover.sh \ + file://srp_recover.sh \ " -INITSCRIPT_NAME = "srp_recover.sh" +INITSCRIPT_NAME = "files/srp_recover.sh" INITSCRIPT_PARAMS = "start 99 5 ." inherit update-rc.d diff --git a/recipes-core/srp/srp.bb b/recipes-core/srp/srp.bb index 3fa0755..96ae429 100644 --- a/recipes-core/srp/srp.bb +++ b/recipes-core/srp/srp.bb @@ -2,12 +2,12 @@ DESCRIPTION = "SRP Initscripts" LICENSE = "CLOSED" SRC_URI += "\ - file://files/srp_start.sh \ - file://files/start_up.sh \ - file://files/network_interface.sh \ + file://srp_start.sh \ + file://start_up.sh \ + file://network_interface.sh \ " -INITSCRIPT_NAME = "srp_start.sh" +INITSCRIPT_NAME = "files/srp_start.sh" INITSCRIPT_PARAMS = "start 1 S ." inherit update-rc.d From 92aa3f6d367a42ff329445248f0d55ac099e434f Mon Sep 17 00:00:00 2001 From: KrzysKond Date: Mon, 27 Apr 2026 20:30:40 +0200 Subject: [PATCH 14/14] revert paths --- recipes-core/srp-recover/srp-recover.bb | 2 +- recipes-core/srp/srp.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes-core/srp-recover/srp-recover.bb b/recipes-core/srp-recover/srp-recover.bb index 49a32c7..f3a1ad9 100644 --- a/recipes-core/srp-recover/srp-recover.bb +++ b/recipes-core/srp-recover/srp-recover.bb @@ -5,7 +5,7 @@ SRC_URI += "\ file://srp_recover.sh \ " -INITSCRIPT_NAME = "files/srp_recover.sh" +INITSCRIPT_NAME = "srp_recover.sh" INITSCRIPT_PARAMS = "start 99 5 ." inherit update-rc.d diff --git a/recipes-core/srp/srp.bb b/recipes-core/srp/srp.bb index 96ae429..0932095 100644 --- a/recipes-core/srp/srp.bb +++ b/recipes-core/srp/srp.bb @@ -7,7 +7,7 @@ SRC_URI += "\ file://network_interface.sh \ " -INITSCRIPT_NAME = "files/srp_start.sh" +INITSCRIPT_NAME = "srp_start.sh" INITSCRIPT_PARAMS = "start 1 S ." inherit update-rc.d