You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`rpi02w` binaries build by [WirelessAndroidAutoDongle](https://github.com/nisargjhaveri/WirelessAndroidAutoDongle) are for `arm-unknown-linux-gnueabihf` 32-bit architecture, probably
69
69
because of usb-gadget module [incompatibility](https://github.com/nisargjhaveri/WirelessAndroidAutoDongle/pull/129).
70
70
To be able to properly crosscompile output binary I provided `.cargo/config.toml` with target set for this specific arch.
Besides a `gcc-arm-linux-gnueabihf` package is needed on Debian. This is distro-depended so I recommend to RTFM.
81
81
82
-
After building you need to transfer the binary to the target filesystem (I am using ssh/scp for this) and start it.
83
-
For permanent solution I also modified startup scripts - but how to do it is out of scope of this document.
84
-
85
82
## Building using Docker
86
83
To build with Docker you need to have a [buildx](https://github.com/docker/buildx) and [BuildKit](https://github.com/moby/buildkit).<br>
87
-
Then you can e.g. create some output dir and build the binary like this:
84
+
Docker container is also preparing an SD card images based on [@nisargjhaveri](https://github.com/nisargjhaveri)'s [latests assets](https://github.com/nisargjhaveri/WirelessAndroidAutoDongle/releases).
85
+
It has to loop-mount that images, thus an insecure builder is [needed](https://docs.docker.com/reference/cli/docker/buildx/build/#allow).
86
+
To sum it up - the following commands are needed when building for the first time:
docker buildx build --builder insecure-builder --allow security.insecure --output out .
91
91
```
92
-
After successful execution the resulting `aa-proxy-rs` will be in `out` directory.
92
+
After successful execution the resulting `aa-proxy-rs` and SD card images will be in `out` directory.
93
+
94
+
## Installing into target
95
+
If you currently using a Raspberry Pi with working _WirelessAndroidAutoDongle_, then you can also manually install `aa-proxy-rs`:
96
+
97
+
You need to transfer the resulting output binary to the target filesystem and start it. I am using ssh/scp for this, but it should be also possible with `wget`.
98
+
You can also do it "offline" by making a changes directly on the SD card: mounting system partition and make necessary changes.
99
+
Sample [startup script](https://raw.githubusercontent.com/manio/aa-proxy-rs/refs/heads/main/contrib/S93aa-proxy-rs) is provided for convenience.
100
+
101
+
Example steps:
102
+
- put `aa-proxy-rs` into /usr/bin
103
+
- put `S93aa-proxy-rs` into /etc/init.d
104
+
- remove or disable /etc/init.d/S93aawgd
105
+
106
+
Startup parameters (see below) are defined [here](https://github.com/manio/aa-proxy-rs/blob/main/contrib/S93aa-proxy-rs#L10).
0 commit comments