raspi - locale

vi /etc/environment and /etc/default/locale:


Slitaz - dos2unix


: not foundsh: line 4:

You have somehow added a CR character to each line. Fix by using dos2unix.

root@slitaz:~# sh ./raspbian.sh
: not foundsh: line 4:
test tap...
: not foundsh: line 7:
: not foundsh: line 9:
./raspbian.sh: cd: line 10: can't cd to /media/Audio1/raspi/raspbian
: not foundsh: line 12:

root@slitaz:~# dos2unix -u raspbian.sh

root@slitaz:~# ./raspbian.sh
test tap...

Usage: dos2unix [-ud] [FILE]

Convert FILE in-place from DOS to Unix format.
When no file is given, use stdin/stdout.

        -u      dos2unix
        -d      unix2dos

raspi case

Punnet Mk1



raspi - git

1. error: SSL certificate problem
# env GIT_SSL_NO_VERIFY=true git clone https://github.com/raspberrypi/linux.git --depth 1

root@slitaz:/dev/shm/git# git clone https://github.com/raspberrypi/linux.git --depth 1
Cloning into 'linux'...
error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/raspberrypi/linux.git/info/refs
fatal: HTTP request failed

2. git brach
# env GIT_SSL_NO_VERIFY=true git clone -b rpi-3.2.21 https://github.com/bootc/linux.git

https://github.com/bootc/linux/zipball/rpi-3.2.16  commit 9151b05ea0 bootc authored 2 months ago
https://github.com/bootc/linux/zipball/rpi-3.2.21 commit a1f8d7a26e bootc authored 2 days ago

root@slitaz:/home/tux# env GIT_SSL_NO_VERIFY=true git clone https://github.com/bootc/linux/tree/rpi-3.2.16 --depth 1
Cloning into 'rpi-3.2.16'...
fatal: https://github.com/bootc/linux/tree/rpi-3.2.16/info/refs not found: did you run git update-server-info on the server?

root@slitaz:/dev/shm# env GIT_SSL_NO_VERIFY=true git clone -b rpi-3.2.21 https://github.com/bootc/linux.git
Cloning into 'linux'...
remote: Counting objects: 2561446, done.
remote: Compressing objects: 100% (752654/752654), done.
remote: Total 2561446 (delta 2109624), reused 2226613 (delta 1783679)
Receiving objects: 100% (2561446/2561446), 827.00 MiB | 749 KiB/s, done.
Resolving deltas: 100% (2109624/2109624), done.
root@slitaz:/dev/shm# du -sh linux
1.4G    linux


Update:  20121205



SliTaz Images for the Raspberry Pi


rootfs: linux-3.2.14,  modules ??
-rwxr-xr-x    1 root     root       3890436 Apr 13 11:35 kernel.img    linux-3.1.9
-rwxr-xr-x    1 root     root       3890436 May 31 08:27 kernel.img   linux-??

1. SliTaz-ARM.20120529.235157.img
root@slitaz:~# ls /dev/shm/slitaz-arm
README                           SliTaz-ARM.20120529.235157.md5
SliTaz-ARM.20120529.235157.img   SliTaz-ARM.20120529.235157.sha1

root@slitaz:~# cat /dev/shm/slitaz-arm/README
Presenting the SliTaz image for the Raspberry Pi

.sha1 and .md5 files are contained within this archive - check the hashes before writing to your SD card!

For the latest image version see: http://kvarley.co.uk/RaspberryPi/SliTaz/

Need help writing this image to your SD card? See: http://elinux.org/RPi_Easy_SD_Card_Setup

3. partition
root@slitaz:~# file /dev/shm/slitaz-arm/SliTaz-ARM.20120529.235157.img
/dev/shm/slitaz-arm/SliTaz-ARM.20120529.235157.img: x86 boot sector; partition 1: ID=0xc, active, starthead 0, startsector 2048, 145408 sectors; partition 2: ID=0x83, starthead 3, startsector 147456, 391168 sectors; partition 3: ID=0x82, starthead 3, startsector 538624, 194560 sectors, code offset 0xb8

4. partition 2: ID=0x83
root@slitaz:~# mount -o,offset=75497472 /dev/shm/slitaz-arm/SliTaz-ARM.20120529.235157.img /mnt/rasp
root@slitaz:~# cd /mnt/rasp
root@slitaz:/mnt/rasp# ls
bin         etc         lib         mnt         sbin        usr
boot        home        lost+found  proc        sys         var
dev         init        media       root        tmp

root@slitaz:/mnt/rasp# ls lib/modules/3.2.14-slitaz/kernel
root@slitaz:/mnt/rasp# ls lib/modules/3.2.14-slitaz/kernel/drivers

root@slitaz:/mnt/rasp# cat var/lib/tazpkg/mirror

root@slitaz:/mnt/rasp# ls var/lib/tazpkg/installed | wc -l

5. partition 1: ID=0xc
root@slitaz:/mnt/rasp# mount -o,offset=1048576 /dev/shm/slitaz-arm/SliTaz-ARM.20120529.235157.img /mnt/fat
root@slitaz:/mnt/rasp# ls -l ../fat
total 28096
-rwxr-xr-x    1 root     root       2029700 May 31 08:27 arm128_start.elf
-rwxr-xr-x    1 root     root       2029700 May 31 08:27 arm192_start.elf
-rwxr-xr-x    1 root     root       2029700 May 31 08:27 arm224_start.elf
-rwxr-xr-x    1 root     root         16528 May 31 08:27 bootcode.bin
-rwxr-xr-x    1 root     root           273 May 31 08:27 boot_enable_ssh.rc
-rwxr-xr-x    1 root     root           124 May 31 08:27 cmdline.txt
-rwxr-xr-x    1 root     root            26 May 31 08:27 issue.txt
-rwxr-xr-x    1 root     root      16412020 May 31 08:27 kernel_emergency.img
-rwxr-xr-x    1 root     root       3890436 May 31 08:27 kernel.img  
-rwxr-xr-x    1 root     root        314691 May 31 08:27 loader.bin
-rwxr-xr-x    1 root     root       2029700 May 31 08:27 start.elf

6. debian6-13-04-2012.img
root@slitaz:/media/Audio1/raspi/debian6-13-04-2012# mount -o,offset=1048576 debian6-13-04-2012.img /mnt/sda1
root@slitaz:/media/Audio1/raspi/debian6-13-04-2012# ls -l /mnt/sda1
total 27972
-rwxr-xr-x    1 root     root       2000828 Apr 13 11:35 arm128_start.elf
-rwxr-xr-x    1 root     root       2000828 Apr 13 11:35 arm192_start.elf
-rwxr-xr-x    1 root     root       2000828 Apr 13 11:35 arm224_start.elf
-rwxr-xr-x    1 root     root         16528 Apr 13 11:35 bootcode.bin
-rwxr-xr-x    1 root     root           141 Apr 13 11:35 cmdline_testmode.txt
-rwxr-xr-x    1 root     root           138 Apr 13 11:35 cmdline.txt
-rwxr-xr-x    1 root     root      16412020 Apr 13 11:35 kernel_emergency.img
-rwxr-xr-x    1 root     root       3890436 Apr 13 11:35 kernel.img  
-rwxr-xr-x    1 root     root        314691 Apr 13 11:35 loader.bin
-rwxr-xr-x    1 root     root           208 Apr 13 11:35 onetime-config.txt
-rwxr-xr-x    1 root     root       2000828 Apr 13 11:35 start.elf

Extract from


Resources for the Raspberry Pi.


SliTaz - SD card images for the Raspberry Pi.

Most Recent Image

All Builds



raspi autologin

raspi autologin

Extract from
TheMagPi http://www.themagpi.com

Raspbian Repository

Extract from

Raspbian Repository

deb http://archive.raspbian.org/raspbian wheezy main
deb-src http://archive.raspbian.org/raspbian wheezy main

apt-get keyring
wget http://archive.raspbian.org/raspbian.public.key -O - | sudo apt-key add -


Unofficial Raspbian Images

Username  Password
root  raspbian
raspbian raspbian
Updated to the latest Raspberry Pi firmware and kernel as of June 19th 
Xorg and MATE desktop included 

Pisces R2 rpi_pisces_r2.zip
GNU C and C++ compilers included
Xorg and LXDE included, type "startx" to launch this after logging in 
Updated to the latest Raspberry Pi firmware and kernel as of 6th June
Username Password
root  raspbian
raspbian raspbian 
http://distribution.hexxeh.net/raspbian/raspbian-r3.zip 222 MB image
LXDE and Xorg server now included, type "startx" to launch this after logging in
Updated to the latest Raspberry Pi firmware and kernel as of 13th May 
Raspbian QEMU Image
  * Built and tested with QEMU 1.0.1 on Windows 7.
  * QEMU emulated versatilepb with arm1136 (armv6) processor.
  * Image partitioned with 8GB ext3 filesystem with 512MB swap.
  * Suitable armv6 enabled kernel and initrd are provided.
  * Minimal install of Debian armhf.
  * build-essential and openssh packages installed.
  * System boots to networking with DHCP (QEMU config dependent).
  * Two user accounts on system:
    Username/Password: root/root raspbian/raspbian

raspi - Raspbian

Extract from


Raspbian is a free operating system based on Debian for the Raspberry Pi. An operating system is the set of basic programs and utilities that make your Rasberry Pi run.
Raspbian provides more than a pure OS: it comes with over 34,000 packages, pre-compiled software bundled in a nice format for easy installation on your Raspberry Pi. 

What is Raspbian?

Raspbian is an unofficial port of Debian Wheezy armhf with compilation settings adjusted to produce optimized "hard float" code that will run on the Raspberry Pi. This should provide significantly faster performance for applications that make heavy use of floating point arithmetic operations. 

The port is necessary because the official Debian Wheezy armhf release is compatible only with versions of the ARM architecture later than the one used on the Raspberry Pi (ARMv7-A CPUs and higher, vs the Raspberry Pi's ARMv6 CPU).

The official Debian Squeeze image issued by the Raspberry Pi foundation uses "soft float" settings. The foundation found it necessary to use the existing
Debian port for less capable ARM devices due to time and resource constraints during development of the Raspberry Pi. Therefore, it does not use of the Pi's processor's floating point hardware - reducing the Pi's performance during floating point intensive applications - or the advanced instructions of the ARMv6 CPU.


What compilation options should be set Raspbian code?

The compiler tools included in the Raspbian repository are, by default, pre-configured to produce code compatible with Raspbian. However, if you are looking to port compiler tools over to Raspbian, the settings required for most GNU tools are as follows:
  • -march=armv6
  • -mfpu=vfp
  • -mfloat-abi=hard
These settings produce code with armv6 specific instructions, vector floating point instructions and specify the ARM EABI where floating point values are to be passed in floating point registers. Additional information can be found in the Debian hard float documents.

raspi - distributions

Update: 20121029

Update: 20120730




raspi - pisection

Extract from

TheMagPi http://www.themagpi.com

raspi - TheMagPi

TheMagPi A Magazine for Raspberry Pi Users

Official website of The MagPi magazine.

The MagPi, a community led magazine keeping you up to date with all things
Raspberry Pi.

ISSUE 01 - MAY 2012

ISSUE 02 - JUN 2012

(draft version) ISSUE 3 - JUL 2012