Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog


## Unreleased

- **Menu visible on a real MPC with firmware 1.4.0.8** ([#6](https://github.com/pxcm/SampleBoot/issues/6)).
The 1.4.0.8 kernel has no `/dev/fb0`: the screen stays black while the
encoder and the beeps work. `sampleboot-ui` now falls back to DRM/KMS
(`/dev/dri/card*`, dumb buffers and page flips, as the stock app). The log
names the DRM driver, connector and mode. New: `--dri`, `--rotate`, and
`ROTATE` in `sampleboot.conf` (default `auto`).
- Tested on a real MPC Sample with 1.4.0.8: DRM driver `st7796s` (SPI
connector), mode 320×240, no rotation needed. The menu is visible, and
Melodee and the stock firmware start from it. SampQOL still doesn't run on
1.4 (no app after 60 s, SampleBoot starts the stock app).

## 1.0.4

**Added**
Expand Down
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,16 @@ starts from `autorun` should work. These are the ones known to work so far.

| System | Firmware 1.3.0.12 | Firmware 1.4.0.8 | Checked by | Notes | From |
|---|---|---|---|---|---|
| Stock firmware | ✓ | ✓ | Tested | On 1.4, checked in the [Virtual MPC Sample](https://github.com/orrpunk-art/virtual-mpc-sample) emulator | Akai Professional |
| Stock firmware | ✓ | ✓ | Tested; 1.4: user report | On 1.4, checked in the [Virtual MPC Sample](https://github.com/orrpunk-art/virtual-mpc-sample) emulator and on a real MPC | Akai Professional |
| SampQOL OS | 0.1.4.7 – 0.4.2 | Not yet | Tested | 16 USB outputs: SampleBoot 1.0.1 or later | [beatops.io/sampqol](https://beatops.io/sampqol) |
| Melodee | 0.1.0 – 0.10.3 | – | Tested | Update it by replacing its folder | [keremimo/melodee-sample](https://github.com/keremimo/melodee-sample) |
| Melodee | 0.1.0 – 0.10.3 | 0.10.4 | Tested; 1.4: user report | Update it by replacing its folder | [keremimo/melodee-sample](https://github.com/keremimo/melodee-sample) |
| MPC Simple | 1.0 Beta 1 – Beta 11 | – | Tested | | [mpcsimple.com](https://mpcsimple.com/) |
| MPCTRACKER | 0.1.0 | – | Tested | Needs an empty `sampleboot.inplace` file in its folder (SampleBoot 1.0.2 or later) | [jeffwebb-to/mpc-sample-tracker](https://github.com/jeffwebb-to/mpc-sample-tracker) |
| MPC 600 S | v1.7b – v2.0K | – | Tested | Needs an empty `sampleboot.inplace` file in its folder (SampleBoot 1.0.2 or later) | [LA-2500/MPC-600-S](https://github.com/LA-2500/MPC-600-S) |
| Am MOD | r30d-beta3 – r31a | Not yet | Tested | Needs SampleBoot 1.0.3 or later | [AlekseyMalykh/am-mod](https://github.com/AlekseyMalykh/am-mod) |
| DFOS | V.0.1.105 | – | Tested | | – |
| ODDFORM | 1.2.0 beta | – | User report | | – |
| Rhythmer OS | 0.2.0 – 0.3.0 | – | Tested | Keep its `Rhythmer` and `Samples` folders at the card root | [jazzyrhythmer.github.io/mpc-sample](https://jazzyrhythmer.github.io/mpc-sample/) |
| Rhythmer OS | 0.2.0 – 0.3.0 | 0.3.0 | Tested; 1.4: user report | Keep its `Rhythmer` and `Samples` folders at the card root | [jazzyrhythmer.github.io/mpc-sample](https://jazzyrhythmer.github.io/mpc-sample/) |

The firmware columns show the versions known to work. *Not yet*: the system
itself runs only on 1.3.0.12 for now (SampQOL and Am MOD change the stock app
Expand Down Expand Up @@ -171,6 +171,13 @@ systems built on sample-base (Melodee, Rhythmer OS) stop when they look for
the MPC's audio card, which the emulator doesn't have. If you try SampleBoot
on a real MPC with firmware 1.4, please tell us how it goes.

On a real MPC Sample with 1.4.0.8, a user ran the stock firmware, Melodee
0.10.4 and Rhythmer OS 0.3.0 from SampleBoot's menu. The menu needs the
DRM/KMS display ([#6](https://github.com/pxcm/SampleBoot/issues/6)): the
1.4.0.8 kernel has no `/dev/fb0`. For Rhythmer OS, its `autorun` folder goes
into `autorun/mods/` as usual and its `Rhythmer` folder at the card root; its
own top-level `autorun.sh` is not needed.

### Updating SampleBoot

Copy the new release's `autorun` folder and `autorun.sh` over the old ones. Your systems in
Expand Down
3 changes: 2 additions & 1 deletion card/sampleboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ ROOT_FILES="mpcqol.conf" # files OSes keep at the card root and read from "the
SPLASH=dark # splash screen: dark, light, off, or <name> for splash-<name>.png
SPLASH_TIME=2 # seconds it stays on screen
BOOT_HISTORY=10 # boots kept in boot-history.log (0 = none)
ROTATE=auto # screen rotation on DRM/KMS (firmware 1.4): auto, 0, 90, 180, 270
# (the colours in sampleboot.conf are read by sampleboot-ui itself)
WATCH_PROCS="MPC Sample|sample-base|mpcsimple" # processes that mean "an app is running"
[ -f "$B/sampleboot.conf" ] && . "$B/sampleboot.conf"
Expand Down Expand Up @@ -88,7 +89,7 @@ killall "MPC Sample" 2>/dev/null

id=$("$RUN/sampleboot-ui" --autorun "$DIR" --last "$last" --timeout "$TIMEOUT" \
--timeout-browse "$TIMEOUT_BROWSE" --beep "$BEEP" \
--splash "$SPLASH" --splash-time "$SPLASH_TIME")
--splash "$SPLASH" --splash-time "$SPLASH_TIME" --rotate "$ROTATE")
rc=$?
[ $rc -eq 0 ] && [ -n "$id" ] || { log "sampleboot-ui failed (exit $rc)"; stock; }
if [ "$id" = __poweroff ]; then
Expand Down
8 changes: 7 additions & 1 deletion docs/TECHNICAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ and using it, see the [README](../README.md).
per power-on (a marker in `/run`). The script stops the stock app
(`ac50.service`) and runs `sampleboot-ui` from RAM.
- `sampleboot-ui` is a small static aarch64 program. It writes 320×240 BGRX
frames to `/dev/fb0` and reads the encoder from the raw MIDI port of the
frames to `/dev/fb0`. Where there is no `/dev/fb0` (firmware 1.4.0.8: its
kernel has no fbdev emulation, the SPI panel is only reachable through
DRM), it drives the first connected display on `/dev/dri/card*` as the
stock app does: two XRGB8888 dumb buffers, `SETCRTC`, then a page flip per
frame (falling back to `DIRTYFB`, then `SETCRTC`). Plain kernel ioctls, no
libdrm. `--dri` picks the card, `--rotate` (`ROTATE` in the script) turns
the picture for a portrait mode. It reads the encoder from the raw MIDI port of the
ALSA card `Surface` (wheel = CC 100 on channel 1, push = note 111). It also
reads `KEY_POWER` from the `rk805 pwrkey` evdev device. It prints the chosen
folder and exits, releasing the MIDI port. Text uses an embedded DejaVu Sans
Expand Down
Loading