9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] Pi 4 Compute Module + IO Board Issues
@ 2021-02-21  0:41 Thaddeus Woskowiak
  2021-02-21 18:36 ` cinap_lenrek
  0 siblings, 1 reply; 4+ messages in thread
From: Thaddeus Woskowiak @ 2021-02-21  0:41 UTC (permalink / raw)
  To: 9front

Evening,
I just received my Pi4 compute module and accompanying IO board and I
flashed it with the latest test images cinap posted. The compute
module is part number CM4002008: 2GB RAM, 8GB EMMC, No wireless.

The first roadblock is the USB appears to be non functional as no hubs
are reported and the keyboard and mouse do not work.
http://9systems.org/img/pi_4_compute_9boot.jpg

I hooked up a serial console and pressed enter at the boot prompt to
see what happens and I get the same list of emmc errors printed. I'll
have to try tls booting but I don't yet have a disk server configured.
http://okturing.com/src/10469/body

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9front] Pi 4 Compute Module + IO Board Issues
  2021-02-21  0:41 [9front] Pi 4 Compute Module + IO Board Issues Thaddeus Woskowiak
@ 2021-02-21 18:36 ` cinap_lenrek
  2021-02-22 13:48   ` Thaddeus Woskowiak
  0 siblings, 1 reply; 4+ messages in thread
From: cinap_lenrek @ 2021-02-21 18:36 UTC (permalink / raw)
  To: 9front

> The first roadblock is the USB appears to be non functional as no hubs
> are reported and the keyboard and mouse do not work.
> http://9systems.org/img/pi_4_compute_9boot.jpg

yeah, we went thru this with the pi400 and it turned out to be some
new assumptions of the xhci firmware load procedure by the firmware.

i might have forgoten to update the firmware files and dtb's during
the build?

can you check the files under:

https://github.com/raspberrypi/firmware/raw/master/boot

and see if adding the dtb: bcm2711-rpi-cm4.dtb (currently missing)

and newer versions of: bootcode.bin fixup_cd.dat start_cd.elf fixup4cd.dat start4cd.elf

(see /sys/src/boot/bcm/mkfile)

the image has a fat partition that you should be able to modify
from anywhere... just copy the files into it.

> I hooked up a serial console and pressed enter at the boot prompt to
> see what happens and I get the same list of emmc errors printed. I'll
> have to try tls booting but I don't yet have a disk server configured.
> http://okturing.com/src/10469/body

that is alot harder to debug without a fileserver. once we have
usb working, you could at least boot into a filesystem on the
usb drive...

good luck

--
cinap

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9front] Pi 4 Compute Module + IO Board Issues
  2021-02-21 18:36 ` cinap_lenrek
@ 2021-02-22 13:48   ` Thaddeus Woskowiak
  2021-02-22 23:11     ` cinap_lenrek
  0 siblings, 1 reply; 4+ messages in thread
From: Thaddeus Woskowiak @ 2021-02-22 13:48 UTC (permalink / raw)
  To: 9front

On Sun, Feb 21, 2021 at 2:43 PM <cinap_lenrek@felloff.net> wrote:
>
> > The first roadblock is the USB appears to be non functional as no hubs
> > are reported and the keyboard and mouse do not work.
> > http://9systems.org/img/pi_4_compute_9boot.jpg
>
> yeah, we went thru this with the pi400 and it turned out to be some
> new assumptions of the xhci firmware load procedure by the firmware.
>
> i might have forgoten to update the firmware files and dtb's during
> the build?
>
> can you check the files under:
>
> https://github.com/raspberrypi/firmware/raw/master/boot
>
> and see if adding the dtb: bcm2711-rpi-cm4.dtb (currently missing)
>
> and newer versions of: bootcode.bin fixup_cd.dat start_cd.elf fixup4cd.dat start4cd.elf
>
> (see /sys/src/boot/bcm/mkfile)
>
> the image has a fat partition that you should be able to modify
> from anywhere... just copy the files into it.

I downloaded all the latest firmware files from the git repo and
unfortunately no USB. Just to clarify, this board lacks USB 3.0 and
only has two 2.0 ports. The PCIe port is instead broken out to a
standard x1 slot.

Additionally, this pi uses emmc in place of an sd card. There is a
jumper that puts the board into usb boot mode and you use a program to
load the pi boot binaries over usb. That puts the emmc into mass
storage mode and it shows up as a block device.
https://github.com/raspberrypi/usbboot (emmcfs when...)

> > I hooked up a serial console and pressed enter at the boot prompt to
> > see what happens and I get the same list of emmc errors printed. I'll
> > have to try tls booting but I don't yet have a disk server configured.
> > http://okturing.com/src/10469/body
>
> that is alot harder to debug without a fileserver. once we have
> usb working, you could at least boot into a filesystem on the
> usb drive...
>
> good luck
>
> --
> cinap

I got tcp boot going yesterday and was able to boot the pi. I have a
sysinfo if that helps any: http://okturing.com/src/10480/body

Pointless yet fun things to add:
Just for the hell of it I gave doom a shot. Of course without USB I
lost input from the serial console.
http://9systems.org/img/pi4computedoom.jpg

The kernel sees an NVMe disk plugged into PCIe but no drivers of
course. That would be a fun alternative to emmc.
http://9systems.org/img/pi4computenvme.jpg

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9front] Pi 4 Compute Module + IO Board Issues
  2021-02-22 13:48   ` Thaddeus Woskowiak
@ 2021-02-22 23:11     ` cinap_lenrek
  0 siblings, 0 replies; 4+ messages in thread
From: cinap_lenrek @ 2021-02-22 23:11 UTC (permalink / raw)
  To: 9front

> I downloaded all the latest firmware files from the git repo and
> unfortunately no USB. Just to clarify, this board lacks USB 3.0 and
> only has two 2.0 ports. The PCIe port is instead broken out to a
> standard x1 slot.

ah! that explains it.

the pi4 kernel does not include the usbdwc controller driver.
it is pretty easy to add tho in the kernel config file,
it is already used in the pi3 kernel which is also arm64.

--
cinap

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-22 23:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-21  0:41 [9front] Pi 4 Compute Module + IO Board Issues Thaddeus Woskowiak
2021-02-21 18:36 ` cinap_lenrek
2021-02-22 13:48   ` Thaddeus Woskowiak
2021-02-22 23:11     ` cinap_lenrek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).