Tags:
view all tags
---+ 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. ---++ 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<i> file</i> 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. -- %USERSIG{UliRaich - 2017-08-13}% ---++ Comments %COMMENT%
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r5
<
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r2 - 2017-08-13
-
uli
Home
Site map
AFNOG web
Embedded_Systems web
IoT_Course_English web
IoT_Course_French web
Main web
Sandbox web
TWiki web
Embedded_Systems Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
Edit
Attach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback