Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
@@ -0,0 +1,11 @@
[Unit]
Description=Check PNOR UBI format
Before=mboxd.service
[Service]
ExecStart={bindir}/check_pnor_format.sh
Type=oneshot
RemainAfterExit=yes
[Install]
RequiredBy=mboxd.service
@@ -0,0 +1,18 @@
#!/bin/sh
# Get the mtd device number (mtdX)
findmtd() {
m="$(grep -xl "$1" /sys/class/mtd/*/name)"
m="${m%/name}"
m="${m##*/}"
echo "${m}"
}
pnormtd="$(findmtd pnor)"
pnor="${pnormtd#mtd}"
pnordev="/dev/mtd${pnor}"
if [ ! "$(dd if="${pnordev}" bs=1 count=3 2> /dev/null)" = "UBI" ]; then
echo "${pnordev} is not formatted UBI"
exit 1
fi
@@ -0,0 +1,13 @@
MBOXD_FLASH_SIZE:ibm-ac-server = "64M"
MBOXD_FLASH_SIZE:p10bmc = "64M"
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SYSTEMD_SERVICE:${PN}:append:df-openpower-ubi-fs = " check-pnor-format.service"
SRC_URI:append:df-openpower-ubi-fs = " file://check_pnor_format.sh"
do_install:append:df-openpower-ubi-fs() {
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/check_pnor_format.sh ${D}${bindir}/check_pnor_format.sh
}