-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize build script for Raspberry Pi 4 (#407)
- Loading branch information
1 parent
049e71e
commit 8a1fde4
Showing
8 changed files
with
131 additions
and
33 deletions.
There are no files selected for viewing
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
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
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 @@ | ||
net.ifnames=0 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=LABEL=writable rootfstype=ext4 elevator=deadline rootwait fixrtc |
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,32 @@ | ||
[pi4] | ||
max_framebuffers=2 | ||
|
||
[all] | ||
arm_64bit=1 | ||
kernel=vmlinuz | ||
cmdline=cmdline.txt | ||
initramfs initrd.img followkernel | ||
|
||
# Enable the audio output, I2C and SPI interfaces on the GPIO header | ||
dtparam=audio=on | ||
dtparam=i2c_arm=on | ||
dtparam=spi=on | ||
|
||
# Enable the FKMS ("Fake" KMS) graphics overlay, enable the camera firmware | ||
# and allocate 128Mb to the GPU memory | ||
dtoverlay=vc4-fkms-v3d | ||
gpu_mem=128 | ||
start_x=1 | ||
|
||
# Comment out the following line if the edges of the desktop appear outside | ||
# the edges of your display | ||
disable_overscan=1 | ||
|
||
# If you have issues with audio, you may try uncommenting the following line | ||
# which forces the HDMI output into HDMI mode instead of DVI (which doesn't | ||
# support audio output) | ||
#hdmi_drive=2 | ||
|
||
# If you have a CM4, uncomment the following line to enable the USB2 outputs | ||
# on the IO board (assuming your CM4 is plugged into such a board) | ||
#dtoverlay=dwc2,dr_mode=host |
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,37 @@ | ||
Package: linux-firmware-raspi2 | ||
Pin: release n=@LATESTCODENAME | ||
Pin-Priority: 990 | ||
|
||
Package: linux*-raspi* | ||
Pin: release n=@LATESTCODENAME | ||
Pin-Priority: 990 | ||
|
||
Package: ubuntu-raspi-settings | ||
Pin: release n=@LATESTCODENAME | ||
Pin-Priority: 990 | ||
|
||
Package: rpi-eeprom | ||
Pin: release n=@LATESTCODENAME | ||
Pin-Priority: 990 | ||
|
||
Package: libraspberrypi* | ||
Pin: release n=@LATESTCODENAME | ||
Pin-Priority: 990 | ||
|
||
Package: u-boot-rpi | ||
Pin: release n=@LATESTCODENAME | ||
Pin-Priority: 990 | ||
|
||
Package: grub* | ||
Pin: release n=@LATESTCODENAME | ||
Pin-Priority: 990 | ||
|
||
Explanation: Uninstall or do not install any Ubuntu-originated | ||
Explanation: package versions other than those in the @BASECODENAME release | ||
Package: * | ||
Pin: release n=@BASECODENAME | ||
Pin-Priority: 900 | ||
|
||
Package: * | ||
Pin: release o=Ubuntu | ||
Pin-Priority: -10 |
2 changes: 2 additions & 0 deletions
2
rpi/rootfs/writable/etc/apt/sources.list.d/ubuntu-latest.list
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,2 @@ | ||
deb http://ports.ubuntu.com/ubuntu-ports @LATESTCODENAME main restricted universe multiverse | ||
deb http://ports.ubuntu.com/ubuntu-ports @LATESTCODENAME-updates main restricted universe multiverse |
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,5 @@ | ||
[OEM] | ||
Manufacturer=Raspberry Pi Foundation | ||
Product=Raspberry Pi | ||
Logo=/etc/oem/logo.png | ||
URL=https://www.raspberrypi.org/ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.