|
@@ -14,7 +14,7 @@ You can find the links of the image in the README file of the Github repo.
|
|
|
|
|
|
To optain the .img file, you can unzip the compressed image using 7zip. If you don't have it, you can get it here
|
|
|
|
|
|
-### For other ARM SBC(e.g. Orange Pi / Banana Pi / Friendly ARM's Pis)
|
|
|
+### For other ARM SBC (e.g. Orange Pi / Banana Pi / Friendly ARM's Pis)
|
|
|
|
|
|
Download the correct architecture binary from the "release" tab and upload the binary with the "web" and "system" folder in "/src". After upload, you should have the following file structure
|
|
|
|
|
@@ -69,4 +69,62 @@ go build
|
|
|
arozos.exe
|
|
|
```
|
|
|
|
|
|
-However, not all features are available for Windows (e.g. WiFi / Samba)
|
|
|
+However, not all features are available for Windows (e.g. WiFi / Samba)
|
|
|
+
|
|
|
+#### Cross Compile
|
|
|
+
|
|
|
+If you want to build the ArozOS system for your Raspberry Pi (or other Linux environment) without installing Go in that environment, you can build the ArozOS with cross compile mode on Windows and move the binary and the required system files to the Linux environment.
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+To cross compile ArozOS on different Linux platforms, you can use the commands below
|
|
|
+
|
|
|
+```
|
|
|
+:: For armv6 /armv6l, e.g. Raspberry Pi 1, Raspberry Pi Zero (w)
|
|
|
+set GOOS=linux
|
|
|
+set GOARCH=arm
|
|
|
+set GOARM=6
|
|
|
+go build
|
|
|
+
|
|
|
+:: For armv7, e.g. Raspberry Pi 4
|
|
|
+set GOOS=linux
|
|
|
+set GOARCH=arm
|
|
|
+set GOARM=7
|
|
|
+go build
|
|
|
+
|
|
|
+:: For arm64, e.g. Orange Pi Zero Plus (Allwinner H5), Orange Pi Zero 2 (Allwinner H616)
|
|
|
+set GOOS=linux
|
|
|
+set GOARCH=arm64
|
|
|
+go build
|
|
|
+
|
|
|
+:: For amd64, e.g. Intel / AMD CPU PC
|
|
|
+set GOOS=linux
|
|
|
+set GOARCH=amd64
|
|
|
+go build
|
|
|
+
|
|
|
+```
|
|
|
+
|
|
|
+### Mac
|
|
|
+
|
|
|
+This system is **not officially** support MacOS. However, just in case you want to test it out on Mac, you can try the cross compile method on Windows and move the binary files to MacOS
|
|
|
+
|
|
|
+#### Build on Mac Natively
|
|
|
+
|
|
|
+```
|
|
|
+go build
|
|
|
+```
|
|
|
+
|
|
|
+#### Build on Windows with Cross Compile
|
|
|
+
|
|
|
+```
|
|
|
+set GOOS=darwin
|
|
|
+set GOARCH=amd64
|
|
|
+go build
|
|
|
+```
|
|
|
+
|
|
|
+#### Build on Linux with Cross Compile
|
|
|
+
|
|
|
+```
|
|
|
+GOOS=darwin GOARCH=amd64 go build
|
|
|
+```
|
|
|
+
|