/espressobin-nix

NixOS on the Marvell ESPRESSObin

Primary LanguageNixBSD Zero Clause License0BSD

NixOS on the Marvell ESPRESSObin

http://espressobin.net/

U-Boot

Build with nix-build -A pkgsCross.aarch64-multiplatform.ubootEspressobinImages.

The bootloader image produced by this repo is currently only for ESPRESSObin V7 1GB!

Extra steps after flashing

  1. Load default U-Boot environment with env default -a.
  2. Set the correct device tree filename in U-Boot with setenv fdtfile marvell/armada-3720-espressobin.dtb; saveenv.

Boot the generic aarch64 image

  1. Add console=ttyMV0,115200n8 to the kernel command line.

TODO

  • Fix fdtfile determination in U-Boot (V7 vs not). I think this is broken by the board/board_name variables being wrong.
  • Fix MAC addresses not being passed to Linux.

Links

Hardware notes

  • The V7 schematics (page 9) imply you can boot U-Boot from SD card by setting the three mode jumpers to 1. The wiki page table seems to be wrong, all modes except SPI NOR flash are the same.