Hi Mark.

On Fri, 23 May 2025 23:41:17 +0200
Mark Kettenis <mark.kette...@xs4all.nl> wrote:

> > Date: Fri, 23 May 2025 22:00:41 +0200
> > From: Andrea Biscuola <a...@abiscuola.com>
> > 
> > Hi all.
> > 
> > I'm working on trying to get OpenBSD to boot on the new C5. As of
> > now, I have a u-boot fimware for the board built.
> > 
> > Given that I'm a newbie into this, advices and suggestions are
> > appreciated :).
> > 
> > Anyway, the board looks cool. It has a decent increase in
> > performances compared to the C4 and I'm curious to see how it will
> > compare to my hc4 (that BTW, works rather well with OpenBSD).
> > 
> > Of course, being ARM what it is, for the C5 che boot sequence
> > changed, nothing dramatic, but weird enough that, as usual, any
> > trick for the C4/HC4 doesn't work at all.
> > 
> > I'll post updates if I'll make any progress.
> > 
> > Cheers!
> 
> Well, if you get to the point where you can run the OpenBSD bootloader
> but you don't see anything after loading the OpenBSD kernel, you
> probably need something like the diff below.
> 
> 
> Index: dev/fdt/amluart.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/fdt/amluart.c,v
> diff -u -p -r1.4 amluart.c
> --- dev/fdt/amluart.c 15 Jul 2022 17:14:49 -0000      1.4
> +++ dev/fdt/amluart.c 23 May 2025 21:32:11 -0000
> @@ -119,7 +119,8 @@ amluart_init_cons(void)
>       struct fdt_reg reg;
>       void *node;
>  
> -     if ((node = fdt_find_cons("amlogic,meson-gx-uart")) == NULL)
> +     if ((node = fdt_find_cons("amlogic,meson-gx-uart")) == NULL &&
> +         (node = fdt_find_cons("amlogic,meson-s4-uart")) == NULL)
>               return;
>       if (fdt_get_reg(node, 0, &reg))
>               return;
> @@ -132,7 +133,8 @@ amluart_match(struct device *parent, voi
>  {
>       struct fdt_attach_args *faa = aux;
>  
> -     return OF_is_compatible(faa->fa_node, "amlogic,meson-gx-uart");
> +     return (OF_is_compatible(faa->fa_node, "amlogic,meson-gx-uart") ||
> +         OF_is_compatible(faa->fa_node, "amlogic,meson-s4-uart"));
>  }
>  
>  void

Quite likely.

I need to get an EMMC reader, as the partition layout on the SD card appears to
requires a different incantation compared to the EMMC one and I haven't figured
it out yet.

Hardkernel will also restart shipping the C4 in July, so I'll also get some of 
those
(I'm building a new homelab).

Not sure of other brands that I could consider to diversify.

-- absc

Reply via email to