Skip to content

Commit

Permalink
Fix RPi4's config.txt be wrongly copied.
Browse files Browse the repository at this point in the history
Before, for RPi4s, the config.txt was the one from the RPi3 configuration.
This commit changes that so the system becomes bootable and has the correct
boot-specific configuration.
  • Loading branch information
slendidev committed Apr 2, 2022
1 parent 8da48ae commit 3cc832a
Showing 1 changed file with 36 additions and 1 deletion.
1 change: 0 additions & 1 deletion buildroot-external/board/raspberrypi4-64/post-build.sh

This file was deleted.

36 changes: 36 additions & 0 deletions buildroot-external/board/raspberrypi4-64/post-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/sh

set -u
set -e

BOARD_DIR="$(dirname $0)"

. "${BR2_EXTERNAL_YROS_PATH}/meta"
. "${BOARD_DIR}/meta"

# Write os-release
{
echo "NAME=\"${YROS_NAME}\""
echo "VERSION=\"${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_BUILD} ${BOARD_NAME}\""
echo "ID=${YROS_ID}"
echo "PRETTY_NAME=\"${YROS_NAME} ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_BUILD} ${BOARD_NAME}\""
echo "HOME_URL=https://github.com/xslendix/YROS"
echo "SUPPORT_URL=https://github.com/xslendix/YROS/issues"
} > "${TARGET_DIR}/usr/lib/os-release"

# Write machine-info
{
echo "CHASSIS=${CHASSIS}"
echo "DEPLOYMENT=${DEPLOYMENT}"
} > "${TARGET_DIR}/etc/machine-info"

cp -vf ../buildroot-external/board/raspberrypi4-64/config.txt ${BINARIES_DIR}/rpi-firmware/config.txt
cp -vf ../buildroot-external/board/raspberrypi4-64/cmdline.txt ${BINARIES_DIR}/rpi-firmware/cmdline.txt

rm -f "${TARGET_DIR}/usr/lib/systemd/system/pigpio.service"

vim "${TARGET_DIR}/etc/yrosd.conf"

# cp package/busybox/S10mdev ${TARGET_DIR}/etc/init.d/S10mdev
# chmod 755 ${TARGET_DIR}/etc/init.d/S10mdev
# cp package/busybox/mdev.conf ${TARGET_DIR}/etc/mdev.conf

0 comments on commit 3cc832a

Please sign in to comment.