Skip to content

Commit ab0e334

Browse files
pwieldersDivya-563
authored andcommitted
Revert "Merge branch 'main' into main"
This reverts commit 5c2df13, reversing changes made to 1e6f7a1.
1 parent 963356f commit ab0e334

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+3018
-3187
lines changed

board/raspberrypi/post-build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
set -u
44
set -e
55

6+
# Add a console on tty1
7+
if [ -e ${TARGET_DIR}/etc/inittab ]; then
8+
grep -qE '^tty1::' ${TARGET_DIR}/etc/inittab || \
9+
sed -i '/GENERIC_SERIAL/a\
10+
tty1::respawn:/sbin/getty -L tty1 0 vt100 # HDMI console' ${TARGET_DIR}/etc/inittab
11+
fi
12+
613
if grep -q "^BR2_TARGET_ROOTFS_INITRAMFS=y$" "${BR2_CONFIG}"; then
714

815
mkdir -p "${TARGET_DIR}/boot"

board/raspberrypi/post-image.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ __EOF__
1919
fi
2020
fi
2121

22+
if [ ! "x${BLUETOOTH}" = "x" ]; then
23+
if ! grep -qE '^enable_uart=1' "${BINARIES_DIR}/rpi-firmware/config.txt"; then
24+
echo "Adding serial console to /dev/ttyS0 to config.txt."
25+
sed -i 's/ttyAMA0/ttyS0/g' "${BINARIES_DIR}/rpi-firmware/cmdline.txt"
26+
cat << __EOF__ >> "${BINARIES_DIR}/rpi-firmware/config.txt"
27+
# Fixes rpi3 ttyS0 serial console
28+
enable_uart=1
29+
__EOF__
30+
fi
31+
fi
32+
2233
for arg in "$@"
2334
do
2435
case "${arg}" in
@@ -77,13 +88,14 @@ __EOF__
7788
cat << __EOF__ >> "${BINARIES_DIR}/rpi-firmware/config.txt"
7889
7990
# Overclock
91+
force_turbo=1
8092
[pi0]
8193
[pi0w]
8294
[pi1]
8395
[pi2]
8496
arm_freq=1000
85-
core_freq=400
86-
sdram_freq=450
97+
gpu_freq=500
98+
sdram_freq=500
8799
over_voltage=6
88100
[pi3]
89101
arm_freq=1350

board/raspberrypi/rpi0-linux-5.10.config

Lines changed: 0 additions & 312 deletions
This file was deleted.

0 commit comments

Comments
 (0)