Installing OpenBSD/arm64 6.7-current port on Pinebook

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Installing OpenBSD/arm64 6.7-current port on Pinebook

Alexander Shendi
Hi,

I've been trying to install OpenBSD-current/arm64 on my 11" 1080p Pinebook.

I did the following (under NetBSD 9, if it's of interest)
1. Download miniroot67.fs
2. Download the dtb package
3. Download the u-boot-aarch64 package.
4. Execute (as root) "dd if=Downloads/miniroot67.fs of=/dev/rld0c bs=1m conv=sync"
5. Mount /dev/ld0e on /mnt
6. Execute "mkdir /mnt/vendor/"
7. Unpack the dtb package. Copy the file sun50i-a64-pinebook.dtb to /mnt/vendor.
8. Unmount /mnt.
9. Unpack the u-boot-aarch64 package. Locate the file "u-boot-sunxi-with-spl.bin".
10. Execute "dd if=u-boot-sunxi-with-spl.bin of=/dev/rsd0c bs=1024 seek=8 conv=sync"
11. Reboot
12. Connect an amd64 machine via serial cable to the Pinebook. Execute "minicom -D /dev/cuaU0" as root.

I fail to see any output on either the Pinebook's screen or the serial console.
In fact minicom protests that /dev/cuaU0 isn't configured.

Any help will be appreciated.

Best Regards,

Alexander


--
You have zero privacy anyway. Get over it.

Scott McNealy 1999
Reply | Threaded
Open this post in threaded view
|

Re: Installing OpenBSD/arm64 6.7-current port on Pinebook

Olivier BURELLI
Hi

Goal is to :

1. up an usb stick with dtb --> To provide firmware after U-BOOT
2. create a sd card / emmc card with U-BOOT --> to boot (i Think also that for AllWinner you have no need to install dtb on emmc / sdcard)
3. from u-BOOT
        usb start
        reboot
4. start on USB Stick.

a) Where did you install U-BOOT ?
b) I am not sure thae for pinebook which TTL to use :
cu -s 115200 -l /dev/cuaU0 (for me on RockPro64)

Oliv.


On Wed, 08 Apr 2020 19:53:14 +0200
"Alexander Shendi (Web.DE)" <[hidden email]> wrote:

> Hi,
>
> I've been trying to install OpenBSD-current/arm64 on my 11" 1080p Pinebook.
>
> I did the following (under NetBSD 9, if it's of interest)
> 1. Download miniroot67.fs
> 2. Download the dtb package
> 3. Download the u-boot-aarch64 package.
> 4. Execute (as root) "dd if=Downloads/miniroot67.fs of=/dev/rld0c bs=1m conv=sync"
> 5. Mount /dev/ld0e on /mnt
> 6. Execute "mkdir /mnt/vendor/"
> 7. Unpack the dtb package. Copy the file sun50i-a64-pinebook.dtb to /mnt/vendor.
> 8. Unmount /mnt.
> 9. Unpack the u-boot-aarch64 package. Locate the file "u-boot-sunxi-with-spl.bin".
> 10. Execute "dd if=u-boot-sunxi-with-spl.bin of=/dev/rsd0c bs=1024 seek=8 conv=sync"
> 11. Reboot
> 12. Connect an amd64 machine via serial cable to the Pinebook. Execute "minicom -D /dev/cuaU0" as root.
>
> I fail to see any output on either the Pinebook's screen or the serial console.
> In fact minicom protests that /dev/cuaU0 isn't configured.
>
> Any help will be appreciated.
>
> Best Regards,
>
> Alexander
>
>
> --
> You have zero privacy anyway. Get over it.
>
> Scott McNealy 1999

--
burelli.fr <[hidden email]>

Reply | Threaded
Open this post in threaded view
|

Re: Installing OpenBSD/arm64 6.7-current port on Pinebook

Krystian Lewandowski
In reply to this post by Alexander Shendi
Hi,
can you see boot prompt at least?
You could try:
boot> set tty fb0

--
Krystian

> Wiadomość napisana przez Alexander Shendi (Web.DE) <[hidden email]> w dniu 08.04.2020, o godz. 19:53:
>
> Hi,
>
> I've been trying to install OpenBSD-current/arm64 on my 11" 1080p Pinebook.
>
> I did the following (under NetBSD 9, if it's of interest)
> 1. Download miniroot67.fs
> 2. Download the dtb package
> 3. Download the u-boot-aarch64 package.
> 4. Execute (as root) "dd if=Downloads/miniroot67.fs of=/dev/rld0c bs=1m conv=sync"
> 5. Mount /dev/ld0e on /mnt
> 6. Execute "mkdir /mnt/vendor/"
> 7. Unpack the dtb package. Copy the file sun50i-a64-pinebook.dtb to /mnt/vendor.
> 8. Unmount /mnt.
> 9. Unpack the u-boot-aarch64 package. Locate the file "u-boot-sunxi-with-spl.bin".
> 10. Execute "dd if=u-boot-sunxi-with-spl.bin of=/dev/rsd0c bs=1024 seek=8 conv=sync"
> 11. Reboot
> 12. Connect an amd64 machine via serial cable to the Pinebook. Execute "minicom -D /dev/cuaU0" as root.
>
> I fail to see any output on either the Pinebook's screen or the serial console.
> In fact minicom protests that /dev/cuaU0 isn't configured.
>
> Any help will be appreciated.
>
> Best Regards,
>
> Alexander
>
>
> --
> You have zero privacy anyway. Get over it.
>
> Scott McNealy 1999

Reply | Threaded
Open this post in threaded view
|

Re: Installing OpenBSD/arm64 6.7-current port on Pinebook

Krystian Lewandowski
This is something I wrote to help someone else with OpenBSD on Pinebook, it
worked for me at the time. Didn’t try recently though.

1.  get miniroot.fs
2.  write image to SD card: dd if=miniroot6X.fs of=/dev/rsdXc bs=1m
(use something else for X)
3.  write SPL:
dd if=/usr/local/share/u-boot/pinebook/u-boot-sunxi-with-spl.bin
of=/dev/sdXc bs=1024 seek=8
(you have to install aarch64 flavor of u-boot port)
4.  when boot prompt is shown, type:
boot> set tty fb0
(this will get you working display - you will have to enter it at each boot as long
as it’s not in boot.conf)
5.  proceed with standard installation

--
Krystian

> Wiadomość napisana przez Alexander Shendi (Web.DE) <[hidden email]> w dniu 08.04.2020, o godz. 21:33:
>
> Hi Krystian,
>
> Nope, all I see is a black screen.
>
> Best Regards,
>
> Alexander
>
> Am 8. April 2020 21:19:44 MESZ schrieb Krystian Lewandowski <[hidden email]>:
>> Hi,
>> can you see boot prompt at least?
>> You could try:
>> boot> set tty fb0
>>
>> --
>> Krystian
>>
>>> Wiadomość napisana przez Alexander Shendi (Web.DE)
>> <[hidden email]> w dniu 08.04.2020, o godz. 19:53:
>>>
>>> Hi,
>>>
>>> I've been trying to install OpenBSD-current/arm64 on my 11" 1080p
>> Pinebook.
>>>
>>> I did the following (under NetBSD 9, if it's of interest)
>>> 1. Download miniroot67.fs
>>> 2. Download the dtb package
>>> 3. Download the u-boot-aarch64 package.
>>> 4. Execute (as root) "dd if=Downloads/miniroot67.fs of=/dev/rld0c
>> bs=1m conv=sync"
>>> 5. Mount /dev/ld0e on /mnt
>>> 6. Execute "mkdir /mnt/vendor/"
>>> 7. Unpack the dtb package. Copy the file sun50i-a64-pinebook.dtb to
>> /mnt/vendor.
>>> 8. Unmount /mnt.
>>> 9. Unpack the u-boot-aarch64 package. Locate the file
>> "u-boot-sunxi-with-spl.bin".
>>> 10. Execute "dd if=u-boot-sunxi-with-spl.bin of=/dev/rsd0c bs=1024
>> seek=8 conv=sync"
>>> 11. Reboot
>>> 12. Connect an amd64 machine via serial cable to the Pinebook.
>> Execute "minicom -D /dev/cuaU0" as root.
>>>
>>> I fail to see any output on either the Pinebook's screen or the
>> serial console.
>>> In fact minicom protests that /dev/cuaU0 isn't configured.
>>>
>>> Any help will be appreciated.
>>>
>>> Best Regards,
>>>
>>> Alexander
>>>
>>>
>>> --
>>> You have zero privacy anyway. Get over it.
>>>
>>> Scott McNealy 1999
>
> --
> You have zero privacy anyway. Get over it.
>
> Scott McNealy 1999

Reply | Threaded
Open this post in threaded view
|

Re: Installing OpenBSD/arm64 6.7-current port on Pinebook

Olivier BURELLI
In reply to this post by Olivier BURELLI
I apologize for my bad english :)

I thank that you wanted install OBSD to an eMMC card from usb stick.
ex: on some arm64, dtb has to be installed on i partition. U-BOOT will find the firmware on the /sdXi/vendor/file.dtb (installed via dtb package)
--> boot set tty fb0

Here, maybe is the same issue.

From : https://forum.pine64.org/showthread.php?tid=7070
it seems also that you need an USB TTL cable.

So i my first answer i did not understand what did you do :
_ you are booting from  wich disk ?
_ you are trying to install to which disk ?
_ Maybe also you should have to look on flash issue at start (SPI)

On Wed, 08 Apr 2020 21:31:47 +0200
"Alexander Shendi (Web.DE)" <[hidden email]> wrote:

> Hi Olivier,
>
> Thank you very much for responding.
>
> I am sorry, but I am unable to understand what you mean. Sorry for being so dense.
>
> 1. I already installed miniroot67.fs to an SD card. What do I need an USB drive for?
> 2. I believe I installed uboot in /dev/rld0c
> (the SD card slot) as indicated below. I just saw the message says "/dev/rsd0c" instead of "/dev/rld0c". Blame autocorrect.
>
> Can I do something else to debug the setup? TIA.
>
> Regards,
>
> Alexander
>
>
> Am 8. April 2020 20:24:08 MESZ schrieb Olivier <[hidden email]>:
> >Hi
> >
> >Goal is to :
> >
> >1. up an usb stick with dtb --> To provide firmware after U-BOOT
> >2. create a sd card / emmc card with U-BOOT --> to boot (i Think also
> >that for AllWinner you have no need to install dtb on emmc / sdcard)
> >3. from u-BOOT
> > usb start
> > reboot
> >4. start on USB Stick.
> >
> >a) Where did you install U-BOOT ?
> >b) I am not sure thae for pinebook which TTL to use :
> >cu -s 115200 -l /dev/cuaU0 (for me on RockPro64)
> >
> >Oliv.
> >
> >
> >On Wed, 08 Apr 2020 19:53:14 +0200
> >"Alexander Shendi (Web.DE)" <[hidden email]> wrote:
> >
> >> Hi,
> >>
> >> I've been trying to install OpenBSD-current/arm64 on my 11" 1080p
> >Pinebook.
> >>
> >> I did the following (under NetBSD 9, if it's of interest)
> >> 1. Download miniroot67.fs
> >> 2. Download the dtb package
> >> 3. Download the u-boot-aarch64 package.
> >> 4. Execute (as root) "dd if=Downloads/miniroot67.fs of=/dev/rld0c
> >bs=1m conv=sync"
> >> 5. Mount /dev/ld0e on /mnt
> >> 6. Execute "mkdir /mnt/vendor/"
> >> 7. Unpack the dtb package. Copy the file sun50i-a64-pinebook.dtb to
> >/mnt/vendor.
> >> 8. Unmount /mnt.
> >> 9. Unpack the u-boot-aarch64 package. Locate the file
> >"u-boot-sunxi-with-spl.bin".
> >> 10. Execute "dd if=u-boot-sunxi-with-spl.bin of=/dev/rsd0c bs=1024
> >seek=8 conv=sync"
> >> 11. Reboot
> >> 12. Connect an amd64 machine via serial cable to the Pinebook.
> >Execute "minicom -D /dev/cuaU0" as root.
> >>
> >> I fail to see any output on either the Pinebook's screen or the
> >serial console.
> >> In fact minicom protests that /dev/cuaU0 isn't configured.
> >>
> >> Any help will be appreciated.
> >>
> >> Best Regards,
> >>
> >> Alexander
> >>
> >>
> >> --
> >> You have zero privacy anyway. Get over it.
> >>
> >> Scott McNealy 1999
> >
> >--
> >burelli.fr <[hidden email]>
>
> --
> You have zero privacy anyway. Get over it.
>
> Scott McNealy 1999

--
burelli.fr <[hidden email]>