Categorie

Archivio Articoli

Categorie

Commenti recenti

RPi – Raspberry Pi – Kernel RT – XCompiling – HowTo

 

 

 

 

 

 

 

This guide is valid for the RaspberryPi 1.

  • In your linux PC home directory create a rpi_kernel directory:
$ mkdir ~/rpi_kernel
cd ~/rpi_kernel
  • Download the raspberry tools:
$ git clone git://github.com/raspberrypi/tools.git
  • Add the bin folder to PATH:
$ PATH=rpi_kernel/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin:$PATH
  • Download kernel sources:
$ git clone --depth=1 https://github.com/raspberrypi/linux
  • Download the RT patch:
$ wget https://www.kernel.org/pub/linux/kernel/projects/rt/4.4/patch-4.4.38-rt49.patch.gz
  • Apply the patch:
$ cd linux
KERNEL=kernel
cat ../patch-4.4.XX-rtYY.patch | patch -p1
  • Make an RPi default configuration:
$ make ARCH=arm CROSS_COMPILE=/arm-linux-gnueabihf- bcmrpi_defconfig menuconfig
  • Enabling the FULL PREEMPTIBLE KERNEL:

  • Compiling the kernel:
$ make -j 8 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs
  • To install kernel and modules on your Raspberry follow the official guide from: Install directly onto the SD card

 

 

Source: https://www.raspberrypi.org/documentation/linux/kernel/building.md

RaspberryPi: enabling ssh in Headless Rpi

rpi

 

 

 

 

 

 

 

To enable ssh in a fresh installation of raspbian:

  • mount the SD system partion in a Linux PC
  • rename
$ /etc/rc2.d/ssh/K@@ssh

to

$ /etc/rc2.d/ssh/S@@ssh

(@@ is a number)

to start ssh al level 2

[Raspberry Pi] RPi IO

[Public draft]

Connettore GPIO del Rasperry Pi (V1 model B):

 [ image from http://www.raspberrypi-spy.co.uk ]

Libreria utilizzata wiringPi

Tabella connessioni:

digitalPin GPIO pin
0 11
1 12
2 13
3 15
4 16
5 18
6 22
7 7
8 3
9 5
10 24
11 26
12 19
13 21
14 23
15 8
16 10