Running Debian on the Open-Q™ 410 Development Kit

16 Mar 2016

Running Debian on the Open-Q™ 410 Development Kit

410 DEV

Why Debian?

Running Android out of the box is great, but what if you need the capabilities of a full desktop OS?  This is where Debian comes in.  The Linaro Linux release 15.11 is a Debian-based Linaro Build that provides developers with a desktop like environment using Debian and the LXDE desktop, as well as a console-only image.

WARNING: Installing Debian is a one-way process. After flashing the Debian image, you will not be able to flash the Android image back into eMMC. Your board will remain as a Debian image, unless you generate and use an SD card-based Android bootable image to flash Android back into your board.

Installing Debian via SD card

Download the SD card image

  1. Download the latest Debian SD card image from here. Download the archive called “dragonboard410c_sdcard_install_debian-*.zip”
  2. Open a terminal session on your PC and run the following commands:
    1. unzip dragonboard410c_sd*.zip
    2. mkdir ~/410
    3. mv db410c_sd*.img ~/410

Determine where your SD card is mounted on your PC

  1. Open a terminal session on your PC and run the following command:

lsblk  – This command will list all mounted devices, search for a sd* drive that matches the size of your SD card

 

SD card

Flashing Debian onto SD card

Open terminal and run the following commands

  1. cd ~/410
  2. sudo dd if=<debian_sdcard_img> of=/dev/sdX bs=4M oflag=sync status=noxfer

NOTE: sdX is the /dev drive that matches the size of your SD card

NOTE: dd runs without output until completion, takes approx 3-5 minutes

WARNING:  Make sure you are using the correct /dev/sdX device which corresponds to your SD card!  If you chose a device corresponding to your PC’s hard disk, it would corrupt your PC’s drive.

Once dd completes, your SD card is ready to be used with the Open-Q 410 board

Installation

One the SD card has been imaged eject it from the computer and plug it into the Open-Q 410 Carrier. To get the board to boot from the SD card switch the BOOT CFG_1 to on.

installation

Plug the display, mouse and finally power supply into the board and boot it up. You should see one of the LED’s blinking. Soon the installations screen will appear.

install button

Press the install button to start the installation. Once it finishes unplug the SD card and reset the BOOT CFG_1 switch to off. Now reboot the board. You should be greeted by the Lubuntu login screen. To login use the default username and password which are both ‘linaro’.

Installing Debian Using Fastboot

WARNING: Installing Debian is a one-way process. After flashing the Debian image, you will not be able to flash the Android image back into eMMC. Your board will remain as a Debian image, unless you generate and use an SD card-based Android bootable image to flash Android back into your board.Installing Debian is a one-way process.

The bootloader on this board supports fastboot. First make sure that fastboot is installed on the host PC. On your host Ubuntu/Debian machine, use the following command to install fastboot:

sudo apt-get install android-tools-fastboot

Note: The Open-Q 410 must have been imaged with fastboot previously.

  1. Download the latest debian bootloader zip located here. Select the file matching  “dragonboard410c_bootloader_emmc_linux*.zip”.
  2. Download the bootimage located here. Select the file matching “boot-linaro-jessie-qcom-snapdragon-arm64-20151204-36.img.gz”
  3. Download the debian release located here. Select the file matching “linaro-jessie-alip-qcom-snapdragon-arm64-20151204-36.img.gz”

Connect Open-Q 410 Development Kit

fastbootdevice1

Check to make sure fastboot device is connected:

Open terminal and run the following command:

  1. fastboot devices

Fastboot should reply with a device ID.  If there is no returned device ID see troubleshooting at end of document.

Installing the bootloader

Open a terminal and run the following commands:
  1. mkdir ~/410
  2. mkdir ~/410/emmc
  3. mv <path-to-bootloader-download>/ dragonboard410c_bootloader_emmc_linux-40.zip ~/410/emmc
  4. mv <path-to-boot-img>/ boot-linaro-jessie-qcom-snapdragon-arm64-<VERSION>.img.gz ~/410
  5. mv <path-to-debian>/linaro-jessie-alip-qcom-snapdragon-arm64-<VERSION>.img.gz ~/410
  6. gzip –d ~/410/boot-linaro-jessie-qcom-snapdragon-arm64-<VERSION>.img.gz
  7. gzip –d ~/410/linaro-jessie-alip-qcom-snapdragon-arm64-<VERSION>.img.gz
  8. cd ~/410/emmc
  9. sudo ./flashall
  10. wait for flashall command to complete

The bootloader is now installed.

Installing Debian  

Open a terminal and run the following commands:

  1. cd ~/410
  2. sudo fastboot flash boot boot-linaro-jessie-qcom-snapdragon-arm64-<VERSION>.img
  3. sudo fastboot flash rootfs linaro-jessie-developer-qcom-snapdragon-arm64-<VERSION>.img
  4. Unplug the power to the DB410
  5. Unplug the micro USB fastboot cable
  6. Plug the power back into the Open-Q 410

Note: the username and password are both “linaro” when the login information is requested.

Troubleshooting

The DB410 can be forced into fastboot mode by holding down the S4 button (Vol -) during powerup.Should the above install fail or corrupt, it is possible to reflash using fastboot in this mode.

See this for more troubleshooting and installation instructions.

Author 

Chris Berg is a junior Embedded Software & Dev-Ops Engineer at Intrinsyc.  He joined Intrinsyc’s engineering team in January 2016 and has experience with Snapdragon Flight and several of Intrinsyc’s Open-Q development kit platforms. Chris holds a Bachelor’s Degree in Electrical and Computer Engineering and a minor in Computer Science from the University of Victoria.   He has experience in rapid prototyping of full end-to-end solutions including hardware, software, embedded systems, and interface design.


Comments are closed.

Job Id*

Your Name*

Your Email*

How did you find us?*

Location*

Resume