Skip to contentSkip to conversation

linux-xenomai: Fix SD card boot for beagle bone black

PATCH Applied Florian Bezdeka 2 participants 4 messages Jul 24, 2023 – Jul 26, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 linux-xenomai: Fix SD card boot for beagle bone black

The sd card boot was not working due to missing driver support. CI did not recognize this as we use NFS boot, so no sd card inolved.

While at it: Convert a DIY machine check into a machine override.

---
 recipes-kernel/linux/files/armhf_defconfig   | 5 +++--
 recipes-kernel/linux/linux-xenomai_latest.bb | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
recipes-kernel/linux/files/armhf_defconfig +3 -2
index b9342a5..dee6f5e 100644
@@ -5192,7 +5192,7 @@ CONFIG_PWRSEQ_EMMC=y
 # CONFIG_PWRSEQ_SD8787 is not set
 CONFIG_PWRSEQ_SIMPLE=y
 CONFIG_MMC_BLOCK=y
-CONFIG_MMC_BLOCK_MINORS=16
+CONFIG_MMC_BLOCK_MINORS=256
 # CONFIG_SDIO_UART is not set
 # CONFIG_MMC_TEST is not set
 
@@ -5204,8 +5204,9 @@ CONFIG_MMC_ARMMMCI=y
 CONFIG_MMC_QCOM_DML=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_IO_ACCESSORS=y
-# CONFIG_MMC_SDHCI_PCI is not set
+CONFIG_MMC_SDHCI_PCI=y
 CONFIG_MMC_SDHCI_PLTFM=y
+CONFIG_MMC_SDHCI_OMAP=m
 CONFIG_MMC_SDHCI_OF_ARASAN=y
 CONFIG_MMC_SDHCI_OF_AT91=y
 CONFIG_MMC_SDHCI_OF_ESDHC=y
recipes-kernel/linux/linux-xenomai_latest.bb +1 -1
index 7d002f1..e5348c6 100644
@@ -74,4 +74,4 @@ GIT_BRANCH:arm64 = "${@ \
 SRC_URI += "${GIT_REPO};protocol=https;branch=${GIT_BRANCH}"
 SRCREV = "${AUTOREV}"
 
-SRC_URI:append:armhf = " ${@ 'file://bbb_4.4.cfg' if is_xeno_3_0(d) and d.getVar('MACHINE') == 'beagle-bone-black' else '' }"
+SRC_URI:append:beagle-bone-black = " ${@ 'file://bbb_4.4.cfg' if is_xeno_3_0(d) else '' }"
Signature · 1 line
2.41.0
#1 lore raw

PATCH 2/2 customizations: Install systemd-resolved as DNS resolver

The DHCP part of our network configuration was working but DNS was unusable due to missing systemd-resolved.

---
 recipes-core/customizations/customizations.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-core/customizations/customizations.bb +1 -1
index f86bf68..fb79a8f 100644
@@ -18,7 +18,7 @@ SRC_URI = " \
     file://primary.network \
     file://99-silent-printk.conf"
 
-DEBIAN_DEPENDS = "openssh-server"
+DEBIAN_DEPENDS = "openssh-server, systemd-resolved"
 
 do_install() {
 	install -d ${D}/etc/systemd/network
Signature · 1 line
2.41.0
#2 lore raw

Re: [xenomai-images][PATCH 2/2] customizations: Install systemd-resolved as DNS resolver

Quoted 13 lines · Florian Bezdeka

The DHCP part of our network configuration was working but DNS was unusable due to missing systemd-resolved.

---
 recipes-core/customizations/customizations.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-core/customizations/customizations.bb +0 -0
index f86bf68..fb79a8f 100644

recipes-core/customizations/customizations.bb SRC_URI = " \ · line 24

Quoted 8 lines
recipes-core/customizations/customizations.bb +1 -1
@@ -18,7 +18,7 @@ SRC_URI = " \
     file://primary.network \
     file://99-silent-printk.conf"
 
-DEBIAN_DEPENDS = "openssh-server"
+DEBIAN_DEPENDS = "openssh-server, systemd-resolved"
 
 do_install() {
 	install -d ${D}/etc/systemd/network

Thanks, folded into the original systemd-network conversion commit.

Jan

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center
Applied
#3 lore raw
In reply to Florian Bezdeka
Quoted 40 lines · Florian Bezdeka

The sd card boot was not working due to missing driver support. CI did not recognize this as we use NFS boot, so no sd card inolved.

While at it: Convert a DIY machine check into a machine override.

---
 recipes-kernel/linux/files/armhf_defconfig   | 5 +++--
 recipes-kernel/linux/linux-xenomai_latest.bb | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
recipes-kernel/linux/files/armhf_defconfig +3 -2
index b9342a5..dee6f5e 100644
@@ -5192,7 +5192,7 @@ CONFIG_PWRSEQ_EMMC=y
 # CONFIG_PWRSEQ_SD8787 is not set
 CONFIG_PWRSEQ_SIMPLE=y
 CONFIG_MMC_BLOCK=y
-CONFIG_MMC_BLOCK_MINORS=16
+CONFIG_MMC_BLOCK_MINORS=256
 # CONFIG_SDIO_UART is not set
 # CONFIG_MMC_TEST is not set
 
@@ -5204,8 +5204,9 @@ CONFIG_MMC_ARMMMCI=y
 CONFIG_MMC_QCOM_DML=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_IO_ACCESSORS=y
-# CONFIG_MMC_SDHCI_PCI is not set
+CONFIG_MMC_SDHCI_PCI=y
 CONFIG_MMC_SDHCI_PLTFM=y
+CONFIG_MMC_SDHCI_OMAP=m
 CONFIG_MMC_SDHCI_OF_ARASAN=y
 CONFIG_MMC_SDHCI_OF_AT91=y
 CONFIG_MMC_SDHCI_OF_ESDHC=y
recipes-kernel/linux/linux-xenomai_latest.bb +0 -0
index 7d002f1..e5348c6 100644

recipes-kernel/linux/linux-xenomai_latest.bb GIT_BRANCH:arm64 = "${@ \ · line 77

Quoted 5 lines
recipes-kernel/linux/linux-xenomai_latest.bb +1 -1
@@ -74,4 +74,4 @@ GIT_BRANCH:arm64 = "${@ \
 SRC_URI += "${GIT_REPO};protocol=https;branch=${GIT_BRANCH}"
 SRCREV = "${AUTOREV}"
 
-SRC_URI:append:armhf = " ${@ 'file://bbb_4.4.cfg' if is_xeno_3_0(d) and d.getVar('MACHINE') == 'beagle-bone-black' else '' }"
+SRC_URI:append:beagle-bone-black = " ${@ 'file://bbb_4.4.cfg' if is_xeno_3_0(d) else '' }"

Thanks, applied.

Jan

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center