Difference: RaspberryPi (1 vs. 5)

Revision 52017-10-25 - uli

Line: 1 to 1
 
META TOPICPARENT name="CourseExercises"

Exercises 4: The Raspberry Pi

Goal:

Line: 46 to 46
 
META FILEATTACHMENT attachment="reminna.png" attr="" comment="" date="1507795888" name="reminna.png" path="reminna.png" size="4028" user="uli" version="1"
META FILEATTACHMENT attachment="remmina.png" attr="" comment="" date="1507795888" name="remmina.png" path="remmina.png" size="28024" user="uli" version="1"
Added:
>
>
META FILEATTACHMENT attachment="exploreRaspbian.odt" attr="" comment="" date="1508957556" name="exploreRaspbian.odt" path="exploreRaspbian.odt" size="22251" user="uli" version="1"

Revision 42017-10-12 - uli

Line: 1 to 1
 
META TOPICPARENT name="CourseExercises"

Exercises 4: The Raspberry Pi

Goal:

Line: 8 to 8
 These exercises are supposed to show you similarities and differences between the two systems.

Exercise 1: Linux on the Raspberry Pi

Changed:
<
<
First try to get access to the Raspberry Pi through the remote desktop as well as through ssh. Try if you can copy files back and forth between the PC to the Pi using scp.
>
>
First try to access your Raspberry Pi through the secure shell:

ssh cscgrp1@rpi-xx where xx is the number of your PC. The password is the same as the one on the PC.
Try to start emacs on the Pi. Does it work? Does it look the same as on the PC?

Then exit the secure shell with the exit command and re-try ssh with the -XC options. Re-do what you did before. Did emacs change?

  Poke through the Linux file system on the Raspberry Pi and try to find differences to the PC. Run the commands you tried on the PC during the very first lab session.
Added:
>
>
Finally exit ssh again and start the remote desktop client Remmina. There is this button on the task-bar.

reminna.png

A connection should be predefined for you. Of course your connection will be named corresponding to the Pi you are connection to.

remmina.png

Double click on the connection and with a little bit of luck you should be connected to the desktop of your Pi.

 

Exercise 2: Compile for ARM

Create a file system structure for the exercises similar to the one on the PC with ~/exercises, problems, solutions, doc etc. in them, also on the Raspberry Pi. Copy the C programs from the codeExamples written for the PC over to the Pi using the scp command. In which directory do you place them?

Changed:
<
<
Use the Raspberry Pi gcc compiler to compile these C files and try to run them on the Pi. Do they run the same way as on the PC?
>
>
Use the Raspberry Pi gcc compiler to compile these C files and try to run them on the Pi. I expect that you have written Makefile for each of the C programs you have written so far. If you did not, then this is your last chance to do so! Do your programs run the same way as on the PC?
  Cross compile the programs you wrote in the exercise on C programming on the PC to run them on the Raspberry Pi, which uses the ARM processor. The cross compiler is named arm-linux-gnueabihf-gcc. With the file command find out for which machine the program has been compiled. Does the cross compiled program run on the PC and why? Does it run on the Pi? Can you write a Makefile which uses the cross compiler instead of the native compiler?

Copy the cross compiled programs to the Raspberry Pi using scp and try to run them there.

Added:
>
>
At the end of the exercises session all programs you had on the PC should be available and running on the Pi.
 -- Uli Raich - 2017-08-13

Comments

<--/commentPlugin-->
Added:
>
>
META FILEATTACHMENT attachment="reminna.png" attr="" comment="" date="1507795888" name="reminna.png" path="reminna.png" size="4028" user="uli" version="1"
META FILEATTACHMENT attachment="remmina.png" attr="" comment="" date="1507795888" name="remmina.png" path="remmina.png" size="28024" user="uli" version="1"

Revision 32017-09-22 - uli

Line: 1 to 1
 
META TOPICPARENT name="CourseExercises"

Exercises 4: The Raspberry Pi

Goal:

Line: 8 to 8
 These exercises are supposed to show you similarities and differences between the two systems.

Exercise 1: Linux on the Raspberry Pi

Added:
>
>
First try to get access to the Raspberry Pi through the remote desktop as well as through ssh. Try if you can copy files back and forth between the PC to the Pi using scp.
 Poke through the Linux file system on the Raspberry Pi and try to find differences to the PC. Run the commands you tried on the PC during the very first lab session.

Exercise 2: Compile for ARM

Changed:
<
<
Cross compile the programs you wrote in the exercise on C programming on the PC to run them on the Raspberry Pi, which uses the ARM processor. With the file command find out for which machine the program has been compiled. Does the cross compiled program run on the PC and why?
>
>
Create a file system structure for the exercises similar to the one on the PC with ~/exercises, problems, solutions, doc etc. in them, also on the Raspberry Pi. Copy the C programs from the codeExamples written for the PC over to the Pi using the scp command. In which directory do you place them?

Use the Raspberry Pi gcc compiler to compile these C files and try to run them on the Pi. Do they run the same way as on the PC?

 
Changed:
<
<
Copy the cross compiled program to the Raspberry Pi using scp and run in on the Raspberry.

Exercise 3: Communication

>
>
Cross compile the programs you wrote in the exercise on C programming on the PC to run them on the Raspberry Pi, which uses the ARM processor. The cross compiler is named arm-linux-gnueabihf-gcc. With the file command find out for which machine the program has been compiled. Does the cross compiled program run on the PC and why? Does it run on the Pi? Can you write a Makefile which uses the cross compiler instead of the native compiler?
 
Changed:
<
<
Compile the socket server from the last lab session and run it on the Raspberry Pi. Then run the socket client on the PC and make sure the communication between the two machines works as expected. You may have to modify the IP address, the clients asks to connect to, in such a way that it corresponds to the Raspberry Pi IP address.
>
>
Copy the cross compiled programs to the Raspberry Pi using scp and try to run them there.
  -- Uli Raich - 2017-08-13

Revision 22017-08-13 - uli

Line: 1 to 1
 
META TOPICPARENT name="CourseExercises"

Exercises 4: The Raspberry Pi

Goal:

Changed:
<
<
The Raspberry Pi in contrast to the PC uses and ARM processor and peripherals are not included in the system but are connected externally through dedicated connectors. In addition to the Display, keyboard and mouse external devices can be connected through GPIO (General Purpose I/O) pins and through buses (I2C, SPI etc). The Raspberry Pi we use has no hard disk but a 32 GByte micro SD card replacing it. Just like the PC it runs a Linux operating system. This system however is an ARM variant as compared to the PC system which uses Intel processors.
>
>
The Raspberry Pi in contrast to the PC uses and ARM processor and peripherals are not included in the system but are connected externally through dedicated connectors. In addition to the Display, keyboard and mouse external devices can be connected through GPIO (General Purpose I/O) pins and through buses (I2C, SPI etc). The Raspberry Pi we use has no hard disk but a 32 GByte micro SD card replacing it. Just like the PC it runs a Linux operating system. This system however is an ARM variant as compared to the PC system which uses Intel processors.
  These exercises are supposed to show you similarities and differences between the two systems.
Added:
>
>

Exercise 1: Linux on the Raspberry Pi

Poke through the Linux file system on the Raspberry Pi and try to find differences to the PC. Run the commands you tried on the PC during the very first lab session.

Exercise 2: Compile for ARM

Cross compile the programs you wrote in the exercise on C programming on the PC to run them on the Raspberry Pi, which uses the ARM processor. With the file command find out for which machine the program has been compiled. Does the cross compiled program run on the PC and why?

Copy the cross compiled program to the Raspberry Pi using scp and run in on the Raspberry.

Exercise 3: Communication

Compile the socket server from the last lab session and run it on the Raspberry Pi. Then run the socket client on the PC and make sure the communication between the two machines works as expected. You may have to modify the IP address, the clients asks to connect to, in such a way that it corresponds to the Raspberry Pi IP address.

  -- Uli Raich - 2017-08-13

Revision 12017-08-13 - uli

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="CourseExercises"

Exercises 4: The Raspberry Pi

Goal:

The Raspberry Pi in contrast to the PC uses and ARM processor and peripherals are not included in the system but are connected externally through dedicated connectors. In addition to the Display, keyboard and mouse external devices can be connected through GPIO (General Purpose I/O) pins and through buses (I2C, SPI etc). The Raspberry Pi we use has no hard disk but a 32 GByte micro SD card replacing it. Just like the PC it runs a Linux operating system. This system however is an ARM variant as compared to the PC system which uses Intel processors.

These exercises are supposed to show you similarities and differences between the two systems.

-- Uli Raich - 2017-08-13

Comments

<--/commentPlugin-->
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback