Difference between revisions of "Hobrasoft:4x232"

From eLinux.org
Jump to: navigation, search
(Software installation - detailed description)
(Software installation: serial ports - detailed description)
Line 38: Line 38:
  
 
=== Software installation: serial ports - detailed description ===
 
=== Software installation: serial ports - detailed description ===
 +
We strongly recommend you to use the debian package.
 +
 
Open the /boot/uboott/uEnv.txt file in text editor and add or uncomment the following line:
 
Open the /boot/uboott/uEnv.txt file in text editor and add or uncomment the following line:
  

Revision as of 06:26, 25 March 2015

Descriptions

The Hobrasoft 4x232 Cape provides four RS232 serial ports and real time clock with batery backup. Board is powered from 5V power supply, protected with transil and fuse. Board colides with built-in graphics card so it is impossible to use the 4x232 and HDMI output at the same time.

Software Support

Getting started

Required setup

  • BeagleBone Black
  • 4x232 board
  • 5V power supply - use included connector, be carefull about the polarity

Following the instructions below to start using your 4x232 Cape:

  1. Mount the BeagleBone Black to the connectors of the 4x232 Cape. The network connector should be oriented to the right side of the 4x232 board (battery is mounted in lower left corner).
  2. Mount included connector to your 5V DC power supply, for proper polarity check label on the board.
  3. Plug in a 5V DC power supply to the DC connector on the 4x232 board
  4. Install software support - use .deb package or compile the .dtc file and install it to /lib/firmware

Software installation - easy way

Debian package can be installed to the Beaglebone's operating system (Debian Linux, armhf architecture) for simple use of the 4x232 board. The package contains:

  • systemd script for real time clock
  • firmware for 4x232 board (file dtbo)
  • udev rules to create special devices /dev/ttyA to /dev/ttyD (corresponds with labels on the board)

For easy installation and upgrades add a line to the /etc/apt/sources.list file:

deb [arch=armhf] http://debian.hobrasoft.cz hobrasoft non-free

Then install the package from the command line:

apt-get update
apt-get install hobrasoft-4x232

Software installation: serial ports - detailed description

We strongly recommend you to use the debian package.

Open the /boot/uboott/uEnv.txt file in text editor and add or uncomment the following line:

##Disable HDMI
optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN

Download and compile the .dts file:

dtc -O dtb -o /lib/firmware/HOBRASOFT-4x232-00A0.dtbo -b 0 -@ HOBRASOFT-4x232-00A0.dts

Open the /etc/default/capemgr file in text editor and add the following line:

CAPE=HOBRASOFT-4x232

Reboot the BeagleBone Black. Now the HDMI should be disabled and the serial ports /dev/ttyO? should be visible in /dev directory.