Lecture 13 (Lecture 14) - Embedded Linux Flashcards

1
Q

STEPS TO SET A RASPBERRY PI

A

REFER TO SLIDES

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a router?

A

Ip-addresses are issues by router manually
Router (DHCP) will assign an IP address to Raspberry as well as Mac/PC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a peer to peer connection?

A

Ip addresses ahve to be set
Using our R&A extended version of Raspbian, the Rasp will default to IP address:
10.0.0.1 on LAN if no DHCP router is detected, and to 10.1.1.1 on WLAN.
Note: this does not work with standard Raspbian
So e.g. for LAN connection:
* Set Mac/PC IP address manually to 10.0.0.2 (matching first 3
bytes).
* Set Mac/PC netmask to 255.255.255.0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is internet sharing?

A

Refer to slides

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is remote access?

A

Refer to slides

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are some of the programming tools used?

A

Editor - For entering program source code
Assembler - Translate assembly program to machine program and to display error messages
Emulator - Simulates program execution
Loader - Upload machine code to embedded system
Debugger:
- Allows to stop program in mid-execution
- Allows to examine current register and memory contents
- Allows to set breakpoints: stop program at an instruction
- Allows to single-step through program
- Very helpful in testing and debugging of a program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the Operating System for embedded systems?

A
  • Not always necessary for embedded systems
  • Small embedded systems have no OS, but sometimes small, compact collection of routines in ROM
  • Advanced or high-performance embedded systems such as ARM / Raspberry Pi do require an operating system
  • Typically when an embedded system has complex interfaces, such as LAN or USB, it requires an operating system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

If there is no operating system…

A
  • Your program is the only thing running on the microcontroller
  • Your program must have an endless loop, it must never terminate
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

If there is an operating system…

A
  • Your program is only one of many running on the system
  • Your program is called from the operating system as a subroutine
  • Your program must not have an endless loop, it must always terminate
  • The endless loop is in the operating system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the UNIX file functions

A

Refer to slides

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is an IP address?

A

Each device on an Ethernet LAN requires an IP address (Internet Protocol) as identifier for sending/receiving
messages
* IPv4 vs. IPv6 We will only use IPv4 here
* Usually an IP address will be automatically assigned to the
device (Raspberry Pi) when plugging it into a router
(using DHCP, dynamic host configuration protocol,
typical address: 192.168.2.7)
* When directly linking two devices (e.g. a Mac/PC and
Raspberry)
using a cross-cable (regular cable is fine for Raspberry), then
both systems have to be set to addresses in the same prefix
range, e.g. Raspberry is 10.0.0.1, Mac/PC is 10.0.0.2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly