1
0
Fork 0
mirror of https://github.com/samueldr/wip-pinebook-pro.git synced 2025-01-08 09:59:47 +01:00

Adds notes

This commit is contained in:
Samuel Dionne-Riel 2020-01-07 15:20:13 -05:00
parent 876bf1c2bb
commit 081e20b702

View file

@ -1,20 +1,36 @@
WIP stuff to get started on the pinebook pro. WIP stuff to get started on the pinebook pro.
## `u-boot` ## Using in your configuration
Assuming `/dev/mmcblk0` is an SD card. Clone this repository somwhere, and in your configuration.nix
``` ```
$ nix-build -A pkgs.uBootPinebookPro {
$ 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 imports = [
.../pinebook-pro/pinebook_pro.nix
];
}
``` ```
The eMMC has to be zeroed (in the relevant sectors) or else the RK3399 will use That entry point will try to stay unopinionated, while maximizing the hardware
the eMMC as a boot device first. compatibility.
Alternatively, this u-boot can be installed to the eMMC. ## Compatibility
Installing to SPI has yet to be investigated. ### Tested
* X11 with modesetting
* Wi-Fi
* Brightness controls
### Untested
* Bluetooth
### Known issues
* Suspend (or resume) fails.
* Rebooting fails somewhere early in the u-boot SPL.
## Image build ## Image build
@ -43,3 +59,19 @@ This will automatically detect the need for cross-compiling or not.
When cross-compiled, all caveats apply. Here this mainly means that the kernel When cross-compiled, all caveats apply. Here this mainly means that the kernel
will need to be re-compiled on the device on the first nixos-rebuild switch, will need to be re-compiled on the device on the first nixos-rebuild switch,
while most other packages can be fetched from the cache. while most other packages can be fetched from the cache.
## `u-boot`
Assuming `/dev/mmcblk0` is an SD card.
```
$ nix-build -A pkgs.uBootPinebookPro
$ 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.