Skip to content

Instantly share code, notes, and snippets.

@markVnl
Last active October 15, 2019 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markVnl/98aea38296c2d9ce02714b82dbfe685f to your computer and use it in GitHub Desktop.
Save markVnl/98aea38296c2d9ce02714b82dbfe685f to your computer and use it in GitHub Desktop.
To prepare your SD-Card and flash-uboot using the Generic image
As always: **Be sure you got the right device (/dev/.....) pointing to your sd-card**
Replace X with your appropriate value
export sdcard="/dev/sdX"
Write to SD-Card:
xzcat Nethserver-7.7.1908-RC1-Uboot-img.raw.xz | sudo dd of=${sdcard} status=progress bs=4M && sudo sync
Mount your sd-card, mountpoint (/mnt) is arbitrary:
sudo mount ${sdcard}2 /mnt
Find the available boardmodels:
ls /mnt/usr/share/uboot/
In this writeup _orangepi_plus2e_ is assumed
export boardmodel="orangepi_plus2e"
Find name of u-boot file:
ls /mnt/usr/share/uboot/${boardmodel}
It turns-out out for orangepi_plus2e it is u-boot-sunxi-with-spl.bin
export uboot="u-boot-sunxi-with-spl.bin"
Write u-boot to sd-card:
sudo dd if=/mnt/usr/share/uboot/${boardmodel}/${uboot} of=${sdcard} bs=1024 seek=8 conv=fsync,notrunc
Unmount sd-card:
sudo umount /mnt
Note other boards might need extra boodloaders in a setup as described by the vendor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment