Preparation of the SD Card

  • Use this scriptto format the SD card.
  • Save this script into a folder as omap3-mkcard.sh
  • Make this script executable:
chmod +x omap3-mkcard.sh
  • This usage of this script:
sudo ./omap3-mkcard.sh /dev/mmcblk0
(Change mmcblk0 to your own SC-card device)
  • This script will create 2 partitions on the SD-card:
    • boot: FAT32 boot partition with a size of 70 Mb
    • Angstrom: EXT3 root partition ( remaining space of the SD-card)
  • When the script is executed, it's necessary to mount the two partitions

Download the minimal-FS environment

  • Download the minimal-FS environment: link
  • Untar the .tar.gz file:
tar -xzvf L24.9-PandaBoard_minimal-fs.tar.gz
  • After untarring the file, the following files are generated:
    • a boot folder
    • angstrom_minimal-fs.tar.gz

Loading the Boot partition

  • copy U-boot.bin to the boot Partition of the SD-card
# sudo cp -rf <location_of_uboot.bin> /media/boot
  • copy MLO (xLoader) to the boot Partition of the SD-card
# sudo cp -rf <location_of_MLO> /media/boot
  • copy Kernel image to the boot Partition of the SD-card
# sudo cp -rf <location_of_uImage> /media/boot

Loading the Root partition

  • Untar filesystem onto the root partition of the SD-card
sudo tar zxvf <location-of-angstrom_minimal-fs.tar.gz> -C /media/Angstrom

Hardware Setup

  • Connect a USB Keyboard via the USB connector
  • Connect an Ethernet cable
  • Connect a serial cable via the RS-232 connector
  • Connect a display via the HDMI connector
  • Plug the SD-card into the card reader
  • Connect a 5V power supply


Serial Connection between PC and PandaBoard

  • When the Pandaboard is used for the first time, a serial interface with a PC is necessary
  • For Linux users, use minicom as serial terminal:
sudo apt-get install minicom
  • Configure the serial interface:
sudo minicom -s
    • Baudrate: 115200
    • #databits: 8
    • Parity: No
    • #stopbits: 1
    • Flow Control: No

Boot the Pandaboard for the first time

  • Switch on the board
  • The complete boot-process is visible by using the serial connection between the PC and the PandaBoard
  • When the PandaBoard is booted completely, a #/ prompt is shown

Additional settings

  • The standard configuration enables just one shell on the serial interface, to enable more shells on the attached display:
vi /etc/inittab
    • Add the following lines to this file:
tty1::respawn:/bin/sh
tty2::respawn:/bin/sh
tty3::respawn:/bin/sh
tty4::respawn:/bin/sh
tty5::respawn:/bin/sh
  • In the standard configuration Ethernet is not enabled, as well as the SSH server. To enable those two services:
vi /etc/inittab
    • Change the following line:
tty1::respawn:/bin/sh
    • to:
tty1::respawn:/bootscript.sh
    • Create bootscript.sh in "/":
#!/bin/sh
 
ifconfig usb0 <type your IP-address>
route add default gw <type the IP-address of the GateWay>
mount /dev/pts
/etc/init.d/dropbear start
/bin/sh
    • Reboot the PandaBoard


Compiling c++ code on PandaBoard


Install the following packages:
opkg install cpp cpp-symlinks gcc libgcc-dev gcc-symlinks gdb glibc-gconv g++ g++-symlinks libc6-dev libstdc++-dev make devmem2
opkg remove --force-depends libmenuw
opkg install task-native-sdk task-proper-tools

More information and useful links