-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix RPi4's config.txt be wrongly copied.
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
Showing
1 changed file
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |