Skip to content

Instantly share code, notes, and snippets.

@hanetzer
Created March 10, 2019 01:19
Show Gist options
  • Save hanetzer/06fab9c442a6c1f4788c522a1da26b48 to your computer and use it in GitHub Desktop.
Save hanetzer/06fab9c442a6c1f4788c522a1da26b48 to your computer and use it in GitHub Desktop.
stdin
#!/bin/bash
rm -f spl.bin spl-out.bin flash.bin out.bin
./tools/mkimage -n rk3288 -T rkspi -d spl/u-boot-spl.bin spl.bin \
&& dd if=spl.bin bs=128K conv=sync of=spl-out.bin \
&& cat spl-out.bin u-boot-dtb.img > out.bin \
&& dd if=out.bin bs=4M of=flash.bin conv=sync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment