02-20-2020, 10:02 AM
(This post was last modified: 02-20-2020, 10:44 AM by rogerroger.)
(02-19-2020, 09:50 AM)ab1jx Wrote: I'm on a Pinebook Pro, Rockchip, 14 inch 1920x1080, delivered 1/13/2020, BTW, not 11 inch or older models. So there both old and new models in both sizes I think. This is closely related to a Rock64 Pro I think, but it's Rockchip, not Allwinner.
Oh you're right. I didn't realize the PBP had a different chip. I have a Pinebook from 2018 and I think @elewarr has this one. That last model is what this thread was originally about (but I found it worked for mine too). Sorry for misleading you.
u-boot-aarch64 contains
Code:
$ ls /usr/local/share/u-boot/rockpro64-rk3399/*
/usr/local/share/u-boot/rockpro64-rk3399/idbloader.img /usr/local/share/u-boot/rockpro64-rk3399/u-boot.img
/usr/local/share/u-boot/rockpro64-rk3399/u-boot /usr/local/share/u-boot/rockpro64-rk3399/u-boot.itb
/usr/local/share/u-boot/rockpro64-rk3399/u-boot.bin
so I imagine you could replace the u-boot with one of those. I did find https://github.com/sigmaris/u-boot/wiki/...t-sequence which gives different addresses to install to. I can't help test anymore.
This is probably a question for misc@openbsd.org at this point. I searched the archives and there's some talk about the pinebook (here) but nothing about the Pinebook Pro.
I still think you should double-check that you're writing to the correct disk, too. Try downloading one of these https://wiki.pine64.org/index.php/Pinebo...re_Release and seeing if that'll boot, just to double-check the details. OpenBSD on pine is still a work in progress -- well, so is everything, but obviously Linux has more support and testing.
From that boot-sequence page, I think you might be able to do this (on a Linux machine):
Code:
wget https://cdn.openbsd.org/pub/OpenBSD/6.6/packages/amd64/u-boot-aarch64-2019.10.tgz
tar -zxf u-boot-aarch64-2019.10.tgz
sudo dd if=share/u-boot/rockpro64-rk3399/idbloader.img of=/dev/mmcblk1 bs=512 seek=64
sudo dd if=share/u-boot/rockpro64-rk3399/u-boot.img of=/dev/mmcblk1 bs=512 seek=16384
sync
This is comparable to these NetBSD instructions:
NetBSD-ARM Wrote:Download or build arm64.img (64-bit) from NetBSD 9.0 or later
Write the image to disk: dd if=arm64.img of=/dev/rld0d bs=1m conv=sync
Install a board-specific U-Boot from pkgsrc to the SD card dd if=/usr/pkg/share/u-boot/<boardname>/rksd_loader.img of=/dev/rld0d seek=64 conv=sync
Put the sdcard into the PBP and if it works you should see OpenBSD's branch of u-boot booting. Let us know how it goes!
If you get that far then you can adapt the install instructions for the Pinebook.
In fact I downloaded the vetted NetBSD image from http://www.armbsd.org/arm/ and inspected it:
Code:
$ wget http://www.armbsd.org/arm/netbsd-9/202002191440Z/NetBSD-evbarm-aarch64-202002191440Z-rockpro64.img.gz
$ gunzip NetBSD-evbarm-aarch64-202002191440Z-rockpro64.img.gz
$ hexdump -C NetBSD-evbarm-aarch64-202002191440Z-rockpro64.img
[.. snipped ..]
00008000 3b 8c dc fc be 9f 9d 51 eb 30 34 ce 24 51 1f 98 |;......Q.04.$Q..|
00008010 ff 0c f2 36 05 50 c8 bb 3f ec dd bd 06 85 fa b7 |...6.P..?.......|
00008020 b3 ab 6a ea c8 68 e0 08 ad 9d 6f 9c 3c 98 b0 8c |..j..h....o.<...|
00008030 45 13 54 1c 1d 1b 1f 15 a7 f1 f0 0b e3 4e 0c c7 |E.T..........N..|
00008040 60 96 01 6a b5 f0 e2 c1 50 c6 24 9e 12 f7 58 8e |`..j....P.$...X.|
00008050 40 b9 b7 be 8b fa 25 dd 74 d7 6f 59 46 7e 13 41 |@.....%.t.oYF~.A|
00008060 ee fd f5 91 39 bc 74 95 25 3c 1a e1 f1 57 30 05 |....9.t.%<...W0.|
00008070 ca f8 72 9a 1b e6 9d 26 35 5d 81 2b 2b 93 bd 01 |..r....&5].++...|
00008080 3a 54 0c a1 4b 11 06 98 a1 91 19 4a 4e 92 30 1a |:T..K......JN.0.|
00008090 f2 b2 d5 ae 59 6c 9e 96 fd f4 ff a4 88 e3 9f 87 |....Yl..........|
000080a0 49 6c 3a 76 6d 3d 1a ac 1e 77 0a 5e ff 92 52 61 |Il:vm=...w.^..Ra|
000080b0 19 ff 74 96 ee 13 93 7a e0 b9 f0 1b 51 38 b3 8d |..t....z....Q8..|
000080c0 2f 59 87 02 65 c1 88 6b 4c 21 aa 7b 16 d5 50 ce |/Y..e..kL!.{..P.|
000080d0 37 80 a4 1f 46 df bd b0 d9 65 8f e1 15 ce 08 0f |7...F....e......|
000080e0 7c ee 5a 0c 61 50 3c 90 bf 79 1a bf 05 96 b0 61 ||.Z.aP<..y.....a|
000080f0 eb ed 62 53 4b 3a ee a4 aa 77 95 df e9 e7 44 fb |..bSK:...w....D.|
00008100 2d f8 ba 7e b2 1e e0 04 ea ea d2 d7 61 f9 90 92 |-..~........a...|
00008110 88 e3 07 b6 5a 8f 9b 4e 4f 9e f9 c8 38 d9 11 5d |....Z..NO...8..]|
00008120 41 37 f4 dd 5b 78 47 95 8a ac f5 42 5d aa 0c 52 |A7..[xG....B]..R|
00008130 49 c8 0d 9d a7 32 2e d7 03 b1 41 95 49 50 2d 89 |I....2....A.IP-.|
00008140 27 5b 0d 0e 72 6f fa 0e 0b 70 bc 15 42 a2 26 cb |'[..ro...p..B.&.|
00008150 d5 26 65 0c cb b1 ec 54 45 45 e5 39 d5 7b 77 ff |.&e....TEE.9.{w.|
00008160 9b c0 c8 38 4e e5 6e 4a bb 42 9f 43 d1 d0 5e 04 |...8N.nJ.B.C..^.|
00008170 78 0f 00 3e 06 bc 07 3c c9 4d 2a 64 b9 43 77 cf |x..>...<.M*d.Cw.|
00008180 93 d7 f8 68 00 38 b9 7b e8 aa f3 8a 47 96 27 8b |...h.8.{....G.'.|
00008190 44 45 c4 c4 ed e0 a1 26 02 6f dd 37 87 92 c6 01 |DE.....&.o.7....|
000081a0 03 14 a0 e6 aa 2b 6c da e5 98 75 35 3a 2c bf cc |.....+l...u5:,..|
000081b0 b5 27 62 5f d0 dc 2a 9b d7 a2 4d d7 72 65 7a d1 |.'b_..*...M.rez.|
000081c0 17 3a 98 e7 3c 57 8e b6 a0 32 34 c9 6e d1 ca cd |.:..<W...24.n...|
000081d0 81 95 bd 6e 0e 84 5c a6 cb 0c 42 5f c8 16 e0 3e |...n..\...B_...>|
000081e0 ac f3 32 8e 44 56 02 25 df cd af 1e 1d 36 59 b6 |..2.DV.%.....6Y.|
000081f0 44 58 d1 d5 ea 04 c3 6b 91 8d ff 93 8c 2c 27 45 |DX.....k.....,'E|
00008200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
[.. snipped ..]
This is almost identical, except for two bytes on the second last line, to the *start* of OpenBSD's idbloader.img:
Code:
$ hexdump -C /usr/local/share/u-boot/rockpro64-rk3399/idbloader.img
00000000 3b 8c dc fc be 9f 9d 51 eb 30 34 ce 24 51 1f 98 |;......Q.04.$Q..|
00000010 ff 0c f2 36 05 50 c8 bb 3f ec dd bd 06 85 fa b7 |...6.P..?.......|
00000020 b3 ab 6a ea c8 68 e0 08 ad 9d 6f 9c 3c 98 b0 8c |..j..h....o.<...|
00000030 45 13 54 1c 1d 1b 1f 15 a7 f1 f0 0b e3 4e 0c c7 |E.T..........N..|
00000040 60 96 01 6a b5 f0 e2 c1 50 c6 24 9e 12 f7 58 8e |`..j....P.$...X.|
00000050 40 b9 b7 be 8b fa 25 dd 74 d7 6f 59 46 7e 13 41 |@.....%.t.oYF~.A|
00000060 ee fd f5 91 39 bc 74 95 25 3c 1a e1 f1 57 30 05 |....9.t.%<...W0.|
00000070 ca f8 72 9a 1b e6 9d 26 35 5d 81 2b 2b 93 bd 01 |..r....&5].++...|
00000080 3a 54 0c a1 4b 11 06 98 a1 91 19 4a 4e 92 30 1a |:T..K......JN.0.|
00000090 f2 b2 d5 ae 59 6c 9e 96 fd f4 ff a4 88 e3 9f 87 |....Yl..........|
000000a0 49 6c 3a 76 6d 3d 1a ac 1e 77 0a 5e ff 92 52 61 |Il:vm=...w.^..Ra|
000000b0 19 ff 74 96 ee 13 93 7a e0 b9 f0 1b 51 38 b3 8d |..t....z....Q8..|
000000c0 2f 59 87 02 65 c1 88 6b 4c 21 aa 7b 16 d5 50 ce |/Y..e..kL!.{..P.|
000000d0 37 80 a4 1f 46 df bd b0 d9 65 8f e1 15 ce 08 0f |7...F....e......|
000000e0 7c ee 5a 0c 61 50 3c 90 bf 79 1a bf 05 96 b0 61 ||.Z.aP<..y.....a|
000000f0 eb ed 62 53 4b 3a ee a4 aa 77 95 df e9 e7 44 fb |..bSK:...w....D.|
00000100 2d f8 ba 7e b2 1e e0 04 ea ea d2 d7 61 f9 90 92 |-..~........a...|
00000110 88 e3 07 b6 5a 8f 9b 4e 4f 9e f9 c8 38 d9 11 5d |....Z..NO...8..]|
00000120 41 37 f4 dd 5b 78 47 95 8a ac f5 42 5d aa 0c 52 |A7..[xG....B]..R|
00000130 49 c8 0d 9d a7 32 2e d7 03 b1 41 95 49 50 2d 89 |I....2....A.IP-.|
00000140 27 5b 0d 0e 72 6f fa 0e 0b 70 bc 15 42 a2 26 cb |'[..ro...p..B.&.|
00000150 d5 26 65 0c cb b1 ec 54 45 45 e5 39 d5 7b 77 ff |.&e....TEE.9.{w.|
00000160 9b c0 c8 38 4e e5 6e 4a bb 42 9f 43 d1 d0 5e 04 |...8N.nJ.B.C..^.|
00000170 78 0f 00 3e 06 bc 07 3c c9 4d 2a 64 b9 43 77 cf |x..>...<.M*d.Cw.|
00000180 93 d7 f8 68 00 38 b9 7b e8 aa f3 8a 47 96 27 8b |...h.8.{....G.'.|
00000190 44 45 c4 c4 ed e0 a1 26 02 6f dd 37 87 92 c6 01 |DE.....&.o.7....|
000001a0 03 14 a0 e6 aa 2b 6c da e5 98 75 35 3a 2c bf cc |.....+l...u5:,..|
000001b0 b5 27 62 5f d0 dc 2a 9b d7 a2 4d d7 72 65 7a d1 |.'b_..*...M.rez.|
000001c0 17 3a 98 e7 3c 57 8e b6 a0 32 34 c9 6e d1 ca cd |.:..<W...24.n...|
000001d0 81 95 bd 6e 0e 84 5c a6 cb 0c 42 5f c8 16 e0 3e |...n..\...B_...>|
000001e0 ac f3 32 8e 44 56 02 25 df cd af 1e 1d 36 59 b6 |..2.DV.%.....6Y.|
000001f0 44 58 d1 d5 ea 04 c3 6b 91 8d ef 93 9c 2c 27 45 |DX.....k.....,'E|
00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
They diverge after that point but it's a good start.