Content Linux on the DragonBoard 410c ............................4 Known limitations ..............................4 Boot-phase status indicators............................ 4 Installing Linux ................................... 5 Installing from SD-card ............................. 5 Installing from Host-pc ............................. 8 Recovering your DragonBoard with the rescue image ....................11 Installation overview .............................. 11 Step1: Download the rescue image from the 96Boards website ................
1 Linux on the DragonBoard 410c The Linux image for the Dragonboard is built by Linaro and is based on Debian with the v4.2.4 Linux Kernel (as of this writing). Known limitations Please see the Linaro Wiki for details regarding the known limitations of the latest Linux image: http://builds.96boards.org/releases/dragonboard410c/linaro/debian/latest#tabs-1...
2 Installing Linux There are currently two supported methods to install a Linux Image on the DragonBoard410c: Installing the image from SD-card Installing the image from a Host computer via a USB cable and fastboot The following chapters describe the two methods in detail. 2.1 Installing from SD-card This is the easiest method to install Linux on the DragonBoard and is recommended for users that are just getting started with the DragonBoard.
Page 6
2.1.4 Step2: Write the Installer-image onto a micro SD-card Write the Installer image onto the SD-card using your favorite imaging tool: On Windows: Download the Win32DiskImager tool from here Start the DiskImager tool Under Image file select the path to the image ...
Page 7
● Choose the displayed Operating system (Linaro Linux) and click Install. This will flash the OS on the board eMMC ● Once you see the programming successful dialog proceed with the next step 2.1.6 Step4: Reboot and enjoy! ● unplug the power cord ●...
Fastboot: This method requires the Fastboot tool to be installed on the HostPC. Fastboot is a tool that communicates with the bootloader of the DragonBoard 410c and allows you to flash images onto the board. See below for instruction on how to install Fastboot on your Host PC.
Page 9
linaro-jessie-alip-qcom- Rootfs http://builds.96boards.org/releases/dragonboard410c/linaro/debian/l snapdragon-arm64.img.gz image atest/linaro-jessie-alip-qcom-snapdragon-arm64-*.img.gz 2.2.4 Step2: Bring the board into fastboot-mode ● Ensure the boot switches S6 are set to 0000 ● Connect the micro-usb cable to the board ● Press and hold the Vol- button (S4) ● Connect the power supply to the board 2.2.5 Step3: Start the fastboot tool on the HostPC Start the fastboot application on the host PC and execute the following fastboot command.
Page 10
2.2.9 Step7: Reboot and enjoy! Once the download of the images is complete, follow these steps: ● Unplug the board from the power supply ● Disconnect the USB cable ● Reset the boot switches back to 0000 ● Connect the board to the power supply After the reboot you should see Linux startup.
3 Recovering your DragonBoard with the rescue image Use this method if the previous two method failed and you were not able to reach the board via the fastboot tool. (fastboot devices command not listing your device.) 3.1 Installation overview To recover your board from the rescue-image, follow these steps: step 1.
sudo fdisk -l Alternatively you can also use the following command to determine the SD-card device name: dmesg | tail 3.4 step3: Boot the board from the SD-card ● Put the SD-card into your DragonBoard ● Set the boot switches S6 to 0100 (SD-card boot) ●...
4 Running Linux: First steps While it would go beyond the scope of this user guide to go into all aspects of running Linux, in this chapter we will go over some of the most common use cases relevant to get started with the board. 4.1 LogIn The Debian Image is setup to login automatically with the “linaro”...
5 Linux Development Environment The following picture depicts the typical development setup for the DragonBoard 410c: For this Guide we assume a HostPC with Linux operating system as development machine. However development is also possible on a HostPC with another operating system such as Microsoft Windows or Apple MacOS.
5.1.1 Installing the toolchain In order to install the toolchain unpack the downloaded toolchain file in a folder of your choice. For instance for the 64bit toolchain type the following: ~/DragonBoard/toolchain/: tar xz gcc-linaro-4.9-2014.11-x86_64_aarch64-linux-gnu.tar.xz 5.2 Eclipse Development Environment Eclipse is a free and open source Integrated Development environment that is highly customizable through a flexible plugin system.
6 Example1: HelloWorld application With the Eclipse IDE and the toolchain installed we can now develop our fist Hello World application for the DragonBoard 410c. The following example is assuming a Linux based host development machine. 6.1 Start the Eclipse IDE To start the eclipse IDE switch to the eclipse installation folder and type the following command on a command line: ./eclipse This will start the eclipse IDE.
Page 17
On the Basic settings Dialog: Click next. On the configuration Dialog: Click next. On the Cross GCC Command dialog : Set cross compiler prefix to : aarch64-linux-gnu- Set the cross compiler path to the /bin directory of the toolchain: <toolchain installation path>/bin ...
6.3 Implement application The project template contains a basic Hello World implementation that will compile and run on the board. Feel free to change the default “!!!Hello World!!!” message that is outputted on line 15 to “!!! Hello DragonBoard410c !!!”. 6.4 Build and transfer the application Click the hammer at the top of the screen to build the Debug configuration.
Page 19
chmod u+x HelloDragonBoard The application can now be executed by running the command: ./HelloDragonBoard You should see the “!!! Hello DragonBoard410c !!!” message output to the command line. 19/26...
7 Example2: BlinkyLED In this example we will access the hardware of the DragonBoard410c by toggling one of the User-LED’s on the board. 7.1 Create a new project Create a new project as described in chapter 6.2 and name the project BlinkyLED. 7.2 Implement application Replace the code in the BlinkyLED.c file with the code shown below.
Page 21
Before the application can be executed we need to change the permissions of the applications binary file to allow it to be executed. To do this run the following command: chmod u+x BlinkyLED Since the application accesses the hardware it requires elevated privileges and needs to be executed using the sudo command: sudo ./BlinkyLED You should see the User_led4 blinking.
8 Example3: TogglyGPIO In this example we will toggle a GPIO pin and read back its value from another GPIO pin. To do this we configure one GPIO as output and the other as input. 8.1 Setup The GPIO’s used in this example are configured as follows: ...
Page 23
#define GPIO_A 36 #define GPIO_B 12 int Export_GPIO(int gpio); int UnExport_GPIO(int gpio); int Write_GPIO(int gpio, int value); int Read_GPIO(int gpio, int *value); int main(void) char c=' '; int ret; int out_value = 1; int in_value = 0; //exporting GPIO’s ret = Export_GPIO(GPIO_A); if(ret != 0) printf("Error exporting GPIO_%d", GPIO_A);...
8.4 Build and transfer the application Click the hammer at the top of the screen to build the Debug configuration. This will create an executable binary file located in the projects debug directory. Copy the generated executable to a flash drive and then, on the DragonBoard, copy it to a simple location such as the user directory (~).
Page 26
CAUTION Arrow Electronics, Inc. (“Arrow”) is not responsible for any radio or TV interference caused by unauthorized modifications to this equipment. Changes or modifications not expressly approved Arrow could void the user’s authority to operate the equipment.
Need help?
Do you have a question about the DragonBoard 410c and is the answer not in the manual?
Questions and answers