Created
December 22, 2018 19:30
-
-
Save samueldr/e00831a322b83cd4f2b210d780dbfc58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/tmp/tmp $ nix-shell -I nixpkgs=$HOME/tmp/nixpkgs/nixpkgs -p 'pkgsCross.aarch64-embedded.buildUBoot{defconfig = "orangepi_zero_plus2_defconfig"; extraMeta.platforms = ["aarch64-none"]; BL31 = "${pkgsCross.aarch64-multiplatform-musl.armTrustedFirmwareAllwinner}/bl31.bin";filesToInstall = ["u-boot-sunxi-with-spl.bin"];}' | |
[nix-shell:~/tmp/tmp]$ sudo dd if=/dev/zero of=/dev/sdg bs=1024 seek=8 count=1024 | |
1024+0 records in | |
1024+0 records out | |
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.479617 s, 2.2 MB/s | |
[nix-shell:~/tmp/tmp]$ sudo dd if=$buildInputs/u-boot-sunxi-with-spl.bin of=/dev/sdg bs=1024 seek=8 | |
562+1 records in | |
562+1 records out | |
575672 bytes (576 kB, 562 KiB) copied, 0.27881 s, 2.1 MB/s | |
[nix-shell:~/tmp/tmp]$ sudo eject /dev/sdg | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment