Skip to content
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

Bootloader and flash partitioning #3

Open
kbeckmann opened this issue Jun 15, 2023 · 2 comments
Open

Bootloader and flash partitioning #3

kbeckmann opened this issue Jun 15, 2023 · 2 comments

Comments

@kbeckmann
Copy link
Owner

No description provided.

@marian-m12l
Copy link

Hej,

The bootloader I'm working on (https://github.com/marian-m12l/PicoDVI-N64/tree/ota) is starting to be usable.

The idea is as follow: bootloader/upgrader (ota application) is the primary firmware on the pico. PicoDVI-N64 (n64 application) is flashed at a fixed offset (0x100000) and needs to be built with a custom linker script. This is optional and the default build for n64 can still be flashed as the lone firmware.

Feature-wise here's what's supported:

  • If a n64 firmware is installed in flash (binary_info can be read), the bootloader hands over asap
  • If no firmware is installed, the bootloader is fully booted
  • If Z + Start are held on the controller at boot time (the firmware actively sends a "controller status" command on startup because the console/game will usually only initialize the controller after a few seconds), the bootloader is fully booted
  • The bootloader starts:
    • DVI output with a text console
    • Wi-Fi access point (SSID ota)
    • DHCP and DNS servers
    • HTTP server with a form to upload a firmware binary
  • Upon connecting to the access point, the user should be directed to http://192.168.4.1/ota (tried to move it to 192.168.64.1 as it felt more appropriate :-D, but something must be broken)
  • The web interface shows the currently installed firmware, and a form to upload a new firmware .bin file (there's no support for .uf2 files)

I'm willing to open a PR, but I you prefer making your own bootloader, feel free to take anything that can save you some time :-)

@kbeckmann
Copy link
Owner Author

kbeckmann commented Jun 25, 2023 via email

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

No branches or pull requests

2 participants