Difference between revisions of "Making an Arch Linux SD card for the Wandboard"

From Wandboard Wiki
Jump to: navigation, search
(Enabling wifi)
(Instructions)
Line 32: Line 32:
  
 
Flash u-boot image into SD card after compile finishes.<br>
 
Flash u-boot image into SD card after compile finishes.<br>
<code>sudo dd if=SPL of=/dev/sdc bs=1k seek=1 oflag=dsync</code><br>
+
<code># dd if=SPL of=/dev/$SDCARD bs=1k seek=1 oflag=dsync</code><br>
<code>sudo dd if=u-boot.img of=/dev/sdc bs=1k seek=69 oflag=dsync</code><br>
+
<code># dd if=u-boot.img of=/dev/$SDCARD bs=1k seek=69 oflag=dsync</code><br>
  
  
Line 63: Line 63:
  
 
Use root/root to login.
 
Use root/root to login.
 
 
  
 
== Enabling WiFi ==
 
== Enabling WiFi ==

Revision as of 07:34, 9 June 2015


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<br # pacman -S --noconfirm xorg-xinit xorg-server xorg-server-utils xterm<br # 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

# 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