Re: Considering a Raspberry Pi 4 Model B, but a bit lost...

2022-02-02 Thread Łukasz Moskała

W dniu 2.02.2022 o 06:42, Steve Williams pisze:


3. What is a popular reasonable quality wifi usb adapter that people use?


https://www.openbsd.org/arm64.html says that:

"bwfm(4) on Raspberry Pi 3/4/400 and Pinebook Pro"

So it appears that built-in wifi is supported.

--
Łukasz Moskała



Re: Considering a Raspberry Pi 4 Model B, but a bit lost...

2022-02-02 Thread Jan Stary
> > 4. Did some Raspberry Pi's come with a micro sd slot or something???
> >There's mention of using a small SD card as well as having a USB
> >device for OpenBSD... this doesn't seem to apply to Pi 4 B as there
> >are only USB ports...

The 4B does take a micro SD card, I am running off it now.

Jan


OpenBSD 7.0-current (GENERIC) #1458: Tue Jan 25 11:33:09 MST 2022
dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC
real mem  = 8419872768 (8029MB)
avail mem = 8128622592 (7752MB)
random: good seed from bootblocks
mainbus0 at root: Raspberry Pi 4 Model B Rev 1.4
cpu0 at mainbus0 mpidr 0: ARM Cortex-A72 r0p3
cpu0: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu0: 1024KB 64b/line 16-way L2 cache
cpu0: CRC32,ASID16
apm0 at mainbus0
efi0 at mainbus0: UEFI 2.8
efi0: Das U-Boot rev 0x20211000
"system" at mainbus0 not configured
"axi" at mainbus0 not configured
simplebus0 at mainbus0: "soc"
bcmclock0 at simplebus0
bcmmbox0 at simplebus0
bcmgpio0 at simplebus0
bcmaux0 at simplebus0
ampintc0 at simplebus0 nirq 256, ncpu 4: "interrupt-controller"
bcmtmon0 at simplebus0
bcmdmac0 at simplebus0: DMA0 DMA2 DMA4 DMA5 DMA6 DMA7 DMA8 DMA9
"timer" at simplebus0 not configured
pluart0 at simplebus0: console
"local_intc" at simplebus0 not configured
bcmdog0 at simplebus0
bcmirng0 at simplebus0
"firmware" at simplebus0 not configured
"power" at simplebus0 not configured
"mailbox" at simplebus0 not configured
sdhc0 at simplebus0
sdhc0: SDHC 3.0, 250 MHz base clock
sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed
"gpiomem" at simplebus0 not configured
"fb" at simplebus0 not configured
"vcsm" at simplebus0 not configured
"clocks" at mainbus0 not configured
"phy" at mainbus0 not configured
"clk-27M" at mainbus0 not configured
"clk-108M" at mainbus0 not configured
simplebus1 at mainbus0: "emmc2bus"
sdhc1 at simplebus1
sdhc1: SDHC 3.0, 100 MHz base clock
sdmmc1 at sdhc1: 8-bit, sd high-speed, mmc high-speed, ddr52, dma
"arm-pmu" at mainbus0 not configured
agtimer0 at mainbus0: 54000 kHz
simplebus2 at mainbus0: "scb"
bcmpcie0 at simplebus2
pci0 at bcmpcie0
ppb0 at pci0 dev 0 function 0 "Broadcom BCM2711" rev 0x10
pci1 at ppb0 bus 1
xhci0 at pci1 dev 0 function 0 "VIA VL805 xHCI" rev 0x01: intx, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "VIA xHCI root hub" rev 3.00/1.00 
addr 1
bse0 at simplebus2: address dc:a6:32:e0:50:d3
brgphy0 at bse0 phy 1: BCM54210E 10/100/1000baseT PHY, rev. 2
"dma" at simplebus2 not configured
"hevc-decoder" at simplebus2 not configured
"rpivid-local-intc" at simplebus2 not configured
"h264-decoder" at simplebus2 not configured
"vp9-decoder" at simplebus2 not configured
gpioleds0 at mainbus0: "led0", "led1"
"sd_io_1v8_reg" at mainbus0 not configured
"sd_vcc_reg" at mainbus0 not configured
"fixedregulator_3v3" at mainbus0 not configured
"fixedregulator_5v0" at mainbus0 not configured
simplebus3 at mainbus0: "v3dbus"
"bootloader" at mainbus0 not configured
scsibus0 at sdmmc1: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0:  removable
sd0: 30436MB, 512 bytes/sector, 62333952 sectors
uhub1 at uhub0 port 1 configuration 1 interface 0 "VIA Labs USB2.0 Hub" rev 
2.10/4.21 addr 2
bwfm0 at sdmmc0 function 1
manufacturer 0x02d0, product 0xa9a6 at sdmmc0 function 2 not configured
manufacturer 0x02d0, product 0xa9a6 at sdmmc0 function 3 not configured
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (d1a7e0233ab9545d.a) swap on sd0b dump on sd0b
WARNING: CHECK AND RESET THE DATE!
gpio0 at bcmgpio0: 58 pins
bwfm0: address dc:a6:32:e0:50:d4



Re: Considering a Raspberry Pi 4 Model B, but a bit lost...

2022-02-01 Thread Peter J. Philipp
On Tue, Feb 01, 2022 at 09:42:30PM -0800, Steve Williams wrote:
> Hi,
> 
> I currently have a PC Engines APU2 that's been my central workhorse for
> quite a few years now.
> 
> I want to delve into cheaper systems for OpenBSD so I can have more of them
> around my house :D
> 
> I was considering a Raspberry Pi 4 Model B and?? I have a couple of general
> questions:

I have a RPi 4b here, I'll try to answer some questions.

> 1. When I read the install notes for arm64
>(https://www.openbsd.org/arm64.html), I see that it lists the
>    Raspberry Pi 4.?? Is a Raspberry Pi 4 Model B included in that category?

from sysctl hw output:

hw.vendor=Raspberry Pi Foundation
hw.product=Raspberry Pi 4 Model B
hw.version=D03114

I think it is.

> 2. One of the kits I'm considering comes with at 128 G sd card with a
>USB Card reader.?? Is that entire space on the sd card usable in
>OpenBSD? I assume that the OS install can use the whole sd card,
>but don't want to make any assumptions at this point.

This I'm unsure of, I read reasoning that only 32 GB cards are supported because
of the max size of FAT or something.  I don't know if that's true or not.
Plus, OpenBSD uses partitioning with a very small FAT partition for U-Boot
and firmware.  That said I have never tried running beyond a 32 GB card.

> 3. What is a popular reasonable quality wifi usb adapter that people use?

I don't use Wifi on my rpi so can't help you there.  I have left-over urtwn(4)
adapters but they are the small ones with limited range.

> 4. Did some Raspberry Pi's come with a micro sd slot or something???
>There's mention of using a small SD card as well as having a USB
>device for OpenBSD... this doesn't seem to apply to Pi 4 B as there
>are only USB ports...

The 4B afaik takes a micro SD card.  Some Pi's before it (the B+ for example)
used a normal sized SD card.  You can also boot OpenBSD off USB instead of the
micro SD card (on the 4B).  I do that with a SSD on an adapter (but it's
slow).

Here is a gotcha that you may not know.  I have an old -current version from
December running.  The sound doesn't yet work with that version of OpenBSD
afaik and I've been using a soundserver on my other Pi (a B+ running raspbian)
over the network.  It works out well, Youtube works with iridium browser.

One more thing I've been using OpenBSD 25 years almost and the Raspberry Pi
setup is one of the hardest setups I've dealt with.  I'm not saying I'm a 
seasoned admin but I have quite a bit of experience, it once took me a full
day almost to figure out how to get OpenBSD on the Pi.  Patience is what
one needs to bring, a lot of it.  And good eyes to read the INSTALL doc.

This is probably the last time I'm doing RPi support as I'm rearrangeing my 
workspace for electricity savings and the Pi will be gone in March at the
latest (I'm reusing it with OSMC in the living room or something).  I hope
I was able to answer some questions.

> Thanks,
> Steve Williams
> 
> 

Best Regards,
-peter



Re: Considering a Raspberry Pi 4 Model B, but a bit lost...

2022-02-01 Thread pj

Am 02.02.22 um 06:42 schrieb Steve Williams:

4. Did some Raspberry Pi's come with a micro sd slot or something?
    There's mention of using a small SD card as well as having a USB
    device for OpenBSD... this doesn't seem to apply to Pi 4 B as there
    are only USB ports...


There are comparative RPi HW tables:
https://de.wikipedia.org/wiki/Raspberry_Pi#Hardware
or
https://en.wikipedia.org/wiki/Raspberry_Pi#Specifications



Considering a Raspberry Pi 4 Model B, but a bit lost...

2022-02-01 Thread Steve Williams

Hi,

I currently have a PC Engines APU2 that's been my central workhorse for 
quite a few years now.


I want to delve into cheaper systems for OpenBSD so I can have more of 
them around my house :D


I was considering a Raspberry Pi 4 Model B and  I have a couple of 
general questions:


1. When I read the install notes for arm64
   (https://www.openbsd.org/arm64.html), I see that it lists the
   Raspberry Pi 4.  Is a Raspberry Pi 4 Model B included in that category?
2. One of the kits I'm considering comes with at 128 G sd card with a
   USB Card reader.  Is that entire space on the sd card usable in
   OpenBSD?   I assume that the OS install can use the whole sd card,
   but don't want to make any assumptions at this point.
3. What is a popular reasonable quality wifi usb adapter that people use?
4. Did some Raspberry Pi's come with a micro sd slot or something? 
   There's mention of using a small SD card as well as having a USB
   device for OpenBSD... this doesn't seem to apply to Pi 4 B as there
   are only USB ports...

Thanks,
Steve Williams




Re: Raspberry Pi 4 Model B

2021-10-05 Thread Sandeep Gupta
My install setup uses both microSD and usb-attached SSD.
The microSD has UEFI boot loader and SSD has the miniroot.img.
Because there is two media, the installer which disks to install on.
I am not sure how to complete installation using only usb-attached SSD --
how to write both UEFI and bsd installer on usb. Should be feasible.

I was confused about the hostname -- if it is the location of the server
or the url to be given to machine. Thats why different entries.
I am not fiddling with setup anymore on now as well :).



On Tuesday, October 5, 2021, Peter J. Philipp  wrote:

> [inline below]
> On Mon, Oct 04, 2021 at 11:40:30PM +0530, Sandeep Gupta wrote:
> > Some progress. Thank you. Still stuck though. Post network
> > configuration,  The boot installer asks for
> > HTTP Server? (hostname or 'done').  hostname.
> > Server Directory? [pub/OpenBSD/7.0/arm64].
> >
> > It fails at this step:
> >
> > Unable to connect using https. Use http instead.
> > Looked at found no OpenBSD/arm64 7.0 sets.
>
> This may be connectivity related I dunno.  Is it true that you put the
> installer on the micro SD card and then installed on top of that same
> image?  At which point your installer needs flashing after every powercycle
> when it fails to install.





>
> When I installed I installed right on a USB disk and that's what I want to
> recommend to you too.  Either put the install media on a USB stick or on
> the sd card and install to USB stick.  With newer eeprom raspberry pi 4's
> can boot directly off USB.
>
> Then you'd have the install sets on disk media (may have to be mounted
> first
> but the installer will guide you through that, it asks if disk media is
> already
> mounted and if not asks you which disk it's on).
>
> Anyhow this is the safer alternative than downloading via http as I don't
> know if the snapshot installer can signify off any install media.
>
> I'm glad you're making so much progress.  It took me two days as well to
> get it to install the way I wanted, and now I'm reluctant to upgrade my
> snapshot from jul 21st because people are getting snagged on the installer
> a lot.  I'm likely going to wait until release 7.0 to upgrade it's only
> about
> a month away, since the rpi4 is my workstation for everyday use.
>
> Anyways, good luck!
>
>
> > I tried with pub/OpenBSD/snapshots/arm64. That didn't work either.
>
> hmmm.  Oh wait, are you entering "hostname" as in the example above?  I
> kinda
> missed that.  Try "cdn.openbsd.org" instead.  How did I not see this?
>
> [rest cut]
>
> Best Regards,
> -peter
>


Re: Raspberry Pi 4 Model B

2021-10-05 Thread Stuart Henderson
On 2021-10-05, Peter J. Philipp  wrote:
> a lot.  I'm likely going to wait until release 7.0 to upgrade it's only about
> a month away, since the rpi4 is my workstation for everyday use.

Likely sooner than that. I recommend you keep a copy of your existing
boot loader files as I had problems after an upgrade to the 26 Sept
snapshot which I couldn't figure out (which I resolved by installing
the pftf uefi firmware as I couldn't find a U-Boot version which
still worked - symptom was that the kernel booted but did not detect
USB devices, including the one with my filesystems on, so no userland).




Re: Raspberry Pi 4 Model B

2021-10-05 Thread Peter J. Philipp
[inline below]
On Mon, Oct 04, 2021 at 11:40:30PM +0530, Sandeep Gupta wrote:
> Some progress. Thank you. Still stuck though. Post network
> configuration,  The boot installer asks for
> HTTP Server? (hostname or 'done').  hostname.
> Server Directory? [pub/OpenBSD/7.0/arm64].
> 
> It fails at this step:
> 
> Unable to connect using https. Use http instead.
> Looked at found no OpenBSD/arm64 7.0 sets.

This may be connectivity related I dunno.  Is it true that you put the
installer on the micro SD card and then installed on top of that same
image?  At which point your installer needs flashing after every powercycle
when it fails to install.

When I installed I installed right on a USB disk and that's what I want to
recommend to you too.  Either put the install media on a USB stick or on
the sd card and install to USB stick.  With newer eeprom raspberry pi 4's
can boot directly off USB.

Then you'd have the install sets on disk media (may have to be mounted first
but the installer will guide you through that, it asks if disk media is already
mounted and if not asks you which disk it's on).

Anyhow this is the safer alternative than downloading via http as I don't
know if the snapshot installer can signify off any install media.

I'm glad you're making so much progress.  It took me two days as well to
get it to install the way I wanted, and now I'm reluctant to upgrade my
snapshot from jul 21st because people are getting snagged on the installer
a lot.  I'm likely going to wait until release 7.0 to upgrade it's only about
a month away, since the rpi4 is my workstation for everyday use.

Anyways, good luck!


> I tried with pub/OpenBSD/snapshots/arm64. That didn't work either.

hmmm.  Oh wait, are you entering "hostname" as in the example above?  I kinda
missed that.  Try "cdn.openbsd.org" instead.  How did I not see this?

[rest cut]

Best Regards,
-peter



Re: Raspberry Pi 4 Model B

2021-10-04 Thread Sandeep Gupta
Some progress. Thank you. Still stuck though. Post network
configuration,  The boot installer asks for
HTTP Server? (hostname or 'done').  hostname.
Server Directory? [pub/OpenBSD/7.0/arm64].

It fails at this step:

Unable to connect using https. Use http instead.
Looked at found no OpenBSD/arm64 7.0 sets.

I tried with pub/OpenBSD/snapshots/arm64. That didn't work either.



On Thu, Sep 30, 2021 at 11:48 AM Stuart Henderson  wrote:
>
> Change the server directory to /pub/OpenBSD/snapshots/arm64. We're in the 
> awkward time where the version number is just 7.0 so the installer thinks it 
> is a released version, but the release hasn't been made yet, and there is no 
> mechanism for the installer to fetch that information online, so you have to 
> do it manually.
>
> --
>   Sent from a phone, apologies for poor formatting.
>
>
> On 30 September 2021 03:18:36 Sandeep Gupta  wrote:
>>
>> This is my second attempt to install openBSD on RPI4. I write out the UEFI 
>> to sdcard and miniroot.img to usb-ssd drive which takes some 16MB of space. 
>> The rest I create a new fat32 partition. This works -- the boot loader kicks 
>> off the openBSD installer.
>> The installer after asking for disk partitions, reaches till installing 
>> sets.However,
>> it doesn't give me option to install bsd or bsd.rd (see attached pic below).
>>
>> Not sure if I am messing up the disk  partition where openbsd should be 
>> installed. I tried both sd1 and sd1a. But both end up having the same issue.
>>
>> -S
>>
>> On Wednesday, September 29, 2021, Stuart Henderson 
>>  wrote:
>> >
>> > On 2021-09-28, Peter J. Philipp  wrote:
>> > > On Tue, Sep 28, 2021 at 10:04:25AM -0700, Joseph Olatt wrote:
>> > >> I tried the following snapshot:
>> > >>
>> > >>   https://cdn.openbsd.org/pub/OpenBSD/snapshots/arm64/miniroot70.img
>> > >>
>> > >>   Build date: 27-Sep-2021 20:10
>> > >>   Size: 45088768
>> > >>
>> > >> Didn't have much luck. The install process rebooted after the following
>> > >> error:
>> > >>
>> > >>   bwfm0: failed loadfirmware of file 
>> > >> brcmfmac43455-sdio.raspberrypi,4-model-b.bin
>> > >>   panic: do_el0_error
>> > >
>> > > What happens when you boot with -c and 'disable bwfm' then exit?  Is 
>> > > that not
>> > > an option anymore?
>> >
>> > I am pretty sure the do_el0_error is unrelated to the loadfirmware() 
>> > failing
>> > (which is just because the firmware for the device isn't installed yet).
>> >
>> >
>
>



Re: Raspberry Pi 4 Model B

2021-09-30 Thread Stuart Henderson
Change the server directory to /pub/OpenBSD/snapshots/arm64. We're in the 
awkward time where the version number is just 7.0 so the installer thinks 
it is a released version, but the release hasn't been made yet, and there 
is no mechanism for the installer to fetch that information online, so you 
have to do it manually.


--
 Sent from a phone, apologies for poor formatting.

On 30 September 2021 03:18:36 Sandeep Gupta  wrote:
This is my second attempt to install openBSD on RPI4. I write out the UEFI 
to sdcard and miniroot.img to usb-ssd drive which takes some 16MB of space. 
The rest I create a new fat32 partition. This works -- the boot loader 
kicks off the openBSD installer.
The installer after asking for disk partitions, reaches till installing 
sets.However,

it doesn't give me option to install bsd or bsd.rd (see attached pic below).

Not sure if I am messing up the disk  partition where openbsd should be 
installed. I tried both sd1 and sd1a. But both end up having the same issue.


-S

On Wednesday, September 29, 2021, Stuart Henderson 
 wrote:


On 2021-09-28, Peter J. Philipp  wrote:
> On Tue, Sep 28, 2021 at 10:04:25AM -0700, Joseph Olatt wrote:
>> I tried the following snapshot:
>>
>>   https://cdn.openbsd.org/pub/OpenBSD/snapshots/arm64/miniroot70.img
>>
>>   Build date: 27-Sep-2021 20:10
>>   Size: 45088768
>>
>> Didn't have much luck. The install process rebooted after the following
>> error:
>>
>>   bwfm0: failed loadfirmware of file 
brcmfmac43455-sdio.raspberrypi,4-model-b.bin

>>   panic: do_el0_error
>
> What happens when you boot with -c and 'disable bwfm' then exit?  Is that not
> an option anymore?

I am pretty sure the do_el0_error is unrelated to the loadfirmware() failing
(which is just because the firmware for the device isn't installed yet).






Re: Raspberry Pi 4 Model B

2021-09-28 Thread Joseph Olatt
/RAMDISK
  real mem  = 4124962816 (3933MB)
  avail mem = 3961278464 (3777MB)
  random: good seed from bootblocks
  mainbus0 at root: Raspberry Pi 4 Model B Rev 1.4
  cpu0 at mainbus0 mpidr 0: ARM Cortex-A72 r0p3
  cpu0: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
  cpu0: 1024KB 64b/line 16-way L2 cache
  cpu0: CRC32,ASID16
  efi0 at mainbus0: UEFI 2.8
  efi0: Das U-Boot rev 0x20210700
  "system" at mainbus0 not configured
  "axi" at mainbus0 not configured
  simplebus0 at mainbus0: "soc"
  bcmclock0 at simplebus0
  bcmmbox0 at simplebus0
  bcmgpio0 at simplebus0
  bcmaux0 at simplebus0
  ampintc0 at simplebus0 nirq 256, ncpu 4: "interrupt-controller"
  syscon0 at simplebus0: "avs-monitor"
  "thermal" at syscon0 not configured
  bcmdmac0 at simplebus0: DMA0 DMA2 DMA4 DMA5 DMA6 DMA7 DMA8 DMA9
  "timer" at simplebus0 not configured
  pluart0 at simplebus0: console
  "local_intc" at simplebus0 not configured
  bcmdog0 at simplebus0
  bcmirng0 at simplebus0
  "firmware" at simplebus0 not configured
  "power" at simplebus0 not configured
  "mailbox" at simplebus0 not configured
  sdhc0 at simplebus0
  sdhc0: SDHC 3.0, 250 MHz base clock
  sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed
  "gpiomem" at simplebus0 not configured
  "fb" at simplebus0 not configured
  "vcsm" at simplebus0 not configured
  "clocks" at mainbus0 not configured
  "phy" at mainbus0 not configured
  "clk-27M" at mainbus0 not configured
  "clk-108M" at mainbus0 not configured
  simplebus1 at mainbus0: "emmc2bus"
  sdhc1 at simplebus1
  sdhc1: SDHC 3.0, 100 MHz base clock
  sdmmc1 at sdhc1: 8-bit, sd high-speed, mmc high-speed, ddr52, dma
  "arm-pmu" at mainbus0 not configured
  agtimer0 at mainbus0: 54000 kHz
  simplebus2 at mainbus0: "scb"
  bcmpcie0 at simplebus2
  pci0 at bcmpcie0
  bse0 at simplebus2: address e4:5f:01:40:4d:18
  brgphy0 at bse0 phy 1: BCM54210E 10/100/1000baseT PHY, rev. 2
  "dma" at simplebus2 not configured
  "hevc-decoder" at simplebus2 not configured
  "rpivid-local-intc" at simplebus2 not configured
  "h264-decoder" at simplebus2 not configured
  "vp9-decoder" at simplebus2 not configured
  "leds" at mainbus0 not configured
  "sd_io_1v8_reg" at mainbus0 not configured
  "sd_vcc_reg" at mainbus0 not configured
  "fixedregulator_3v3" at mainbus0 not configured
  "fixedregulator_5v0" at mainbus0 not configured
  simplebus3 at mainbus0: "v3dbus"
  "bootloader" at mainbus0 not configured
  scsibus0 at sdmmc1: 2 targets, initiator 0
  sd0 at scsibus0 targ 1 lun 0:  removable
  sd0: 30528MB, 512 bytes/sector, 62521344 sectors
  bwfm0 at sdmmc0 function 1
  manufacturer 0x02d0, product 0xa9a6 at sdmmc0 function 2 not configured
  manufacturer 0x02d0, product 0xa9a6 at sdmmc0 function 3 not configured
  softraid0 at root
  scsibus1 at softraid0: 256 targets
  root on rd0a swap on rd0b dump on rd0b
  WARNING: CHECK AND RESET THE DATE!
  gpio at bcmgpio0 not configured
  bwfm0: failed loadfirmware of file 
brcmfmac43455-sdio.raspberrypi,4-model-b.bin
  panic: do_el0_error
  syncing disks... done
  
  dump to dev 17,1 not possible
  rebooting...



Re: Raspberry Pi 4 Model B

2021-09-28 Thread Stuart Henderson
On 2021-09-28, Peter J. Philipp  wrote:
> On Tue, Sep 28, 2021 at 10:04:25AM -0700, Joseph Olatt wrote:
>> I tried the following snapshot:
>> 
>>   https://cdn.openbsd.org/pub/OpenBSD/snapshots/arm64/miniroot70.img
>> 
>>   Build date: 27-Sep-2021 20:10
>>   Size: 45088768
>> 
>> Didn't have much luck. The install process rebooted after the following
>> error:
>> 
>>   bwfm0: failed loadfirmware of file 
>> brcmfmac43455-sdio.raspberrypi,4-model-b.bin
>>   panic: do_el0_error
>
> What happens when you boot with -c and 'disable bwfm' then exit?  Is that not 
> an option anymore?

I am pretty sure the do_el0_error is unrelated to the loadfirmware() failing
(which is just because the firmware for the device isn't installed yet).




Re: Raspberry Pi 4 Model B

2021-09-28 Thread Peter J. Philipp
On Tue, Sep 28, 2021 at 10:04:25AM -0700, Joseph Olatt wrote:
> I tried the following snapshot:
> 
>   https://cdn.openbsd.org/pub/OpenBSD/snapshots/arm64/miniroot70.img
> 
>   Build date: 27-Sep-2021 20:10
>   Size: 45088768
> 
> Didn't have much luck. The install process rebooted after the following
> error:
> 
>   bwfm0: failed loadfirmware of file 
> brcmfmac43455-sdio.raspberrypi,4-model-b.bin
>   panic: do_el0_error

What happens when you boot with -c and 'disable bwfm' then exit?  Is that not 
an option anymore?


Best Regards,
-peter

PS: look lower at boot line below

> Wonder if the following error in the beginning (full transcript of
> install process listed below):  
> 
>   libfdt fdt_check_header(): FDT_ERR_BADMAGIC
> 
> has anything to do with my woes...
> 
> Next, I'll try the pftf UEFI firmware mentioned in INSTALL.arm64, per
> your suggestion, as soon as I find some spare time.
> 
> 
> /* Full transcript of install */
>   Connected to /dev/cuaU0 (speed 115200)
>   
>   
>   U-Boot 2021.07 (Aug 12 2021 - 02:45:29 -0600)
>   
>   DRAM:  3.9 GiB
>   RPI 4 Model B (0xc03114)
>   MMC:   mmcnr@7e30: 1, emmc2@7e34: 0
>   Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... 
> In:serial
>   Out:   serial
>   Err:   serial
>   Net:   eth0: ethernet@7d58
>   PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
>   starting USB...
>   Bus xhci_pci: Register 5000420 NbrPorts 5
>   Starting the controller
>   USB XHCI 1.00
>   scanning bus xhci_pci for devices... 2 USB Device(s) found
>  scanning usb for storage devices... 0 Storage Device(s) found
>   Hit any key to stop autoboot:  0 
>   switch to partitions #0, OK
>   mmc0 is current device
>   Scanning mmc 0:1...
>   libfdt fdt_check_header(): FDT_ERR_BADMAGIC
>   Card did not respond to voltage select! : -110
>   Scanning disk mm...@7e30.blk...
>   Disk mm...@7e30.blk not ready
>   Scanning disk em...@7e34.blk...
>   ** Unrecognized filesystem type **
>   Found 3 disks
>   No EFI system partition
>   BootOrder not defined
>   EFI boot manager: Cannot load any image
>   Found EFI removable media binary efi/boot/bootaa64.efi
>   170694 bytes read in 33 ms (4.9 MiB/s)
>   libfdt fdt_check_header(): FDT_ERR_BADMAGIC
>   Booting /efi\boot\bootaa64.efi
>   disks: sd0*
>   >> OpenBSD/arm64 BOOTAA64 1.6
>   boot> 

^ right here type -c or 'boot -c'



>   cannot open sd0a:/etc/random.seed: No such file or directory
>   booting sd0a:/bsd: 2574016+699492+13009456+629216 
> [216000+109+596472+233168]=0x14014c8
>   type 0x0 pa 0x0 va 0x0 pages 0x1 attr 0x8
>   type 0x7 pa 0x1000 va 0x1000 pages 0x1ff attr 0x8
>   type 0x2 pa 0x20 va 0x20 pages 0x4000 attr 0x8
>   type 0x7 pa 0x420 va 0x420 pages 0x3cf0 attr 0x8
>   type 0x9 pa 0x7ef va 0x7ef pages 0x20 attr 0x8
>   type 0x7 pa 0x7f1 va 0x7f1 pages 0x31ef0 attr 0x8
>   type 0x4 pa 0x39e0 va 0x39e0 pages 0x1 attr 0x8
>   type 0x7 pa 0x39e01000 va 0x39e01000 pages 0x1 attr 0x8
>   type 0x2 pa 0x39e02000 va 0x39e02000 pages 0x100 attr 0x8
>   type 0x1 pa 0x39f02000 va 0x39f02000 pages 0x2a attr 0x8
>   type 0x0 pa 0x39f2c000 va 0x39f2c000 pages 0x7 attr 0x8
>   type 0x4 pa 0x39f33000 va 0x39f33000 pages 0x1 attr 0x8
>   type 0x6 pa 0x39f34000 va 0x3d35274000 pages 0x1 attr 0x8008
>   type 0x4 pa 0x39f35000 va 0x39f35000 pages 0x2 attr 0x8
>   type 0x0 pa 0x39f37000 va 0x39f37000 pages 0x1 attr 0x8
>   type 0x6 pa 0x39f38000 va 0x3d35278000 pages 0x3 attr 0x8008
>   type 0x4 pa 0x39f3b000 va 0x39f3b000 pages 0x1 attr 0x8
>   type 0x6 pa 0x39f3c000 va 0x3d3527c000 pages 0x4 attr 0x8008
>   type 0x0 pa 0x39f4 va 0x39f4 pages 0x1 attr 0x8
>   type 0x4 pa 0x39f41000 va 0x39f41000 pages 0x1 attr 0x8
>   type 0x0 pa 0x39f42000 va 0x39f42000 pages 0x1 attr 0x8
>   type 0x4 pa 0x39f43000 va 0x39f43000 pages 0x2 attr 0x8
>   type 0x0 pa 0x39f45000 va 0x39f45000 pages 0x1 attr 0x8
>   type 0x4 pa 0x39f46000 va 0x39f46000 pages 0x2 attr 0x8
>   type 0x2 pa 0x39f48000 va 0x39f48000 pages 0x1408 attr 0x8
>   type 0x5 pa 0x3b35 va 0x3d3669 pages 0x10 attr 0x8008
>   type 0x2 pa 0x3b36 va 0x3b36 pages 0xa0 attr 0x8
>   type 0x0 pa 0x3ef5c000 va 0x3ef5c000 pages 0x1 attr 0x8
>   type 0x4 pa 0x4000 va 0x4000 pages 0xbc000 attr 0x8
>   type 0xb pa 0xfe10 va 0x3d366a pages 0x1 attr 0x8000
>   Copyright (c) 1982, 1986, 1989, 1991, 1993
>   The Regents of the University of California.  All rights reserved.
>   Copyright (c) 1995-2021 OpenBSD. All rights reserved.  
> https://www.OpenBSD.org
>   
>   OpenBSD 7.

Re: Raspberry Pi 4 Model B

2021-09-27 Thread Stuart Henderson
On 2021-09-26, Joseph Olatt  wrote:
> Hi Matheus and beebeet...@posteo.de,
>
> I have OpenBSD 6.9 successfully running on multiple Raspberry Pi 3Bs
> without any issues. The one that is having issues is a 4B. I am
> following the instructions at: 
>
>   https://ftp.openbsd.org/pub/OpenBSD/6.9/arm64/INSTALL.arm64
>
> and when I try to boot up, I get:

Try a snapshot instead, the newer U-Boot version might work better.
(There have been various hardware revisions of the Pi 4 model B).
You can also try the pftf UEFI firmware mentioned in INSTALL.arm64..

>   "Synchronous Abort" handler, esr 0x9644

this seems familiar from a machine (pi 400) that didn't work with U-Boot
at the time I tried it..




Re: Raspberry Pi 4 Model B

2021-09-26 Thread Joseph Olatt
Hi Matheus and beebeet...@posteo.de,

I have OpenBSD 6.9 successfully running on multiple Raspberry Pi 3Bs
without any issues. The one that is having issues is a 4B. I am
following the instructions at: 

  https://ftp.openbsd.org/pub/OpenBSD/6.9/arm64/INSTALL.arm64

and when I try to boot up, I get:


  Connected to /dev/cuaU0 (speed 115200)
  
  
  U-Boot 2021.01 (Apr 16 2021 - 15:39:01 +1000)
  
  DRAM:  3.9 GiB
  RPI 4 Model B (0xc03114)
  MMC:   mmcnr@7e30: 1, emmc2@7e34: 0
  Loading Environment from FAT... *** Warning - bad CRC, using default 
environment
  
  In:serial
  Out:   serial
  Err:   serial
  Net:   eth0: ethernet@7d58
  PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
  starting USB...
  Bus xhci_pci: probe failed, error -110
  No working controllers found
  Hit any key to stop autoboot:  0 
  switch to partitions #0, OK
  mmc0 is current device
  "Synchronous Abort" handler, esr 0x9644
  elr: 0009bca0 lr : 0009c8ac (reloc)
  elr: 3b377ca0 lr : 3b3788ac
  x0 : 616353206f686365 x1 : 000a
  x2 : 3b3d30e0 x3 : 0002
  x4 : 3af62410 x5 : 3af62430
  x6 : 0021 x7 : 3b3d30a0
  x8 : 3aff2a00 x9 : 0008
  x10: 3af61a20 x11: 3af66ca0
  x12:  x13: 0200
  x14: 3af4be78 x15: 0002
  x16: 4110 x17: 28c8348020481a20
  x18: 3af57da0 x19: 3af62420
  x20: 3af62420 x21: 0020
  x22: 3b3d30f0 x23: 3b3d3000
  x24: 0003 x25: 0030
  x26: 3af62410 x27: 
  x28: 3af61460 x29: 3af4abd0
  
  Code: 8b21cc42 f85f0440 a9010880 f9000844 (f9000c04) 
  Resetting CPU ...
  
  resetting ...

I downloaded following image from :

  https://cdn.openbsd.org/pub/OpenBSD/6.9/arm64/miniroot69.img

and copied it to a microSD card, on an OpenBSD desktop running 6.9
using the following command:

  doas dd if=miniroot69.img of=/dev/rsd5c bs=1m

Then, inserted the microSD card into the RPi4b and got the above error.
Not sure what the following means and if it is responsible for my woes:

  Bus xhci_pci: probe failed, error -110
  No working controllers found


Thank you.

joseph



On Sat, Sep 25, 2021 at 10:03:44AM -0300, Nenhum_de_Nos wrote:
> On Fri, September 24, 2021 16:51, Joseph Olatt wrote:
> > Hi,
> >
> > I'm trying to load OpenBSD on a Raspberry Pi 4 Model B and I'm not
> > having much luck. I've tried OpenBSD 6.9's miniroot69.img and the
> > install process does not go past the U-Boot prompt.
> >
> > I tried miniroot70.img from the snapshots directory, as of today, and
> > after displaying the following line:
> >
> >   bwfm0: failed loadfirmware of file
> > brcmfmac43455-sdio.raspberrypi,4-model-b.bin
> >
> > it reboots.
> >
> > Anybody else have success installing OpenBSD on this particular
> > hardware? Any insights or suggestions?
> >
> > Thank you.
> > joseph
> 
> Hi Joseph,
> 
> I followed https://ftp.openbsd.org/pub/OpenBSD/6.9/arm64/INSTALL.arm64 and
> got two Raspberry Pi (3B and 4B) running fine since 6.8:
> 
> OpenBSD 6.9 (GENERIC.MP) #2: Tue Aug 10 08:28:07 MDT 2021
> 
> r...@syspatch-69-arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
> real mem  = 479776 (3920MB)
> avail mem = 3952427008 (3769MB)
> random: good seed from bootblocks
> mainbus0 at root: Raspberry Pi 4 Model B Rev 1.1
> cpu0 at mainbus0 mpidr 0: ARM Cortex-A72 r0p3
> cpu0: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
> cpu0: 1024KB 64b/line 16-way L2 cache
> cpu0: CRC32,ASID16
> cpu1 at mainbus0 mpidr 1: ARM Cortex-A72 r0p3
> cpu1: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
> cpu1: 1024KB 64b/line 16-way L2 cache
> cpu1: CRC32,ASID16
> cpu2 at mainbus0 mpidr 2: ARM Cortex-A72 r0p3
> cpu2: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
> cpu2: 1024KB 64b/line 16-way L2 cache
> cpu2: CRC32,ASID16
> cpu3 at mainbus0 mpidr 3: ARM Cortex-A72 r0p3
> cpu3: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
> cpu3: 1024KB 64b/line 16-way L2 cache
> cpu3: CRC32,ASID16
> efi0 at mainbus0: UEFI 2.8
> efi0: Das U-Boot rev 0x20210100
> apm0 at mainbus0
> simplefb0 at mainbus0: 640x480, 32bpp
> wsdisplay0 at simplefb0 mux 1
> wsdisplay0: screen 0-5 added (std, vt100 emulation)
> "system" at mainbus0 not configured
> "axi" at mainbus0 not configured
> simplebus0 at mainbus0: "soc"
> bcmclock0 at simplebus0
> bcmmbox0 at simplebus0
> 
> matheus
> 
> -- 
> "We will call you Cygnus,
> the God of balance you shall be."



Re: Raspberry Pi 4 Model B

2021-09-25 Thread Nenhum_de_Nos
On Fri, September 24, 2021 16:51, Joseph Olatt wrote:
> Hi,
>
> I'm trying to load OpenBSD on a Raspberry Pi 4 Model B and I'm not
> having much luck. I've tried OpenBSD 6.9's miniroot69.img and the
> install process does not go past the U-Boot prompt.
>
> I tried miniroot70.img from the snapshots directory, as of today, and
> after displaying the following line:
>
>   bwfm0: failed loadfirmware of file
> brcmfmac43455-sdio.raspberrypi,4-model-b.bin
>
> it reboots.
>
> Anybody else have success installing OpenBSD on this particular
> hardware? Any insights or suggestions?
>
> Thank you.
> joseph

Hi Joseph,

I followed https://ftp.openbsd.org/pub/OpenBSD/6.9/arm64/INSTALL.arm64 and
got two Raspberry Pi (3B and 4B) running fine since 6.8:

OpenBSD 6.9 (GENERIC.MP) #2: Tue Aug 10 08:28:07 MDT 2021

r...@syspatch-69-arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem  = 479776 (3920MB)
avail mem = 3952427008 (3769MB)
random: good seed from bootblocks
mainbus0 at root: Raspberry Pi 4 Model B Rev 1.1
cpu0 at mainbus0 mpidr 0: ARM Cortex-A72 r0p3
cpu0: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu0: 1024KB 64b/line 16-way L2 cache
cpu0: CRC32,ASID16
cpu1 at mainbus0 mpidr 1: ARM Cortex-A72 r0p3
cpu1: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu1: 1024KB 64b/line 16-way L2 cache
cpu1: CRC32,ASID16
cpu2 at mainbus0 mpidr 2: ARM Cortex-A72 r0p3
cpu2: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu2: 1024KB 64b/line 16-way L2 cache
cpu2: CRC32,ASID16
cpu3 at mainbus0 mpidr 3: ARM Cortex-A72 r0p3
cpu3: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu3: 1024KB 64b/line 16-way L2 cache
cpu3: CRC32,ASID16
efi0 at mainbus0: UEFI 2.8
efi0: Das U-Boot rev 0x20210100
apm0 at mainbus0
simplefb0 at mainbus0: 640x480, 32bpp
wsdisplay0 at simplefb0 mux 1
wsdisplay0: screen 0-5 added (std, vt100 emulation)
"system" at mainbus0 not configured
"axi" at mainbus0 not configured
simplebus0 at mainbus0: "soc"
bcmclock0 at simplebus0
bcmmbox0 at simplebus0

matheus

-- 
"We will call you Cygnus,
the God of balance you shall be."



Re: Raspberry Pi 4 Model B

2021-09-25 Thread Peter J. Philipp
On Fri, Sep 24, 2021 at 03:07:12PM -0600, Andrew Klaus wrote:
> Have you read the Raspberry Pi instructions from
> https://ftp.openbsd.org/pub/OpenBSD/6.9/arm64/INSTALL.arm64 ?
> 
> What does your UART output show after it boots?
> 
> Andrew

Apologies I lost the OP's mail.  But this is what helped me a great deal
installing OpenBSD on my rpi4b:

https://marc.info/?l=openbsd-misc=160708819221625=2

It has to be concisely read, and if you do it will work.  Some things are
newer now like the eeprom.  I'd say just improvise or install and upgrade.

I must confess it didn't work for me the first day, upon the second day I got
it to work though.  And upgrading I've always done manually and made sure
the firmware wasn't overwritten, I have several backups of this on my disk, and
it happened once where I bricked booting OpenBSD.  But that was fixed by
fixing the USB3 disk with my laptop (amd64) the byte order is the same 
thankfully.

Best of luck!
-peter

> On Fri, Sep 24, 2021 at 2:45 PM Joseph Olatt  wrote:
> 
> > Hi,
> >
> > I'm trying to load OpenBSD on a Raspberry Pi 4 Model B and I'm not
> > having much luck. I've tried OpenBSD 6.9's miniroot69.img and the
> > install process does not go past the U-Boot prompt.
> >
> > I tried miniroot70.img from the snapshots directory, as of today, and
> > after displaying the following line:
> >
> >   bwfm0: failed loadfirmware of file
> > brcmfmac43455-sdio.raspberrypi,4-model-b.bin
> >
> > it reboots.
> >
> > Anybody else have success installing OpenBSD on this particular
> > hardware? Any insights or suggestions?
> >
> > Thank you.
> > joseph
> >
> >



Re: Raspberry Pi 4 Model B

2021-09-24 Thread beebeetles





I'm trying to load OpenBSD on a Raspberry Pi 4 Model B and I'm not
having much luck. I've tried OpenBSD 6.9's miniroot69.img and the
install process does not go past the U-Boot prompt.



I was able to install OpenBSD 6.9 on that hardware. What issue did
you encounter?



Raspberry Pi 4 Model B

2021-09-24 Thread Joseph Olatt
Hi,

I'm trying to load OpenBSD on a Raspberry Pi 4 Model B and I'm not
having much luck. I've tried OpenBSD 6.9's miniroot69.img and the
install process does not go past the U-Boot prompt.

I tried miniroot70.img from the snapshots directory, as of today, and
after displaying the following line: 

  bwfm0: failed loadfirmware of file 
brcmfmac43455-sdio.raspberrypi,4-model-b.bin

it reboots.

Anybody else have success installing OpenBSD on this particular
hardware? Any insights or suggestions?

Thank you.
joseph



Re: Raspberry Pi 4 Model B

2021-09-24 Thread Andrew Klaus
Have you read the Raspberry Pi instructions from
https://ftp.openbsd.org/pub/OpenBSD/6.9/arm64/INSTALL.arm64 ?

What does your UART output show after it boots?

Andrew

On Fri, Sep 24, 2021 at 2:45 PM Joseph Olatt  wrote:

> Hi,
>
> I'm trying to load OpenBSD on a Raspberry Pi 4 Model B and I'm not
> having much luck. I've tried OpenBSD 6.9's miniroot69.img and the
> install process does not go past the U-Boot prompt.
>
> I tried miniroot70.img from the snapshots directory, as of today, and
> after displaying the following line:
>
>   bwfm0: failed loadfirmware of file
> brcmfmac43455-sdio.raspberrypi,4-model-b.bin
>
> it reboots.
>
> Anybody else have success installing OpenBSD on this particular
> hardware? Any insights or suggestions?
>
> Thank you.
> joseph
>
>