chalbersma
Posts: 1
Joined: Sun Jul 20, 2014 11:16 pm

FreeBSD 10 on B+

Mon Jul 21, 2014 6:58 pm

Just got a RPI for the first time and it's awesome. :). Does anyone have any experience getting FBSD 10 running on a B+?

johnconnett
Posts: 2
Joined: Mon Aug 04, 2014 12:52 pm

Re: FreeBSD 10 on B+

Mon Aug 04, 2014 1:28 pm

I've also just received a RPI B+.

Boots successfully into NOOBS v1.3.8 - Built: Jun 20 2014 with Wireless USB keyboard+mouse (Logitech Unifying), HDMI and Ethernet.

Uncompressed and used dd(1) to copy ftp://ftp.freebsd.org/pub/FreeBSD/snaps ... 71.img.bz2 to the start of a Samsung EVO microSDHC UHS-I Card (32Gb). Inserted it and plugged in the power connector. Green LED lit for about a second. Red LED stays on. Nothing on the monitor ...

Am I making an obvious mistake?

Any recommendations for a known-to-work image for the B+?

User avatar
RaTTuS
Posts: 10365
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: FreeBSD 10 on B+

Mon Aug 04, 2014 2:18 pm

try the latest noobs
NOOBS
Offline and network install
Version:1.3.9
Release date:2014-07-08
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: FreeBSD 10 on B+

Mon Aug 04, 2014 2:26 pm

I've no familiarity with FreeBSD, but it's possible that the RPi firmware they're using isn't new enough to support the modifications on the B+ ? Only way to be sure will be to ask the FreeBSD developers.

Or you could try copying bootcode.bin and start.elf from https://github.com/raspberrypi/firmware ... aster/boot to the FAT partition on your SD card, and see if that gets you any further?

johnconnett
Posts: 2
Joined: Mon Aug 04, 2014 12:52 pm

Re: FreeBSD 10 on B+

Mon Aug 04, 2014 2:36 pm

Good news is that if I connect the power and then connect the HDMI there is some activity on the screen and it will sometimes boot to a FreeBSD login prompt. However, neither the USB nor the Ethernet ports appear to be working which suggests that the kernel may be lacking drivers for these devices. Will do some more digging ...

User avatar
RaTTuS
Posts: 10365
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: FreeBSD 10 on B+

Mon Aug 04, 2014 2:44 pm

johnconnett wrote:Good news is that if I connect the power and then connect the HDMI there is some activity on the screen and it will sometimes boot to a FreeBSD login prompt. However, neither the USB nor the Ethernet ports appear to be working which suggests that the kernel may be lacking drivers for these devices. Will do some more digging ...
it will be the firmware
as the LAn9514 chip is now driven by a GPIO from the SOC and not an external crystal
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

balanga
Posts: 118
Joined: Sat Aug 23, 2014 6:56 pm

Re: FreeBSD 10 on B+

Sat Aug 23, 2014 8:22 pm

I can confirm that the system starts to boot without HDMI connected, but stops when it is connected...

Erich Dollansky
Posts: 1
Joined: Fri Aug 29, 2014 1:16 pm

Re: FreeBSD 10 on B+

Fri Aug 29, 2014 1:22 pm

Hi,

yes, the normal images of FreeBSD do not work on a Raspberry B+. What works for me are the images from the link mentioned here:

http://lists.freebsd.org/pipermail/free ... 08872.html

Erich

BigJacobus
Posts: 7
Joined: Sat Sep 13, 2014 9:47 pm

Re: FreeBSD 10 on B+

Sat Sep 13, 2014 9:56 pm

You can get FreeBSD on the B+ pretty easy. After picking up the download for FreeBSD from either source at the bottom of this page https://wiki.freebsd.org/FreeBSD/arm/Raspberry%20Pi. You will then want to pick up start.elf and bootcode.bin from this page https://github.com/raspberrypi/firmware ... aster/boot. Write your FreeBSD image to your SD then replace the files for the firmware afterwards. This will allow the B+ to boot FreeBSD. Now if I could only install pkg :-).

kd7mlg
Posts: 2
Joined: Wed Oct 08, 2014 1:20 am

Re: FreeBSD 10 on B+

Wed Oct 08, 2014 1:27 am

So, I got FreeBSD 10.1-RC1 to boot and run on B+ after some headbanging.

I took the distributed image from the ftp.freebsd.org site, and had to get bootcode.bin and start.elf from the current Raspbian distribution in order to get it to boot. Then I had to repeatedly power-cycle until I got a good boot so I could update the /boot/loader.conf file - now it boots flawlessly.

However. I only see a fraction of the 512MB RAM (off the top of my head, 128MB - could be 256MB, but I'm at work now and don't remember). I tried a couple of different values for gpu_mem and didn't seem to affect this.

Also, it is not very usable for a variety of reasons, no native packages, a pain to get ports to compile, and VLANs don't appear to work. But as the first step in a test I'm happy.

kd7mlg
Posts: 2
Joined: Wed Oct 08, 2014 1:20 am

Re: FreeBSD 10 on B+

Wed Oct 08, 2014 7:00 am

I took the distributed image from the ftp.freebsd.org site, and had to get bootcode.bin and start.elf from the current Raspbian distribution in order to get it to boot. Then I had to repeatedly power-cycle until I got a good boot so I could update the /boot/loader.conf file - now it boots flawlessly.

However. I only see a fraction of the 512MB RAM (off the top of my head, 128MB - could be 256MB, but I'm at work now and don't remember). I tried a couple of different values for gpu_mem and didn't seem to affect this.
Operator error. I wasn't downloading the firmware from github, I was downloading some kind of HTML.

With that error corrected I'm seeing all 512MB (or most of it anyway), and building packages is going much better.

Recap: download RPI-B image here, update firmware files from here (i.e. bootcode.bin and start.elf), all set.

no9
Posts: 5
Joined: Wed Oct 08, 2014 10:24 pm

Re: FreeBSD 10 on B+

Wed Oct 22, 2014 12:22 pm

Update on https://wiki.freebsd.org/FreeBSD/arm/Raspberry%20Pi says that B+ is now supported as of the 18th Oct 2014 :) Will take it for a drive and report back.

no9
Posts: 5
Joined: Wed Oct 08, 2014 10:24 pm

Re: FreeBSD 10 on B+

Wed Oct 22, 2014 8:12 pm

I can confirm that using the latest files from https://github.com/raspberrypi/firmware ... aster/boot
as instructed above
I now have a network connection :)
Let the games begin!!

pragmb
Posts: 2
Joined: Mon Oct 27, 2014 2:43 pm

Re: FreeBSD 10 on B+

Mon Oct 27, 2014 2:49 pm

Hello everyone,

I just ordered a Raspberry Pi B+ in order to make personal FTP server at home.

If I understand correctly, FreeBSD is able to work on a B+ now that the firmware has been updated.
Could you explain me how to actually boot FreeBSD on a B+?
What image do I need, and how to I burn a micro SD card? Where do I use the firmware?

I'm a bit lost here...

Thanks and regards,
pragmb

no9
Posts: 5
Joined: Wed Oct 08, 2014 10:24 pm

Re: FreeBSD 10 on B+

Mon Oct 27, 2014 5:50 pm

Hey pragmb

I am working on a blog post on that

https://gitlab.com/snippets/2216

It's not complete as the release candidates keep coming but it should help and I would appreciated any feedback you have on it.

pragmb
Posts: 2
Joined: Mon Oct 27, 2014 2:43 pm

Re: FreeBSD 10 on B+

Mon Oct 27, 2014 5:58 pm

Thanks no9!

This is very useful :)
It seems easy to use and clear

About getting ports: maybe you should indicate how to build them
What I'd like to do is build them on my desktop, not on the Pi for two reasons:
- it's slow
- it will use the micro SD card in useless stuff

thanks!

no9
Posts: 5
Joined: Wed Oct 08, 2014 10:24 pm

Re: FreeBSD 10 on B+

Mon Oct 27, 2014 6:40 pm

Hi Pragmb

Yes I understand what you mean about the time taken.

This might be a little more useful but I haven't used it yet.
https://github.com/kientzle/crochet-freebsd

raymod2
Posts: 11
Joined: Mon Oct 20, 2014 12:33 am

Re: FreeBSD 10 on B+

Mon Oct 27, 2014 9:26 pm

Pragmb, the answers to most of your questions have already been posted here:

http://www.raspberrypi.org/forums/viewt ... 85&t=89622

no9
Posts: 5
Joined: Wed Oct 08, 2014 10:24 pm

Re: FreeBSD 10 on B+

Tue Oct 28, 2014 4:58 pm

raymod2 great work big TY!!
Do you mind if I integrate that with my gist?

Return to “FreeBSD”