Skip to content

Commit 0210187

Browse files
authored
Merge branch 'commaai:master' into master
2 parents 3a5bfc6 + 271aabb commit 0210187

File tree

13 files changed

+72
-35
lines changed

13 files changed

+72
-35
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ Flashing to a comma 3/3X (Be sure to set your device in QDL mode before flashing
3434
```
3535
./flash_kernel.sh
3636
./flash_system.sh
37+
38+
./flash_all.sh
3739
```
3840

41+
In the event that flashing from building doesn't work, `scripts/download-from-manifest.py` allows you to download the latest AGNOS version for flashing.
42+
3943
> [!NOTE]
4044
> If flashing on M-series Macs, you may need to run `brew install libusb` and then `sudo mkdir -p /usr/local/lib && sudo ln -s /opt/homebrew/lib/libusb-1.0.0.dylib /usr/local/lib/libusb.dylib` if getting "No backend available".
4145

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
11.7
1+
11.12

build_kernel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ build_kernel() {
8686
$TOOLS/mkbootimg \
8787
--kernel Image.gz-dtb \
8888
--ramdisk /dev/null \
89-
--cmdline "console=ttyMSM0,115200n8 quiet loglevel=3 earlycon=msm_geni_serial,0xA84000 androidboot.hardware=qcom androidboot.console=ttyMSM0 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 service_locator.enable=1 androidboot.selinux=permissive firmware_class.path=/lib/firmware/updates net.ifnames=0 dyndbg=\"\"" \
89+
--cmdline "console=ttyMSM0,115200n8 isolcpus=6,7 quiet loglevel=3 earlycon=msm_geni_serial,0xA84000 androidboot.hardware=qcom androidboot.console=ttyMSM0 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 service_locator.enable=1 androidboot.selinux=permissive firmware_class.path=/lib/firmware/updates net.ifnames=0 dyndbg=\"\"" \
9090
--pagesize 4096 \
9191
--base 0x80000000 \
9292
--kernel_offset 0x8000 \

build_system.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
set -e
33

44
UBUNTU_BASE_URL="https://cdimage.ubuntu.com/ubuntu-base/releases/24.04/release/"
5-
UBUNTU_FILE="ubuntu-base-24.04.1-base-arm64.tar.gz"
6-
UBUNTU_FILE_CHECKSUM="7700539236d24c31c3eea1d5345eba5ee0353a1bac7d91ea5720b399b27f3cb4"
5+
UBUNTU_FILE="ubuntu-base-24.04.2-base-arm64.tar.gz"
6+
UBUNTU_FILE_CHECKSUM="d3144c017e40b328c0e86f022d8d00a786db036784103c4413aa533dd97cbd3d"
77

88
# Make sure we're in the correct spot
99
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"

scripts/apply_github_patch.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
# This script applies a patch from a Github URL (commit/PR) to the current path.
4+
# Usage: ./apply_github_patch.sh <github_url>
5+
6+
URL=$1
7+
if [ -z "$URL" ]; then
8+
echo "Usage: $0 <github_url>"
9+
exit 1
10+
fi
11+
12+
# Download the diff file from the URL
13+
DIFF_FILE=$(mktemp)
14+
curl -sL "$URL.diff" > "$DIFF_FILE"
15+
if [ $? -ne 0 ]; then
16+
echo "Failed to download diff from $URL"
17+
exit 1
18+
fi
19+
20+
# Apply the patch
21+
git apply "$DIFF_FILE"
22+
if [ $? -ne 0 ]; then
23+
echo "Failed to apply patch from $URL"
24+
rm "$DIFF_FILE"
25+
exit 1
26+
fi
27+
28+
echo "Successfully applied patch from $URL"
29+
rm "$DIFF_FILE"

tools/edl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ if [ "$(< .git/HEAD)" != "$VERSION" ]; then
2323
git fetch origin $VERSION
2424
git checkout $VERSION
2525
git submodule update --depth=1 --init --recursive
26-
27-
# TODO: remove "--no-binary capstone" when capstone v5.0.2 is released
28-
# https://github.com/capstone-engine/capstone/issues/2301#issuecomment-2026835275
29-
pip3 install -r requirements.txt --no-binary capstone
26+
pip3 install -r requirements.txt
3027
fi
3128
popd > /dev/null
3229

userspace/compile-qtwayland5.sh

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,24 @@ git apply /tmp/agnos/patch-qtwayland-v5.12
4040
# https://stackoverflow.com/a/75855054/639708
4141
ln -s libdl.so.2 /usr/lib/aarch64-linux-gnu/libdl.so
4242

43-
mkdir /tmp/build && cd /tmp/build
44-
qmake /tmp/qtwayland
45-
43+
qmake
4644
export MAKEFLAGS="-j$(nproc)"
4745
make
4846

49-
# remove "--fstrans=no" when checkinstall is fixed (still not fixed in 24.04)
50-
# # https://bugs.launchpad.net/ubuntu/+source/checkinstall/+bug/78455
51-
checkinstall -yD --install=no --fstrans=no --pkgversion="${VERSION}" --pkgname=qtwayland5 --pkgarch=arm64 --replaces=qtwayland5,libqt5waylandclient5,libqt5waylandcompositor5
52-
mv qtwayland5*.deb /tmp/qtwayland5.deb
47+
OUTPUT_DIR=/tmp/qtwayland5
48+
mkdir $OUTPUT_DIR
49+
make install INSTALL_ROOT=$OUTPUT_DIR
50+
51+
mkdir $OUTPUT_DIR/DEBIAN
52+
cat << EOF > $OUTPUT_DIR/DEBIAN/control
53+
Package: qtwayland5
54+
Version: ${VERSION}-1
55+
Architecture: all
56+
Maintainer: Andrei Radulescu <andi.radulescu@gmail.com>
57+
Replaces: qtwayland5, libqt5waylandclient5, libqt5waylandcompositor5
58+
Installed-Size: `du -s $OUTPUT_DIR | awk '{print $1}'`
59+
Homepage: https://comma.ai
60+
Description: Patched qtwayland that outputs a fixed screen size
61+
EOF
62+
63+
dpkg-deb --root-owner-group --build $OUTPUT_DIR /tmp/qtwayland5.deb

userspace/install_extras.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
apt-fast update && apt-fast install -y --no-install-recommends \
66
bash-completion \
7+
btop \
78
iperf \
89
dnsmasq \
910
irqtop \

userspace/usr/comma/comma.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ mkdir -p /data/tmp
7373
mkdir -p /data/tmp/vscode-server
7474
ln -s /data/tmp/vscode-server ~/.vscode-server
7575
ln -s /data/tmp/vscode-server ~/.cursor-server
76+
ln -s /data/tmp/vscode-server ~/.windsurf-server
7677

7778
while true; do
7879
pkill -f "$SETUP"

0 commit comments

Comments
 (0)