FreeBSD for Edge / Edge-V

FreeBSD for Khadas Edge SBCs

Thankful appreciation to the efforts of @hyphop and @SleepWalker, who spent the last few weeks making FreeBSD compatible with the Edge and Edge-V!

DEVICES

REQUIREMENTS

  • Edge / Edge-V with at least 4GB of RAM
  • 8GB of larger micro SD card

INSTALLATION VIDEO


YouTube: https://youtu.be/ml2e6w8msfk

BOOTABLE SD IMAGE

https://dl.khadas.com/Firmware/Edge/FreeBSD/

An example of downloading and writing the image to an SD card.

cd /tmp
wget https://dl.khadas.com/Firmware/Edge/FreeBSD/EDGE-FreeBSD-20191022-2342.img.gz
gzip -dc EDGE-FreeBSD-20191022-2342.img.gz | sudo dd bs=1M of=/dev/YOUR_SD_CARD_DEVICE
sync

NOTE: Erase internal emmc before booting from the SD card!

STATUS

  • FreeBSD 13.0-CURRENT
  • mainline uboot U-Boot TPL 2019.10-rc3
  • bootup from SD
  • eth OK
  • uart OK
  • emmc OK
  • sd OK
  • USB 2.0 OK
  • USB HID OK
  • USB DISK OK

TO DO

  • USB 3.0
  • HDMI
  • DRM
  • NVme m2
  • boot from eMMC

ABOUT FREEBSD

FreeBSD is a free and open-source Unix-like operating system descended from the Berkeley Software Distribution (BSD), which was based on Research Unix. The first version of FreeBSD was released in 1993. In 2005, FreeBSD was the most popular open-source BSD operating system, accounting for more than three-quarters of all installed BSD systems.

FreeBSD has similarities with Linux, with two major differences in scope and licensing: FreeBSD maintains a complete system, i.e. the project delivers a kernel, device drivers, userland utilities, and documentation, as opposed to Linux only delivering a kernel and drivers, and relying on third-parties for system software; and FreeBSD source code is generally released under a permissive BSD license, as opposed to the copyleft GPL used by Linux.

The FreeBSD project includes a security team overseeing all software shipped in the base distribution. A wide range of additional third-party applications may be installed using the pkg package management system or FreeBSD Ports, or by compiling source code.

Due to its licensing, much of FreeBSD’s codebase has become an integral part of other operating systems, such as Apple’s Darwin (the basis for macOS, iOS, watchOS, and tvOS), FreeNAS (an open-source NAS/SAN operating system), and the system software for Sony’s PlayStation 3 and PlayStation 4.

FREEBSD LINKS

6 Likes

The original thread is over here: BSD for Khadas EDGE (RK3399)
Russian version: Поддержка русскоязычных пользователей

1 Like

Bravo Khadas community!! You are the first RK3399 board running FreeBSD although USB 3.0 and PCIE need to be done in order to do more useful work.
kudos to @SleepWalker 's continues effort to make the freebsd port work. This should be the headline for Freebsd community too and may be list on their coming 12.1 (November 1) release note to celebrate

5 Likes

This is good news @SleepWalker great work and effort.

1 Like

CHANGES: from @SleepWalker

  • usb 3.0 - fixed - OK (usb 3.0 card reader tested - works fine )

LAST IMAGE:

https://dl.khadas.com/Firmware/Edge/FreeBSD/EDGE-FreeBSD-20191026.img.gz

3 Likes

@hyphop thanks for the heads up. The SPI driver should works too, I think the next thing is NVMe driver

but not work yet :wink: may be on next build

1 Like