Setup GUI Development Environment (eMMC Boot)

tutorial

#1

Overview
Targeting Linaro Release 17.09 (283) till Debian Baster is released.
Using

  • Windows 10 Pro x64
  • SanDisk Ultra 32GB
  • Tripp-Lite USB 3.0 SD Card Reader (Model# U352-000-SD-R)
  • Linksys USB3GIG USB 3.0 Gigabit Ethernet Adapter
  1. Create GUI development environment (eMMC boot)
  2. Setup GUI development environment (eMMC boot)

1. Create GUI development environment (eMMC boot)

  1. Download dragonboard410c_sdcard_install_debian-283.zip
  2. Unblock file (right mouse click, Properties, Unblock, OK)
  3. Unzip
  4. Delete dragonboard410c_sdcard_install_debian-283.zip and LICENSE files
  5. Install Rufus to create a bootable SD Card
  6. Put the 32GB SD card to the SD card reader
  7. run Rufus
  8. Set selections as shown in the image.
  9. Insert SD card into DB410c
  10. Set DIP switches to 0000
  11. Boot
  12. Install Linaro Linux Desktop (Alip) (flash image to eMMC)
    Flashing eMMC
  13. Remove SD card when prompted
  14. Click OK to reboot (disconnect and reconnect power if it hangs)

2. Setup GUI development environment (eMMC boot)
Connect to Wi-Fi
Connect USB Ethernet Adapter to your network
Rename host
sudo hostnamectl set-hostname [Host Name]
#Update /etc/hosts with [Host Name]

Add linaro to ssh groups
sudo adduser linaro ssh

Add user
sudo adduser [User Name]

Add user to same groups as linaro
sudo adduser [User Name] linaro
sudo adduser [User Name] adm
sudo adduser [User Name] dialout
sudo adduser [User Name] cdrom
sudo adduser [User Name] sudo
sudo adduser [User Name] audio
sudo adduser [User Name] dip
sudo adduser [User Name] video
sudo adduser [User Name] plugdev
sudo adduser [User Name] staff
sudo adduser [User Name] systemd-journal
sudo adduser [User Name] netdev
sudo adduser [User Name] bluetooth
sudo adduser [User Name] ssh
sudo adduser [User Name] pulse-access

Set user to boot with
Preferences -> KDE Systems Settings -> Workspace group -> Starup and Shutdown -> Advanced tab -> Change linaro to [User Name] user

Reboot (logged in as [User Name] user)

Add Packages on Developer build, but not on Alip build (for both linaro and [User Name] user)
sudo sed -i 's/deb/#deb/' /etc/apt/sources.list.d/hwpack.repo.list
sudo apt update
sudo apt upgrade -y
sudo apt-get install -y babeltrace crda hostapd input-utils libbabeltrace1:arm64 libc6-dbg:arm64 netcat-openbsd psmisc trace-cmd valgrind wireless-regdb

Add essential developer utilities
sudo apt-get install -y apt-utils ca-certificates lsb-release curl wget unzip procps tar openssh-server htop dos2unix nano mc tmux dirmngr apt-transport-https gnupg2 software-properties-common

SSH setup
sudo su
usermod –a –G ssh linaro
sed -i 's/#PermitRootLogin/PermitRootLogin/' /etc/ssh/sshd_config
sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
echo "AllowGroups ssh" >> /etc/ssh/sshd_config
sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
echo "export VISIBLE=now" >> /etc/profile
systemctl enable ssh
exit

Get IP address
ip addr show

Install Putty for Windows
Login with DB410c IP ([User Name]@[IP address])

Next tutorials
Install Azure CLI 2.0
Install Docker Edge (linux/arm64)
Clone eMMC GUI Development Environment to boot from SD card


Clone eMMC GUI Development Environment to boot from SD card
Install Azure CLI 2.0
Install Docker Edge (linux/arm64)