Embedded Handbook/Boards/Hammer Board and Nail Board

From Gentoo Wiki
Jump to: navigation, search
General topics
Introduction
Creating a cross-compiler
Cross-compiling with Portage
Cross-compiling the kernel
Compiling with qemu user chroot
Frequently asked questions
Emulators
Qemu
SkyEye
Armulator
Softgun
Hercules
Bootloaders
Das U-Boot
NeTTrom
RedBoot
SH-LILO
Boards
Hammer Board and Nail Board
LANTank
NetWinder
NSLU2
QNAP TurboStation 109/209/409
Marvell Sheevaplug
ACME SYSTEMS Netus G20
Genesi Efika MX
Pandaboard
TrimSlice
BeagleBone
BeagleBone Black
Intel Edison
Beyond
Communication
Contributing
Vendors
External resources

Little-endian armv4l board.

Nail Board specifications

Board specifications:

CODE
# All power received from the USB port (no external power supply required)
# Male (upstream) USB connector
# Female (downstream) USB connector
# Complete USB JTAG device on board (via internal FT2232)
# USB Hub on board
# USB serial port console (via internal FT2232)
# USB controlled GPIO's (for configuration)
# USB gadget interface (via the Hammer module)
    * Ethernet Gadget Driver (default)
    * Serial Port Gadget Driver
    * Mass Storage Driver

# USB host interface (via the Hammer module)
    * USB 1.1 Compliant
    * Low Speed Support (2mb)
    * Full Speed Support (12mb)

# 3 User LED's available
    * Two on the Nail Board
    * One user LED on the Hammer module
    * USER led on the Hammer Board

# 2 interrupt driven pushbutton switches
# User controlled PWM buzzer
# Reset button
# Power LED
# Expansion header (20-pin: 2 x10)
    * +5V available
    * +3.3V available
    * 2 SPI ports
    * 2 wire Serial Port  (TX/RX)
    * GPIO's
    * External Interrupts
    * Headers can be jumper configured

# Hammer module breakout header
    * Access to all 40 I/O pins of the Hammer module
    * 0.1 inch headers

/proc/cpuinfo

CPU info:

FILE /proc/cpuinfo
Processor	: ARM920T rev 0 (v4l)
BogoMIPS	: 101.17
Features	: swp half thumb 
CPU implementer	: 0x41
CPU architecture: 4T
CPU variant	: 0x1
CPU part	: 0x920
CPU revision	: 0
Cache type	: write-back
Cache clean	: cp15 c7 ops
Cache lockdown	: format A
Cache format	: Harvard
I size		: 16384
I assoc		: 64
I line length	: 32
I sets		: 8
D size		: 16384
D assoc		: 64
D line length	: 32
D sets		: 8

Hardware	: TCT_HAMMER
Revision	: 0000
Serial		: 0000000000000000

Cross compile preparation

Setup uClibc:

root #echo '>=cross-arm-softfloat-linux-uclibc/gcc-4' >> /etc/portage/package.mask
root #echo 'dev-embedded/openocd ft2232 ftdi' >> /etc/portage/package.use
root #modprobe ftdi_sio
root #emerge openocd
root #ACCEPT_KEYWORDS="~*" emerge crossdev
root #crossdev arm-softfloat-linux-uclibc

Setup uClibc and EABI:

root #echo '>=cross-armv4l-softfloat-linux-uclibceabi/gcc-4' >> /etc/portage/package.mask
root #echo 'dev-embedded/openocd ft2232 ftdi' >> /etc/portage/package.use
root #modprobe ftdi_sio
root #emerge openocd
root #ACCEPT_KEYWORDS="~*" emerge crossdev
root #crossdev armv4tl-softfloat-linux-uclibceabi

External resources


This page is based on a document formerly found on our main website gentoo.org.
The following people contributed to the original document: Mike Frysinger, Ned Ludd, Robin H. Johnson, Alex Tarkovsky, Alexey Shvetsov, Raúl Porcel, Joshua Saddler on April 28, 2013.
They are listed here because wiki history does not allow for any external attribution. If you edit the wiki article, please do not add yourself here; your contributions are recorded on each article's associated history page.