zlacker

[return to "Why I left Pine64"]
1. dcz_se+Be[view] [source] 2022-08-17 12:47:27
>>todsac+(OP)
With my Librem 5 developer hat on, I'm surprised that a SPI chip matters at all.

The Librem 5 eMMC contains a hidden "partition", which is preferred by the CPU to boot from over the "data partition" where the OS boot loader resides. It should be possible to put Tow-boot into this hidden area, and the OS stored in the data area will have no say. No separate flash chip needed to have an independent boot loader.

I wonder why the PinePhone needs a separate chip for this purpose. Is the CPU unaware of hidden areas on the eMMC?

◧◩
2. sigmar+Gf[view] [source] 2022-08-17 12:52:58
>>dcz_se+Be
The boot ROM in the RK3399 in the PinePhone Pro has a hardcoded boot order, and doesn't use the special boot partition of the eMMC - it only looks for a bootloader on the data partition at a fixed sector (64).
◧◩◪
3. zozbot+Ok[view] [source] 2022-08-17 13:17:51
>>sigmar+Gf
Would it be possible to flash Tow-Boot to that sector and only use the rest of the partition as actual data storage? It seems like it would effectively work the same as having a separate SPI hardware chip on-device, while also restoring distribution independence. The downside is that implementing this might require some special-case support though it could likely be implemented most conveniently by using, e.g. dm-linear, so only configuration changes would be needed, not new kernel code.
◧◩◪◨
4. Martij+Cm[view] [source] 2022-08-17 13:27:38
>>zozbot+Ok
The issue with that is it's really easily wiped or changed when installing an OS. In the end the SPI hardware did get added and it just works, it's by far the simplest and most reliable solution.
◧◩◪◨⬒
5. zozbot+Rn[view] [source] 2022-08-17 13:34:21
>>Martij+Cm
> In the end the SPI hardware did get added and it just works

What about their new PineBook Pro, though? Is that situation still in flux?

> The issue with that is it's really easily wiped or changed when installing an OS.

I'm not really seeing this. If the OS supports this special scheme, they need only deal with the soft block device that's created by mapping "the rest" of the partition. And if they don't, then all bets are off anyway.

◧◩◪◨⬒⬓
6. Martij+5r[view] [source] 2022-08-17 13:49:05
>>zozbot+Rn
It seems like in the end the pinebook pro did get the SPI chip on it, but then they flashed a closed source U-Boot to the eMMC instead which does not allow booting from SD. So it's again a complete pain for the other distributions to help these users.

For the wiping issue, a lot of times I see suggestions to wipe the first few MB of the storage when there's booting and flashing issues to get rid of an old U-Boot, which is exactly what you don't want in the Tow-Boot case.

[go to top]