Beagleong Black LCD Display with Stereo Audio Cape

From wiki
Jump to: navigation, search

Contents

Before you start

Using the prebuilt image we provided to test hardware.

How to make a bootable SD card

1. Insert the SD card into your computer, if using virtual machines, please make sure the SD card mounted to the Linux operating system.

2. Confirm the SD card mount point “/dev/sdX”, usually it should be “/dev/sdb”. You can use this command to find out what the “X” is in the Linux system.

$ sudo fdisk –l

3. Copy the file “prebuilt-angstrom-bbb-lcd-audio-exif-2014-12-25.tar.gz“ somewhere(such as $HOME).

4. Extract the file “prebuilt-angstrom-bbb-lcd-audio-exif-2014-12-25.tar.gz“

$ tar xzvf prebuilt-angstrom-bbb-lcd-audio-exif-2014-12-25.tar.gz

5. Go to the folder “prebuilt-angstrom-bbb-lcd-audio-exif-2014-12-25“

$ cd ~/prebuilt-angstrom-bbb-lcd-audio-exif-2014-12-25

6. Flash the Angstrom OS to the SD card

$ sudo ./mksdcard.sh --device /dev/sd<?>

Notes: The SD card should be at least 2GB, and you’d better to use Sandisk Class4 level SD card or or above.

Start the Angstrom OS

1. Insert SD card into BeagleBoneBlack.

2. Power on the board.

Tests

Touch screen

Click on the screen, the mouse arrow stays in position triggered.

Audio test

Start terminal, use command alsamixer to adjust the volume, default is lower volume.

then use command mplayer to test.

# mplayer FILENAME //such as: mplayer ~/marsboard/Music/AudioTest.aac

Build Angstrom compilation environment

Prepare Angstrom source

1. Copy the file “angstrom-source-bbb-lcd-audio-exif-2014-12-25.tar.gz” to $HOME.

2. Extract the file:

$ cd HOME$
$ tar xzvf angstrom-source-bbb-lcd-audio-exif-2014-12-25.tar.gz

You can find what you need under folder “angstrom-source-bbb-lcd-audio-exif-2014-12-25“, such as “u-boot ”, “kernel”:

(1) Linux file system: $HOME/angstrom-source-bbb-lcd-audio-exif-2014-12-25/filesystem

(2) Linux kernel source: $HOME/angstrom-source-bbb-lcd-audio-exif-2014-12-25/kernel

(3) uboot source: $HOME/angstrom-source-bbb-lcd-audio-exif-2014-12-25/uboot

(4) Cross-compiler tools: $HOME/angstrom-source-bbb-lcd-audio-exif-2014-12-25/gcc-linaro-arm-linux-gnueabihf-4.7

Set Environment Variables

Go to the source folder, export the environment variables

$ cd angstrom-source-bbb-lcd-audio-exif-2014-12-25
$ source setEnv.sh

Notes: For ease of use, the environment variables settings related are written in setEnv.sh script, and run the script only after current terminal is valid, when the terminal closed environment variable itself is lost, so in the new terminal need to re-run the script when Android compiled. And the content of script is as follows:

export PATH=`pwd`/gcc/arm-linux-gnueabihf/bin:$PATH
export CROSS_COMPILE=arm-linux-gnueabihf-
export ARCH=arm

Compile and install the Angstrom system

Through the above settings, it is ready to compile to angstrom system, please refer to the following chapter.

Compile u-boot

1. Go to u-boot folder

$ cd ~/angstrom-source-bbb-lcd-audio-exif-2014-12-25/u-boot/

2. Clear the result compiled before

$ [ -d ./am335x ] && rm -rf ./am335x

3. Compile u-boot

$ make O=am335x am335x_evm

Notes: Once done, you can find the results under folder “am335x/”, such as “MLO”, “u-boot.img”.

Compile kernel

1. Go to kernel folder

$ cd ~/angstrom-source-bbb-lcd-audio-exif-2014-12-25/kernel/

2. Clear the result compiled before

$ make distclean

3. Configure file

$ cp config-marsboard .config

4. Compile uImage

$ make dtbs uImage

Notes: Once done, you can find the results: 1. “arch/arm/boot/uImage”, 2. “arch/arm/boot/dts/bbb-lcd-audio-exif.dtb“

Package image file

1. Go to Angstrom source folder

$ cd angstrom-source-bbb-lcd-audio-exif-2014-12-25

2. do the command to package files.

$ ./sdcard_build.sh --directory beagleboneblack

Notes: Once done, the results located atlocated at “$HOME/angstrom-source-bbb-lcd-audio-exif-2014-12-25/beagleboneblack”

Personal tools