element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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 Some quick-start things to do for developing on the BBB
  • 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: shabaz
  • Date Created: 22 May 2013 10:38 AM Date Created
  • Views 3444 views
  • Likes 3 likes
  • Comments 16 comments
  • beaglebone_black
  • bb_black
  • beagle_bone_black
Related
Recommended

Some quick-start things to do for developing on the BBB

shabaz
shabaz
22 May 2013

This post is just to list some example initial things to do with the BBB, to prepare it for development. Others may have different suggestions to suit various working methods. The official getting started page is here.

Powering up the board for the first time

(Instructions here are Windows based, but the official page has instructions for Linux and MAC too; For Linux, no drivers are needed but they suggest using this script):

  1. Plug in the USB, let it boot up. Some drivers will not install (CDC Serial and RNDIS)
  2. Download BONE_D64.exe for Win 7 64-bit and run it. It will prompt a few times. Now all drivers will be installed.
  3. In a Windows command prompt, ipconfig /all will reveal a "Linux USB Ethernet/RNDIS Gadget" interface has been created on the PC with IP address 192.168.7.1; the BBB IP address will be 192.168.7.2
  4. It is now possible to use a web browser to navigate to http://192.168.7.2.

 

Using a serial cable

The J1 row of pins on the BBB allows connection to a PC for serial comms (115200 baud by default).

This is a small hardware mod to use a powered USB-serial adapter:

Solder a red wire from J1 pin 2 to P9 pin 4

The communications pins and direction of data is:

Beagleboard J1 pin 4 <---------------PC
Beagleboard J1 pin 5---------------->PC

J1 pin 1 is 0V.

 

Information on various serial cables is here. Connecting up a FTDI TTL-232RG-VIP-WE cable (these colors were different to the ones on that page):

Pin on J1    Color

1            Black

2            Red

4            Orange

5            Yellow

 

Plug in the FTDI cable into the PC. (On Window 7 64-bit; the driver will install automatically after a while - no need to download any driver.

Check the port number in Device Manager).

Start up serial terminal software on your PC, set to 115200 baud, no DTR/DSR/RTS/CTS/XON/XOFF
Power up board and observe it booting up; after around 10 sec it will be at the login prompt
Login as root (there is no password)

 

Updating the software

The getting started page has this detail and it works well. It requires a microSD card and a way to program it from a PC (e.g. a small SD to MicroSD adapter if your PC has an SD card slot). It takes almost exactly 45 minutes for the flash to be programmed on the board.

 

Setting the date

Check the date by typing date
Set the date, e.g. date -s "May 21 22:49 UTC 2013" (you may wish view http://www.timeanddate.com/worldclock/ )

 

Using SSH

From the PC, it may be possible to SSH to 192.168.7.2 (username is root, no password)

If it is not possible on a new board (like my board) then this was the fix:

  1. Connect via the USB-Serial adapter
  2. /etc/init.d/dropbear stop (dropbear is the name of the SSH server software)
  3. cd /etc/dropbear/
  4. There will be a file in this folder
  5. rm dropbear_rsa_host_key
  6. /etc/init.d/dropbear start
  7. The dropbear_rsa_host_key will be recreated, and this time will be a few hundred bytes in size
  8. Now the SSH should work

 

Powering down the board

At the shell prompt, issue shutdown now to power down the board; otherwise you risk file system corruption.

There is a power button on the board, that  could issue this for an automatic shutdown if someone writes the code (the button is described in  the BBB SRM doc that can be found here).

 

Some shell and vi changes

To have a better shell:

 

vi /etc/passwd

 

edit the first line (the root user line) to say /bin/bash instead of /bin/sh

Then, issue a reboot command.

 

vi

For me, the vi on the BBB behaved slightly different, but enough to make it uncomfortable for long use. I made these changes to suit personal tastes:

Make tabs equal to 2 columns instead of 8:

  1. Go to /usr/share/vim and edit the vimrc file there
  2. At the end of the file, add a new line with this content (including the colon):

 

:set ts=2

 

Disable the incsearch if you want traditional vi search behaviour (Otherwise, get used to pressing enter after a search):

Search for incsearch, and comment it out with a speech-mark at the beginning (i.e. " )

Disable the autoindent:

Search for autoindent and comment it out and comment out the else line above it too

Also, search for filetype plugin indent on and comment that line out too.

 

Setting the console width:

 

stty cols 100

 

Mounting file systems

Unusually the busybox version of mount is needed. Basically, this command worked:

 

cd mnt

mkdir shared

chmod 777 shared

busybox mount -o port=2049,nolock,proto=tcp -t nfs 192.xxx.xxx.xxx:/volume1/public /mnt/shared


 

(where /volume1/shared is configured on your storage server and 192.xxx.xxx.xxx is the address of it). The -o part is necessary to get it to work.


  • Sign in to reply

Top Comments

  • Former Member
    Former Member over 12 years ago +1
    It's not actually vi at all, its vim-tiny or some such like. Disclaimer: I hate vi in all it's incarnations.. However whatever the version in use on the BBB it's sufficiently different in even the tiny…
  • Former Member
    Former Member over 12 years ago +1
    I found the drivers did not install smothly on Windows 8 64-Bit. There was an error message something like: "Default language not supported by this installer". After a lot of faffing about and searches…
  • shabaz
    shabaz over 10 years ago in reply to Former Member +1
    Hi Javier, This occurred with earlier Angstrom images, but I've not seen it occur with recent BeagleBone Black boards which come with Debian pre-installed. SSH should 'just work'. With recent boards, once…
  • clem57
    clem57 over 10 years ago in reply to Former Member

    Look in file /etc/ntp.conf for the following line:

    server ntp.server.com

    Assuming you have that, try:

    ping ntp.server.com

    If you get a reply, you should be good to go, If not, check DNS.

    Clem



    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 10 years ago

    Thanks Shabaz,

     

    Think will just walk with maunal time setting for now. Tried a few things today as well nothing.

     

    and when i run ntpdate, got the following reply - ntpdate[3351]: no servers can be used, exiting

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 10 years ago in reply to Former Member

    Hi Ibrahim,

     

    You may be able to ping and use github, but other ports may be blocked in your network, or your router may be misconfigured. There may be ntpd debug but I'm afraid I've never checked so I cannot tell you what to look for in the log. Google may help if you check for Linux and NTP debugging, this is not a BBB specific issue. I don't know anything about your router, I will have a different model, but you could check that too for things like firewall and NTP, in case there is something there that needs modifying.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 10 years ago

    Thanks shabaz

     

    So you didn't change anything for it work. Sorry a bit of Novice, but being able to ping 8.8.8.8 and clone files on github.com, means I do have access to internet right? and how can I check that if my router is not supplying NTP.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 10 years ago in reply to Former Member

    Hi Ibrahim,

     

    Nothing needs to be done on the BBB, it works by default. It is most likely that your router is not supplying NTP server addresses, i.e. this is a router configuration issue.

    Another option is to manually configure NTP server list on your BBB (ntp.conf file) but probably that is already pre-configured too, with some NTP server names. I don't have a BBB nearby to check. If it is pre-configured then there may be a firewall blocking NTP.

    In summary, this is not a BBB issue and you probably need to ask your network admin.

    • Cancel
    • Vote Up 0 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