Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try actually enabling resize #2

Merged
merged 8 commits into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
display_auto_detect=1
camera_auto_detect=1

# Automatically load initramfs files, if found
auto_initramfs=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2
Expand Down Expand Up @@ -39,4 +42,4 @@ camera_auto_detect=1
# dtoverlay=imx378
# dtoverlay=ov9281

##############################################################
##############################################################
10 changes: 4 additions & 6 deletions install_limelight.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,22 @@ rm install.sh

echo "Installing additional things"
sudo apt-get update
apt-get install -y pigpiod pigpio device-tree-compiler
apt-get install -y pigpiod pigpio device-tree-compiler libraspberrypi-bin
apt-get install -y network-manager
apt-get install -y net-tools
# libcamera-driver stuff
apt-get install -y libegl1 libopengl0 libopencv-core406 libgl1-mesa-dri libcamera0.1 libgbm1 libatomic1

# and edit boot partition
# And keep rpi-bin installed
apt-mark manual libraspberrypi-bin

# edit boot partition
install -m 644 limelight/config.txt /boot/
install -m 644 userconf.txt /boot/

# install LL DTS
dtc -O dtb limelight/gloworm-dt.dts -o /boot/dt-blob.bin

# re-size FS, again, at next boot
wget https://raw.githubusercontent.com/PhotonVision/photon-pi-gen/arm64/stage2/01-sys-tweaks/files/resize2fs_once -O files/resize2fs_once
install -m 755 files/resize2fs_once "${ROOTFS_DIR}/etc/init.d/"

# Kill wifi and other networking things
install -v -m 644 files/wait.conf /etc/systemd/system/dhcpcd.service.d/
install -v files/rpi-blacklist.conf /etc/modprobe.d/blacklist.conf
Expand Down
9 changes: 4 additions & 5 deletions install_pi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ rm install.sh

echo "Installing additional things"
sudo apt-get update
apt-get install -y pigpiod pigpio device-tree-compiler
apt-get install -y pigpiod pigpio device-tree-compiler libraspberrypi-bin
apt-get install -y network-manager
apt-get install -y net-tools
# libcamera-driver stuff + libatomic1 for wpilib
apt-get install -y libegl1 libopengl0 libopencv-core406 libgl1-mesa-dri libcamera0.1 libgbm1 libatomic1

# And keep rpi-bin installed, ideally
apt-mark manual libraspberrypi-bin

# and edit boot partition
install -m 644 config.txt /boot/
install -m 644 userconf.txt /boot/
Expand All @@ -21,10 +24,6 @@ install -m 644 userconf.txt /boot/
install -v -m 644 files/wait.conf /etc/systemd/system/dhcpcd.service.d/
install -v files/rpi-blacklist.conf /etc/modprobe.d/blacklist.conf

# re-size FS, again, at next boot
wget https://raw.githubusercontent.com/PhotonVision/photon-pi-gen/arm64/stage2/01-sys-tweaks/files/resize2fs_once -O files/resize2fs_once
install -m 755 files/resize2fs_once "${ROOTFS_DIR}/etc/init.d/"

# Update pigipio service file to listen locally
install -v -m 644 files/pigpiod.service /lib/systemd/system/pigpiod.service
systemctl daemon-reload
Expand Down