{{Note|Support for the ARM architecture is provided on http://archlinuxarm.org/ }}

+

[[Category:Getting and installing Arch]]

−

=Introduction=

+

[[cs:Raspberry Pi]]

+

[[ru:Raspberry Pi]]

+

{{Article summary start}}

+

{{Article summary text|Raspberry Pi (RPi) is a minimalist computer built for the [[Wikipedia:ARMv6|ARMv6 architecture]]. [http://www.raspberrypi.org/ More information about this project] and [http://uk.farnell.com/raspberry-pi technical specification].}}

It is a minimalist computer built for ARMv6 architecture. More information about this project can be found on http://www.raspberrypi.org/ and technical specification to: http://cz.farnell.com/raspberry-pi?ref=lookahead

+

== Article Preface ==

+

This article is not meant to be an exhaustive setup guide and assumes that the reader has setup an Arch system before. Arch newbies are encouraged to read the [[Beginners' Guide]] if unsure how to preform standard tasks such as creating users, managing the system, etc.

−

==Installing Arch Linux ARM==

+

{{Note|Support for the ARM architecture is provided on http://archlinuxarm.org not through posts to the official Arch Linux Forum. Any posts related to ARM specific issues will be promptly closed per the [https://wiki.archlinux.org/index.php/Forum_Etiquette#Arch_Linux_Distribution_Support_ONLY Arch Linux Distribution Support ONLY] policy.}}

−

In this manual will describe only essential moments for different RPI. Other procedures are the same instructions for ArchLinux. The only exception is the basic initialization and installation of equipment. It is further assumed that the configuration is performed on a machine running Archlinux.

+

== Installing Arch Linux ARM ==

−

==Backup Cards==

+

See the [http://archlinuxarm.org/platforms/armv6/raspberry-pi#qt-platform_tabs-ui-tabs2 archlinuxarm documentation].

−

If you own an official card provided with your RPI, for example http://cz.farnell.com/samsung/raspberry-pi-prog-4gb-sdcard/memory-sdcard-raspberry-pi-4gb/dp/2113756 recommend before installing Arch ARM Linux to backup using {{ic | dd}}. The path must be specified to the device {{ic | / dev / sdX}} not for another partition / dev/sdc1

−

# Dd if = / path / to / sdX of = / home / $ USER / backup_RPi.img

+

== Audio ==

+

{{Note| The requisite module '''snd-bcm2835''' should be autoloaded by default.}}

+

Install the needed packages:

+

pacman -S alsa-utils alsa-firmware alsa-lib alsa-plugins

−

{{Note | There is a bit copy of the card. The resulting file is the same size as your card.}}

+

Optionally adjust the default volume using `alsamixer` and ensure that the sole source "PCM" is not muted (denoted by double MM if muted).

−

{{Note | card may not be installed.}}

−

{{Warning | Bad enter if and of prarmetru can damage your data.}}

−

==Installation==

+

Select an audio source for output:

+

amixer cset numid=3 x

−

Installation is similar to backing card. Download the image file from Arch Linux ARM http://archlinuxarm.org/platforms/armv6/raspberry-pi

+

Where 'x' corresponds to:

−

Image copy using {{ic | dd}}.

+

*0 for Auto

+

*1 for Analog out

+

*3 for HDMI

−

# Dd bs = 1M if = / path / to / archlinux.img of = / dev / sdX

+

=== Caveats for HDMI Audio ===

+

Some applications require a setting in {{ic|/boot/config.txt}} to force audio over HDMI:

+

hdmi_drive=2

−

After inserting the card into the slot on the PPi should boot the base system Arch Linux ARM.

+

== Onboard Hardware Sensors ==

+

=== Temperature ===

+

Temperatures sensors for the board itself are including as part of the '''raspberrypi-firmware-tools''' package. The RPi offers a sensor on the BCM2835 SoC (CPU/GPU):

−

==Home==

+

/opt/vc/bin/vcgencmd measure_temp

+

temp=49.8'C

−

The downloaded image file is approximately 2 gigabytes of which is / boot and 94 megabytes / 1.8 gigabytes If you used a larger card to 2GB, so I recommend the rest of the card to connect as / home (or / usr ...). Clearance must be formatted using the example [[Gparted]]. At the first possible opportunity (after booting RPI or after mounting the card in the computer) need to be adjusted {{ic | / etc / fstab}}

+

Alternatively, simply read from the filesystem:

+

% cat /sys/class/thermal/thermal_zone0/temp

+

49768

−

# Sudo vim / etc / fstab

+

=== Voltage ===

+

Four different voltages can be monitored via {{ic|/opt/vc/bin/vcgencmd}} as well:

−

For example, add

+

% /opt/vc/bin/vcgencmd measure_volts <id>

−

/ Dev/mmcblk0p3 / home ext4 defaults 0 0

+

*core for core voltage

+

*sdram_c for sdram Core voltage

+

*sdram_i for sdram I/O voltage

+

*sdram_p for sdram PHY voltage

−

The first operation == ==

+

=== Lightweight Monitoring Suite ===

+

{{AUR|Monitorix}} has specific support for the RPi since v3.2.0. Screenshots available [[http://www.monitorix.org/screenshots.html here]].

−

The official procedure here: http://archlinuxarm.org/support/guides/system/first-steps

+

== Overclocking/Underclocking ==

−

Summary:

+

The RPi can be overclocked by editing {{ic|/boot/config.txt}}, for example:

−

−

==Remote SSH access==

−

−

If you do not use the HDMI output RPI and you will access the device using SSH, the following applies.

After the first start RPI is nastaveho root password to root. It is therefore necessary to change it. Executed after power command {{ic | passwd}}

−

−

# Passwd root

−

−

==Adding another user==

−

Ic using {{|}} adduser to add the user.

−

−

# Adduser

−

−

==Sudo==

−

Start ic {{|}} visudo

−

−

# Sudo visudo

−

−

add the line "USER ALL = (ALL) ALL" below the line root ALL = (ALL) ALL

−

−

==Installing programs and environment==

−

−

Below is a brief overview of the basic packages and procedures that are initially desolation RPI could come in handy.

−

−

==Search==

−

−

To search for files and folders on the disc serves [[mlocate]].

−

−

# Pacman-S mlocate

−

−

after installation, you must restore the database

−

−

# Updatedb

−

−

==Shell==

−

For work I recommend [[zsh]].

−

−

# Pacman-S zsh

−

−

run

−

−

$ Chsh

−

−

and set

−

/ Bin / zsh

+

arm_freq=800

−

+

arm_freq_min=100

−

==Graphical environment==

+

core_freq=300

−

+

core_freq_min=75

−

You need to install X server [[xorg]]:

+

sdram_freq=400

+

over_voltage=0

−

# Pacman-S xorg-server xorg-xinit xorg-server-utils xinit xterm xorg-

+

The optional xxx_min lines define the min usage of their respective settings. When the system is not under load, the values will drop down to those specified. Consult the [http://elinux.org/RPiconfig#Overclocking Overclocking] article on elinux for additional options and examples.

−

[[Mesa]]

+

A reboot is needed for new settings to take effect.

−

# Pacman-S mesa

+

{{Note|The overclocked setting for CPU clock applies only when the governor throttles up the CPU, i.e. under load.}}

Adjustments are likely required to correct proper overscan/underscan and are easily achieved in {{ic|boot/config.txt}} in which many tweaks are set. To fix, simply uncomment the corresponding lines and setup per the commented instructions:

−

exec ck-launch-session dbus-launch startlxde

+

# uncomment the following to adjust overscan. Use positive numbers if console

+

# goes off screen, and negative if there is too much border

+

#overscan_left=16

+

overscan_right=8

+

overscan_top=-16

+

overscan_bottom=-16

−

==Running LXDE environment:==

+

Users wishing to use the analog video out should consult [https://raw.github.com/Evilpaul/RPi-config/master/config.txt this] config file which contains options for non-NTSC outputs.

Article Preface

This article is not meant to be an exhaustive setup guide and assumes that the reader has setup an Arch system before. Arch newbies are encouraged to read the Beginners' Guide if unsure how to preform standard tasks such as creating users, managing the system, etc.

Overclocking/Underclocking

The optional xxx_min lines define the min usage of their respective settings. When the system is not under load, the values will drop down to those specified. Consult the Overclocking article on elinux for additional options and examples.

A reboot is needed for new settings to take effect.

Note: The overclocked setting for CPU clock applies only when the governor throttles up the CPU, i.e. under load.

Video

pacman -S xf86-video-fbdev

Adjustments are likely required to correct proper overscan/underscan and are easily achieved in boot/config.txt in which many tweaks are set. To fix, simply uncomment the corresponding lines and setup per the commented instructions:

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
overscan_right=8
overscan_top=-16
overscan_bottom=-16

Users wishing to use the analog video out should consult this config file which contains options for non-NTSC outputs.