background image

Raspberry Pi Getting Started Guide 

Page 6 

 

2. Raspberry Pi Advanced Setup (Geeks only) 

 

2.1. 

Finding hardware and setting up 

 

You'll need a preloaded SD card, USB keyboard, TV/Monitor (with HDMI/ DVI/ Composite/SCART 
input), and power supply (USB charger or a USB port from a powered USB Hub or another 
computer). You'll likely also want a USB mouse, a case, and a USB hub (a necessity for Model A).  
 
A powered USB hub will reduce the demand on the RPi. To connect to the Internet, you'll need 
either an Ethernet/LAN cable (Model B) or a USB WiFi adaptor (either model). 
When setting up, it is advisable to connect the power after everything else is ready. 
 

2.2. 

Serial connection 

 

The Serial Port is a simple and uncomplicated method to connect to the RPi. The communication 
depends on byte wise data transmission, is easy to setup and is generally available even before 
boot time. 
 

2.2.1.  First interaction with the board 

 

Connect the serial cable to the COM port in the RPi, and connect the other end to the COM port or 
USB Serial Adapter in the computer. 
 

2.2.2.  Serial Parameters 

 

The following parameters are needed to connect to the RPi. All parameters 
except 

Port_Name 

and 

Speed 

are default values and may not need to be set. 

 

Port_Name

: Linux automatically assigns different names for different types of serial connectors. 

Choose your option: 
 

  Standard Serial Port: ttyS0 ... ttySn 

  USB Serial Port Adapter: ttyUSB0 ... ttyUSBn 

  Speed: 115200 

  Bits: 8 

  Parity: None 

  Stop Bits: 1 

  Flow Control: None 

 
The Serial Port is generally usable by the users in the group 

dialout

. To add oneself to 

the group 

dialout 

the the following command needs to be executed with 

root 

privileges: 

 

$useradd -G {dialout} your_name 

 

2.2.3.  Super Easy Way using GNU Screen 

 

Enter the command below into a terminal window 

screen Port_Name 115200 
 

 

Summary of Contents for A

Page 1: ...Raspberry Pi Getting Started Guide RS Components Vsn 1 0 3 2012 ...

Page 2: ...Raspberry Pi Getting Started Guide Page 2 ...

Page 3: ... DVI Composite or SCART input Power supply see Section 1 6 below Video cable to suit the TV or monitor used Recommended optional extras include USB mouse Internet connection Model A or B USB WiFi adaptor Internet connection Model B only LAN Ethernet cable Powered USB hub Case 1 2 Connecting Everything Together 1 Plug the preloaded SD Card into the RPi 2 Plug the USB keyboard and mouse into the RPi...

Page 4: ...The RPi outputs audio and video via HMDI but does not support HDMI input Older TVs can be connected using Composite video a yellow to yellow RCA cable or via SCART using a Composite video to SCART adaptor Both PAL and NTSC format TVs are supported When using a composite video connection audio is available from the 3 5mm jack socket and can be sent to your TV headphones or an amplifier To send audi...

Page 5: ...t the need for a crossover cable 1 8 2 USB hub In order to connect additional devices to the RPi you may want to obtain a USB hub which will allow multiple devices to be used It is recommended that a powered hub is used this will provide any additional power to the devices without affecting the RPi itself A USB 2 0 model is recommended USB 1 1 is fine for keyboards and mice but may not be fast eno...

Page 6: ...ission is easy to setup and is generally available even before boot time 2 2 1 First interaction with the board Connect the serial cable to the COM port in the RPi and connect the other end to the COM port or USB Serial Adapter in the computer 2 2 2 Serial Parameters The following parameters are needed to connect to the RPi All parameters except Port_Name and Speed are default values and may not n...

Page 7: ...ard setup Now we want to install a GNU Linux distro on an SD card and make space for our stuff You can use either an SD or SDHC card In the latter case of course take care that your PC card reader also supports SDHC Be aware that you are not dealing with an x86 processor but instead a completely different architecture called ARM so don t forget to install the ARM port for the distro you are planni...

Page 8: ...want to set the geometry to 255 heads 63 sectors and calculate the number of cylinders required for the particular SD MMC card Expert command m for help h Number of heads 1 256 default 4 255 Expert command m for help s Number of sectors 1 63 default 62 63 Warning setting sector offset for DOS compatiblity NOTE Be especially careful in the next step First calculate the number of cylinders as follow...

Page 9: ...fault 1 press Enter Using default value 1 Last cylinder or size or sizeM or sizeK 1 245 default 245 50 Command m for help t Selected partition 1 Hex code type L to list codes c Changed system type of partition 1 to c W95 FAT32 LBA Command m for help a Partition number 1 4 1 Create the Linux partition for the root file system Command m for help n Command action e extended p primary partition 1 4 p ...

Page 10: ...dev sdc1 n LABEL mkfs msdos 2 11 12 Mar 2005 sudo mkfs ext3 dev sdc2 mke2fs 1 40 WIP 14 Nov 2006 Filesystem label OS type Linux Block size 4096 log 2 Fragment size 4096 log 2 195072 inodes 389576 blocks 19478 blocks 5 00 reserved for the super user First data block 0 Maximum filesystem blocks 402653184 12 block groups 32768 blocks per group 32768 fragments per group 16256 inodes per group Superblo...

Page 11: ...l img to use them ensure you have a backup of the original kernel img first kernel_emergency img kernel with busybox rootfs You can use this to repair the main Linux partition using e2fsck if the Linux partition gets corrupted Additional GPU firmware images rename over start elf to use them arm128_start elf 128MB ARM 128MB GPU split use this for heavy 3D work possibly also required for some video ...

Page 12: ...er Run dd removable list Should give something like this rawwrite dd for windows version 0 6beta3 Written by John Newbigin jn it swin edu au This program is covered by terms of the GPL Version 2 NT Block Device Objects Device Harddisk1 Partition0 link to Device Harddisk1 DR8 Removable media other than floppy Block size 512 size is 4075290624 bytes This Device Harddisk1 Partition0 is the part you n...

Page 13: ...QEMU and a Linux VM would be one way of testing your apps This also works on Windows Search the forum for the readymade ARM images The choice of programming languages IDEs and other tools on the RPi is only determined by The operating system compatibility at the moment the specific Linux distro used The status of the respective ARM package repositories and their binary compatibility The possibilit...

Reviews: