Raspberry Pi 3 install

How to install MARRtino software on Raspberry PI 3

Option 1: use script sdconfig

1) Download boot and root images from Software page (check model of your Raspberry and of your motor board)

2) Download marrtino_apps package

git clone https://bitbucket.org/iocchi/marrtino_apps.git

3) Start the sdconfig script

cd marrtino_apps/config
sudo python sdconfig.py write <device> -imagefile <path_to>/raspi3b[+]_marrtino_X.X

Note: In sdconfig use prefix of file names before '_boot.img' and '_root.img' (e.g., for files raspi3b+_marrtino_3.0_boot.img and raspi3b+_marrtino_3.0_root.img use only raspi3b+_marrtino_3.0 )

Example

sudo python sdconfig.py write /dev/mmcblk0 -imagefile ~/Downloads/raspi3b+_marrtino_3.0

VERY IMPORTANT: Double check that the device name is correct as all file systems on that device will be deleted!!!

4) Check the information about your SD card

sudo python sdconfig.py check <device> 

5) Set network configuration on your SD card

sudo python sdconfig.py set <device> [-ssid SSID] [-channel CHANNEL] [-password PASSWORD] [-hostname HOSTNAME]


Option 2: manual installation

1) Download boot and root images from Software page (check model of your Raspberry)

2) Insert SD card and create 3 partitions (e.g. using gparted or fdisk) as shown below

P1) primary, fat16, 64 MiB, Flags: boot, lba, (/dev/mmcblk0p1, /dev/sdb1), label PI_BOOT

Sectors: First: 2048 Last: 133119 Total: 131072

* flags can be set after format

P2) primary, ext4, 10000 MiB, (/dev/mmcblk0p2, /dev/sdb2), label PI_ROOT

Sectors: First: 133120 Last: 20613119 Total: 20480000

P3) primary, ext4, 20.34 GiB, (/dev/mmcblk0p3, /dev/sdb3), label data

Sectors: First: 20613120 Last: 63272959 Total: 42659840

Check partitions with fdisk /dev/mmcblk0

Command (m for help): p

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1   *        2048      133119       65536    c  W95 FAT32 (LBA)
/dev/mmcblk0p2          133120    20613119    10240000   83  Linux
/dev/mmcblk0p3        20613120    63272959    21329920   83  Linux

3) Download the write script

IMPORTANT check that the device names are correct and modify the script if needed

run the following commands

$ sudo bash
$ ./writeimg.bash raspi3b[+]_marrtino_X.X

Replace raspi3b[+]_marrtino_X.X with name of downloaded file (without _boot.img and _root.img)