Raspberry Pi 2 : Installation

Tail your kernel log and insert your SD Card. Below is the result I obtained from my lappy.
$ sudo tail -f /var/log/messages
......
Feb  8 03:15:27 butterfly kernel: [16266.527753] mmc0: new high speed SDHC card at address aaaa
Feb  8 03:15:27 butterfly kernel: mmc0: new high speed SDHC card at address aaaa
Feb  8 03:15:27 butterfly kernel: [16266.528442] mmcblk0: mmc0:aaaa SL08G 7.40 GiB 
Feb  8 03:15:27 butterfly kernel: mmcblk0: mmc0:aaaa SL08G 7.40 GiB 
Feb  8 03:15:28 butterfly kernel: [16266.538560]  mmcblk0: p1
Feb  8 03:15:28 butterfly kernel: mmcblk0: p1

Or list our our SD Card block device. Note that MMC stands for MultiMediaCard where the naming convention, mmcblk{id}{partition} is used in GNU/Linux.
$ lsblk | grep mmc
mmcblk0                                       179:0    0   7.4G  0 disk  
└─mmcblk0p1                                   179:1    0   7.4G  0 part 

Confirm again through local file system.
$ ls -l /dev/mmc*
brw-rw----. 1 root disk 179, 0 Feb  8 03:15 /dev/mmcblk0
brw-rw----. 1 root disk 179, 1 Feb  8 03:15 /dev/mmcblk0p1

As the time of writing, the there are only four Operating System images available for Pi 2. We're going to download both Raspbian (Debian Wheezy) and also recently release Snappy Ubuntu Core, a minimal server image. For faster download, use a download manager that support multiple connections download. I'm using aria2 with four concurrent connections as shown below.
$ aria2c -x 4 http://downloads.raspberrypi.org/raspbian_latest
$ aria2c -x 4 http://downloads.raspberrypi.org/ubuntu_latest

$ ls -lh 2015*.zip
-rw-rw-r--. 1 ang ang 977M Feb  7 03:05 2015-01-31-raspbian.zip
-rw-rw-r--. 1 ang ang 679M Feb  8 03:55 2015-02-03-pi-snappy.zip

To verify that you've downloaded both images successfully, generate the SHA-1 hash value locally and then copy it and search against the downloads page.
$ sha1sum 2015*.zip
0171e77f687c447dae32609fcc6aa700c750d6f5  2015-01-31-raspbian.zip
4ca8ea6b694ad644cf4b00337a625b28bc8f8455  2015-02-03-pi-snappy.zip

Uncompress both download images. Note that you need to add single quote for the unzip program to work on multiple zip files.
$ time unzip '2015-0*.zip'
Archive:  2015-01-31-raspbian.zip
inflating: 2015-01-31-raspbian.img  

Archive:  2015-02-03-pi-snappy.zip
inflating: pi-snappy.img           

2 archives were successfully processed.

real    2m24.316s
user    1m7.767s
sys     0m4.985s

As you can see from the uncompress file size of both images, is best to get a SD Card with size equal or more than 8Gb if you wish to install or store more data to it.
$ ls -lh *.img
-rw-r--r--. 1 ang ang 3.1G Jan 31 21:36 2015-01-31-raspbian.img
-rw-r--r--. 1 ang ang 2.8G Feb  3 15:06 pi-snappy.img

Following the installation guideline for GNU/Linux using command line tools, we're going to write the image (Raspbian first) to the SD card using the dcfldd program, which show progress instead of disk dump (dd) program.
$ sudo yum install dcfldd
......
$ time sudo dcfldd bs=4M if=2015-01-31-raspbian.img of=/dev/mmcblk0
768 blocks (3072Mb) written.
781+1 records in
781+1 records out

real    4m50.750s
user    0m0.017s
sys     0m8.754s

Remove your SD card and insert into your Pi and boot up the machine.

No comments:

Post a Comment