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

From Wandboard Wiki
Jump to: navigation, search
(Instructions)
(Instructions)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
  
== Introduction ==
 
  
This article how to create an Arch Linux SD card for the Wandboard.
+
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
 
It also covers how to add some customization, like a user interface
 
and a desktop, to the minimalistic default installation.
 
and a desktop, to the minimalistic default installation.
 
  
 
== Instructions ==
 
== Instructions ==
Line 33: 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 41: Line 40:
 
Install XFCE desktop environment by:<br>
 
Install XFCE desktop environment by:<br>
 
<code># pacman-key --init</code><br>
 
<code># pacman-key --init</code><br>
<code># pacman -Syu --noconfirm</code><br
+
<code># pacman -Syu --noconfirm</code><br>
<code># pacman -S --noconfirm xorg-xinit xorg-server xorg-server-utils xterm</code><br
+
<code># pacman -S --noconfirm xorg-xinit xorg-server xorg-server-utils xterm</code><br>
 
<code># pacman -S --noconfirm xfce4</code><br>
 
<code># pacman -S --noconfirm xfce4</code><br>
 
<code># pacman -S --noconfirm mesa xf86-video-fbdev xf86-video-vesa</code><br>
 
<code># pacman -S --noconfirm mesa xf86-video-fbdev xf86-video-vesa</code><br>
Line 55: Line 54:
 
<code># wget https://raw.github.com/adimania/arch-desktop-environments/master/bash_profile</code><br>
 
<code># wget https://raw.github.com/adimania/arch-desktop-environments/master/bash_profile</code><br>
 
<code># cat bash_profile >> ~/.bash_profile</code><br>
 
<code># cat bash_profile >> ~/.bash_profile</code><br>
 +
 +
Set the hostname, to set it to "wandboard" do:<br>
 +
<code># hostnamectl set-hostname wandboard</code><br>
  
 
<code># reboot</code>
 
<code># reboot</code>
Line 64: Line 66:
  
 
Use root/root to 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 <code>/lib/firmware/brcm</code> and copy the firmware files there
 +
(they are in the SDK in wandboard downloads section).
 +
 +
<code># pacman -S wpa_supplicant dialog</code><br>
 +
 +
and you are ready to setup your wireless network, using for instance:<br>
 +
<code># wifi-menu</code><br>
 +
 +
For bluetooth support, one can try following the instructions in the SDK (brcm_patchram_plus etc)

Latest revision as of 07:53, 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
# 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)