Skip to content

Comments

feat: Add Zero2W support#324

Open
cat-master21 wants to merge 23 commits intomainsail-crew:developfrom
cat-master21:refactored-zero2w
Open

feat: Add Zero2W support#324
cat-master21 wants to merge 23 commits intomainsail-crew:developfrom
cat-master21:refactored-zero2w

Conversation

@cat-master21
Copy link

This PR is the same as #312 but now refactored to MainsailOS 2.0.0. This PR adds support for the Orangepi Zero 2W SBC, similar to the Raspberry Pi Zero 2W. I've run this on my 2GB RAM version and it is more than capable on MainsailOS.

meteyou and others added 21 commits January 20, 2024 19:37
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Signed-off-by: Stephan Wendel <me@stephanwe.de>
* fix(ci): fix annotation

Updating actions/cache to v4.0.0 (latest)

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* fix(ci): fix annotation

Updating actions/upload-artifact to v4.3.1 (latest)

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* fix(ci): fix annotation

Updating actions/upload-artifact to v4.3.1 (latest) in Release.yml

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* chore(ci): bump to major version instead

Signed-off-by: Stephan Wendel <me@stephanwe.de>

---------

Signed-off-by: Stephan Wendel <me@stephanwe.de>
* feat: add klipperscreen module

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* test: build test with new module

This commit will be reverted if finished

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* fix: fix typo in config

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* fix: fix typo in install message

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* chore: KlipperScreen to  postrename script

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* fix: replace moonraker comments

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* chore: change date

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* chore: change date in config

Signed-off-by: Stephan Wendel <me@stephanwe.de>

---------

Signed-off-by: Stephan Wendel <me@stephanwe.de>
* chore: update urls and base image version

Updates urls and uses latest bullseye image

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* fix: fix typo in arch url

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* chore: change url layout

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* refactor: refactor URL layout

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* refactor: set full url, set file extensions

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* fix: fix typo in URL

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* refactor: set 64bit legacy as default

Keep latest entrys for bookworm changes

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* chore: remove unesseccary comments

Signed-off-by: Stephan Wendel <me@stephanwe.de>

---------

Signed-off-by: Stephan Wendel <me@stephanwe.de>
* fix(build): fix location of boot partition

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* chore: move BASE_BOOT_MOUNT_PATH to default config

Signed-off-by: Stephan Wendel <me@stephanwe.de>

---------

Signed-off-by: Stephan Wendel <me@stephanwe.de>
* chore: reduce buildtime if 32bit image is used

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* fix: fix line break

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* fix: fix typo

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* chore: using global pip.conf like raspios

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* chore: code style change

Signed-off-by: Stephan Wendel <me@stephanwe.de>

---------

Signed-off-by: Stephan Wendel <me@stephanwe.de>
As recommended from guysoft, change base module to standalone order

This will do specific cleanup tasks recommended by custompios at build finish

Signed-off-by: Stephan Wendel <me@stephanwe.de>
* chore: switch to armbian for Opi Zero2

Moved OrangePiOS based configurations for later usage

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* fix: enable spi and uart by default on armbian

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* chore: move orangepi config to old location

Signed-off-by: Stephan Wendel <me@stephanwe.de>

---------

Signed-off-by: Stephan Wendel <me@stephanwe.de>
* refactor: change version handling

Signed-off-by: Stephan Wendel <me@stephanwe.de>

---------

Signed-off-by: Stephan Wendel <me@stephanwe.de>
* fix(build): change step order

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* chore(build): fix syntax

* Set order to previous locations

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* test: add failing build for test

Will be removed after testing, due revert

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* fix: fix log file naming

Signed-off-by: Stephan Wendel <me@stephanwe.de>

* Revert "test: add failing build for test"

This reverts commit 2829fe2.

---------

Signed-off-by: Stephan Wendel <me@stephanwe.de>
Replace `PKGLIST` with `PACKAGES` in moonraker module script, following Arksine/moonraker@247640c
Co-authored-by: Stephan Wendel <me@stephanwe.de>
@meteyou
Copy link
Member

meteyou commented Jun 7, 2025

Thanks, @cat-master21 !

It seems the 20-opi-zero2 special module isn't included. Was this intentional or an oversight?

@cat-master21
Copy link
Author

@meteyou That was an oversight; I thought I had included it (Line 108), but I didn't. I assume that there was a minor place I forgot to add it then?

@meteyou
Copy link
Member

meteyou commented Jun 7, 2025

ohh sry! my fault!

I missed the file, but you linked the "old one" from the "normal opi zero 2". I dont think this file is compatible with this SBC. the Opi Zero 2 (without W) uses a H616 and the Opi Zero 2W (with W) uses a H618 SoC.

Did you checked UART and SPI?

@cat-master21
Copy link
Author

After looking into my current setup using (vanilla) Armbian, there aren't any SPI/UART flags added, and I've used UART before, and it works (SPI has not been tested), so I'm going to remove it.

cat-master21 and others added 2 commits June 11, 2025 12:29
# Conflicts:
#	.github/workflows/build.yml
#	.github/workflows/release.yml
#	README.md
#	config.yml
#	modules/raspberry/10-config-raspberry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants