forked from shauninman/MinUI
-
Notifications
You must be signed in to change notification settings - Fork 88
Add support for Anbernic H700-based devices #807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pvaibhav
wants to merge
76
commits into
LoveRetro:main
Choose a base branch
from
pvaibhav:h700
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
27d73c0
fix: update fceumm core's patch
pvaibhav e085c0d
fix: update mGBA core build
pvaibhav e1d9031
docs: add h700 port plan
pvaibhav c8dc572
feat(h700): add rg40xx beta platform
pvaibhav e1596f6
fix(h700): build picodrive core
pvaibhav fb74ab0
fix(h700): enable minarch runtime build
pvaibhav e17ec6c
fix(h700): use stock unzip in boot shim
pvaibhav 9358e38
fix(h700): bundle runtime graphics libraries
pvaibhav 9ceb0a1
test(h700): harden rg40xxv beta
pvaibhav 415de24
fix(h700): close supplemental beta review gaps
pvaibhav 2531799
fix(h700): remove stale UMP graphics dependency
pvaibhav f139740
fix(h700): remove SDL udev startup dependency
pvaibhav 319b703
fix(h700): restore evdev input
pvaibhav 4c1a6a9
fix(h700): repair picodrive clean core builds
pvaibhav f45890b
fix(h700): preserve bitmap alpha blits
pvaibhav 8004139
Revert "fix(h700): preserve bitmap alpha blits"
pvaibhav 0207493
fix(h700): bundle 64-bit libpng12 for SDL2_image
pvaibhav b81fda1
fix(h700): repair game launch under dash
pvaibhav 85ebc5a
fix(h700): repair glitchy audio via dlopen'd ALSA
pvaibhav c58f0d1
docs(h700): restructure port plan into reference documentation
pvaibhav c175e86
docs(h700): update roadmap with alpha-blit resolution and UI findings
pvaibhav c2aee77
docs(h700): record rebase onto main as done
pvaibhav 043327e
docs: record rg34xxsp h700 validation
pvaibhav 0df7345
fix(h700): MENU short-tap no longer misreads as long-press
pvaibhav da658c3
docs: confirm h700 volume controls
pvaibhav 49fd0c1
fix(h700): sleep/wake — suspend poweroff, wake bounce, lid sleep, res…
pvaibhav 90b0d1b
fix(h700): display settings — persistence, defaults, dead sliders
pvaibhav 9bd2315
docs(h700): record display settings fixes in port docs and roadmap
pvaibhav b6e579f
fix(h700): Files app — SDL joystick enumeration, button map, scaling,…
pvaibhav 8580b94
fix(h700): don't open the built-in pad as an SDL joystick
pvaibhav 4325abc
chore(h700): prepare alpha cleanup
pvaibhav 3d47db5
feat(h700): port Bootlogo.pak from tg5040
pvaibhav 1e9f30d
fix(h700): Input pak — per-device analog stick layout
pvaibhav 836c909
docs(h700): Bootlogo pak user-tested on RG40XXV
pvaibhav a7874c1
fix(h700): hide unavailable Fn switch settings
pvaibhav 8290d7f
docs(h700): record RG34XXSP alpha testing
pvaibhav 165ed55
fix(h700): preserve embedded gzip payload
pvaibhav eda4926
fix(h700): correct RG28XX rotation handling
pvaibhav 50edff7
fix(bootlogo): diagnostics and empty-state hardening
pvaibhav 672edf8
fix(h700): add missing BUTTON_L4/R4 defines
pvaibhav 31d661c
docs(h700): sync port docs with validated RG28XX and Bootlogo state
pvaibhav 52871a9
fix(h700): re-suspend on wake if clamshell lid still closed
pvaibhav e922007
feat(h700): seamless HDMI output with hotplug
pvaibhav 759fcc0
fix(h700): initialize the stock Bluetooth adapter
pvaibhav bf362cd
feat(h700): enable stock Bluetooth audio
pvaibhav e50ac7c
docs(h700): define alpha3 beta-entry gates
pvaibhav 2e90e00
fix(build): preserve PicoDrive libretro platform
pvaibhav e2394f8
fix(h700): add missing FN button and USB platform stubs
pvaibhav b5c6607
docs(h700): simplify README.txt section
pvaibhav 4c30865
docs(h700): beta1 test walkthrough and RC gates
pvaibhav 2dfded6
fix(tg5040): skip BlueZ upgrade on h700
pvaibhav 4b626b9
docs(h700): reorganize release and testing guidance
pvaibhav c96d153
fix(h700): allow auto governor to use full CPU range
pvaibhav 8da09fb
fix(h700): restore Bluetooth audio output
pvaibhav c8d3035
build(h700): use dedicated h700-toolchain image
pvaibhav 81c28fb
build(h700): use h700-toolchain with prebaked SDL2
pvaibhav 0426539
chore(h700): remove SDL2 patch from source tree
pvaibhav 88cae21
fix(h700): yet another Bluetooth bugfix
pvaibhav 3b53e8f
fix(h700): fill the cube panel with 10 list rows
pvaibhav 469dd2c
fix(h700): stop passing PLATFORM as a make argument to the guest build
pvaibhav 24a150d
fix(h700): power off the AXP2202 explicitly instead of trusting the k…
pvaibhav 5f088b4
fix(h700): scan out the framebuffer page HDMI actually renders into
pvaibhav ebe8c5b
feat(h700): drive the RGB LEDs on RG40XX H/V and RG CubeXX
pvaibhav 87e75e9
feat(h700): detect the RG SP properly
pvaibhav 43b3b45
feat(sleep): Enable Super Standby
pvaibhav 97a5fa8
fix(gpu): pin the GPU to max speed
pvaibhav 7a69255
fix(h700): enable PS1 stick clicks
pvaibhav 2d62e56
fix: fceumm patch
pvaibhav d1c9e32
feat(h700): add displaycal defaults
pvaibhav 42204f7
fix(h700): align 480p list spacing
pvaibhav a028d0e
build(h700): bundle curl for RetroAchievements
pvaibhav 118211d
fix(h700): update mGBA core build
pvaibhav 4057f54
docs(h700): bring the port docs up to date for rc8
pvaibhav e7b9e19
docs(h700): pull the H700 docs out of the tree
pvaibhav 2151dbc
fix(h700): map DEVICE 1:1 to stock RGXX_MODEL SKUs
pvaibhav acc293c
docs(h700): align DEVICE docs and comments with SKU mapping
pvaibhav File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,9 +9,11 @@ endif | |
| HOST_WORKSPACE=$(shell pwd)/workspace | ||
| GUEST_WORKSPACE=/root/workspace | ||
|
|
||
| GIT_IF_NECESSARY=toolchains/$(PLATFORM)-toolchain | ||
| INIT_IF_NECESSARY=toolchains/$(PLATFORM)-toolchain/.build | ||
| IMAGE_NAME=ghcr.io/loveretro/$(PLATFORM)-toolchain:latest | ||
| TOOLCHAIN_NAME=$(PLATFORM) | ||
|
|
||
| GIT_IF_NECESSARY=toolchains/$(TOOLCHAIN_NAME)-toolchain | ||
| INIT_IF_NECESSARY=toolchains/$(TOOLCHAIN_NAME)-toolchain/.build | ||
| IMAGE_NAME=ghcr.io/loveretro/$(TOOLCHAIN_NAME)-toolchain:latest | ||
|
|
||
| CONTAINER_RUNTIME ?= $(shell command -v docker 2>/dev/null || command -v podman 2>/dev/null) | ||
| ifeq (,$(CONTAINER_RUNTIME)) | ||
|
|
@@ -28,18 +30,18 @@ LAST_RUNTIME := $(shell cat $(RUNTIME_MARKER) 2>/dev/null) | |
| CURRENT_RUNTIME := $(notdir $(CONTAINER_RUNTIME)) | ||
|
|
||
| all: $(INIT_IF_NECESSARY) | ||
| $(CONTAINER_RUNTIME) run -it --rm $(CONTAINER_MOUNT_OPTS) -v $(HOST_WORKSPACE):$(GUEST_WORKSPACE) $(IMAGE_NAME) /bin/bash | ||
| $(CONTAINER_RUNTIME) run -it --rm $(CONTAINER_MOUNT_OPTS) -v $(HOST_WORKSPACE):$(GUEST_WORKSPACE) -e PLATFORM=$(PLATFORM) -e UNION_PLATFORM=$(PLATFORM) $(IMAGE_NAME) /bin/bash -lc 'export PLATFORM=$(PLATFORM) UNION_PLATFORM=$(PLATFORM); cd $(GUEST_WORKSPACE); exec /bin/bash' | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems redundant |
||
|
|
||
| $(INIT_IF_NECESSARY): $(GIT_IF_NECESSARY) | ||
| cd toolchains/$(PLATFORM)-toolchain && make .build | ||
| cd toolchains/$(TOOLCHAIN_NAME)-toolchain && make .build | ||
|
|
||
| $(GIT_IF_NECESSARY): | ||
| mkdir -p toolchains | ||
| git clone https://github.com/LoveRetro/$(PLATFORM)-toolchain/ toolchains/$(PLATFORM)-toolchain | ||
| $(CONTAINER_RUNTIME) pull $(IMAGE_NAME) && touch toolchains/$(PLATFORM)-toolchain/.build | ||
| git clone https://github.com/LoveRetro/$(TOOLCHAIN_NAME)-toolchain/ toolchains/$(TOOLCHAIN_NAME)-toolchain | ||
| $(CONTAINER_RUNTIME) pull $(IMAGE_NAME) && touch toolchains/$(TOOLCHAIN_NAME)-toolchain/.build | ||
|
|
||
| clean: | ||
| cd toolchains/$(PLATFORM)-toolchain && make clean | ||
| cd toolchains/$(TOOLCHAIN_NAME)-toolchain && make clean | ||
|
|
||
| _runtime_check: | ||
| @if [ -n "$(LAST_RUNTIME)" ] && [ "$(LAST_RUNTIME)" != "$(CURRENT_RUNTIME)" ]; then \ | ||
|
|
@@ -55,17 +57,24 @@ _runtime_check: | |
| fi; \ | ||
| fi | ||
|
|
||
| # The platform reaches the guest build through the environment only, never as a | ||
| # `make PLATFORM=...` argument. A command-line variable lands in MAKEOVERRIDES and | ||
| # overrides same-named assignments in *every* recursive make, including each core's | ||
| # own `PLATFORM = libretro` (picodrive, pcsx_rearmed) — those then build without | ||
| # their libretro frontend and link to an entry-point-less stub. Environment values | ||
| # lose to a makefile assignment, which is what workspace/makefile expects. | ||
|
|
||
| build: $(INIT_IF_NECESSARY) _runtime_check | ||
| $(CONTAINER_RUNTIME) run --rm $(CONTAINER_MOUNT_OPTS) -v $(HOST_WORKSPACE):$(GUEST_WORKSPACE) -e COMPILE_CORES=$(COMPILE_CORES) $(IMAGE_NAME) /bin/bash -c '. ~/.bashrc && cd /root/workspace && make' | ||
| $(CONTAINER_RUNTIME) run --rm $(CONTAINER_MOUNT_OPTS) -v $(HOST_WORKSPACE):$(GUEST_WORKSPACE) -e COMPILE_CORES=$(COMPILE_CORES) -e PLATFORM=$(PLATFORM) -e UNION_PLATFORM=$(PLATFORM) $(IMAGE_NAME) /bin/bash -c '. ~/.bashrc && export PLATFORM=$(PLATFORM) UNION_PLATFORM=$(PLATFORM) && cd /root/workspace && make' | ||
| @echo "$(CURRENT_RUNTIME)" > $(RUNTIME_MARKER) | ||
|
|
||
| build-cores: $(INIT_IF_NECESSARY) _runtime_check | ||
| $(CONTAINER_RUNTIME) run --rm $(CONTAINER_MOUNT_OPTS) -v $(HOST_WORKSPACE):$(GUEST_WORKSPACE) -e COMPILE_CORES=$(COMPILE_CORES) $(IMAGE_NAME) /bin/bash -c '. ~/.bashrc && cd /root/workspace && make cores' | ||
| $(CONTAINER_RUNTIME) run --rm $(CONTAINER_MOUNT_OPTS) -v $(HOST_WORKSPACE):$(GUEST_WORKSPACE) -e COMPILE_CORES=$(COMPILE_CORES) -e PLATFORM=$(PLATFORM) -e UNION_PLATFORM=$(PLATFORM) $(IMAGE_NAME) /bin/bash -c '. ~/.bashrc && export PLATFORM=$(PLATFORM) UNION_PLATFORM=$(PLATFORM) && cd /root/workspace && make cores' | ||
| @echo "$(CURRENT_RUNTIME)" > $(RUNTIME_MARKER) | ||
|
|
||
| build-core: $(INIT_IF_NECESSARY) _runtime_check | ||
| ifndef CORE | ||
| $(error CORE is not set) | ||
| endif | ||
| $(CONTAINER_RUNTIME) run --rm $(CONTAINER_MOUNT_OPTS) -v $(HOST_WORKSPACE):$(GUEST_WORKSPACE) -e COMPILE_CORES=$(COMPILE_CORES) -e CORE=$(CORE) $(IMAGE_NAME) /bin/bash -c '. ~/.bashrc && cd /root/workspace && make core' | ||
| $(CONTAINER_RUNTIME) run --rm $(CONTAINER_MOUNT_OPTS) -v $(HOST_WORKSPACE):$(GUEST_WORKSPACE) -e COMPILE_CORES=$(COMPILE_CORES) -e CORE=$(CORE) -e PLATFORM=$(PLATFORM) -e UNION_PLATFORM=$(PLATFORM) $(IMAGE_NAME) /bin/bash -c '. ~/.bashrc && export PLATFORM=$(PLATFORM) UNION_PLATFORM=$(PLATFORM) && cd /root/workspace && make core' | ||
| @echo "$(CURRENT_RUNTIME)" > $(RUNTIME_MARKER) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,10 @@ | |
| # NOTE: becomes .tmp_update/updater | ||
|
|
||
| INFO=`cat /proc/cpuinfo 2> /dev/null` | ||
| MODEL=`cat /proc/device-tree/model 2> /dev/null` | ||
| if echo "$MODEL" | grep -q "sun50iw9"; then | ||
| PLATFORM="h700" # Anbernic RG XX, Allwinner H700 | ||
| fi | ||
| case $INFO in | ||
| *"sun8i"*) | ||
| if [ -d /usr/miyoo ]; then | ||
|
|
@@ -21,7 +25,9 @@ case $INFO in | |
| PLATFORM="tg5050" # Trimui Smart Pro S | ||
| ;; | ||
| *"0xd03"*) | ||
| PLATFORM="zero28" # MagicX Mini Zero 28 | ||
| if [ -z "$PLATFORM" ]; then | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can drop this, no zero28 planned. |
||
| PLATFORM="zero28" # MagicX Mini Zero 28 | ||
| fi | ||
| ;; | ||
| *"0xd05"*) | ||
| PLATFORM="my355" # Miyoo Flip | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| -picodrive_drc = enabled | ||
| -picodrive_sound_rate = 44100 | ||
| -picodrive_smstype = Auto | ||
| -picodrive_smsfm = off | ||
| -picodrive_smsmapper = Auto | ||
| -picodrive_ggghost = off | ||
|
|
||
| bind Up = UP | ||
| bind Down = DOWN | ||
| bind Left = LEFT | ||
| bind Right = RIGHT | ||
| bind Mode = SELECT | ||
| bind Start = START | ||
| bind A Button = Y | ||
| bind B Button = X:B | ||
| bind C Button = A | ||
| bind X Button = B:L1 | ||
| bind Y Button = L1:X | ||
| bind Z Button = R1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| #!/bin/sh | ||
|
|
||
| EMU_EXE=picodrive | ||
|
|
||
| ############################### | ||
|
|
||
| EMU_TAG=$(basename "$(dirname "$0")" .pak) | ||
| ROM="$1" | ||
| mkdir -p "$BIOS_PATH/$EMU_TAG" | ||
| mkdir -p "$SAVES_PATH/$EMU_TAG" | ||
| mkdir -p "$CHEATS_PATH/$EMU_TAG" | ||
| HOME="$USERDATA_PATH" | ||
| cd "$HOME" | ||
| minarch.elf "$CORES_PATH/${EMU_EXE}_libretro.so" "$ROM" > "$LOGS_PATH/$EMU_TAG.txt" 2>&1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| bind Up = UP | ||
| bind Down = DOWN | ||
| bind Left = LEFT | ||
| bind Right = RIGHT | ||
| bind Select = SELECT | ||
| bind Start = START | ||
| bind X Button = X | ||
| bind Y Button = Y | ||
| bind B Button = B | ||
| bind A Button = A | ||
| bind L1 Button = L1 | ||
| bind L2 Button = L2 | ||
| bind R1 Button = R1 | ||
| bind R2 Button = R2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| #!/bin/sh | ||
|
|
||
| EMU_EXE=stella2014 | ||
| CORES_PATH=$(dirname "$0") | ||
|
|
||
| ############################### | ||
|
|
||
| EMU_TAG=$(basename "$(dirname "$0")" .pak) | ||
| ROM="$1" | ||
| mkdir -p "$BIOS_PATH/$EMU_TAG" | ||
| mkdir -p "$SAVES_PATH/$EMU_TAG" | ||
| mkdir -p "$CHEATS_PATH/$EMU_TAG" | ||
| HOME="$USERDATA_PATH" | ||
| cd "$HOME" | ||
| minarch.elf "$CORES_PATH/${EMU_EXE}_libretro.so" "$ROM" > "$LOGS_PATH/$EMU_TAG.txt" 2>&1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| bind Up = UP | ||
| bind Down = DOWN | ||
| bind Left = LEFT | ||
| bind Right = RIGHT | ||
| bind Select = SELECT | ||
| bind Start = START | ||
| bind X Button = X | ||
| bind Y Button = Y | ||
| bind B Button = B | ||
| bind A Button = A | ||
| bind L1 Button = L1 | ||
| bind L2 Button = L2 | ||
| bind R1 Button = R1 | ||
| bind R2 Button = R2 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need all this in both of the workflows, or is it leftovers from development?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not exactly necessary but a useful smoke test to have. I had trouble with cross compilation. We can get rid of this now.