Skip to content

shell v1.2

Choose a tag to compare

@BlairLeduc BlairLeduc released this 26 Oct 20:20
· 4 commits to main since this release
878170d

shell v1.2 adds the shell at power-on, through the shell's own build of UF2 Loader's first stage, and a few things for scripts and the DOS flavour.

What's new

  • The shell at power-on (optional). A build of UF2 Loader 2.5's first stage with a small patch (patches/uf2loader-boot-shell.patch):
    • switching on gives the shell, and holding Up, F1 or F5 starts the last program; Down or F3 still give BOOTSEL;
    • going to a program and back skips the loader's half-second wait for a key: back from a program to the shell in about 0.85 s, where the stock loader takes about 1.55 s;
    • a program that restarts itself still comes back to itself; hold Up, F1 or F5 through the restart, or switch off and on, for the shell;
    • with no card, switching on starts the last program.
  • > /dev/null (and >> /dev/null) throws a command's output away in the UNIX flavour, as > NUL does in the DOS flavour.
  • The clock at power-on. The guides show how to set the clock in /etc/profile or AUTOEXEC.BAT: from the DS3231, from NTP, or from NTP only when the DS3231 has no time.
  • DOS flavour:
    • In DIR, COPY, XCOPY, DEL and DELTREE, a / inside a word starts its switches, as in DOS: DIR \/W is DIR \ /W.
    • COPY /B NAME+,, gives a file the time now without rewriting it, as touch does. COPY accepts /B.

Downloads

Choose one shell for your board and flavour:

Pico 2, Pico Plus 2 Pico 2 W, Plus 2 W
UNIX flavour shell-unix.uf2 shell-unix-w.uf2
DOS flavour shell-dos.uf2 shell-dos-w.uf2

With a W build, also copy ntp.uf2 to /pico2-apps/ and write /ntp/ntp.cfg (UNIX guide, DOS guide). Either build is safe on either board; on a board with no Wi-Fi, the W build's ntp says so.

For the shell at power-on, also choose one loader for your board's flash:

Loader Flash Boards
bootloader_rp2350_4mb.uf2 4 MB Pico 2, Pico 2 W
bootloader_rp2350_8mb.uf2 8 MB Adafruit Feather RP2350
bootloader_rp2350_16mb.uf2 16 MB Pimoroni Pico Plus 2, Plus 2 W

A smaller one works on a larger flash, but leaves the rest unused. Never use one for a larger flash than the board has, as programs could then be written past its end.

Installing

You need UF2 Loader 2.3 or later in flash.

  1. On the SD card, rename /BOOT2350.UF2 to /BOOT2350.ORG. This keeps the loader's menu, which menu (DOS: EXIT) runs.
  2. Copy the shell you chose to the root of the card and rename it /BOOT2350.UF2.
  3. Hold Up or F1 at power-on to start the shell.

To upgrade from v1.0 or v1.1, copy the new file over /BOOT2350.UF2.

For the shell at power-on, install the shell first, then copy the loader to the PicoCalc in BOOTSEL (hold Down or F3 at power-on). Your programs and the card are not touched. A shell older than v1.2 reports this loader as unknown and will not run programs. Installing pelrun's stock loader again undoes it. The README has the details.

Notes

  • RP2350 only.
  • Running a program rewrites the app partition, so a program that keeps its files in flash can lose them. Keep program data on the SD card.
  • The loader builds are GPL-3.0, as is pelrun's UF2 Loader they are built from.

SHA-256:

a8a537dbc10dda2969f791e210e01cc176ded9393bacc70acc245a13e9b45f58  shell-unix.uf2
90219b83cafc95fc5431064fafa24b1ba58fb5218dfd654f638e6f5165c95628  shell-dos.uf2
34f89b057f51be293013be4a0ea4346cc05d738d808dcbed8f4b07499cd20f89  shell-unix-w.uf2
0794012cb2c6c2a2447d65e188bb8b35bbd5e7ccadd69ac15319bf6445ce1de4  shell-dos-w.uf2
312ca550499c1396d6457c9616725db45229418226ef4025766cf569d5445b08  ntp.uf2
4e62148889ed4164096f042c3bea3ef853ff0fe289a8745dfe018460e67c3374  bootloader_rp2350_4mb.uf2
f58fd54c5036caa25c3d78af59ed79aa6dddf25ad4831aa6733a23e1e17e23d0  bootloader_rp2350_8mb.uf2
7cfe7e85d29e0ec97452870173814836d28a647a94db7bdf04044c14a194d0e8  bootloader_rp2350_16mb.uf2