forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rpi4b.wip
38 lines (32 loc) · 1.09 KB
/
rpi4b.wip
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Broadcom BCM2711 quad core 1-8Gb RAM SoC USB3 GBE USB-C WiFi/BT
export BOARD_NAME="Raspberry Pi 4"
export BOARDFAMILY="bcm2711"
export KERNEL_TARGET="current,edge"
export FK__MACHINE_MODEL="Raspberry Pi 4 Model B" # flash kernel (FK) configuration
# configure stuff at the appropriate time in flash-kernel
pre_initramfs_flash_kernel__write_raspi_config() {
# for serial console, there is also 'BOOT_UART=1' in 'rpi-eeprom-config' but that is for an earlier stage.
# look at with it rpi-eeprom-config, change with 'EDITOR=nano rpi-eeprom-config --edit'
cat <<-EOD >"${FIRMWARE_DIR}/config.txt"
[pi4]
max_framebuffers=2
[all]
kernel=vmlinuz
cmdline=cmdline.txt
initramfs initrd.img followkernel
disable_overscan=1
hdmi_drive=2
arm_64bit=1
# bootloader logs to serial, second stage
# enable_uart=1
# overclock. requires decent thermals. COMMENT OUT IF DON'T USE A GREAT COOLER OR HEATSINK.
over_voltage=6
arm_freq=2000
# uncomment to disable wifi or bt.
#dtoverlay=disable-wifi
#dtoverlay=disable-bt
# gpu and 3d stuff.
gpu_mem=256
dtoverlay=vc4-fkms-v3d
EOD
}