Install FreeBSD on beaglebone black

192 views
Skip to first unread message

ek8...@gmail.com

unread,
Apr 9, 2020, 7:55:25 PM4/9/20
to BeagleBoard
Hi guys.
I can install Linux on my BeagleBone Black and last day i tried install FreeBSD on my board, I downloaded sd image file from  FreeBSD.org
i restore image file in my sd card but when i put it in board, beaglebone does not find anything to boot , when i pressed boot button the same thing happened what should i do?

Richard Day

unread,
Apr 9, 2020, 8:00:29 PM4/9/20
to beagl...@googlegroups.com
Do you have a 3.3V serial TTL to plug into the beagle?  Can you put a copy of the output on here so we can see what the board is saying as it boots up?

p.s. the 3.3V cable is best bought from RS components or Farnell, as Amazon sells fake ones that don't work.

Cheers
Rich

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/eb81ace7-815a-4962-a0c5-bc154ab70f69%40googlegroups.com.

evilwulfie

unread,
Apr 9, 2020, 8:13:36 PM4/9/20
to beagl...@googlegroups.com
interesting. i did not know there was an arm port of freebsd
do you have a link ?
Message has been deleted
Message has been deleted

ek8...@gmail.com

unread,
Apr 9, 2020, 8:33:26 PM4/9/20
to BeagleBoard
No i don't and in this situation i can't buy cable.
is there any way to know what happening?


On Friday, 10 April 2020 04:30:29 UTC+4:30, Rich_d wrote:
Do you have a 3.3V serial TTL to plug into the beagle?  Can you put a copy of the output on here so we can see what the board is saying as it boots up?

p.s. the 3.3V cable is best bought from RS components or Farnell, as Amazon sells fake ones that don't work.

Cheers
Rich

On Fri, Apr 10, 2020 at 12:55 AM <ek8...@gmail.com> wrote:
Hi guys.
I can install Linux on my BeagleBone Black and last day i tried install FreeBSD on my board, I downloaded sd image file from  FreeBSD.org
i restore image file in my sd card but when i put it in board, beaglebone does not find anything to boot , when i pressed boot button the same thing happened what should i do?

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagl...@googlegroups.com.

ek8...@gmail.com

unread,
Apr 9, 2020, 8:35:06 PM4/9/20
to BeagleBoard
From https://www.freebsd.org/where.html choose one of images 


On Friday, 10 April 2020 04:43:36 UTC+4:30, evilwulfie wrote:
interesting. i did not know there was an arm port of freebsd
do you have a link ?


On 4/9/2020 4:48 PM, ek8...@gmail.com wrote:
Hi guys.
I can install Linux on my BeagleBone Black and last day i tried install FreeBSD on my board, I downloaded sd image file from  FreeBSD.org
i restore image file in my sd card but when i put it in board, beaglebone does not find anything to boot , when i pressed boot button the same thing happened what should i do?
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagl...@googlegroups.com.

Richard Day

unread,
Apr 9, 2020, 8:47:05 PM4/9/20
to beagl...@googlegroups.com
Buildroot is easy peasy for beaglebone, and you can make custom builds of Linux with allsorts of good stuff built in.

On Fri, Apr 10, 2020 at 1:26 AM <ek8...@gmail.com> wrote:


On Friday, 10 April 2020 04:43:36 UTC+4:30, evilwulfie wrote:
interesting. i did not know there was an arm port of freebsd
do you have a link ?


On 4/9/2020 4:48 PM, ek8...@gmail.com wrote:
Hi guys.
I can install Linux on my BeagleBone Black and last day i tried install FreeBSD on my board, I downloaded sd image file from  FreeBSD.org
i restore image file in my sd card but when i put it in board, beaglebone does not find anything to boot , when i pressed boot button the same thing happened what should i do?
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagl...@googlegroups.com.

of course :: 
https://www.freebsd.org/where.html
   from here choose one of sd_card images 

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

ek8...@gmail.com

unread,
Apr 9, 2020, 9:22:51 PM4/9/20
to BeagleBoard
Thanks but i want know why beaglebone does not boot FreeBSD.


On Friday, 10 April 2020 05:17:05 UTC+4:30, Rich_d wrote:
Buildroot is easy peasy for beaglebone, and you can make custom builds of Linux with allsorts of good stuff built in.

On Fri, Apr 10, 2020 at 1:26 AM <ek8...@gmail.com> wrote:


On Friday, 10 April 2020 04:43:36 UTC+4:30, evilwulfie wrote:
interesting. i did not know there was an arm port of freebsd
do you have a link ?


On 4/9/2020 4:48 PM, ek8...@gmail.com wrote:
Hi guys.
I can install Linux on my BeagleBone Black and last day i tried install FreeBSD on my board, I downloaded sd image file from  FreeBSD.org
i restore image file in my sd card but when i put it in board, beaglebone does not find anything to boot , when i pressed boot button the same thing happened what should i do?
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/eb81ace7-815a-4962-a0c5-bc154ab70f69%40googlegroups.com.

of course :: 
https://www.freebsd.org/where.html
   from here choose one of sd_card images 

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagl...@googlegroups.com.

Richard Day

unread,
Apr 9, 2020, 9:28:44 PM4/9/20
to beagl...@googlegroups.com
Hi,

can you make sure that you have 2 volumes defined on your SD card?

A root and a boot volume.  

What are the files you have in the root volume?

Cheers
Rich


To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/6d504c34-05aa-4f34-a439-f3e8a270354e%40googlegroups.com.

ek8...@gmail.com

unread,
Apr 9, 2020, 9:36:01 PM4/9/20
to BeagleBoard
I have 3 partitions on my sd card MSDOSBOOT rootfs and an unknown partion

Richard Day

unread,
Apr 9, 2020, 9:46:38 PM4/9/20
to beagl...@googlegroups.com
You should have a ROOTFS and a BOOTFS.

One is about BOOT is 20Mb and the ROOT is about 500Mb or bigger.

The BOOT is a FAT and the ROOT is a EXT4 partition. 

Give those a check first.

The ROOT contains directories:

bin  etc  lib32    lost+found  mnt  proc  run   sys  usr
dev  lib  linuxrc  media       opt  root  sbin  tmp  var

Does yours?

have a look at /etc

what files do you have?


 

To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/c835bcdb-7aa3-462a-bbb7-e2c7830f77d4%40googlegroups.com.

ek8...@gmail.com

unread,
Apr 9, 2020, 9:51:12 PM4/9/20
to BeagleBoard
I don't have any of them and i don't have BOOTFS

ek8...@gmail.com

unread,
Apr 9, 2020, 9:55:06 PM4/9/20
to BeagleBoard
I should say i want boot FreeBSD not linux and FreeBSD use zfs

Richard Day

unread,
Apr 9, 2020, 9:58:50 PM4/9/20
to beagl...@googlegroups.com
Right... Not sure how that is going to work.  Is it a bare metal code platform that works direct with the ARM ?



 

To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/f44f0276-de98-440f-8278-8775676286e2%40googlegroups.com.

ek8...@gmail.com

unread,
Apr 9, 2020, 10:02:19 PM4/9/20
to BeagleBoard
Sorry i was wrong it use ufs and yes it is

ek8...@gmail.com

unread,
Apr 9, 2020, 10:05:00 PM4/9/20
to BeagleBoard
sorry its not zfs its ufs, but yes it is


On Friday, 10 April 2020 06:28:50 UTC+4:30, Rich_d wrote:

Stuart Longland

unread,
Apr 11, 2020, 7:31:46 PM4/11/20
to beagl...@googlegroups.com
On 10/4/20 11:46 am, Richard Day wrote:
> You should have a ROOTFS and a BOOTFS.
>
> One is about BOOT is 20Mb and the ROOT is about 500Mb or bigger.
>
> The BOOT is a FAT and the ROOT is a EXT4 partition.

FreeBSD doesn't use EXT4, so it may have a very different boot layout.
I expect there may be EXT4 or FAT partition there for the boot-loader
(uboot) but FreeBSD has its own filesystem (and its own disklabel format
within its partitions).

--
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
...it's backed up on a tape somewhere.

Richard Day

unread,
Apr 13, 2020, 1:01:32 PM4/13/20
to beagl...@googlegroups.com
I had another look at BSD. 

Yes, lord only knows how you would convince the beagle to boot and root into that.

Is this the thing the basis of what now runs on Apple Mac's?

What would you use that for?  I would miss the Linux/drivers folder too much.  


Are you stuck indoors as well?  I will be here until June.  I might as well learn BSD as well.


Cheers

Richard



--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

Andrew Reilly

unread,
Apr 13, 2020, 5:52:31 PM4/13/20
to beagl...@googlegroups.com
FreeBSD isn't what runs on the Apple Mac as such.  The Mac kernel, "Darwin", is derived from the CMU Mach microkernel research, with a BSD-derived kernel running as a single-server, rather than a multi-server configuration (like minix or QNX).  In the CMU days, before NeXT, that was based on the original 4.2BSD distribution, but I believe that it's been spruced up a bit in the macOS days with (at least) FreeBSD's virtual memory subsystem and network stack, and a chunk of NetBSD-derived other pieces.  The device drivers still live outside BSD, in Mach "DriverKit" land, which is why they're C++.  The user-land is mostly FreeBSD, and has had several refreshes over the years.

FreeBSD itself doesn't have a microkernel: it's old-school unikernel all the way down to the hardware, and the device drivers live in /usr/src/sys/modules or there-abouts.  Sure, there almost certainly aren't as many useful-for beaglebone drivers in there.  The OS was x86 and x86_64 only for a significant chunk of its life.  People who wanted BSD-on-toaster were shown where to find NetBSD.  I'm not entirely sure why that's changed, but my guess is that people wanted "big iron" OS to run on their big-iron Sparc, Power and now Arm systems.

Why would you want to do that?  I can only speak for myself, but it's more a case of not ever changing what wasn't broken: I've been running BSD since about 1986 or so.  If you say that it's possible to get FreeBSD to boot on my beaglebone-AI, then I might just give it a go!  On the other hand, the reason that I have the BBAI is to play with some DSP on the C66x cores, and the interface drivers seem kernel-version fragile, and all of the TI tools are clearly set up for Linux, so perhaps I'll just sit tight for now.  I'm still trying to come to terms with a system that doesn't install the source and headers by default, which doesn't do "netstat" properly, which has all of these system-* commands, and which seems to bork it's USB-audio stack when left open but unused for long periods.  Tracking down slow ephemerons or heisenbugs is about the least fun part of programming, IMO.

I'm currently trying to wrap my head around the OpenCL-ness of the DSP access.  I was expecting something in DSPBios with a mailbox system to the host, and perhaps that's there under the covers, but all of the examples use openCL, and if it aint broke, etc.  Still, I'm not sure how you do "initialization" and frame-to-frame persistent state in OpenCL land.  If anyone has pointers, I'd appreciate it.

Cheers,

Andrew Reilly
M: 0409-824-272



Stuart Longland

unread,
Apr 14, 2020, 9:26:51 AM4/14/20
to beagl...@googlegroups.com
On 14/4/20 3:00 am, Richard Day wrote:
> I had another look at BSD.
>
> Yes, lord only knows how you would convince the beagle to boot and root
> into that.
>
> Is this the thing the basis of what now runs on Apple Mac's?

I think Andrew gave a pretty in depth run-down, but yes, Apple MacOS X
is a distant BSD fork, as are a lot of "Unix" platforms (Solaris comes
to mind).

> What would you use that for? I would miss the Linux/drivers folder too
> much.

Every OS has its pluses and minuses. I personally use OpenBSD a lot on
various devices for router tasks.

Embedded Linux is my go-to for esoteric applications, but many of the
BSD derivatives out there, FreeBSD and OpenBSD included, are
open-source, so it's possible to dig into those just as much as you can
on Linux.

For some applications, BSD may be ideal since the license is very
liberal: if you are developing some application where you want to keep
the sources to yourself, you're legally allowed to under the modern BSD
license. Under the GPLv2, you're obliged to provide the sources to
anyone you ship derived binaries to if they ask for them.

> Are you stuck indoors as well? I will be here until June. I might as well
> learn BSD as well.

I think most of the world is stuck indoors.

Easter long week-end, glorious weather, all national parks and caravan
parks closed… and stay-home orders by order of our Chief Medical
Officer. Sounds like Murphy's law!

Mark Lazarewicz

unread,
Apr 14, 2020, 10:04:38 AM4/14/20
to beagl...@googlegroups.com
Hello Andrew

# On the other hand, the reason that I have the #BBAI is to play with some DSP on the C66x cores, 

Why not use JTAG + code composer right to the DSP 
You obviously wouldn't have the Unix to DSP part for a product but you could play with DSP and sort out rest later


Andrew Reilly

unread,
Apr 14, 2020, 5:19:04 PM4/14/20
to beagl...@googlegroups.com
Hi Mark,

Re: JTAG + code composer right to the DSP:

That does seem to be the main support path that TI is providing at the moment, but runs foul of two impediments for me: JTAG emulator dongles tend to the expensive side, for home hacking activities, and Code Composer for macOS doesn't support the DSPs.  Which is weird, IMO, because the stand-alone C66x toolchain is available for macOS, and seems to work fine.  I suspect that the issue probably boils down to emulators that work with the DSPs don't have drivers for macOS, and without that CCS isn't much help.

If it became absolutely the only option, I could move to a Windows system, but until it does, I'd prefer not to.  I seem to have developed an allergy to it, over the years :-)

The other option that I'm pursuing is getting the Linux version up, in some kind of virtual machine, but I thought that I was doing pretty well with the self-hosted BBAI tools, so far.  At least for tinkering.

Cheers,

Andrew Reilly
M: +61-4-0982-4272

Mark Lazarewicz

unread,
Apr 15, 2020, 11:49:04 AM4/15/20
to beagl...@googlegroups.com
Hi Andrew

Virtual have improved as well as the quirky USB driver issues. The low end JTAG are around $100.
A dual boot window/ Linux is also a great way bro repurpose any old Intel Box) laptop you can scrounge.

Also C66x stand-alone board's are quite cheap if you want to pick up DSP.

I have an omap l138x board I bought while working on a high end motor controller. That product used Green Hills on the ARM and had its own messaging systems between ARM and DSP quite an amazing 
Product. Images for DSP & ARM could be dragged and dropped via NFS. The control theory stuff on the DSP was way out of my league PhD types designed it. DSP Ran DSP Bios at a very fast clock rate. The PRU s were used as more on-board peripherals. It supported JTAG debug CCS and greenhill probe with the GHS source level debugger.
What's sad is once the parrellel processing was working. A serial Port dump of shared RAM via a PRU UART provided debug info. It really gets hard to debug something in realtime beyond board bring up on these multicore Soc using JTAG.

Hopefully they port TI RTOS SDK to BBAI 

Good luck
On Tue, Apr 14, 2020 at 4:18 PM, Andrew Reilly
Reply all
Reply to author
Forward
0 new messages