Skip to content

Commit

Permalink
Don't delete v7+, it's needed for RpiZero2W
Browse files Browse the repository at this point in the history
Don't delete v7+ modules, needed for Raspberry Pi Zero 2 W.
Add sntp, and use it to set the time before setup, to avoid problems
with certs being invalid.
Update for default cmdline changes.
  • Loading branch information
marcone committed Nov 6, 2021
1 parent 1ea9645 commit f00ccfe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions pi-gen-sources/00-teslausb-tweaks/00-packages
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ fcgiwrap
libnginx-mod-http-fancyindex
libfuse-dev
exfatprogs
sntp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- stage_teslausb/rootfs/boot/cmdline.txt
+++ stage_teslausb/rootfs/boot/cmdline.txt
@@ -1 +1 @@
-console=serial0,115200 console=tty1 root=ROOTDEV rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet init=/usr/lib/raspi-config/init_resize.sh
+dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=ROOTDEV rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait modules-load=dwc2,g_ether quiet
-console=serial0,115200 console=tty1 root=ROOTDEV rootfstype=ext4 fsck.repair=yes rootwait quiet init=/usr/lib/raspi-config/init_resize.sh
+dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=ROOTDEV rootfstype=ext4 fsck.repair=yes rootwait modules-load=dwc2,g_ether quiet
1 change: 0 additions & 1 deletion pi-gen-sources/00-teslausb-tweaks/00-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ EOF

on_chroot << EOF
apt-get remove -y --force-yes --purge triggerhappy bluez alsa-utils
rm -rf /lib/modules/*-v7+
rm -rf /lib/modules/*-v8+
EOF

Expand Down
1 change: 1 addition & 0 deletions pi-gen-sources/00-teslausb-tweaks/files/rc.local
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function get_script () {
while ! curl -o "$local_path/$name" https://raw.githubusercontent.com/"$REPO"/teslausb/"$BRANCH"/"$remote_path"/"$name"
do
setup_progress "get_script failed, retrying"
sntp -S time.google.com || true
sleep 3
done
chmod +x "$local_path/$name"
Expand Down

0 comments on commit f00ccfe

Please sign in to comment.