This presentation will provide the information about the Linux Root File systems and its hierarchy. So any technocrate who is willing to gain info about root files of Linux can easily understand . preffered for Embedded system design Students who are pursuing diploma courses in various CDAC centers.
File system is an approach on how the data can be
organized in order to have a meaningful read or write in a
system. File systems provides a very easy way of identifying data like where it begins and ends. The group of such data can be called as “Files”. The method used to manage these groups of data can be called as “File systems”
Have a quick overview of most of the embedded linux components and their details. How ti build Embedded Linux Hardware & Software, and developing Embedded Products
LAS16-402: ARM Trusted Firmware – from Enterprise to EmbeddedLinaro
LAS16-402: ARM Trusted Firmware – from Enterprise to Embedded
Speakers:
Date: September 29, 2016
★ Session Description ★
ARM Trusted Firmware has established itself as a key part of the ARMv8-A software stack. Broadening its applicability across all segments, from embedded to enterprise, is challenging. This session discusses the latest developments, including extension into the 32-bit space.
★ Resources ★
Etherpad: pad.linaro.org/p/las16-402
Presentations & Videos: http://connect.linaro.org/resource/las16/las16-402/
★ Event Details ★
Linaro Connect Las Vegas 2016 – #LAS16
September 26-30, 2016
http://www.linaro.org
http://connect.linaro.org
Some basic knowledges required for beginners in writing linux kernel module - with a description of linux source tree, so that the idea of where and how develops. The working of insmod and rmmod commands are described also.
File system is an approach on how the data can be
organized in order to have a meaningful read or write in a
system. File systems provides a very easy way of identifying data like where it begins and ends. The group of such data can be called as “Files”. The method used to manage these groups of data can be called as “File systems”
Have a quick overview of most of the embedded linux components and their details. How ti build Embedded Linux Hardware & Software, and developing Embedded Products
LAS16-402: ARM Trusted Firmware – from Enterprise to EmbeddedLinaro
LAS16-402: ARM Trusted Firmware – from Enterprise to Embedded
Speakers:
Date: September 29, 2016
★ Session Description ★
ARM Trusted Firmware has established itself as a key part of the ARMv8-A software stack. Broadening its applicability across all segments, from embedded to enterprise, is challenging. This session discusses the latest developments, including extension into the 32-bit space.
★ Resources ★
Etherpad: pad.linaro.org/p/las16-402
Presentations & Videos: http://connect.linaro.org/resource/las16/las16-402/
★ Event Details ★
Linaro Connect Las Vegas 2016 – #LAS16
September 26-30, 2016
http://www.linaro.org
http://connect.linaro.org
Some basic knowledges required for beginners in writing linux kernel module - with a description of linux source tree, so that the idea of where and how develops. The working of insmod and rmmod commands are described also.
Memory Forensics Presentation from one of my lectures. I have tried to explain the functioning of memory in 32 bit architecture, how paging works, how windows manage its memory pages and how memory forensics job is done. The forensics part focuses on collecting data and analyzing the same
Introduction to the DAOS Scale-out object store (HLRS Workshop, April 2017)Johann Lombardi
DAOS is a open-source storage stack designed from the ground up to address many of the problems that arise when scaling out storage. DAOS takes advantage of next generation non-volatile memory technologies while presenting a rich and scalable storage interface providing features such as transactional non-blocking list I/O, data resiliency on top of commodity hardware, fine grained data control, and storage tiering to optimize performance and cost. Check out https://github.com/daos-stack for more information.
This course gets you started with writing device drivers in Linux by providing real time hardware exposure. Equip you with real-time tools, debugging techniques and industry usage in a hands-on manner. Dedicated hardware by Emertxe's device driver learning kit. Special focus on character and USB device drivers.
Part 02 Linux Kernel Module ProgrammingTushar B Kute
Presentation on "Linux Kernel Module Programming".
Presented at Army Institute of Technology, Pune for FDP on "Basics of Linux Kernel Programming". by Tushar B Kute (http://tusharkute.com).
This is the presentation I gave on Linux kernel modules at the Linux Meetup in Austin, TX, on 2/5/2015.
http://www.meetup.com/linux-85/events/185946802/
Code referred to in the presentation: https://github.com/ereyes01/kernel-mod-prez
This slide provides a basic understanding of hypervisor support in ARM v8 and above processors. And these slides (intent to) give some guidelines to automotive engineers to compare and choose right solution!
Often called as the Swiss Army Knife of Embedded Linux, BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides replacements for most of the utilities you usually find in GNU fileutils, shellutils, etc. It is written with size-optimization
and limited resources in mind. Here is a presentation that details about BusyBox.
This presentation is about U-Boot: the most popular open source, primary boot loader used in embedded devices, as well as it's mechanisms and features.
The respective talk was held by Sam Protsenko (Software Engineer, Consultant, GlobalLogic) at GlobalLogic Mykolaiv Embedded TechTalk #1 on May 25, 2018.
The U-Boot is an "Universal Bootloader" ("Das U-Boot") is a monitor program that is under GPL. This production quality boot-loader is used as default boot loader by several board vendors. It is easily portable and easy to port and to debug by supporting PPC, ARM, MIPS, x86,m68k, NIOS, Microblaze architectures. Here is a presentation that introduces U-Boot.
LCU13: Deep Dive into ARM Trusted Firmware
Resource: LCU13
Name: Deep Dive into ARM Trusted Firmware
Date: 31-10-2013
Speaker: Dan Handley / Charles Garcia-Tobin
Continguous Memory Allocator in the Linux KernelKernel TLV
Agenda:
Continguous Memory Allocator - how to allocate large continguous memory for large scale DMA in the kernel.
Speaker:
Mark Veltzer - CTO of Hinbit and a senior instructor at John Bryce. Mark is also a member of the Free Source Foundation and contributes to many free projects.
Agenda:
In this talk we will present various locking mechanisms implemented in the linux kernel.
From System V locks to raw spinlocks and the RT patch.
Speaker:
Mark Veltzer - CTO of Hinbit and a senior instructor at John Bryce. Mark is also a member of the Free Source Foundation and contributes to many free projects.
https://github.com/veltzer
Linux Kernel Booting Process (1) - For NLKBshimosawa
Describes the bootstrapping part in Linux and some related technologies.
This is the part one of the slides, and the succeeding slides will contain the errata for this slide.
Memory Forensics Presentation from one of my lectures. I have tried to explain the functioning of memory in 32 bit architecture, how paging works, how windows manage its memory pages and how memory forensics job is done. The forensics part focuses on collecting data and analyzing the same
Introduction to the DAOS Scale-out object store (HLRS Workshop, April 2017)Johann Lombardi
DAOS is a open-source storage stack designed from the ground up to address many of the problems that arise when scaling out storage. DAOS takes advantage of next generation non-volatile memory technologies while presenting a rich and scalable storage interface providing features such as transactional non-blocking list I/O, data resiliency on top of commodity hardware, fine grained data control, and storage tiering to optimize performance and cost. Check out https://github.com/daos-stack for more information.
This course gets you started with writing device drivers in Linux by providing real time hardware exposure. Equip you with real-time tools, debugging techniques and industry usage in a hands-on manner. Dedicated hardware by Emertxe's device driver learning kit. Special focus on character and USB device drivers.
Part 02 Linux Kernel Module ProgrammingTushar B Kute
Presentation on "Linux Kernel Module Programming".
Presented at Army Institute of Technology, Pune for FDP on "Basics of Linux Kernel Programming". by Tushar B Kute (http://tusharkute.com).
This is the presentation I gave on Linux kernel modules at the Linux Meetup in Austin, TX, on 2/5/2015.
http://www.meetup.com/linux-85/events/185946802/
Code referred to in the presentation: https://github.com/ereyes01/kernel-mod-prez
This slide provides a basic understanding of hypervisor support in ARM v8 and above processors. And these slides (intent to) give some guidelines to automotive engineers to compare and choose right solution!
Often called as the Swiss Army Knife of Embedded Linux, BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides replacements for most of the utilities you usually find in GNU fileutils, shellutils, etc. It is written with size-optimization
and limited resources in mind. Here is a presentation that details about BusyBox.
This presentation is about U-Boot: the most popular open source, primary boot loader used in embedded devices, as well as it's mechanisms and features.
The respective talk was held by Sam Protsenko (Software Engineer, Consultant, GlobalLogic) at GlobalLogic Mykolaiv Embedded TechTalk #1 on May 25, 2018.
The U-Boot is an "Universal Bootloader" ("Das U-Boot") is a monitor program that is under GPL. This production quality boot-loader is used as default boot loader by several board vendors. It is easily portable and easy to port and to debug by supporting PPC, ARM, MIPS, x86,m68k, NIOS, Microblaze architectures. Here is a presentation that introduces U-Boot.
LCU13: Deep Dive into ARM Trusted Firmware
Resource: LCU13
Name: Deep Dive into ARM Trusted Firmware
Date: 31-10-2013
Speaker: Dan Handley / Charles Garcia-Tobin
Continguous Memory Allocator in the Linux KernelKernel TLV
Agenda:
Continguous Memory Allocator - how to allocate large continguous memory for large scale DMA in the kernel.
Speaker:
Mark Veltzer - CTO of Hinbit and a senior instructor at John Bryce. Mark is also a member of the Free Source Foundation and contributes to many free projects.
Agenda:
In this talk we will present various locking mechanisms implemented in the linux kernel.
From System V locks to raw spinlocks and the RT patch.
Speaker:
Mark Veltzer - CTO of Hinbit and a senior instructor at John Bryce. Mark is also a member of the Free Source Foundation and contributes to many free projects.
https://github.com/veltzer
Linux Kernel Booting Process (1) - For NLKBshimosawa
Describes the bootstrapping part in Linux and some related technologies.
This is the part one of the slides, and the succeeding slides will contain the errata for this slide.
It is the File system that is contained on the same partition on which the "Root directory" is located. It is the File system on which all the other file systems are mounted
Linux directory structure by jitu mistryJITU MISTRY
in this ppt there are talkin about the Linux directory structure. special focus on the why we have such type of directory and that is explain slide by slide
Building Mini Embedded Linux System for X86 ArchSherif Mousa
Full tutorial to learn how to build your own embedded Linux system as a MiniOS for your X86 device (PC ...).
It's considered a good start for anyone to get into the field of Embedded Linux building and development.
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...Juraj Vysvader
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I didn't get rich from it but it did have 63K downloads (powered possible tens of thousands of websites).
Cyaniclab : Software Development Agency Portfolio.pdfCyanic lab
CyanicLab, an offshore custom software development company based in Sweden,India, Finland, is your go-to partner for startup development and innovative web design solutions. Our expert team specializes in crafting cutting-edge software tailored to meet the unique needs of startups and established enterprises alike. From conceptualization to execution, we offer comprehensive services including web and mobile app development, UI/UX design, and ongoing software maintenance. Ready to elevate your business? Contact CyanicLab today and let us propel your vision to success with our top-notch IT solutions.
In the ever-evolving landscape of technology, enterprise software development is undergoing a significant transformation. Traditional coding methods are being challenged by innovative no-code solutions, which promise to streamline and democratize the software development process.
This shift is particularly impactful for enterprises, which require robust, scalable, and efficient software to manage their operations. In this article, we will explore the various facets of enterprise software development with no-code solutions, examining their benefits, challenges, and the future potential they hold.
Launch Your Streaming Platforms in MinutesRoshan Dwivedi
The claim of launching a streaming platform in minutes might be a bit of an exaggeration, but there are services that can significantly streamline the process. Here's a breakdown:
Pros of Speedy Streaming Platform Launch Services:
No coding required: These services often use drag-and-drop interfaces or pre-built templates, eliminating the need for programming knowledge.
Faster setup: Compared to building from scratch, these platforms can get you up and running much quicker.
All-in-one solutions: Many services offer features like content management systems (CMS), video players, and monetization tools, reducing the need for multiple integrations.
Things to Consider:
Limited customization: These platforms may offer less flexibility in design and functionality compared to custom-built solutions.
Scalability: As your audience grows, you might need to upgrade to a more robust platform or encounter limitations with the "quick launch" option.
Features: Carefully evaluate which features are included and if they meet your specific needs (e.g., live streaming, subscription options).
Examples of Services for Launching Streaming Platforms:
Muvi [muvi com]
Uscreen [usencreen tv]
Alternatives to Consider:
Existing Streaming platforms: Platforms like YouTube or Twitch might be suitable for basic streaming needs, though monetization options might be limited.
Custom Development: While more time-consuming, custom development offers the most control and flexibility for your platform.
Overall, launching a streaming platform in minutes might not be entirely realistic, but these services can significantly speed up the process compared to building from scratch. Carefully consider your needs and budget when choosing the best option for you.
Understanding Globus Data Transfers with NetSageGlobus
NetSage is an open privacy-aware network measurement, analysis, and visualization service designed to help end-users visualize and reason about large data transfers. NetSage traditionally has used a combination of passive measurements, including SNMP and flow data, as well as active measurements, mainly perfSONAR, to provide longitudinal network performance data visualization. It has been deployed by dozens of networks world wide, and is supported domestically by the Engagement and Performance Operations Center (EPOC), NSF #2328479. We have recently expanded the NetSage data sources to include logs for Globus data transfers, following the same privacy-preserving approach as for Flow data. Using the logs for the Texas Advanced Computing Center (TACC) as an example, this talk will walk through several different example use cases that NetSage can answer, including: Who is using Globus to share data with my institution, and what kind of performance are they able to achieve? How many transfers has Globus supported for us? Which sites are we sharing the most data with, and how is that changing over time? How is my site using Globus to move data internally, and what kind of performance do we see for those transfers? What percentage of data transfers at my institution used Globus, and how did the overall data transfer performance compare to the Globus users?
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Globus
The U.S. Geological Survey (USGS) has made substantial investments in meeting evolving scientific, technical, and policy driven demands on storing, managing, and delivering data. As these demands continue to grow in complexity and scale, the USGS must continue to explore innovative solutions to improve its management, curation, sharing, delivering, and preservation approaches for large-scale research data. Supporting these needs, the USGS has partnered with the University of Chicago-Globus to research and develop advanced repository components and workflows leveraging its current investment in Globus. The primary outcome of this partnership includes the development of a prototype enterprise repository, driven by USGS Data Release requirements, through exploration and implementation of the entire suite of the Globus platform offerings, including Globus Flow, Globus Auth, Globus Transfer, and Globus Search. This presentation will provide insights into this research partnership, introduce the unique requirements and challenges being addressed and provide relevant project progress.
Software Engineering, Software Consulting, Tech Lead.
Spring Boot, Spring Cloud, Spring Core, Spring JDBC, Spring Security,
Spring Transaction, Spring MVC,
Log4j, REST/SOAP WEB-SERVICES.
How Recreation Management Software Can Streamline Your Operations.pptxwottaspaceseo
Recreation management software streamlines operations by automating key tasks such as scheduling, registration, and payment processing, reducing manual workload and errors. It provides centralized management of facilities, classes, and events, ensuring efficient resource allocation and facility usage. The software offers user-friendly online portals for easy access to bookings and program information, enhancing customer experience. Real-time reporting and data analytics deliver insights into attendance and preferences, aiding in strategic decision-making. Additionally, effective communication tools keep participants and staff informed with timely updates. Overall, recreation management software enhances efficiency, improves service delivery, and boosts customer satisfaction.
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Globus
Large Language Models (LLMs) are currently the center of attention in the tech world, particularly for their potential to advance research. In this presentation, we'll explore a straightforward and effective method for quickly initiating inference runs on supercomputers using the vLLM tool with Globus Compute, specifically on the Polaris system at ALCF. We'll begin by briefly discussing the popularity and applications of LLMs in various fields. Following this, we will introduce the vLLM tool, and explain how it integrates with Globus Compute to efficiently manage LLM operations on Polaris. Attendees will learn the practical aspects of setting up and remotely triggering LLMs from local machines, focusing on ease of use and efficiency. This talk is ideal for researchers and practitioners looking to leverage the power of LLMs in their work, offering a clear guide to harnessing supercomputing resources for quick and effective LLM inference.
May Marketo Masterclass, London MUG May 22 2024.pdfAdele Miller
Can't make Adobe Summit in Vegas? No sweat because the EMEA Marketo Engage Champions are coming to London to share their Summit sessions, insights and more!
This is a MUG with a twist you don't want to miss.
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...informapgpstrackings
Keep tabs on your field staff effortlessly with Informap Technology Centre LLC. Real-time tracking, task assignment, and smart features for efficient management. Request a live demo today!
For more details, visit us : https://informapuae.com/field-staff-tracking/
Essentials of Automations: The Art of Triggers and Actions in FMESafe Software
In this second installment of our Essentials of Automations webinar series, we’ll explore the landscape of triggers and actions, guiding you through the nuances of authoring and adapting workspaces for seamless automations. Gain an understanding of the full spectrum of triggers and actions available in FME, empowering you to enhance your workspaces for efficient automation.
We’ll kick things off by showcasing the most commonly used event-based triggers, introducing you to various automation workflows like manual triggers, schedules, directory watchers, and more. Plus, see how these elements play out in real scenarios.
Whether you’re tweaking your current setup or building from the ground up, this session will arm you with the tools and insights needed to transform your FME usage into a powerhouse of productivity. Join us to discover effective strategies that simplify complex processes, enhancing your productivity and transforming your data management practices with FME. Let’s turn complexity into clarity and make your workspaces work wonders!
Unleash Unlimited Potential with One-Time Purchase
BoxLang is more than just a language; it's a community. By choosing a Visionary License, you're not just investing in your success, you're actively contributing to the ongoing development and support of BoxLang.
First Steps with Globus Compute Multi-User EndpointsGlobus
In this presentation we will share our experiences around getting started with the Globus Compute multi-user endpoint. Working with the Pharmacology group at the University of Auckland, we have previously written an application using Globus Compute that can offload computationally expensive steps in the researcher's workflows, which they wish to manage from their familiar Windows environments, onto the NeSI (New Zealand eScience Infrastructure) cluster. Some of the challenges we have encountered were that each researcher had to set up and manage their own single-user globus compute endpoint and that the workloads had varying resource requirements (CPUs, memory and wall time) between different runs. We hope that the multi-user endpoint will help to address these challenges and share an update on our progress here.
Utilocate offers a comprehensive solution for locate ticket management by automating and streamlining the entire process. By integrating with Geospatial Information Systems (GIS), it provides accurate mapping and visualization of utility locations, enhancing decision-making and reducing the risk of errors. The system's advanced data analytics tools help identify trends, predict potential issues, and optimize resource allocation, making the locate ticket management process smarter and more efficient. Additionally, automated ticket management ensures consistency and reduces human error, while real-time notifications keep all relevant personnel informed and ready to respond promptly.
The system's ability to streamline workflows and automate ticket routing significantly reduces the time taken to process each ticket, making the process faster and more efficient. Mobile access allows field technicians to update ticket information on the go, ensuring that the latest information is always available and accelerating the locate process. Overall, Utilocate not only enhances the efficiency and accuracy of locate ticket management but also improves safety by minimizing the risk of utility damage through precise and timely locates.
GraphSummit Paris - The art of the possible with Graph TechnologyNeo4j
Sudhir Hasbe, Chief Product Officer, Neo4j
Join us as we explore breakthrough innovations enabled by interconnected data and AI. Discover firsthand how organizations use relationships in data to uncover contextual insights and solve our most pressing challenges – from optimizing supply chains, detecting fraud, and improving customer experiences to accelerating drug discoveries.
1. Root File System for
Embedded Systems
-By ALOK PAL
Batch:-Aug-2018,DESD
CDAC HYDERABAD
2. Agenda
Introduction
Types of file system
Root file system content
Mounting and unmounting of file system
Libraries
Root file system setup
BusyBox
Summary
3. What is Embedded Systems?
It is a combination of Hardware and Software.
Embedded = Hardware + Software
“Embedded” means hidden inside so one can’t see it.
“System” means hidden multiple components interfaced together for
a common purpose.
4. Introduction to file systems
An OS can support more then one file system.
Home directories for all users to store their personal files.
Example: – /home/username
Library file names are either ld* or lib*.so.*
Examples: – ld-2.11.1.so
– libncurses.so.5.7
File systems can be discussed in the following context:
– Contents
– Types
– Partitions
Two major parts of a file system are User
File –naming system
File access systesm
5. What is Root File System?
DATA stored on storage device in binary format as 1s and 0s form.
It is impossible to understand files/folders from the sea of binary.
File system was designed as a novel way to organize such data easily understandable by
all users.
The software which provides the core support for implementing the Operating
System/Kernel.
/
bin lib …………..
dev home etc
Root/Top level
Directory
6. Types of file systems
Block-device File Systems
Flash File Systems
Flash File Systems II
In-Memory File system
User Space File system
Compressed Read-only File systems
Linux Virtual File system
7. Block- device file systems
Considers storage device as a simple linear collection of blocks or sectors.
Size of blocks vary (512, 1024 …)
Have two main operation : Read & Write
Type of Devices:
LBA devices (HDDs)
FTL devices (USB flash drive, SD, SSDs etc).
In case of bad blocks, the FTL or hardware (for LBA devices) takes care of
hiding from user.
File system drivers : ext2, ext3, ext4, FAT, NTFS, ReiserFS etc.
8. Flash File Systems
Mainly used on Raw Flash Devices
Linux provides MTD as a primitive translation Layer.
How are they Different?
They are not block devices
Mostly raw NAND / NOR storage media.
They consist of ERASEBLOCKS
Have 3 main operation : Read, Write & Erase block
Each block has limited lifespan (1000s of write cycles)
Needs write to be spread.
9. Flash File Systems II
FTL devices Vs Raw Flash device
FTL devices has a micro-controller which runs FTL firmware.
Helps to emulate a block device.
Why FFS is unique?
Needs to spread write
Perform Garbage collection
Bad blocks handling
Better reliability compared to FTL (Since FTL is vendor specific)
E.g. UBIFS, JFFS2 etc.
10. In-Memory File system
Uses primary memory e.g. RAM
Features:
Has higher I/O performance
Volatile Memory
E.g.:- ramfs, tmpfs, ramdisk.
Why not ramdisk?
It emulates block device in RAM.
Block device store recently accessed files in caches. Hence using ramdisk creates a
large memory foot print
Hard limit on max size of ram disk
11. User Space File system
Mainly intended for block devices.
Resides in the user space.
Overhead of communicating to and from kernel and User space.
Distinct Advantage:
A bad user space file-system can never cause a system crash.
E.g. ntfs-3g (New Technology File System-3rd generation).
NTFS-3G supports all operations for writing files: files of any size can be
created, modified, renamed, moved, or deleted on NTFS partitions, it is a
proprietary file system developed by Microsoft.
12. Compressed Read-only File systems
Read-only filesystem
Data Stored in compressed format.
Especially useful in low memory systems
E.g.
Cramfs:
Metadata not stored (No time stamps or user permissions)
Possible security issues.
Max file system size = 256 MB
Squashfs
stores metadata information.
Max filesystem size = 2^64.
13. Linux Virtual File system
Role of VFS:
Register/de-register
Associate devices and file
system drivers.
Generic File operations
Caching
Look ups
Forward File-system specific
operation:
Read
Write
etc
15. How to create Root file system?
First make a directory for this purpose:-
$ cd ${PRJROOT}/rootfs
Now create the core root filesystem directories required for your system:-
$ mkdir bin dev etc lib proc sbin sys tmp usr var
$chmod 1777 tmp
After this now you can proceed with this creation of /usr hierarchy:-
$mkdir usr/bin usr/lib usr/sbin
To demonstrate more give a command :- $ ls –al /usr
The last entries to create are in the /var directory:-
$mkdir var/lib var/lock var/log var/run var/tmp
Chmod 1777 var/tmp
The directories we created are the bare minimum required for the normal
operation of most application found in an embedded Linux system.
16. Mounting and unmounting of file system
The access of the data are done using a process called as mounting
A file system must be mounted in order to be usable by the system.
For example, if you want to mount(access) a CD-ROM to the
directory /mnt/cdrom, you can type a command:-
$ mount –t iso9660 /dev/cdrom/mnt/cdrom
After mounting, you can use the cd command to navigate the newly available
file system through the mount point you just made.
To unmount (remove) the file system from your system command is :-
$ unmount /dev/cdrom
17. Libraries
Shared library archives
The glibc package contains a number of libraries.
Glibc :- ${TARGET_PREFIX}/lib to see the entire listr of libraries installed
during the package’s build process.
Ld:- dynamic linker , it is compulsory needed to use any shared libraries.
Actual shared libraries formatted as:- libLIBRARY_NAME-GLIBC_VERSION.so
Many people do not know that .so files are also executable ELF binaries that
can return useful information :- /lib/libc-2.5.so
Static library archives
These archives are used by applications that choose to link statically with a
library :- libLIBRARY_NAME.a.
18. Some more libraries for linux file system
uClibc
As with glibc, uClibc contains a number of libraries.it contains the same four
different types of files as the glibc directory.
uClibc is meant to be a glibc replacement.
$cd ${PREFIX}/uclibc/lib
$for file in libuClibc ld-uClibc libc libdl
Keeping the file system in RAM
“Tmpfs” :-it is used as a Rootfs via the Initramfs.
Tmpfs uses the linux page and dentry caches as temporary storage areas, it
saves memory in the common case where the embedded device frequently
uses system software and static data.
19. Some useful commands
The DF(disk free) command :- $ df -k
It displays the disk space usage in kilobytes.
The Du(disk usage) command :- $ du –h
It tells the size of root file system .
And displays number of blocks consumed by each directory .
A single block may take either 512 Bytes or 1 Kilo Byte depending on your
system.
For kernel compilation :- arch/x86/boot/bzimage ; is ready command
File vmlinux
Vmlinux:- ELF 64_bit LSB executable, x86_64, version1
If $du –h vmlinux ; command typed it will give size in MBs (45)
20. Root file system setup
Characterizing :-
->online write support
->persistence
->power-down reliability
-> compression
E.g:- Cramfs
Cramfs as a filesystem with a bare-minimum feature set, it is a very simple , and sometimes
simplistic, compressed and read-only filesystem aimed at embedded systems. There are no current (.)
or parent(..) directory entries.
To build the utilities download the package, un-tar the archive, and issue the make command:-
$ tar zxvf cramfs-1.1.tar.gz
$cd cramfs-1.1
$ make; unfortunately, the package Makefile does not provide an install target. Copy the tools in
appropriate directory: $ cp cramfs ${PREFIX}/bin/
$ cd ${PRJROOT}
$mkcramfs rootfs/image/cramfs.img
bin boot dev etc lib linuxrc proc sbin tmp usr
‘bin’: addgroup…;
‘boot’: boot.b …;
‘sbin’: chroot…; in this case compression ratio 50% will be achieved.
21. BusyBox
BusyBox implements most linux commands through a single executable that is less than
1 MB (statically linked with glibc) or less then 500KB(statically linked with uClibc)
BusyBox is available under the GNU GPL
By default BusyBox is dynamically linked with the C library.
The project’s location is:- https://www.busybox.net this website includes
documentation , downloads , links, and a mailing list archive.
After downloading and extracting the package, move into directory for the rest setup:
$cd ${PRJROOT}/sysapps/busybox-1.29.3 (latest stable version released on
9sep2018).
Give a command : $ make help , it explains all the available Makefil targets, such as
make clean, make mrproper, and make install.
Compilation:- by setting CONFIG_STATIC=y for BusyBox after configuration
Now you can compile and install it When linking the glibc, use the command :- $ make
ARCH=ppc CROSS_COMPILE=powerpc-linux- >CONFIG_PREFIX=${PRJROOT}/rootfs install
To build BusyBox with uClibc instead of the GNU C library, command is:-
$ make ARCH=ppc CROSS_COMPILE=power-uclibc-
>CONFIG_PREFIX=${PRJROOT}/rootfs install , BusyBox is now installed on your target’s
root filesystem and ready to be used.
22. Summary
Root file system can be volatile or non volatile in nature .
If root file is present in RAM then it will be not persistence , because when power
goes Off it will be vanished, but if it present in the ROM then it will be always
persistence.
E.g:- init ram fs can act as a root file system created by user inside the volatile
memory but it will not be present there after the system power Off.
So the file system will implement three objects:-
->Files-that hold persistence data
->Open files:- that allows to access(mount)files
->Directories:- that name the files.
You can create your own root file system ,some commands are :-
$ ls ; to check the rootfile is present or not
$bin linuxrc sbin usr
$du –h :- tells size of the root file system
$ ls etc/proc
$ ls –al
BusyBox init:- sysinit, respawn, askfirst,wait once, ctrlaltdel,shutdown, restart