NixOS on ARM/Libre Computer ROC-RK3328-CC: Difference between revisions

imported>Cyber-murmel
correct sister board
imported>Cyber-murmel
m explain postBuildCommands
Line 79: Line 79:


   nixpkgs.config.allowUnfree = true; # needed for ubootRock64
   nixpkgs.config.allowUnfree = true; # needed for ubootRock64
   sdImage.postBuildCommands = ''
  # at the time of writing the u-boot version from FireFly hasn't been successfully ported yet
     dd if=${pkgs.ubootRock64}/idbloader.img of=$img conv=fsync,notrunc bs=512 seek=64
  # so we use the one from Rock64
     dd if=${pkgs.ubootRock64}/u-boot.itb of=$img conv=fsync,notrunc bs=512 seek=16384
   sdImage.postBuildCommands = with pkgs; ''
     dd if=${ubootRock64}/idbloader.img of=$img conv=fsync,notrunc bs=512 seek=64
     dd if=${ubootRock64}/u-boot.itb of=$img conv=fsync,notrunc bs=512 seek=16384
   '';
   '';