FreeBSD for Edge / Edge-V

Technically the freebsd image should just use mainline uboot and grub.

And with that you don’t need Android bootloader.

My first advice would be to get the uart to work on Android so you know the you’re getting output over uart. Then later try the freebsd image.

1 Like

—> Technically the freebsd image should just use mainline uboot and grub.

grub with FreeBSD ? I didn’t know it existed ;

I’m not sure that a generic freebsd image,not patched by sleepwalker, would work decently on the Khadas.

I’m trying to upgrade the Sleep Walker image from 13,that now is EOL , to 14.2. This is what I did. I’ve exchanged these components (removed them from the KHADAS Edge and used the same components taken from my RockPro RK3399) :

a) the userland (with the panfrost driver enabled)
b) the kernel and the modules

What I haven’t touched on FreeBSD 13.0 for the Edge is the boot and the dtb directories.

How much stable is a system like this ? Judge by yourself :

Ubuntu Pastebin

pastebin.ubuntu.com pastebin.ubuntu.com

You will see that the kernel that I’m using (14.2) does not accept some important kernel modules,such as :

  1. hms.ko : I can’t move the mouse
  2. hcons.ko
  3. hsctrl.ko
  4. dwwdt.ko
  5. hsctrl.ko

is able to reach the login prompt,but can’t be used because the missing kernel drivers.

I have no idea about how to recompile the kernel and the world without using the patches used by the author of FreeBSD 13. Without that patches,how can I recompile a new kernel that can accept the kernel modules that you see above ?

I’m not sure that everything will work if I use the source code of FreeBSD 14.3 from the mainline…

Generic image will not work. As it does not contain a bootloader.

You will need patches to make it work smoothly on rockchip.

Maybe @SleepWalker can check or you can use his source to build new image with latest freebsd.

I’ve not spent much time on arm board since long time. Not having Mainline support is the reason I didn’t invest much time.

Try it yourself and ask back here.

Unfortunately I don’t know the reasons but @SleepWalker never replied to me. I can’t try by myself…I don’t have his patches. And I can’t reinvent the wheel. Without his patches,nothing will be done by me to upgrade 13.0 to 14.2.

PS : I read somewhere that the src of FreeBSD 13 for the KHADAS EDGE is available,but where is ? I would like to enable the panfrost driver.