mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-07-10 01:02:08 +08:00
bdb9394d62
* removed system-skip-chunks image
* removed sparsed system.img
* clean github workflow
* copy image to output
* fake system-skip-chunks [upload]
* sparse key must exist otherwise KeyError: 'sparse' in openpilot
* reduce image size to 5G otherwise MemoryError: Unable to allocate output buffer. in openpilot
* [upload]
* Revert "fake system-skip-chunks"
This reverts commit bcd11e7e32.
* recreate 10G image [upload]
* resize2fs
* resize2fs shrink image
* revert skip-chunks image
* cleanup
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
18 lines
450 B
Bash
Executable File
18 lines
450 B
Bash
Executable File
#!/bin/bash -e
|
|
cd "$(dirname "$0")"
|
|
|
|
DEVICE=${DEVICE:-comma-ethernet}
|
|
|
|
scp output/boot.img output/*.ko $DEVICE:/data/tmp/
|
|
ssh $DEVICE <<EOF
|
|
sudo dd if=/data/tmp/boot.img of=/dev/disk/by-partlabel/boot_a
|
|
sudo dd if=/data/tmp/boot.img of=/dev/disk/by-partlabel/boot_b
|
|
|
|
sudo mount -o rw,remount /
|
|
sudo resize2fs $(findmnt -n -o SOURCE /)
|
|
sudo mv /data/tmp/wlan.ko /usr/comma/wlan.ko
|
|
rm -rf /data/tmp/*
|
|
sudo mount -o ro,remount / || true
|
|
sudo reboot
|
|
EOF
|