1
0
Fork 0
mirror of https://github.com/samueldr/wip-pinebook-pro.git synced 2024-11-05 18:49:41 +01:00
Work of samueldr to run NixOS on the Pine64 Pinebook Pro
Find a file
Samuel Dionne-Riel 42e59d8105 Adds (incomplete) system image build
This includes the proper kernel, but does nothing more.
2020-01-06 15:22:39 -05:00
kernel Add kernel build 2020-01-06 15:21:57 -05:00
u-boot u-boot: Add patch for chonky kernels 2020-01-06 15:03:26 -05:00
.gitignore initial commit 2019-11-14 17:40:51 -05:00
build.sh Adds (incomplete) system image build 2020-01-06 15:22:39 -05:00
configuration.nix Adds (incomplete) system image build 2020-01-06 15:22:39 -05:00
cross-hacks.nix Adds (incomplete) system image build 2020-01-06 15:22:39 -05:00
default.nix Set this up using a proper overlay 2020-01-06 15:21:02 -05:00
overlay.nix Add kernel build 2020-01-06 15:21:57 -05:00
README.md Set this up using a proper overlay 2020-01-06 15:21:02 -05:00
system.nix Adds (incomplete) system image build 2020-01-06 15:22:39 -05:00
with-cross.nix Adds (incomplete) system image build 2020-01-06 15:22:39 -05:00

WIP stuff to get started on the pinebook pro.

u-boot

Assuming /dev/mmcblk0 is an SD card.

$ nix-build -A pkgs.u-boot-pinebookpro
$ lsblk /dev/mmcblk0 && sudo dd if=result/idbloader.img of=/dev/mmcblk0 bs=512 seek=64 oflag=direct,sync && sudo dd if=result/u-boot.itb of=/dev/mmcblk0 bs=512 seek=16384 oflag=direct,sync

The eMMC has to be zeroed (in the relevant sectors) or else the RK3399 will use the eMMC as a boot device first.

Alternatively, this u-boot can be installed to the eMMC.

Installing to SPI has yet to be investigated.