2012-09-23

mk802 -- wifi

RTL8188CUS 802.11n WLAN Adapter

1.
root@arm:~# lsusb | grep RTL
Bus 003 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

2.
root@arm:~# lsmod
Module                  Size  Used by
cpufreq_powersave       1076  0
pegasus                20639  0
fbcon                  36269  70
font                    7715  1 fbcon
bitblit                 4179  1 fbcon
softcursor              1131  1 bitblit
8192cu                515490  0

3.
root@arm:~# modinfo 8192cu | head
filename:       /lib/modules/3.0.42-bv1/kernel/drivers/net/wireless/rtl8192cu/8192cu.ko
version:        v3.3.2_3192.20120103
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
license:        GPL
srcversion:     BB2AE8E045935F430768E1D
alias:          usb:v0BDAp8186d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0E66p0019d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0846p9021d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0B05p17ABd*dc*dsc*dp*ic*isc*ip*

4.
root@arm:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

# The primary network interface
auto eth1
iface eth1 inet dhcp
# Example to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE

# WiFi Example
auto wlan0
iface wlan0 inet dhcp
    wpa-ssid "your ssid"
    wpa-psk  "your passwd"

5.
root@arm:~# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 48:02:2a:xx:xx:xx
          inet addr:192.168.1.31  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:27321 errors:0 dropped:575330 overruns:0 frame:0
          TX packets:1527 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:49721241 (47.4 MiB)  TX bytes:2125537 (2.0 MiB)
.

mk802 -- Debian wheezy

1.
Debian wheezy for MK802

2.
root@arm:~# uname -a
Linux arm 3.0.42-bv1 #1 PREEMPT Mon Sep 10 08:10:21 CST 2012 armv7l GNU/Linux

3.
root@arm:~# head /var/log/dmesg
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Linux version 3.0.42-bv1 (root@mint) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1-2012.08-20120827 - Linaro GCC 2012.08) ) #1 PREEMPT Mon Sep 10 08:10:21 CST 2012
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: sun4i
[    0.000000] Total Detected Memory: 512MB with 1 banks
[    0.000000] 64 MB reserved for MALI
[    0.000000] Memory Reserved:
[    0.000000]  SYS  : 0x43000000 - 0x4300ffff  (  64 kB)
[    0.000000]  VE   : 0x44000000 - 0x48ffffff  (  80 MB)

root@arm:~# cat /proc/cpuinfo
Processor       : ARMv7 Processor rev 2 (v7l)
BogoMIPS        : 1001.88
Features        : swp half thumb fastmult vfp edsp neon vfpv3
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x3
CPU part        : 0xc08
CPU revision    : 2

Hardware        : sun4i
Revision        : 0000
Serial          : 0000000000000000
root@arm:~#

4.
root@arm:~# free -m
             total       used       free     shared    buffers     cached
Mem:           782        210        571          0         22        163
-/+ buffers/cache:         24        757
Swap:            0          0          0

5.
root@arm:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs          925M  638M  240M  73% /
/dev/root       925M  638M  240M  73% /
devtmpfs        392M     0  392M   0% /dev
tmpfs            79M  220K   79M   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           157M     0  157M   0% /run/shm
/dev/mmcblk0p1   16M  4.0M   13M  25% /boot/uboot

6.
root@arm:~# cat /proc/cmdline
console=ttyS0,115200 root=/dev/mmcblk0p2 loglevel=8 panic=10 rootwait mem=928M
root@arm:~#

mk802 -- a10 boot process

 

brom -> boot0 -> boot1 -> boot.axf -> u-boot -> kernel

A10 boot overview

A10 is a quite 'closed chip'. There is a brom in the chip, which can not be modified. This brom will load program from external storage(nand, mmc), which is called boot0 in allwinner. Brom will check the header of boot0, and get hardware information from boot0. The hardware information is in a config file called sys_config.fex. A pc tools will read the config file, and write the hardware information to the head of boot0. After boot0 is booted up, it will continue to load another loader boot1, boot1 init all other hardware and provides hardware abstracts and services. According to the boot OS, boot1 loads an arm elf program, boot.axf. For booting linux, boot.axf loads the u-boot and jumps to the u-boot. Then u-boot will take over.
So, the whole boot process is: brom -> boot0 -> boot1 -> boot.axf -> u-boot -> kernel

mk802 II -- AllWinner A10




Android4.0 MINP PC SPEC MK802 II





Model
MK802 II
OS
Android 4.0
Main Chip
Allwinner A10/ 1GHz Cortex-A8
Memory
1GB
Storage
4GB
Graphical processor
2D/ 3D/ OpenGL ES2.0(AMD Z430)/ OpenVG1.1(AMD Z160)@27M Tri/sec
Network
Wireless 802.11b/g/n, WAPIRalink8188
Expand Memory
Micro TF 2-32GB
IO/Ports
Micro USBX2; USB2.0X1; HDMIX1; MicroSDX1
Keyboard
Support virtual keyboard, support 2.4G wireless keyboard, fly mouse
Audio
AAC, AAC+, eAAC+, AMR-NB, AMR-WB, QCP, MP3, WMA, WAV, MIDI, M4A 
Video
WMV/ASF/MP4/3GP/3G2M4V/AVI/MJPEG/RV10/DivX/VC-1/MPEG-2/
MPEG-4/H.263/H.264/1280*720P HD 30 fps, 1080P/720*480 D1 30fps
Android APP
Youtube,Twitter,AngryBird,Office,Gmail,Browse,Skype.
HDMI
1080P&2160P
Power Input
Powered the the USB port.
Accessory
MicroUSB to USB(male) cable; MircoUSB to USB(female) adapter;

HDMI female to male cable.
Unit Size
9.7*2.8*1.2cm
Total weight
0.2kg



AllWinner_A1X

The Allwinner A1X, known under Linux as sunxi, is a family of SoC devices designed by AllWinner Technology Co. Ltd. from Zhuhai, China. Currently the family consists of the A13[1] and the A10.[2] The SoCs incorporate the ARM Cortex-A8 as its main processor[3] and the Mali 400 as the GPU.

The Allwinner A1X is known for its ability to easily boot from an SD card GNU/Linux distributions such as Debian, Ubuntu, and other ARM architecture-capable GNU/Linux distributions. The ability is in addition to the Android OS usually installed on the Flash memory of the device.

Models

Currently the A1X family consists of two models. The A10 (sun4i) is the current full-featured SoC with all the features outlined below. The A13 (sun5i) is a lower power consumption and lower cost version of the A10 which is designed primarily for tablet computers. The A13 does not have HDMI or SATA connections.


List of ARM microprocessor cores
Architecture Family
ARMv1 ARM1
ARMv2 ARM2, ARM3
ARMv3 ARM6, ARM7
ARMv4 StrongARM, ARM7TDMI, ARM9TDMI
ARMv5 ARM7EJ, ARM9E, ARM10E, XScale
ARMv6 ARM11, ARM Cortex-M
ARMv7 ARM Cortex-A, ARM Cortex-M, ARM Cortex-R
ARMv8 No cores available yet. Will support 64-bit data and addressing

Family:Classic, Embedded and Application

(arm.com)

Allwinner A10 Datasheet v1.21(PDF, 83 pages, 2012-04-06)


ARM_Cortex-A8


2012-09-22

Raspi -- turbo mode


Extract from:

Introducing turbo mode: up to 50% more performance for free

[..]

What does this mean? Comparing the new image with 1GHz turbo enabled, against the previous image at 700MHz, nbench reports 52% faster on integer, 64% faster on floating point and 55% faster on memory.

Previous image (2012-08-16-wheezy-raspbian):

BYTEmark* Native Mode Benchmark ver. 2 (10/95)
Index-split by Andrew D. Balsa (11/97)
Linux/Unix* port by Uwe F. Mayer (12/96,11/97)

TEST : Iterations/sec. : Old Index : New Index
: : Pentium 90* : AMD K6/233*
--------------------:------------------:-------------:------------
NUMERIC SORT : 222.08 : 5.70 : 1.87
STRING SORT : 31.659 : 14.15 : 2.19
BITFIELD : 7.1294e+07 : 12.23 : 2.55
FP EMULATION : 44.808 : 21.50 : 4.96
FOURIER : 2188.1 : 2.49 : 1.40
ASSIGNMENT : 2.6545 : 10.10 : 2.62
IDEA : 671.41 : 10.27 : 3.05
HUFFMAN : 414.2 : 11.49 : 3.67
NEURAL NET : 2.9586 : 4.75 : 2.00
LU DECOMPOSITION : 77.374 : 4.01 : 2.89
=====================ORIGINAL BYTEMARK RESULTS=====================
INTEGER INDEX : 11.414
FLOATING-POINT INDEX: 3.619
Baseline (MSDOS*) : Pentium* 90, 256 KB L2-cache, ...
=========================LINUX DATA BELOW==========================
CPU :
L2 Cache :
OS : Linux 3.1.9+
C compiler : arm-linux-gnueabihf-gcc
libc : static
MEMORY INDEX : 2.447
INTEGER INDEX : 3.192
FLOATING-POINT INDEX: 2.007
Baseline (LINUX) : AMD K6/233*, 512 KB L2-cache, gcc 2.7.2.3, ..
* Trademarks are property of their respective holder.

New image, with 1GHz turbo enabled:

BYTEmark* Native Mode Benchmark ver. 2 (10/95)
Index-split by Andrew D. Balsa (11/97)
Linux/Unix* port by Uwe F. Mayer (12/96,11/97)

TEST : Iterations/sec. : Old Index : New Index
: : Pentium 90* : AMD K6/233*
--------------------:------------------:-------------:------------
NUMERIC SORT : 340.8 : 8.74 : 2.87
STRING SORT : 47.52 : 21.23 : 3.29
BITFIELD : 1.05e+08 : 18.01 : 3.76
FP EMULATION : 66.32 : 31.82 : 7.34
FOURIER : 3431 : 3.90 : 2.19
ASSIGNMENT : 4.5311 : 17.24 : 4.47
IDEA : 991.67 : 15.17 : 4.50
HUFFMAN : 615.08 : 17.06 : 5.45
NEURAL NET : 4.76 : 7.65 : 3.22
LU DECOMPOSITION : 135.12 : 7.00 : 5.05
=====================ORIGINAL BYTEMARK RESULTS=====================
INTEGER INDEX : 17.356
FLOATING-POINT INDEX: 5.933
Baseline (MSDOS*) : Pentium* 90, 256 KB L2-cache, ...
=========================LINUX DATA BELOW==========================
CPU :
L2 Cache :
OS : Linux 3.2.27+
C compiler : arm-linux-gnueabihf-gcc
libc : static
MEMORY INDEX : 3.810
INTEGER INDEX : 4.768
FLOATING-POINT INDEX: 3.291
Baseline (LINUX) : AMD K6/233*, 512 KB L2-cache, gcc 2.7.2.3, ..
* Trademarks are property of their respective holder.

2012-09-01

Slitaz -- raspi-alsa



BCM2835 ALSA

1.
root@slitaz:~# modprobe snd-bcm2835
### snd_bcm2835_alsa_probe c05e0958 ############### PROBING FOR bcm2835 ALSA device (0):(1) ###############
Creating card...
Creating device/chip ..
Adding controls ..
Registering card ....
bcm2835 ALSA CARD CREATED!
### BCM2835 ALSA driver init OK ###

2.
root@slitaz:~# spk-ls --short | grep alsa
alsa-lib 1.0.25
alsa-utils 1.0.25

3.
root@slitaz:~# ls -l /usr/share/sounds/alsa
total 1205
-rw-r--r-- 1 root root 137134 Jun 1 2012 Front_Center.wav
-rw-r--r-- 1 root root 142128 Jun 1 2012 Front_Left.wav
-rw-r--r-- 1 root root 146990 Jun 1 2012 Front_Right.wav
-rw-r--r-- 1 root root 135202 Jun 1 2012 Noise.wav
-rw-r--r-- 1 root root 130096 Jun 1 2012 Rear_Center.wav
-rw-r--r-- 1 root root 126064 Jun 1 2012 Rear_Left.wav
-rw-r--r-- 1 root root 146480 Jun 1 2012 Rear_Right.wav
-rw-r--r-- 1 root root 134868 Jun 1 2012 Side_Left.wav
-rw-r--r-- 1 root root 129966 Jun 1 2012 Side_Right.wav

4.
root@slitaz:~# aplay /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
root@slitaz:~# aplay /usr/share/sounds/alsa/Rear_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Rear_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

5.
root@slitaz:~# amixer scontrols
Simple mixer control 'PCM',0
root@slitaz:~# amixer scontents
Simple mixer control 'PCM',0
Capabilities: pvolume pvolume-joined penum
Playback channels: Mono
Limits: Playback -10240 - 2303
Mono: Playback 100 [82%] [1.00dB]
root@slitaz:~#

2012-08-29

Slitaz -- raspi-kernel -2


root@slitaz:~# slitaz

SliTaz GNU/Linux
==============================================================================================================================================================================================================
Release : cooking
Architecture : arm
Kernel : 3.2.14-slitaz
Boot options : dma.dmachans=0x3c bcm2708_fb.fbwidth=1648 bcm2708_fb.fbheight=1018 bcm2708.boardrev=0x2 bcm2708.serial=0x7b32f4ce smsc95xx.macaddr=B8:27:EB:32:F4:CE dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
Home path : /home/slitaz
Configs : /etc/slitaz
Log files : /var/log/slitaz
Packages DB : /var/lib/tazpkg
Installed : 20 packages
Mirror : http://cook.slitaz.org/cross/arm/packages/
==============================================================================================================================================================================================================
Config file: /etc/slitaz/slitaz.conf


2012-08-28

Slitaz -- raspi-kernel


1.
root@slitaz:~# uname -a
Linux slitaz 3.2.14-slitaz #1 PREEMPT Sun Aug 26 10:39:41 UTC 2012 armv6l GNU/Linux


2.
root@slitaz:~# modinfo snd_bcm2835
filename:       kernel/sound/arm/snd-bcm2835.ko
description:    Alsa driver for BCM2835 chip
author:         Dom Cobley
license:        GPL
vermagic:       3.2.14-slitaz preempt mod_unload modversions ARMv6
depends:        snd-pcm,snd

3.
root@slitaz:~# modprobe snd-bcm2835
### snd_bcm2835_alsa_probe c05e0958 ############### PROBING FOR bcm2835 ALSA device (0):(1) ###############
Creating card...
Creating device/chip ..
Adding controls ..
Registering card ....
bcm2835 ALSA CARD CREATED!
### BCM2835 ALSA driver init OK ###

4.
root@slitaz:~# lsmod
Module                  Size  Used by    Tainted: G 
snd_bcm2835            21709  0
snd_pcm                82450  1 snd_bcm2835
snd_page_alloc          5395  1 snd_pcm
snd_timer              21614  1 snd_pcm
snd                    58035  3 snd_bcm2835,snd_pcm,snd_timer
ipv6                  286290 10


5.
root@slitaz:~# ls -l /boot
total 31296
-rwxr-xr-x    1 root     root         18693 Jul 25 08:40 COPYING.linux
-rwxr-xr-x    1 root     root          1447 Jul 25 08:40 LICENCE.broadcom
-rwxr-xr-x    1 root     root       2053968 Jul 25 08:40 arm128_start.elf
-rwxr-xr-x    1 root     root       2053968 Jul 25 08:40 arm192_start.elf
-rwxr-xr-x    1 root     root       2053968 Jul 25 08:40 arm224_start.elf
-rwxr-xr-x    1 root     root         16536 Jul 25 08:40 bootcode.bin
-rwxr-xr-x    1 root     root            97 Aug 28 10:38 cmdline.txt
-rwxr-xr-x    1 root     root          1176 Aug 28 11:25 config.txt
-rwxr-xr-x    1 root     root       3003160 Aug 26 14:05 kernel.img
-rwxr-xr-x    1 root     root       4189540 Jul 25 08:40 kernel_cutdown.img
-rwxr-xr-x    1 root     root      16321844 Jul 25 08:40kernel_emergency.img
-rwxr-xr-x    1 root     root        275235 Jul 25 08:40 loader.bin
-rwxr-xr-x    1 root     root       2053968 Jul 25 08:40 start.elf
root@slitaz:~#
.

2012-07-24

raspi -- hardfloat-2

Extract from:

Raspbian Benchmarking – armel vs armhf

by
[..]

Performance Results

To try to quantify the optimisations in Raspbian I extended my benchmarking tests and ran them on the two different architectures, Debian armel and Raspbian armhf.

The tests were run on a single Raspberry Pi using two different partitions on the same USB hard disk. The same kernel was used for both sets of tests. Tests were performed multiple times until a “best” score was reached. For the GTKPerf tests both Raspbian and Debian were set to the same GTK theme. I chose not to use the raw data, but present it in an easier to understand format, armhf performance is presented relative to armel performance.

Keep in mind the golden rule of benchmarking: All benchmarks are flawed benchmarks.
Performance comparison between Debian armel and Raspbian armhf
Performance comparison between Debian armel and Raspbian armhf

The chart above shows the performance difference in various applications between Debian armel and Raspbian armhf. Performance improvement varied from 4% to 40% depending upon the application.
The performance improvements seen by non-floating point applications like Gzip and Bzip2 and were related to the ARMv6 instructions being used instead of the ARMv4 instructions. We seem to gain 4-10% in these applications.

GTKPerf showed a 19% improvement in X Windows GUI operations, which should make the Raspberry Pi more usable as a desktop. Quake 3 showed a more modest improvement, but that is because it is already limited by the GPU at 1080p resolutions.

The applications with larger performance improvements are those making heavy use of floating point maths, particularly media en/decoding, which see a huge performance increase. I also saw a 600% increase in Mpeg Layer 3 and Layer 2 encoding performance, but I didn’t include that on this chart as it made the other data difficult to read.

Users of the latest OpenSSL packages will see a ~100% performance increase over these numbers, which is related to an ASM optimisation patch applied by the Raspbian team and isn’t relevant to this test. It does demonstrate how important optimisation is though!


Update20121111:
Conclusion

I believe the QtonPi wiki best sums up my experiences:

Given the preponderance of hardfp performance over its register ignorant peers, this will be useful in eking every last drop of performance out of the hardware.

Buildroot
http://qt-project.org/wiki/RaspberryPi


Raspberry Pi Hard Float Benchmarks
http://pastebin.com/2NZqH2yY

http://www.raspberrypi.org/phpBB3/viewtopic.php?p=61497#p61497

As expected, the hardware floating point execution was significantly faster than the software emulation. Perhaps by a factor of 10x or better.

raspi -- hardfloat

hadrfloat VS. softfloat

1.
root@slitaz:/media/raspbian# env GIT_SSL_NO_VERIFY=true git clone https://github.com/raspberrypi/tools tools
Cloning into 'tools'...
remote: Counting objects: 7222, done.
remote: Compressing objects: 100% (3843/3843), done.
remote: Total 7222 (delta 3966), reused 6255 (delta 2999)
Receiving objects: 100% (7222/7222), 155.84 MiB | 319 KiB/s, done.
Resolving deltas: 100% (3966/3966), done.

2.
root@slitaz:/media/raspbian# du -sh tools
473.6M tools

3.
root@slitaz:/media/raspbian# ls -al tools
total 36
drwxr-xr-x 6 root root 4096 Jul 25 07:38 .
drwxr-xr-x 5 root root 4096 Jul 25 07:30 ..
drwxr-xr-x 4 root root 4096 Jul 25 07:38 arm-bcm2708
drwxr-xr-x 8 root root 4096 Jul 25 07:38 .git
drwxr-xr-x 2 root root 4096 Jul 25 07:38 mkimage
drwxr-xr-x 2 root root 4096 Jul 25 07:38 pkg
-rwxr-xr-x 1 root root 10357 Jul 25 07:38 sysidk

4.
root@slitaz:/media/raspbian# du -sh tools/.git/
157.1M tools/.git/

5.
root@slitaz:/media/raspbian# ls -al tools/arm-bcm2708/
total 16
drwxr-xr-x 4 root root 4096 Jul 25 07:38 .
drwxr-xr-x 6 root root 4096 Jul 25 07:38 ..
drwxr-xr-x 7 root root 4096 Jul 25 07:38 arm-bcm2708hardfp-linux-gnueabi
drwxr-xr-x 7 root root 4096 Jul 25 07:38 arm-bcm2708-linux-gnueabi

6.
root@slitaz:/media/raspbian# tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/bin/arm-bcm2708-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/bin/arm-bcm2708-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/media/raspbian/tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/bin/../libexec/gcc/arm-bcm2708-linux-gnueabi/4.7.1/lto-wrapper
Target: arm-bcm2708-linux-gnueabi
Configured with: /home/extra/crosstool/stagingsf/.build/src/gcc-linaro-4.7-2012.04/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-bcm2708-linux-gnueabi --prefix=/home/dc4/tools/arm-bcm2708/arm-bcm2708-linux-gnueabi --with-sysroot=/home/dc4/tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/arm-bcm2708-linux-gnueabi/sysroot --enable-languages=c,c++ --with-cpu=arm1176jzf-s --with-tune=arm1176jzf-s --with-float=softfp --with-pkgversion='crosstool-NG 1.15.2' --enable-__cxa_atexit --disable-libmudflap --disable-libgomp --disable-libssp --with-gmp=/home/extra/crosstool/stagingsf/.build/arm-bcm2708-linux-gnueabi/buildtools --with-mpfr=/home/extra/crosstool/stagingsf/.build/arm-bcm2708-linux-gnueabi/buildtools --with-mpc=/home/extra/crosstool/stagingsf/.build/arm-bcm2708-linux-gnueabi/buildtools --with-ppl=/home/extra/crosstool/stagingsf/.build/arm-bcm2708-linux-gnueabi/buildtools --with-cloog=/home/extra/crosstool/stagingsf/.build/arm-bcm2708-linux-gnueabi/buildtools --with-libelf=/home/extra/crosstool/stagingsf/.build/arm-bcm2708-linux-gnueabi/buildtools --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm -L/home/extra/crosstool/stagingsf/.build/arm-bcm2708-linux-gnueabi/buildtools/lib -lpwl' --enable-threads=posix --enable-target-optspace --disable-nls --disable-multilib --with-local-prefix=/home/dc4/tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/arm-bcm2708-linux-gnueabi/sysroot --enable-c99 --enable-long-long --with-float=softfp
Thread model: posix
gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2)
root@slitaz:/media/raspbian#

7.
root@slitaz:/media/raspbian# tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/bin/arm-bcm2708hardfp-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/bin/arm-bcm2708hardfp-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/media/raspbian/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/bin/../libexec/gcc/arm-bcm2708hardfp-linux-gnueabi/4.7.1/lto-wrapper
Target: arm-bcm2708hardfp-linux-gnueabi
Configured with: /home/extra/crosstool/staginghf/.build/src/gcc-linaro-4.7-2012.04/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-bcm2708hardfp-linux-gnueabi --prefix=/home/dc4/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi --with-sysroot=/home/dc4/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/arm-bcm2708hardfp-linux-gnueabi/sysroot --enable-languages=c,c++ --with-cpu=arm1176jzf-s --with-tune=arm1176jzf-s --with-float=hard --with-pkgversion='crosstool-NG 1.15.2' --enable-__cxa_atexit --disable-libmudflap --disable-libgomp --disable-libssp --with-gmp=/home/extra/crosstool/staginghf/.build/arm-bcm2708hardfp-linux-gnueabi/buildtools --with-mpfr=/home/extra/crosstool/staginghf/.build/arm-bcm2708hardfp-linux-gnueabi/buildtools --with-mpc=/home/extra/crosstool/staginghf/.build/arm-bcm2708hardfp-linux-gnueabi/buildtools --with-ppl=/home/extra/crosstool/staginghf/.build/arm-bcm2708hardfp-linux-gnueabi/buildtools --with-cloog=/home/extra/crosstool/staginghf/.build/arm-bcm2708hardfp-linux-gnueabi/buildtools --with-libelf=/home/extra/crosstool/staginghf/.build/arm-bcm2708hardfp-linux-gnueabi/buildtools --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm -L/home/extra/crosstool/staginghf/.build/arm-bcm2708hardfp-linux-gnueabi/buildtools/lib -lpwl' --enable-threads=posix --enable-target-optspace --disable-nls --disable-multilib --with-local-prefix=/home/dc4/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/arm-bcm2708hardfp-linux-gnueabi/sysroot --enable-c99 --enable-long-long --with-float=hard

Thread model: posix
gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2)
root@slitaz:/media/raspbian#

2012-06-26

raspi - locale

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

LANG="C"
LANGUAGE="C"

Slitaz - dos2unix

dos2unix

: not foundsh: line 4:

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


1.
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
/root
: not foundsh: line 12:


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


3.
root@slitaz:~# ./raspbian.sh
test tap...
/media/Audio1/raspi/raspbian
root@slitaz:~#


4.
Usage: dos2unix [-ud] [FILE]

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

Options:
        -u      dos2unix
        -d      unix2dos

raspi case



Punnet Mk1

http://www.raspberrypi.org/phpBB3/viewtopic.php?p=90273#p90273

http://squareitround.co.uk/Resources/Punnet_net_Mk1.pdf



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
root@slitaz:/dev/shm/git#


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


SliTaz-ARM.20120529.235157


Update:  20121205

slitaz-armhf
http://arm.balinor.net/slitaz/armhf

 

SliTaz Images for the Raspberry Pi

http://www.kvarley.co.uk/RaspberryPi/SliTaz/




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


2. README
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
root@slitaz:~#


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
drivers
root@slitaz:/mnt/rasp# ls lib/modules/3.2.14-slitaz/kernel/drivers
scsi

root@slitaz:/mnt/rasp# cat var/lib/tazpkg/mirror
http://cook.slitaz.org/cross/arm/packages/

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


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

http://www.kvarley.co.uk/RaspberryPi/

Resources for the Raspberry Pi.

[..]
http://www.kvarley.co.uk/RaspberryPi/SliTaz/


SliTaz - SD card images for the Raspberry Pi.

Most Recent Image
SliTaz-ARM.20120529.235157

All Builds
SliTaz-ARM.20120529.235157



.

2012-06-25

raspi autologin


raspi autologin

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

Raspbian Repository


Extract from

Raspbian Repository



/etc/apt/sources.list 
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


 
Pisces+MATE  
http://archive.raspbian.org/images/rpi_pisces_mate_r1.zip
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 
 
Hexxeh
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 
root/hexxeh 
 
Raspbian QEMU Image
raspbian_qemu_image.tar.bz2  
  * 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


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

20120624

RPi_Distributions

http://elinux.org/RPi_Distributions


raspi - pisection



Extract from

TheMagPi http://www.themagpi.com