Making an Arch Linux SD card for the Wandboard

From Wandboard Wiki
Jump to: navigation, search


This article describes how to create an Arch Linux SD card for the Wandboard.

It also covers how to add some customization, like a user interface and a desktop, to the minimalistic default installation.

Instructions

For this content with a minimalistic installation can follow the excellent guide at: http://archlinuxarm.org/platforms/armv7/freescale/wandboard

For those wishing for a little more, the additional steps taken by the Wandboard team while making the 2015-06-09 demo SD card image.


Step 1

Create an SD card following the instruction on the arch linux page (above).


Step 2

Download u-boot from the wandboard git, and patch it with [1].

Compile SPL u-boot for the Wandboard.


Step 3

Flash u-boot image into SD card after compile finishes.
# dd if=SPL of=/dev/$SDCARD bs=1k seek=1 oflag=dsync
# dd if=u-boot.img of=/dev/$SDCARD bs=1k seek=69 oflag=dsync


Step 4

Install XFCE desktop environment by:
# pacman-key --init
# pacman -Syu --noconfirm
# pacman -S --noconfirm xorg-xinit xorg-server xorg-server-utils xterm
# pacman -S --noconfirm xfce4
# pacman -S --noconfirm mesa xf86-video-fbdev xf86-video-vesa
# pacman -S --noconfirm slim
# pacman -S --noconfirm wget
# systemctl enable slim.service
# systemctl enable graphical.target


# wget https://raw.github.com/adimania/arch-desktop-environments/master/xinitrc
# cat xinitrc >> ~/.xinitrc
# wget https://raw.github.com/adimania/arch-desktop-environments/master/bash_profile
# cat bash_profile >> ~/.bash_profile

Set the hostname, to set it to "wandboard" do:
# hostnamectl set-hostname wandboard

# reboot


Step 5

Your board boots up with a graphical login.

Use root/root to login.

Enabling WiFi

The default SD card attempts already to load the WiFi drivers, but fails due to missing firmwares.

Create a folder /lib/firmware/brcm and copy the firmware files there (they are in the SDK in wandboard downloads section).

# pacman -S wpa_supplicant dialog

and you are ready to setup your wireless network, using for instance:
# wifi-menu

For bluetooth support, one can try following the instructions in the SDK (brcm_patchram_plus etc)