SlideShare ist ein Scribd-Unternehmen logo
1 von 2
Downloaden Sie, um offline zu lesen
Booting From SDcard and Execute Program From different
RootFile System
1. Sample Programs to run from different RootFile system placed in different
partition of SD card:
Program1.c:
#include<stdio.h>
void main(void)
{
printf(“nThis program is running from root file system one!n”);
}
Program2.c:
#include<stdio.h>
void main(void)
{
printf(“nThis program is running from root file system two!n”);
}
2. Cross compilation:
Use the commands given below for cross compilation:
arm­none­linux­gnueabi­gcc program1.c ­o program1 ­static
arm­none­linux­gnueabi­gcc program2.c ­o program2 ­static
After cross compilation you get two binary files program1 and program2
Copy program1 to first rootfile sytem which is second partition of sd card and copy
program2 to second rootfile system which is third partition of sd card.
3. Boot BBB using uSD card:
Before booting make three partitions in sd card namely “boot”, “FirstRootFs”,
“SecondRootFs” and copy MLO, u-boot.img, uEnv.txt, .dtb file, zImage to “boot”, then
copy Rootfile system and binary file program1 to “FirstRootFs”, at last copy Rootfile
system and binary file program2 to “SecondRootFs”.
1. Execute Program from first Root File system:
Update below line of uEnv.txt in “boot”:
mmcroot=/dev/mmcblk0p2 rw
mmcblk0p2 is sd card second partition – tells were the Rootfile system is placed and it will
boot from second partition.
Now insert uSD card to Beaglebone Black and power up (holding down the boot button to
boot from sd card). After successful boot you get ubuntu login, use the login and the
password as “ubuntu”, you will get ubuntu prompt and run the binary file program1 at
prompt as below.
Ubuntu@ubuntu­armhf~$ ./program1
After successful execution, will get the following output:
This program is running from root file system one!             1
Booting From SDcard and Execute Program From different
RootFile System
2. Execute Program from Second Root File system:
Update below line of uEnv.txt in “boot”:
mmcroot=/dev/mmcblk0p3 rw
mmcblk0p3 is sd card third partition – tells were the Rootfile system is placed and it will
boot from third partition.
Now insert uSD card to Beaglebone Black and power up (holding down the boot button to
boot from sd card). After successful boot you get ubuntu login, use the login and the
password as “ubuntu”, you will get ubuntu prompt and run the binary file program2 at
prompt as below.
ubuntu@ubuntu­armhf~$ ./program2
After successful execution, will get the following output:
This program is running from root file system two!
2

Weitere ähnliche Inhalte

Was ist angesagt?

How to transfer core mode into gui in RedHat/centOs
How to transfer core mode into gui in RedHat/centOsHow to transfer core mode into gui in RedHat/centOs
How to transfer core mode into gui in RedHat/centOsMd Shihab
 
BOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPTBOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPTShahzeb Pirzada
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot processTeja Bheemanapally
 
Linux : Booting and runlevels
Linux : Booting and runlevelsLinux : Booting and runlevels
Linux : Booting and runlevelsJohn Ombagi
 
Description of GRUB 2
Description of GRUB 2Description of GRUB 2
Description of GRUB 2iamumr
 
Operating system
Operating systemOperating system
Operating systemPrem Sahu
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot processsagarpdalvi
 
Windows xp™
Windows xp™Windows xp™
Windows xp™Kamitoh
 
CMD Command prompts
CMD Command promptsCMD Command prompts
CMD Command promptsAhmed Hesham
 

Was ist angesagt? (18)

Free bsd visually
Free bsd visuallyFree bsd visually
Free bsd visually
 
Comands of dos
Comands of dosComands of dos
Comands of dos
 
Linuxnetworkingcommands
LinuxnetworkingcommandsLinuxnetworkingcommands
Linuxnetworkingcommands
 
How to transfer core mode into gui in RedHat/centOs
How to transfer core mode into gui in RedHat/centOsHow to transfer core mode into gui in RedHat/centOs
How to transfer core mode into gui in RedHat/centOs
 
BOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPTBOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPT
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
Linuxtutorial
LinuxtutorialLinuxtutorial
Linuxtutorial
 
Linux : Booting and runlevels
Linux : Booting and runlevelsLinux : Booting and runlevels
Linux : Booting and runlevels
 
Description of GRUB 2
Description of GRUB 2Description of GRUB 2
Description of GRUB 2
 
Operating system
Operating systemOperating system
Operating system
 
Booting & shut down,
Booting & shut down,Booting & shut down,
Booting & shut down,
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
101 1.1 hardware settings
101 1.1 hardware settings101 1.1 hardware settings
101 1.1 hardware settings
 
Windows xp™
Windows xp™Windows xp™
Windows xp™
 
Putty
PuttyPutty
Putty
 
Custom kernel creation
Custom kernel creation Custom kernel creation
Custom kernel creation
 
curiososos
curiosososcuriososos
curiososos
 
CMD Command prompts
CMD Command promptsCMD Command prompts
CMD Command prompts
 

Andere mochten auch

کتاب لینوکس برای همه نسخه ۰٫۳
کتاب لینوکس برای همه نسخه ۰٫۳کتاب لینوکس برای همه نسخه ۰٫۳
کتاب لینوکس برای همه نسخه ۰٫۳Yashar Esmaildokht
 
Kapiti Coast Visitors Guide 2017 Website v2
Kapiti Coast Visitors Guide 2017 Website v2Kapiti Coast Visitors Guide 2017 Website v2
Kapiti Coast Visitors Guide 2017 Website v2Jennie Gutry
 
DIA DEL PADRE:HOMENAJE POSTERGADO
DIA DEL PADRE:HOMENAJE POSTERGADODIA DEL PADRE:HOMENAJE POSTERGADO
DIA DEL PADRE:HOMENAJE POSTERGADOZuniga Agustin
 
Connect transmit regional seminar preston
Connect transmit regional seminar   prestonConnect transmit regional seminar   preston
Connect transmit regional seminar prestonDarren
 
Geeks not gender
Geeks not genderGeeks not gender
Geeks not genderDigiEnable
 
Bubble tea
Bubble teaBubble tea
Bubble teasteph95h
 
RK Decorators_Company Profile V1.0
RK Decorators_Company Profile V1.0RK Decorators_Company Profile V1.0
RK Decorators_Company Profile V1.0Dev Sharma
 
APRENDIZAJE POR DESCUBRIMIENTO Y SIGNIFICATIVO
APRENDIZAJE POR DESCUBRIMIENTO Y SIGNIFICATIVOAPRENDIZAJE POR DESCUBRIMIENTO Y SIGNIFICATIVO
APRENDIZAJE POR DESCUBRIMIENTO Y SIGNIFICATIVOdayacande
 
Definición de proyecto socioeducativo
Definición de proyecto socioeducativoDefinición de proyecto socioeducativo
Definición de proyecto socioeducativodaisy gonzalez
 
Dos amigos inseparables cuento
Dos amigos inseparables cuentoDos amigos inseparables cuento
Dos amigos inseparables cuentodaisy gonzalez
 
Lernerwörterbücher Deutsch - Eine Auswahl 2016
Lernerwörterbücher Deutsch - Eine Auswahl 2016Lernerwörterbücher Deutsch - Eine Auswahl 2016
Lernerwörterbücher Deutsch - Eine Auswahl 2016Jelena Kostic-Tomovic
 

Andere mochten auch (19)

کتاب لینوکس برای همه نسخه ۰٫۳
کتاب لینوکس برای همه نسخه ۰٫۳کتاب لینوکس برای همه نسخه ۰٫۳
کتاب لینوکس برای همه نسخه ۰٫۳
 
Ssh
SshSsh
Ssh
 
Proyecto upel
Proyecto upelProyecto upel
Proyecto upel
 
Kapiti Coast Visitors Guide 2017 Website v2
Kapiti Coast Visitors Guide 2017 Website v2Kapiti Coast Visitors Guide 2017 Website v2
Kapiti Coast Visitors Guide 2017 Website v2
 
DIA DEL PADRE:HOMENAJE POSTERGADO
DIA DEL PADRE:HOMENAJE POSTERGADODIA DEL PADRE:HOMENAJE POSTERGADO
DIA DEL PADRE:HOMENAJE POSTERGADO
 
Connect transmit regional seminar preston
Connect transmit regional seminar   prestonConnect transmit regional seminar   preston
Connect transmit regional seminar preston
 
Geeks not gender
Geeks not genderGeeks not gender
Geeks not gender
 
ansible why ?
ansible why ?ansible why ?
ansible why ?
 
R. Niraj
R. NirajR. Niraj
R. Niraj
 
RamDisk
RamDiskRamDisk
RamDisk
 
Bubble tea
Bubble teaBubble tea
Bubble tea
 
RK Decorators_Company Profile V1.0
RK Decorators_Company Profile V1.0RK Decorators_Company Profile V1.0
RK Decorators_Company Profile V1.0
 
Diagnostico
DiagnosticoDiagnostico
Diagnostico
 
APRENDIZAJE POR DESCUBRIMIENTO Y SIGNIFICATIVO
APRENDIZAJE POR DESCUBRIMIENTO Y SIGNIFICATIVOAPRENDIZAJE POR DESCUBRIMIENTO Y SIGNIFICATIVO
APRENDIZAJE POR DESCUBRIMIENTO Y SIGNIFICATIVO
 
Definición de proyecto socioeducativo
Definición de proyecto socioeducativoDefinición de proyecto socioeducativo
Definición de proyecto socioeducativo
 
Dos amigos inseparables cuento
Dos amigos inseparables cuentoDos amigos inseparables cuento
Dos amigos inseparables cuento
 
Grajsove implikature
Grajsove implikatureGrajsove implikature
Grajsove implikature
 
Lernerwörterbücher Deutsch - Eine Auswahl 2016
Lernerwörterbücher Deutsch - Eine Auswahl 2016Lernerwörterbücher Deutsch - Eine Auswahl 2016
Lernerwörterbücher Deutsch - Eine Auswahl 2016
 
Wörterbuchtypologie
WörterbuchtypologieWörterbuchtypologie
Wörterbuchtypologie
 

Ähnlich wie BeagleBone_Black

Dell Venue 7 3740
Dell Venue 7 3740Dell Venue 7 3740
Dell Venue 7 3740Kojo King
 
BeagleBone Black: Platform Bring-Up with Upstream Components
BeagleBone Black: Platform Bring-Up with Upstream ComponentsBeagleBone Black: Platform Bring-Up with Upstream Components
BeagleBone Black: Platform Bring-Up with Upstream ComponentsGlobalLogic Ukraine
 
How to reset lenovo password
How to reset lenovo passwordHow to reset lenovo password
How to reset lenovo passwordjohnsmith101010
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot processHari Shankar
 
U Boot or Universal Bootloader
U Boot or Universal BootloaderU Boot or Universal Bootloader
U Boot or Universal BootloaderSatpal Parmar
 
Linux boot process – explained
Linux boot process – explainedLinux boot process – explained
Linux boot process – explainedLinuxConcept
 
Bootloader and bootloading
Bootloader and bootloadingBootloader and bootloading
Bootloader and bootloadingArpita Gupta
 
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docxPart 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docxkarlhennesey
 
Prepare Installer Week 1.pdf
Prepare Installer Week 1.pdfPrepare Installer Week 1.pdf
Prepare Installer Week 1.pdfemersonrebibis1
 
www3.ntu.edu.sg-How to install Ubuntu and Get Started.pdf
www3.ntu.edu.sg-How to install Ubuntu and Get Started.pdfwww3.ntu.edu.sg-How to install Ubuntu and Get Started.pdf
www3.ntu.edu.sg-How to install Ubuntu and Get Started.pdfssuseraa78bd1
 

Ähnlich wie BeagleBone_Black (20)

Dell Venue 7 3740
Dell Venue 7 3740Dell Venue 7 3740
Dell Venue 7 3740
 
BeagleBone Black: Platform Bring-Up with Upstream Components
BeagleBone Black: Platform Bring-Up with Upstream ComponentsBeagleBone Black: Platform Bring-Up with Upstream Components
BeagleBone Black: Platform Bring-Up with Upstream Components
 
Linux Booting Process
Linux Booting ProcessLinux Booting Process
Linux Booting Process
 
How to reset lenovo password
How to reset lenovo passwordHow to reset lenovo password
How to reset lenovo password
 
OS_lab_file.pdf
OS_lab_file.pdfOS_lab_file.pdf
OS_lab_file.pdf
 
Beagleboard xm-setup
Beagleboard xm-setupBeagleboard xm-setup
Beagleboard xm-setup
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
computing networks and operating system
computing networks and operating system computing networks and operating system
computing networks and operating system
 
Presentation1
Presentation1Presentation1
Presentation1
 
U Boot or Universal Bootloader
U Boot or Universal BootloaderU Boot or Universal Bootloader
U Boot or Universal Bootloader
 
Linux boot process – explained
Linux boot process – explainedLinux boot process – explained
Linux boot process – explained
 
Bootloader and bootloading
Bootloader and bootloadingBootloader and bootloading
Bootloader and bootloading
 
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docxPart 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
 
Linux startup
Linux startupLinux startup
Linux startup
 
Prepare Installer Week 1.pdf
Prepare Installer Week 1.pdfPrepare Installer Week 1.pdf
Prepare Installer Week 1.pdf
 
Linux Booting Steps
Linux Booting StepsLinux Booting Steps
Linux Booting Steps
 
www3.ntu.edu.sg-How to install Ubuntu and Get Started.pdf
www3.ntu.edu.sg-How to install Ubuntu and Get Started.pdfwww3.ntu.edu.sg-How to install Ubuntu and Get Started.pdf
www3.ntu.edu.sg-How to install Ubuntu and Get Started.pdf
 
Srgoc linux
Srgoc linuxSrgoc linux
Srgoc linux
 
cs506_linux
cs506_linuxcs506_linux
cs506_linux
 
Linux
LinuxLinux
Linux
 

BeagleBone_Black

  • 1. Booting From SDcard and Execute Program From different RootFile System 1. Sample Programs to run from different RootFile system placed in different partition of SD card: Program1.c: #include<stdio.h> void main(void) { printf(“nThis program is running from root file system one!n”); } Program2.c: #include<stdio.h> void main(void) { printf(“nThis program is running from root file system two!n”); } 2. Cross compilation: Use the commands given below for cross compilation: arm­none­linux­gnueabi­gcc program1.c ­o program1 ­static arm­none­linux­gnueabi­gcc program2.c ­o program2 ­static After cross compilation you get two binary files program1 and program2 Copy program1 to first rootfile sytem which is second partition of sd card and copy program2 to second rootfile system which is third partition of sd card. 3. Boot BBB using uSD card: Before booting make three partitions in sd card namely “boot”, “FirstRootFs”, “SecondRootFs” and copy MLO, u-boot.img, uEnv.txt, .dtb file, zImage to “boot”, then copy Rootfile system and binary file program1 to “FirstRootFs”, at last copy Rootfile system and binary file program2 to “SecondRootFs”. 1. Execute Program from first Root File system: Update below line of uEnv.txt in “boot”: mmcroot=/dev/mmcblk0p2 rw mmcblk0p2 is sd card second partition – tells were the Rootfile system is placed and it will boot from second partition. Now insert uSD card to Beaglebone Black and power up (holding down the boot button to boot from sd card). After successful boot you get ubuntu login, use the login and the password as “ubuntu”, you will get ubuntu prompt and run the binary file program1 at prompt as below. Ubuntu@ubuntu­armhf~$ ./program1 After successful execution, will get the following output: This program is running from root file system one!             1
  • 2. Booting From SDcard and Execute Program From different RootFile System 2. Execute Program from Second Root File system: Update below line of uEnv.txt in “boot”: mmcroot=/dev/mmcblk0p3 rw mmcblk0p3 is sd card third partition – tells were the Rootfile system is placed and it will boot from third partition. Now insert uSD card to Beaglebone Black and power up (holding down the boot button to boot from sd card). After successful boot you get ubuntu login, use the login and the password as “ubuntu”, you will get ubuntu prompt and run the binary file program2 at prompt as below. ubuntu@ubuntu­armhf~$ ./program2 After successful execution, will get the following output: This program is running from root file system two! 2