element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
BeagleBoard
  • Products
  • Dev Tools
  • Single-Board Computers
  • BeagleBoard
  • More
  • Cancel
BeagleBoard
Blog Booting FreeBSD on BeagleBoneBlack
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join BeagleBoard to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: aswinvenu
  • Date Created: 13 Jul 2019 9:34 PM Date Created
  • Views 2250 views
  • Likes 3 likes
  • Comments 3 comments
  • exploring beaglebone
  • freebsd
  • BeagleBone Black
Related
Recommended

Booting FreeBSD on BeagleBoneBlack

aswinvenu
aswinvenu
13 Jul 2019

Introduction:

 

    FreeBSD is a "UNIX like" opensource operating system. Not like Linux, which provides only the kernel, FreeBSD provides full fledged - fully equipped operating system. The history of the operating system dates back to 1993.

And it is the most popular BSD (Berkeley Software Distribution) based operating system available in the open source community.

 

I would recommend you to read the history of FreeBSD a little. Links are available here:

https://en.wikipedia.org/wiki/FreeBSD

https://en.wikipedia.org/wiki/Research_Unix

 

You will find the history rather interesting.

 

From my reading I got to know that FreeBSD doesn't have micro kernel (original BSD and modern UNIX has ) instead it has monolithic kernel like Linux. Correct me if I am wrong.

 

Anyway I decided to try out FreeBSD on my Beagle Bone Black.

 

Setup the uSD card:

 

    After couple of failed attempts I got everything running. Here is the steps.

 

STEP 1 :

               Insert the uSD on your host device ( In my case it's an Ubuntu 18.04 PC)

STEP2 :

               Identify the partitions using lsblk command.

image

as you can see in my case the uSD card is mounted as sdb device. unmount the device

umount /dev/sdb1

 

STEP3:

            Download the FreeBSD operating system

wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/arm/armv7/ISO-IMAGES/\12.0/FreeBSD-12.0-RELEASE-arm-armv7-BEAGLEBONE.img.xz

image

 

STEP4:

          Extract and load the image to the card

          xz -d FreeBSD-12.0-RELEASE-arm-armv7-BEAGLEBONE.img.xz
          sudo dd if=FreeBSD-12.0-RELEASE-arm-armv7-BEAGLEBONE.img of=/dev/sdb bs=1M

image

 

Bootable image is ready!

 

Now comes the booting part. Insert the uSD card into the slot. Wire-up the Serial header to a serial-to-USB converter. Connect the USB to the host PC.

image

 

Press Down the "boot" button (next to the uSD card slot) and plugin the USB/DC-JACK to power-up the device. This makes sure that the board is booted from the uSD.

If everything goes well your beagle bone black will start throwing boot information through the serial port.

I used screen to view serial console. You can use your favorite one.

 

screen /dev/ttyUSB0 115200

 

image

 

You can login with either "root" or "freebsd".

password for root is root

password for freebsd is freebsd

 

Lets take a look at the root directory

 

cd /
ls

image

 

Looks very similar to Linux root file system right ?!!

 

Now lets do some GPIO programming.

As you know there are 4 LEDs.

 

cd /dev/led

image

There are 4 led files. Lets Turn on one LED.

 

echo "1" > beaglebone:green:usr2

 

image

 

That's it for now !

 

Thanks.

  • Sign in to reply

Top Comments

  • mp2100
    mp2100 over 6 years ago +1
    Nice. I didn’t know FreeBSD had an image for the BBB. Have connected an HDMI screen and tried x-windows graphically? Or is this a text only version?
  • tlwmdbt
    tlwmdbt over 4 years ago +1
    Still works great with FreeBSD 13.0 on a BeagleBone Black, WiFi and Blue in 2021.
  • tlwmdbt
    tlwmdbt over 4 years ago

    Still works great with FreeBSD 13.0 on a BeagleBone Black, WiFi and Blue in 2021.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • aswinvenu
    aswinvenu over 6 years ago in reply to mp2100

    I didn't try the HDMI part. Both Serial and SSH logins are working fine.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mp2100
    mp2100 over 6 years ago

    Nice.  I didn’t know FreeBSD had an image for the BBB.  Have connected an HDMI screen and tried x-windows graphically?  Or is this a text only version?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube