Support for BSD

Moderators: mdrjr, odroid

Support for BSD

Unread postby arrigo » Wed Jan 31, 2018 8:01 pm

Hi,

I am looking at a number of ARM devices to replace low-usage Intel systems I have in data centres which I would like to move in-house and the ideal replacement would be the ODROID-HC2 with a suitable HDD or SDD (they are all mail servers or low/medium traffic web servers). Unfortunately one of the key requirements is that one of the BSDs is supported (FreeBSD/NetBSD/OpenBSD) and currently I do not see suitable images for them.

Does anyone run BSD on ODROID SBCs, in particular the ones with a SATA port?

Thank you,

Arrigo
arrigo
 
Posts: 5
Joined: Fri Jan 19, 2018 11:09 pm
languages_spoken: english,italian,french,spanish

Re: Support for BSD

Unread postby crashoverride » Thu Feb 01, 2018 5:09 pm

On XU4, HC-x, MC-x you should be able to run FreeBSD (armv7) or any mainline linux kernel under the XEN hypervisor. I have not personally tested this but after installing XEN, any OS that supports it should be usable in a DOM-U and possibly even as DOM-0 on boards running "headless". There is no official support for this that I am aware of.
crashoverride
 
Posts: 3993
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Support for BSD

Unread postby arrigo » Thu Feb 01, 2018 6:19 pm

Running under Xen is not really ideal but could be an interim solution - does anyone know if Hardkernel has reached out to the BSD community? They are very actively porting to aarch64 (ARM64) with a solid Raspberry Pi 3 port and a growing PINE64 port. The Hardkernel hardware is rather more interesting, especially concerning NAS usage, where a dual-SATA HC4 so that you can run FreeBSD with ZFS would be ideal.

Is there any chance you could send demo hardware to the FreeBSD/OpenBSD people? They are all at FOSDEM if Hardkernel has any representation there.
arrigo
 
Posts: 5
Joined: Fri Jan 19, 2018 11:09 pm
languages_spoken: english,italian,french,spanish

Re: Support for BSD

Unread postby elatllat » Sat Feb 10, 2018 4:17 pm

mouseless wrote:
...My personal favourite would also be the RK3399, but for different reasons:

This SOC has openBSD support.

Sure, this hasn't been mentioned much in this thread, but that is because there has never been much cooperation between HK and BSD. I'm sure if the proper booting software & licences would be provided, BSD support would be added quickly. OpenBSD even support the Raspberry 3, though it only runs on 1.2GHz/1GB RAM and 100Bit ethernet :cry:...

Odroid-N1 is using RK3399.

crashoverride might be correct even though I don't find this quote compelling;
crashoverride wrote:
mouseless wrote:I bet you yourself wouldn't want an odroid if linux there was only running inside a windows vm.

I am not the only one that you would lose that bet with. :D

These days, nobody runs BSD bare metal. Even "big metal" uses hypervisors now. In the case of a router or firewall, its preferred to run in a VM so that it can easily be maintained, monitored, security mitigated, restarted, etc. For any professional/business use, a VM is mandatory....
elatllat
 
Posts: 1043
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1

Re: Support for BSD

Unread postby rooted » Sun Feb 11, 2018 12:51 am

I agree, as long as the VM gives adequate performance I don't see any issue. I have that old school attitude of wanting to run the OS on 'bare metal' as well but VM's are the way to go for a lot of things that previously were done by dedicated hardware.
User avatar
rooted
 
Posts: 5591
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: Support for BSD

Unread postby arrigo » Mon Feb 12, 2018 3:20 am

I'm very sorry but, as a security practitioner, running in a VM what I want to run securely is not an option. The underlying OS, i.e. Linux, does not give me the security guarantees I need for my application.

Nobody in their sane mind runs serious FreeBSD installations (e.g. database servers) in a VM, it would be quite stupid to run ZFS on anything but bare metal disks. I'm pretty sure that Netflix, which runs their whole service on FreeBSD, runs on bare metal…

So no, I am interested in running BSD bare-metal and not within a Linux VM. If this is of no interest I can look elsewhere, I am still trying to find replacements for my Intel servers and had considered the HC1 but I notice that competitors are also coming up with ARM-based boards which support SATA, some directly on-board, others via PCIe.
arrigo
 
Posts: 5
Joined: Fri Jan 19, 2018 11:09 pm
languages_spoken: english,italian,french,spanish

Re: Support for BSD

Unread postby elatllat » Mon Feb 12, 2018 11:16 am

I'll let you know how OpenBSD runs on the N1 whenever shipping gets it to me. I'll try the img / instructions here; https://www.openbsd.org/arm64.html
elatllat
 
Posts: 1043
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1

Re: Support for BSD

Unread postby Ronaldleess » Tue Mar 20, 2018 12:10 am

http://www.netbsd.org/~jmcneill/odroidxu4.txt

So, Mr Jared has the XU4 booting to multi-user with NetBSD. The guy is amazing. I haven't seen anything more about this however; so there must be some stumbling block. Maybe the exynos ethersphere is too tightly controlled with NDA etc.

That's what makes me think that a BSD port to Rockchip / Odroid N1 is more likely, more quickly, since there already is a port for a previous version.
I am The Umbrella Man
Ronaldleess
 
Posts: 57
Joined: Wed May 24, 2017 6:52 am
languages_spoken: english
ODROIDs: XU4 C1 C1+

Re: Support for BSD

Unread postby Seb » Wed Aug 08, 2018 8:15 pm

I'm also interested in seeing FreeBSD run on these devices. Have you tried cross-compiling from an FreeBSD/amd64 system? That's probably your best bet. I'm using a server, running FreeBSD on bare metal funnily enough... currently in the middle of `svn checkout svn://svn.freebsd.org/base/head src`... gah, so boring. Eh, I could run it on this machine, but then I probably can't watch youtube while I'm running it.

If anyone here has tried something, what went wrong? Maybe we can help... I only ever successfully failed at porting the dark mod to armv7... but let's see...

I'm going to go ahead and assume 0x90800000 is our `loadaddr` -- <https://github.com/hardkernel/u-boot/commit/06982534b65f4ceddd124d0467c89dd7adf6d445>... so if you're following this guide you'll want to use `make buildworld TARGET_ARCH=armv7 UBLDR_LOADADDR=0x90800000 __MAKE_CONF=/dev/null srcconf=/dev/null -j6` (revise -j6) instead of `make buildworld TARGET_ARCH=armv6` and okay my world is BUILDING. So boring!

Welp, I'm going to watch youtube... I'll report back when I have details to share.
Seb
 
Posts: 9
Joined: Sun Jul 16, 2017 3:36 am
languages_spoken: english


Return to Other OS

Who is online

Users browsing this forum: No registered users and 2 guests