This blog post will discuss how to get started using your Raspberry Pi.
Hopefully, this will be the first of many Raspberry Pi related posts to come.
This post will focus on how to format your SDCARD and write the Raspbian image to it.
This blog post will assume that you’re using either a UNIX or Linux based system.
Awright, let’s get crackin’ and hopefully learn some stuff! :).
First, tail -f whatever log you’re writing kernel messages to. For most people this is either /var/log/messages or /var/log/kern.log.
Second insert your SDCARD in whatever device you’re using to do the formatting with.
You should now see similar output in your terminal running tail -f like below:
1234
skywalker@thedeathstar ~ # tail -f /var/log/kern.log
Aug 9 18:26:18 glh-laptop3 kernel: [ 1490.840220] mmc0: new high speed SDXC card at address b368
Aug 9 18:26:18 glh-laptop3 kernel: [ 1490.874698] mmcblk0: mmc0:b368 59.6 GiB
Aug 9 18:26:18 glh-laptop3 kernel: [ 1490.882594] mmcblk0: p1
As you can see from above device mmcblk0 is the device name of my SDCARD. This will probably be different for you.
Let’s use fdisk -l to make sure we’ve identified the right device.
1234567891011
root@glh-laptop3:~# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 64.1 GB, 64054362112 bytes
255 heads, 63 sectors/track, 7787 cylinders, total 125106176 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 32768 125106175 62536704 7 HPFS/NTFS/exFAT
Since I know my SDCARD is 64GB in size I’m pretty confident I’ve got the right device.
Now let’s wget our Raspbian image like so:
Now use ddto write the Raspbian disk image to your SDCARD like so:
123456
skywalker@thedeathstar:/mnt/usb/iso# dd bs=4M if=2013-07-26-wheezy-raspbian.img of=/dev/mmcblk0
mmcblk0
root@glh-laptop3:/mnt/usb/iso# dd bs=4M if=2013-07-26-wheezy-raspbian.img of=/dev/mmcblk0
462+1 records in
462+1 records out
1939865600 bytes (1.9 GB) copied, 261.699 s, 7.4 MB/s
If you made it this far congrats! You should be ready to insert you SDCARD into your pi, hook things up, plugin the power adapter, and boot up Raspbian.
However, I had an issue in which I simply had no video what so ever. If you experience the same, and you’re using HDMI, you may need to do the
following to get video working on your pi. This assumes you have your SDCARD mounted at /media.
123
skywalker@thedeathstar: ~ # cat /media/boot/config.txt |grep safe
# uncomment if you get no picture on HDMI for a default "safe" mode
hdmi_safe=1
Uncomment the above line in config.txt to enable hdmi_safe mode.
Well that’s it. Hopefully at this point you can at least boot up your pi running Raspbian!
Stay tuned to my blog for future posts on the Raspberry Pi!