summaryrefslogtreecommitdiff
path: root/stage1
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2021-10-05 17:43:06 +0100
committerSerge Schneider <serge@raspberrypi.com>2021-10-05 17:43:06 +0100
commit2e3603d228fa6acd509dbb9467dfa228dd724766 (patch)
tree298df13120ad9fcf7cf32979cb41270341727c96 /stage1
parent59717675900cfe478e176d9d05b5614cc1934670 (diff)
parent5a4b7ec0679dc85efc5abfa65a9a33a3e3cb1273 (diff)
Merge branch 'master' into arm64
Diffstat (limited to 'stage1')
-rw-r--r--stage1/00-boot-files/files/config.txt28
-rw-r--r--stage1/01-sys-tweaks/00-packages1
-rwxr-xr-xstage1/02-net-tweaks/00-run.sh4
-rw-r--r--stage1/03-install-packages/00-packages2
4 files changed, 28 insertions, 7 deletions
diff --git a/stage1/00-boot-files/files/config.txt b/stage1/00-boot-files/files/config.txt
index a002373..48130bb 100644
--- a/stage1/00-boot-files/files/config.txt
+++ b/stage1/00-boot-files/files/config.txt
@@ -5,10 +5,6 @@
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
-# uncomment this if your display has a black border of unused pixels visible
-# and your display can output without overscan
-#disable_overscan=1
-
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
@@ -56,7 +52,29 @@
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
-# Enable DRM VC4 V3D drive
+# Automatically load overlays for detected cameras
+camera_auto_detect=1
+
+# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2
+
+# Run in 64-bit mode
arm_64bit=1
+
+# Disable compensation for displays with overscan
+disable_overscan=1
+
+[cm4]
+# Enable host mode on the 2711 built-in XHCI USB controller.
+# This line should be removed if the legacy DWC2 controller is required
+# (e.g. for USB device mode) or if USB support is not required.
+otg_mode=1
+
+[all]
+
+[pi4]
+# Run as fast as firmware / board allows
+arm_boost=1
+
+[all]
diff --git a/stage1/01-sys-tweaks/00-packages b/stage1/01-sys-tweaks/00-packages
new file mode 100644
index 0000000..9e91ea1
--- /dev/null
+++ b/stage1/01-sys-tweaks/00-packages
@@ -0,0 +1 @@
+raspi-config
diff --git a/stage1/02-net-tweaks/00-run.sh b/stage1/02-net-tweaks/00-run.sh
index 4943cab..95dfbdc 100755
--- a/stage1/02-net-tweaks/00-run.sh
+++ b/stage1/02-net-tweaks/00-run.sh
@@ -3,4 +3,6 @@
echo "${TARGET_HOSTNAME}" > "${ROOTFS_DIR}/etc/hostname"
echo "127.0.1.1 ${TARGET_HOSTNAME}" >> "${ROOTFS_DIR}/etc/hosts"
-ln -sf /dev/null "${ROOTFS_DIR}/etc/systemd/network/99-default.link"
+on_chroot << EOF
+ SUDO_USER="${FIRST_USER_NAME}" raspi-config nonint do_net_names 1
+EOF
diff --git a/stage1/03-install-packages/00-packages b/stage1/03-install-packages/00-packages
index e8c148c..73edcc9 100644
--- a/stage1/03-install-packages/00-packages
+++ b/stage1/03-install-packages/00-packages
@@ -1 +1 @@
-libraspberrypi-bin libraspberrypi0 raspi-config
+libraspberrypi-bin libraspberrypi0