Skip to content

Instantly share code, notes, and snippets.

@Ruinland
Ruinland / litex_netboot_versa5g.md
Last active May 20, 2020 13:25
Short note for LiteX/Vexriscv netboot on ECP5-5G Versa Dev Board

LiteX/Vexriscv netboot on ECP5-5G Versa Dev Board

Firstly, please connect your board to your computer with a network cable. Even though most of modern ethernet cards supports direct connection between each other, if you're not sure about whether you need a crossover cable, you can hook your computer and the dev board to an inexpensive switch like the following picture - -

Photo on imgur.

@Ruinland
Ruinland / setup_rootfs_overlay.sh
Created March 6, 2016 00:31
Lightweight rootfs for chroot using OverlayFS
#!/bin/sh
# Since we want to create a exact sandbox of host,
# choose root to be the lower directory.
container_dir=$(mktemp -d --tmpdir=$HOME)
printf '%s ...\n' "Creating container directory: $container_dir"
original_username=$(whoami)