2019-11-14 23:40:51 +01:00
|
|
|
WIP stuff to get started on the pinebook pro.
|
2019-11-14 23:47:56 +01:00
|
|
|
|
|
|
|
## `u-boot`
|
|
|
|
|
|
|
|
Assuming `/dev/mmcblk0` is an SD card.
|
|
|
|
|
|
|
|
```
|
2020-01-06 22:03:48 +01:00
|
|
|
$ nix-build -A pkgs.uBootPinebookPro
|
2019-11-14 23:47:56 +01:00
|
|
|
$ 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.
|
2020-01-06 21:36:56 +01:00
|
|
|
|
|
|
|
## Image build
|
|
|
|
|
|
|
|
```
|
|
|
|
$ ./build.sh
|
2020-01-06 22:57:27 +01:00
|
|
|
$ lsblk /dev/mmcblk0 && sudo dd if=$(echo result/sd-image/*.img) of=/dev/mmcblk0 bs=8M oflag=direct status=progress
|
2020-01-06 21:36:56 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
The `build.sh` script transmits parameters to `nix-build`, so e.g. `-j0` can be used.
|