SlideShare a Scribd company logo
1 of 12
Download to read offline
Setup SD card for Linux on
PandaBoard
P
Sagar Patel, Gunjan Gupta, Romil Shah

Setup SD Card for Pandaboard
Hardware Necessary:
 Laptop with Linux distro (Ubuntu 12.04)
 SD card (16GB class 10)
There are some issues founded in Pandaboard community that Ubuntu 12.04 is not
booting on Pandaboard ES Rev3. We also faced same problem. But we figured out
the solution by manually formatting SD card. This document explains the
preparation of SD card for installation of Linux on Pandaboard. We formatted SD
card using Ubuntu. Make sure that, all the installation work must be done on
Ubuntu and SD Card is connected to computer and it is not in write protected
mode. Pandaboard ES allows booting through SD Card but it do not allow through
USB.
First of all start terminal by Ctrl +Alt +T and write in terminal
mount

2
Sagar Patel, Gunjan Gupta, Romil Shah
It will show us all the memory devices connected to computer. Internal Hard disk
will be described as sda and other memory devices can be named sdb, sdc, etc.
They are further divided in partitions and hence can have numbering appended to
them like sdb1, sdb2, etc. We have to unmount all the partitions of SD Card. Here
in our case I have only one partition so I will unmount it which can be done in this
way:
sudo umount /dev/sdb1

We will list all the connected memory partitions ofdesktop by writing:
sudo fdisk -ls

3
Sagar Patel, Gunjan Gupta, Romil Shah

Now we do not have access to SD Card through Desktop but still we can access
partitions of SD card through terminal and can manipulate memory of SD Card.
For manipulation we need to do memory hacking which canonly be done by
entering in SD Card through terminal. For 16 GB SD Card and our purpose of
installing Ubuntu we have calculated number of heads as 255, sectors/track as 63
and as each sector have 512 bytes so on calculating number of cylinders = Total
size / Size of one head is 1930.{Number of Cylinders=
(Approx.)}
As our SD card is in /dev/sdb segment so I will write
sudo fdisk /dev/sdb

4

∗

∗

= 1930
Sagar Patel, Gunjan Gupta, Romil Shah

Now as shown we have different commands available to us for memory operation
on SD Card. First we have to delete all the partitions. In our case, we have only 1
partition so it will be deleted by “d” command. If multiple partitions are present
then selecting that partition and repeating “d” again will delete it. After deleting all
the partitions we use “p” to check that no partition is existing.

5
Sagar Patel, Gunjan Gupta, Romil Shah

Now we will go in expert mode by typing “x” and we will have much different
functionality available to us for manipulation as shown:

Here, we will give no of heads by “h” = 255; no of sectors/track by “s” = 63; no of
cylinders by “c” =1930 and then will return to normal mode by “r”.

6
Sagar Patel, Gunjan Gupta, Romil Shah

Now we will add a new partition by “n”. It will ask for type of partition, where we
will choose primary type by “p” and will give partition number “1” and initial
memory allocation size of 64 MB by “+64M” and sector size will be taken default
by just entering in command.

Now we will write all the changes by “w”. It will save the altered partition table
and will make sync disc and make it re-readable. Also it will take us out of SD
Card command prompting to normal terminal execution.

7
Sagar Patel, Gunjan Gupta, Romil Shah

8
Sagar Patel, Gunjan Gupta, Romil Shah

Installation of Ubuntu 12.04 image on SD card
Now we can prepare our SD Card with help of OMAP image of Ubuntu. This
image can be downloaded from https://wiki.ubuntu.com/ARM/OMAP. To be
precise
download
pre-installed
binary
image
from
http://cdimage.ubuntu.com/releases/12.04/release/ubuntu-12.04-preinstalleddesktop-armhf+omap4.img.gz. We have Ubuntu 12.04 download in our
Downloads folder, so we will enter in that particular folder

cd Downloads

Now write this script in terminal
sudo sh -c 'zcat ./ubuntu-12.04-preinstalled-desktoparmhf+omap4.img.gz |dd bs=4M of=/dev/sdb ; sync’

9
Sagar Patel, Gunjan Gupta, Romil Shah

It will start installation of Ubuntu OS in SD Card. This process takes about 5 -10
minutes depending on your processor. After this installation ends successfully we
will see number of records which were input and output, total bytes copied, time
taken and speed.

10
Sagar Patel, Gunjan Gupta, Romil Shah

Now, we are ready to insert our SD Card in Pandaboard and boot it for first time.
We will follow simple steps of installing Ubuntu just like the steps we follow on
installing windows in our computer. After all the steps are completed, we are ready
to do our work in Ubuntu on Pandaboard.

Authors
(1) Sagar Patel:
He is pursuing B.Tech in Electronics and Communication in Nirma
University, India. He is intern scholar at Massachusetts Institute of
Technology’s AITI. He likes to explore new ideas. Embedded systems,
digital signal processing and video-sound processing are his favorite fields.
He loves programming. He is a blogger at http://creat-tricks.blogspot.com.
He also owns a YouTube channel www.youtube.com/sagarpatel9556.
Contact him at sagarpatel.9556@gmail.com.
(2) Gunjan Gupta:
He is pursuing B.Tech in Electronics and Communication in Nirma
University, India. He is interested in Image Processing, antenna designing
and biomedical antenna. Contact him at gunjan101@gmail.com.
11
Sagar Patel, Gunjan Gupta, Romil Shah
(3) Romil Shah:
He is pursuing B.Tech in Electronics and Communication in Nirma
University, India. He is intern scholar at Florida Atlantic University. His
area of interest includes Image Processing, Wireless communication and
embedded system designing. Contact him at rams16592@gmail.com.

 THANK YOU 

12

More Related Content

What's hot

Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory Management
Ni Zo-Ma
 
Vim+cscope+ctags+taglist
Vim+cscope+ctags+taglistVim+cscope+ctags+taglist
Vim+cscope+ctags+taglist
Picker Weng
 

What's hot (20)

Introduction to firewalls through Iptables
Introduction to firewalls through IptablesIntroduction to firewalls through Iptables
Introduction to firewalls through Iptables
 
Power management
Power managementPower management
Power management
 
U-Boot - An universal bootloader
U-Boot - An universal bootloader U-Boot - An universal bootloader
U-Boot - An universal bootloader
 
Porting Android
Porting AndroidPorting Android
Porting Android
 
Understanding a kernel oops and a kernel panic
Understanding a kernel oops and a kernel panicUnderstanding a kernel oops and a kernel panic
Understanding a kernel oops and a kernel panic
 
Linux installation and booting process
Linux installation and booting processLinux installation and booting process
Linux installation and booting process
 
File systems for Embedded Linux
File systems for Embedded LinuxFile systems for Embedded Linux
File systems for Embedded Linux
 
Embedded Linux on ARM
Embedded Linux on ARMEmbedded Linux on ARM
Embedded Linux on ARM
 
Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory Management
 
USB Drivers
USB DriversUSB Drivers
USB Drivers
 
The Linux Block Layer - Built for Fast Storage
The Linux Block Layer - Built for Fast StorageThe Linux Block Layer - Built for Fast Storage
The Linux Block Layer - Built for Fast Storage
 
Understand and optimize Linux I/O
Understand and optimize Linux I/OUnderstand and optimize Linux I/O
Understand and optimize Linux I/O
 
malloc & vmalloc in Linux
malloc & vmalloc in Linuxmalloc & vmalloc in Linux
malloc & vmalloc in Linux
 
Linux Kernel MMC Storage driver Overview
Linux Kernel MMC Storage driver OverviewLinux Kernel MMC Storage driver Overview
Linux Kernel MMC Storage driver Overview
 
Vim+cscope+ctags+taglist
Vim+cscope+ctags+taglistVim+cscope+ctags+taglist
Vim+cscope+ctags+taglist
 
Kernel Recipes 2017 - Overview of Generic PM Domains (genpd) - Kevin Hilman
Kernel Recipes 2017 - Overview of Generic PM Domains (genpd) - Kevin HilmanKernel Recipes 2017 - Overview of Generic PM Domains (genpd) - Kevin Hilman
Kernel Recipes 2017 - Overview of Generic PM Domains (genpd) - Kevin Hilman
 
Xen and the art of embedded virtualization (ELC 2017)
Xen and the art of embedded virtualization (ELC 2017)Xen and the art of embedded virtualization (ELC 2017)
Xen and the art of embedded virtualization (ELC 2017)
 
Virtualization Support in ARMv8+
Virtualization Support in ARMv8+Virtualization Support in ARMv8+
Virtualization Support in ARMv8+
 
Linux Administration
Linux AdministrationLinux Administration
Linux Administration
 
Linux Device Tree
Linux Device TreeLinux Device Tree
Linux Device Tree
 

Similar to Setup sd card for ubuntu on pandaboard

Embedded_Linux_Booting
Embedded_Linux_BootingEmbedded_Linux_Booting
Embedded_Linux_Booting
Rashila Rr
 
Partitioning_SDcard
Partitioning_SDcardPartitioning_SDcard
Partitioning_SDcard
Rashila Rr
 
3rd grading-reviewer-pc-assembly-and-networking
3rd grading-reviewer-pc-assembly-and-networking3rd grading-reviewer-pc-assembly-and-networking
3rd grading-reviewer-pc-assembly-and-networking
starlanter
 
Computers Hardware
Computers HardwareComputers Hardware
Computers Hardware
Dani Díaz
 
How to repair and recover western digital pcb 1698 and newer hard drives
How to repair and recover western digital pcb 1698 and newer hard drivesHow to repair and recover western digital pcb 1698 and newer hard drives
How to repair and recover western digital pcb 1698 and newer hard drives
Dolphin Data Lab
 
Computer components
Computer componentsComputer components
Computer components
nixonphilip
 

Similar to Setup sd card for ubuntu on pandaboard (20)

Pandaboard
PandaboardPandaboard
Pandaboard
 
Desktop Ubutu on Laptops and RaspberryPi_practices how to use it with SD card...
Desktop Ubutu on Laptops and RaspberryPi_practices how to use it with SD card...Desktop Ubutu on Laptops and RaspberryPi_practices how to use it with SD card...
Desktop Ubutu on Laptops and RaspberryPi_practices how to use it with SD card...
 
UNIT 2 P5
UNIT 2 P5UNIT 2 P5
UNIT 2 P5
 
Ramdisk
RamdiskRamdisk
Ramdisk
 
Start with arduino
Start with arduinoStart with arduino
Start with arduino
 
Embedded_Linux_Booting
Embedded_Linux_BootingEmbedded_Linux_Booting
Embedded_Linux_Booting
 
Partitioning_SDcard
Partitioning_SDcardPartitioning_SDcard
Partitioning_SDcard
 
Ubuntu alternate ubuntu installation
Ubuntu alternate ubuntu installationUbuntu alternate ubuntu installation
Ubuntu alternate ubuntu installation
 
Ridoy Das
 Ridoy Das  Ridoy Das
Ridoy Das
 
Basic Computer Parts.pptx
Basic Computer Parts.pptxBasic Computer Parts.pptx
Basic Computer Parts.pptx
 
3rd grading-reviewer-pc-assembly-and-networking
3rd grading-reviewer-pc-assembly-and-networking3rd grading-reviewer-pc-assembly-and-networking
3rd grading-reviewer-pc-assembly-and-networking
 
Starting Raspberry Pi
Starting Raspberry PiStarting Raspberry Pi
Starting Raspberry Pi
 
Class 1.
Class 1.Class 1.
Class 1.
 
Computers Hardware
Computers HardwareComputers Hardware
Computers Hardware
 
Componets off a computer adam (5)
Componets off a computer adam (5)Componets off a computer adam (5)
Componets off a computer adam (5)
 
BeagleBone black
BeagleBone blackBeagleBone black
BeagleBone black
 
How to repair and recover western digital pcb 1698 and newer hard drives
How to repair and recover western digital pcb 1698 and newer hard drivesHow to repair and recover western digital pcb 1698 and newer hard drives
How to repair and recover western digital pcb 1698 and newer hard drives
 
Creating desktop for gaming
Creating desktop for gamingCreating desktop for gaming
Creating desktop for gaming
 
Parts of Computer
Parts of ComputerParts of Computer
Parts of Computer
 
Computer components
Computer componentsComputer components
Computer components
 

Recently uploaded

Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
UXDXConf
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
FIDO Alliance
 

Recently uploaded (20)

Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptx
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 

Setup sd card for ubuntu on pandaboard

  • 1. Setup SD card for Linux on PandaBoard P
  • 2. Sagar Patel, Gunjan Gupta, Romil Shah Setup SD Card for Pandaboard Hardware Necessary:  Laptop with Linux distro (Ubuntu 12.04)  SD card (16GB class 10) There are some issues founded in Pandaboard community that Ubuntu 12.04 is not booting on Pandaboard ES Rev3. We also faced same problem. But we figured out the solution by manually formatting SD card. This document explains the preparation of SD card for installation of Linux on Pandaboard. We formatted SD card using Ubuntu. Make sure that, all the installation work must be done on Ubuntu and SD Card is connected to computer and it is not in write protected mode. Pandaboard ES allows booting through SD Card but it do not allow through USB. First of all start terminal by Ctrl +Alt +T and write in terminal mount 2
  • 3. Sagar Patel, Gunjan Gupta, Romil Shah It will show us all the memory devices connected to computer. Internal Hard disk will be described as sda and other memory devices can be named sdb, sdc, etc. They are further divided in partitions and hence can have numbering appended to them like sdb1, sdb2, etc. We have to unmount all the partitions of SD Card. Here in our case I have only one partition so I will unmount it which can be done in this way: sudo umount /dev/sdb1 We will list all the connected memory partitions ofdesktop by writing: sudo fdisk -ls 3
  • 4. Sagar Patel, Gunjan Gupta, Romil Shah Now we do not have access to SD Card through Desktop but still we can access partitions of SD card through terminal and can manipulate memory of SD Card. For manipulation we need to do memory hacking which canonly be done by entering in SD Card through terminal. For 16 GB SD Card and our purpose of installing Ubuntu we have calculated number of heads as 255, sectors/track as 63 and as each sector have 512 bytes so on calculating number of cylinders = Total size / Size of one head is 1930.{Number of Cylinders= (Approx.)} As our SD card is in /dev/sdb segment so I will write sudo fdisk /dev/sdb 4 ∗ ∗ = 1930
  • 5. Sagar Patel, Gunjan Gupta, Romil Shah Now as shown we have different commands available to us for memory operation on SD Card. First we have to delete all the partitions. In our case, we have only 1 partition so it will be deleted by “d” command. If multiple partitions are present then selecting that partition and repeating “d” again will delete it. After deleting all the partitions we use “p” to check that no partition is existing. 5
  • 6. Sagar Patel, Gunjan Gupta, Romil Shah Now we will go in expert mode by typing “x” and we will have much different functionality available to us for manipulation as shown: Here, we will give no of heads by “h” = 255; no of sectors/track by “s” = 63; no of cylinders by “c” =1930 and then will return to normal mode by “r”. 6
  • 7. Sagar Patel, Gunjan Gupta, Romil Shah Now we will add a new partition by “n”. It will ask for type of partition, where we will choose primary type by “p” and will give partition number “1” and initial memory allocation size of 64 MB by “+64M” and sector size will be taken default by just entering in command. Now we will write all the changes by “w”. It will save the altered partition table and will make sync disc and make it re-readable. Also it will take us out of SD Card command prompting to normal terminal execution. 7
  • 8. Sagar Patel, Gunjan Gupta, Romil Shah 8
  • 9. Sagar Patel, Gunjan Gupta, Romil Shah Installation of Ubuntu 12.04 image on SD card Now we can prepare our SD Card with help of OMAP image of Ubuntu. This image can be downloaded from https://wiki.ubuntu.com/ARM/OMAP. To be precise download pre-installed binary image from http://cdimage.ubuntu.com/releases/12.04/release/ubuntu-12.04-preinstalleddesktop-armhf+omap4.img.gz. We have Ubuntu 12.04 download in our Downloads folder, so we will enter in that particular folder cd Downloads Now write this script in terminal sudo sh -c 'zcat ./ubuntu-12.04-preinstalled-desktoparmhf+omap4.img.gz |dd bs=4M of=/dev/sdb ; sync’ 9
  • 10. Sagar Patel, Gunjan Gupta, Romil Shah It will start installation of Ubuntu OS in SD Card. This process takes about 5 -10 minutes depending on your processor. After this installation ends successfully we will see number of records which were input and output, total bytes copied, time taken and speed. 10
  • 11. Sagar Patel, Gunjan Gupta, Romil Shah Now, we are ready to insert our SD Card in Pandaboard and boot it for first time. We will follow simple steps of installing Ubuntu just like the steps we follow on installing windows in our computer. After all the steps are completed, we are ready to do our work in Ubuntu on Pandaboard. Authors (1) Sagar Patel: He is pursuing B.Tech in Electronics and Communication in Nirma University, India. He is intern scholar at Massachusetts Institute of Technology’s AITI. He likes to explore new ideas. Embedded systems, digital signal processing and video-sound processing are his favorite fields. He loves programming. He is a blogger at http://creat-tricks.blogspot.com. He also owns a YouTube channel www.youtube.com/sagarpatel9556. Contact him at sagarpatel.9556@gmail.com. (2) Gunjan Gupta: He is pursuing B.Tech in Electronics and Communication in Nirma University, India. He is interested in Image Processing, antenna designing and biomedical antenna. Contact him at gunjan101@gmail.com. 11
  • 12. Sagar Patel, Gunjan Gupta, Romil Shah (3) Romil Shah: He is pursuing B.Tech in Electronics and Communication in Nirma University, India. He is intern scholar at Florida Atlantic University. His area of interest includes Image Processing, Wireless communication and embedded system designing. Contact him at rams16592@gmail.com.  THANK YOU  12