Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering

RPi Python Programming 03: Raspberry Pi as Linux System

By Nikhil Agnihotri

In the previous article, we reviewed several Raspberry Pi models and considered which are most suitable depending on the application. Most of the time, you will be using RPi as a Linux computer. Raspbian, the official operating system for Raspberry Pi, is a variant of Debian OS (a Linux Distribution). Other operating systems are available, but Linux is typically preferred.

From an electronics perspective, any computing device is a digital electronic circuit that can process and execute a set of digital instructions in a programmed order so that specific tasks are completed. The programmed order of these instructions is called an application. When an operating system runs on the computing device, the Screenshot of Raspbian OS on Raspberry Piapplications, and all of the hardware resources, are managed by it.

The operating system is, therefore, a unique program designed and developed to manage hardware resources, data, memory, and applications.

Any application “allows” the hardware to manipulate the data. For example, a word processing application allows a computer:

  • To read data input from a keyboard
  • Display typed data or data files through a graphic user interface on the screen
  • Save data files to a secondary memory device
  • Print the data using a printer or plotter.

The data can be runtime data or files stored on the secondary memory device. The data files that store the application on a secondary memory device are called programs. At runtime, the programs are called processes. However, the processes cannot directly access hardware resources. They must interact with the operating system for access to the hardware resources, primary memory, other files that are on the secondary memory, or to transfer the data from one device to another.

It is the operating system that is responsible for:

  • Managing and allocating hardware resources
  • Allocating primary and virtual memory resources
  • Manage processes
  • Maintain file system
  • Protect files and data on secondary storage.

The person using the computer is called the user. The user interacts with applications through the input/output peripherals. To manage the transfer of data from the input/output peripherals, device drivers must be installed on the operating system. These device drivers are programs that dictate data communication with a hardware component. Each hardware device connected in the computer system has a device driver that must be explicitly installed on the operating system to let it interact with the specific hardware device.

Additionally, the operating system is responsible for providing a user interface (command-line or graphical) to let the user access the files stored on the secondary or removable storage devices, and interact with the application programs. It also provides system services or utility services, such as the scheduling of processes, file handling, manipulation of text, printing, networking, etc. These services run as separate processes and are initiated when the operating system is booted. The application programs may need to access or interact with one or several of these services for specific tasks.

Linux operating system
Linux is an open-source operating system that was first developed by Linus Benedict Torvalds. The software is available as a Linux kernel for free without a license fee. This means anybody can download and modify the source code of Linux to have his or her own Linux distribution. The Linux Kernel is written in C programming language.

It is combined with:

  • System utilities (GNU utilities)
  • Shell — a special utility for a user to manage files and programs.
  • Desktop environment, which adds a graphic user interface to the Linux Kernel.
  • Default application software, written for the Linux Kernel, and forms a complete operating system.

Together, the Linux Kernel with its combined features, is a ready-to-use Linux distribution — and there are hundreds of Linux distributions. Interestingly, Linux is not limited to any platform, meaning its different distributions are available as an operating system for desktops, servers, mobile devices, mainframe computers, supercomputers, and embedded devices.

The current Linux desktop share is 1.74 to 2.18 percent. About 85 percent of mobile devices are running on Android, which is a Linux derivative. Approximately 66 percent of servers use Linux and almost all supercomputers run on custom Linux variants.

The Linux Kernel is periodically updated and made available for download. A version number identifies each new release, which is composed of three components:

1. The major number indicates a significant revision to the Linux Kernel.
2. The minor number refers to minor changes and stability of the version. If the minor number is odd, it means that it’s a development kernel. If it’s even, it’s a production kernel. Development kernels are not fully tested and can be unstable. A production kernel is a fully tested and stable release of Linux Kernel.
3. The revision number specifies minute changes to the kernel. For example, the latest stable Linux Kernel version is 5.4.1 (November 2019), in which 5 is the major number, 4 is the minor number, and 1 is revision number. This is a production kernel.

Linux is available under GNU Public License, which was developed by the Free Software Foundation (FSF), a nonprofit with a global mission to promote computer user freedom. Under GPL, any software and its source code must be freely available. If someone modifies the source code, it should also be redistributed without any license fee.

So, Linux is an Open Source Software (OSS). Under Open Source license, the software and source code must be available free of charge. This means software companies and developers are unable to generate revenue on an OSS because the software and its source code, must be distributed for free under the open-source licenses. As a result, OSS developers (and Linux developers) generate revenue by selling the hardware that runs an OSS, the closed-source software that runs on an OSS (such as the applications for Linux), or by providing related customer support.

As an operating system, Linux has a few notable features. It provides multi-threading, multi-tasking, and multi-user capability, as well as a stable, secure, and monolithic kernel. It also offers the versatility of the hardware platform, multiple file system options, open-source code, simple customization, and low operational costs.

Popular Linux distributions include Red Hat, Fedora, Slackware, Arch Linux, OpenSUSE, Mandriva Linux, Gentoo, Debian, Ubuntu, CentOS, PCLinuxOS, Puppy Linux, Solus, Elementary OS, etc. Raspbian is a Linux distribution that’s based on Debian.

Screenshot of Raspbian OS on Raspberry Pi

Example of Raspbian OS running on Raspberry Pi

Any Linux system has these building blocks:

  • Linux Kernel
  • GNU utilities
  • Shell
  • Desktop environment
  • Add-on application software

To learn more about these building blocks, check out this article: “Any Linux System at a Glance.” It’s an important read to understand the different software components that make up a Linux operating system and how they function.

In the next article, we learn how to set up a Raspberry Pi computer. Be ready to get your hands dirty from the following tutorial and onwards.

 


Filed Under: Featured Contributions
Tagged With: Raspberry Pi
 

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


Featured Tutorials

  • Designing Gate Driver Circuit and Switching Mechanism for Modified Sine Wave Inverter – (Part 9/17)
  • Completing Modified Sine Wave Inverter Design with Full Bridge Circuit and Step Up Transformer – (Part 10/17)
  • Designing an Offline UPS – Part (12 /17)
  • How to reduce Switching Time of a Relay – (Part 15/17)
  • Testing MOSFET – (Part 16/17)
  • Driving High Side MOSFET using Bootstrap Circuitry – (Part 17/17)

Stay Up To Date

Newsletter Signup

Sign up and receive our weekly newsletter for latest Tech articles, Electronics Projects, Tutorial series and other insightful tech content.

EE Training Center Classrooms

EE Classrooms

Recent Articles

  • Infineon offers DC-DC controller for full LED headlamps without a microcontroller
  • Vishay launches new high-precision, thin-film wraparound chip resistor
  • STMicroelectronics’ common-mode filters ensure signal integrity in serial interfaces
  • Renesas’ RA Family microcontrollers earn CAVP certification for cryptographic algorithms
  • MicroPython: Serial data communication in ESP8266 and ESP32 using UART

Most Popular

5G 555 timer circuit 8051 ai Arduino atmega16 automotive avr dc motor display Electronic Part Electronic Parts Fujitsu ic infineontechnologies integratedcircuit Intel IoT ir lcd ldr led maximintegratedproducts microchip microchiptechnology Microchip Technology microcontroller microcontrollers mosfet motor powermanagement Raspberry Pi remote renesaselectronics Research robot samsung semiconductor sensor software STMicroelectronics switch Technology vishayintertechnology wireless

RSS EDABOARD.com Discussions

  • kt/c noise of sample and hold
  • What is the function of the long stub?
  • How to use of GaN Transistor gates instead of IGBT in this circuit ?
  • Help with Verilog replicate operator
  • Using Viabars

RSS Electro-Tech-Online.com Discussions

  • Background of Members Here
  • Adding Current Limit Feature to a Buck Converter
  • Passthrough charging-simple but impossible to achieve?
  • Opamp ciruit
  • DIY Mini 12v Router UPS malfunction
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2022 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering