Running Debian on the Open-Q™ 410 Development Kit
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
- Download the latest Debian SD card image from here. Download the archive called “dragonboard410c_sdcard_install_debian-*.zip”
- Open a terminal session on your PC and run the following commands:
- unzip dragonboard410c_sd*.zip
- mkdir ~/410
- mv db410c_sd*.img ~/410
Determine where your SD card is mounted on your PC
- 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
Flashing Debian onto SD card
Open terminal and run the following commands
- cd ~/410
- 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.
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.
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.
- Download the latest debian bootloader zip located here. Select the file matching “dragonboard410c_bootloader_emmc_linux*.zip”.
- Download the bootimage located here. Select the file matching “boot-linaro-jessie-qcom-snapdragon-arm64-20151204-36.img.gz”
- 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
Check to make sure fastboot device is connected:
Open terminal and run the following command:
- 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:
- mkdir ~/410
- mkdir ~/410/emmc
- mv <path-to-bootloader-download>/ dragonboard410c_bootloader_emmc_linux-40.zip ~/410/emmc
- mv <path-to-boot-img>/ boot-linaro-jessie-qcom-snapdragon-arm64-<VERSION>.img.gz ~/410
- mv <path-to-debian>/linaro-jessie-alip-qcom-snapdragon-arm64-<VERSION>.img.gz ~/410
- gzip –d ~/410/boot-linaro-jessie-qcom-snapdragon-arm64-<VERSION>.img.gz
- gzip –d ~/410/linaro-jessie-alip-qcom-snapdragon-arm64-<VERSION>.img.gz
- cd ~/410/emmc
- sudo ./flashall
- wait for flashall command to complete
The bootloader is now installed.
Installing Debian
Open a terminal and run the following commands:
- cd ~/410
- sudo fastboot flash boot boot-linaro-jessie-qcom-snapdragon-arm64-<VERSION>.img
- sudo fastboot flash rootfs linaro-jessie-developer-qcom-snapdragon-arm64-<VERSION>.img
- Unplug the power to the DB410
- Unplug the micro USB fastboot cable
- 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.