Projet

Général

Profil

Install Operating system on raspberry pi 0w » Historique » Version 5

openbeelab, 02/02/2019 16:51

1 2 openbeelab
# Install Operating system on raspberry pi 0w
2 1 guillaume.devoyon
3 2 openbeelab
To install Operating system on Raspberry pi there are many website describing how to do. For french noobies, better explanations here : https://edutechwiki.unige.ch/fr/Installation_de_Raspbian
4 1 guillaume.devoyon
5 2 openbeelab
## Raspbian Lite
6
7 1 guillaume.devoyon
The steps are classic :
8
9 5 openbeelab
- Dowloading image from https://www.raspberrypi.org/downloads/raspbian/ and download the "Raspbian Stretch Lite" version. We will not use X servers and other desktops tools. Just console.
10 2 openbeelab
11 5 openbeelab
    `wget https://downloads.raspberrypi.org/raspbian_lite_latest`
12 2 openbeelab
13
- unrar the .zip
14
15 5 openbeelab
    `tar -xvf /my/raspbian/iso.zip`
16 2 openbeelab
17 5 openbeelab
- Install it on SDcard from your desktop pc https://www.raspberrypi.org/documentation/installation/installing-images/
18 2 openbeelab
19 5 openbeelab
    `dd bs=1m if=/iso/place/on/my/computer of=/dev/mysdcard conv=sync`
20 2 openbeelab
21 5 openbeelab
- activate ssh, to create the ssh file in boot to activate it
22 4 openbeelab
23 5 openbeelab
    `$ touch /Volumes/boot/ssh`
24 4 openbeelab
  
25 5 openbeelab
- activate ssh by usb,
26 2 openbeelab
27 4 openbeelab
edit config.txt @ the root of the sd card and add "dtoverlay=dwc2" or directly
28 2 openbeelab
29 5 openbeelab
    `echo "dtoverlay=dwc2" >> /path/to/my/sd/card/config.txt
30 4 openbeelab
echo "modules-load=dwc2,g_ether" >> /path/to/my/sd/card/cmdline.txt`
31
   
32 5 openbeelab
- eject sdcard : 
33 4 openbeelab
34 5 openbeelab
    `$ sudo diskutil eject /dev/mmcbbtruc0
35 4 openbeelab
Password:
36
Disk /dev/mmcbbtruc0 ejected`
37
38 5 openbeelab
- start pi0 : put the sdcard in pi0 and plug it with usb to your computer
39 4 openbeelab
40 5 openbeelab
- connect to pi0
41 4 openbeelab
42 5 openbeelab
    `ssh pi@raspberrypi.local`
43 2 openbeelab
44
45
46
## Buildroot
47
48
Buildroot is a tool that help to build Linux embedded dedicated system. Basic tutorial here : https://code4pi.fr/2014/03/creation-dune-custom-image-pour-votre-raspberry-pi/