Difference between revisions of "Raspberry Pi"

From ArchWiki
Jump to: navigation, search
m
(added more content)
Line 1: Line 1:
 
[[Category:Getting and installing Arch]]
 
[[Category:Getting and installing Arch]]
 +
{{Article summary start}}
 +
{{Article summary text|Raspberry Pi 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].}}
 +
{{Article summary heading|Related}}
 +
{{Article summary wiki|Beginners%27_Guide}} - 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.
 +
{{Article summary end}}
 +
 
{{Note|Support for the ARM architecture is provided on http://archlinuxarm.org/ }}
 
{{Note|Support for the ARM architecture is provided on http://archlinuxarm.org/ }}
 +
Posts to the official Arch Linux Forum related to ARM specific issues will be promptly closed.
  
How mature is Raspberry Pi (RPI). A brief overview.
+
== Installing Arch Linux ARM ==
  
== What is Raspberry Pi? ==
+
See the [http://archlinuxarm.org/platforms/armv6/raspberry-pi#qt-platform_tabs-ui-tabs2 archlinuxarm documentation].
  
It 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].
+
== Audio ==
 +
{{Note| The requisite module '''snd-bcm2835''' should be autoloaded by default.}}
  
== Installing Arch Linux ARM ==
+
Install the needed packages:
 +
pacman -S alsa-utils alsa-firmware alsa-lib alsa-plugins
  
See the [http://archlinuxarm.org/platforms/armv6/raspberry-pi#qt-platform_tabs-ui-tabs2 archlinuxarm documentation].
+
Optionally adjust the default volume using `alsamixer` and ensure that the sole source "PCM" is not muted (denoted by double MM if muted).
 +
 
 +
Select an audio source for output:
 +
cset numid=3 x
 +
 
 +
Where 'x' corresponds to:
 +
*0 for Auto
 +
*1 for Headphones
 +
*3 for HDMI
 +
 
 +
=== Caveats for HDMI ===
 +
Some applications require a setting in {{ic|/boot/config.txt}} to force audio over HDMI:
 +
hdmi_drive=2
  
 
== Video ==
 
== Video ==
 +
pacman -S xf86-video-fbdev
 +
 +
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:
 +
 +
# 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
 +
 +
A reboot is needed for new settings to take effect.
 +
 +
== Overclocking ==
 +
The Raspberry Pi can be overclocked by editing {{ic|/boot/config.txt}}, for example:
 +
 +
# Modest
 +
arm_freq=800
 +
core_freq=300
 +
sdram_freq=400
 +
over_voltage=0
 +
 +
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.}}
  
The generic {{pkg|xf86-video-fbdev}} driver can be used.
+
Users may query the current frequency of the CPU via this command:
 +
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
  
 
== Serial Console ==
 
== Serial Console ==
Line 20: Line 67:
  
 
Change loglevel to 5 to see boot messages
 
Change loglevel to 5 to see boot messages
  # loglevel=5
+
  loglevel=5
  
 
Change speed from 115200 to 38400
 
Change speed from 115200 to 38400
  # console=ttyAMA0,38400 kgdboc=ttyAMA0,38400
+
  console=ttyAMA0,38400 kgdboc=ttyAMA0,38400
  
 
Start getty service
 
Start getty service
  # systemctl start getty@ttyAMA0
+
  systemctl start getty@ttyAMA0
  
 
Enable on boot
 
Enable on boot
  # systemctl enable getty@ttyAMA0.service
+
  systemctl enable getty@ttyAMA0.service
  
 
Creating the proper service link:
 
Creating the proper service link:
  # ln -s /usr/lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@ttyAMA0.service
+
  ln -s /usr/lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@ttyAMA0.service
  
 
Then connect :)
 
Then connect :)
  # screen /dev/ttyUSB0 38400
+
  screen /dev/ttyUSB0 38400
  
 
  Referenced from these [http://www.raspberrypi.org/phpBB3/viewtopic.php?f=53&t=19186] posts [https://bbs.archlinux.org/viewtopic.php?id=144847]
 
  Referenced from these [http://www.raspberrypi.org/phpBB3/viewtopic.php?f=53&t=19186] posts [https://bbs.archlinux.org/viewtopic.php?id=144847]

Revision as of 15:03, 6 April 2013

Summary help replacing me
Raspberry Pi is a minimalist computer built for the ARMv6 architecture. More information about this project and technical specification.
Related
Beginners'_Guide - 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.
Note: Support for the ARM architecture is provided on http://archlinuxarm.org/

Posts to the official Arch Linux Forum related to ARM specific issues will be promptly closed.

Installing Arch Linux ARM

See the archlinuxarm documentation.

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

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

Select an audio source for output:

cset numid=3 x

Where 'x' corresponds to:

  • 0 for Auto
  • 1 for Headphones
  • 3 for HDMI

Caveats for HDMI

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

hdmi_drive=2

Video

pacman -S xf86-video-fbdev

Adjustments are likely required to correct proper overscan/underscan and are easily achieved in Template:Ic/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

A reboot is needed for new settings to take effect.

Overclocking

The Raspberry Pi can be overclocked by editing /boot/config.txt, for example:

# Modest
arm_freq=800
core_freq=300
sdram_freq=400
over_voltage=0

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.

Users may query the current frequency of the CPU via this command:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq

Serial Console

Edit the default /boot/cmdline.txt

Change loglevel to 5 to see boot messages

loglevel=5

Change speed from 115200 to 38400

console=ttyAMA0,38400 kgdboc=ttyAMA0,38400

Start getty service

systemctl start getty@ttyAMA0

Enable on boot

systemctl enable getty@ttyAMA0.service

Creating the proper service link:

ln -s /usr/lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@ttyAMA0.service

Then connect :)

screen /dev/ttyUSB0 38400
Referenced from these [1] posts [2]