SlideShare a Scribd company logo
1 of 24
Intel Edison: Beyond the breadboard
1
By: Yeo Kheng Meng (yeokm1@gmail.com)Hackware v1.9 (29 June 2016)
Why beyond the breadboard?
2
One of Algoaccess’s hardware product
3
Algo Access’s hardware setup
OD, OS, CYL…
OD, OS, CYL…
Direct or USB-Ethernet adapter
RS232 DB-9 Serial port
Agenda
1. Intel Edison Basics
2. Hardware experience
3. Software experience
4
So what is the Intel Edison?
5
35.5mm x 25 mm x 3.9mm System-on-module (SOM)
• Using Hirose 70-pin DF40 Series Connector (0.4mm pitch)
Raspberry Pi 3 vs Intel Edison specifications
6
Specifications Raspberry Pi 3 Intel Edison
CPU 1.2Ghz quad-core BCM2837
Cortex-A53
ARMv8 (64-bit)
500Mhz dual-core Intel Atom x86 (32-bit)
+
Intel Quark MCU
GPU 400Mhz Videocore IV None
RAM 1GB DDR2 1GB DDR3
Storage External microSD cad 4GB eMMC flash onboard
Networking Single band 802.11n Wifi + Dual-mode BT + LAN Dual-band 802.11n Wifi + Dual-mode BT
I/0 Connectivity 3.3V level level GPIO bank + connectors 1.8V logic level GPIO-bank
Price US$35 US$50++
Power consumption (Idle/Peak) 1W/3.6W 0.1W / 1 W
Dimensions 85 x 56 x 17mm 35.5 x 25 x 3.9mm
2 models of Intel Edison
7
No chip antenna image from:
http://www.nix.ru/autocatalog/thin_clients/208148_2254_draft_large.jpg
From Intel Edison Compute Module Hardware Guide (June 2016) Page 13
http://www.intel.com/content/www/us/en/support/boards-and-kits/000005808.html
Official Intel carrier boards
8
Mini Breakout board
• USB Serial
• USB-OTG
• GPIO pins (1.8V logic level)
• ~US$25
Arduino Breakout board
• Arduino-style pins
• USB-Serial
• USB-OTG
• Micro-SD slot
• DC Jack 7-15V DC
• 3.3V or 5V logic levels depending on J9 position
• Default is 5V
• ~US$60
https://www.arduino.cc/en/ArduinoCertified/IntelEdison
Sparkfun stackable/carrier boards
9
Base Block
64x48 0.66” OLED + buttons “Level-shiftable” GPIO breakout 9-DOF IMU Dual H bridge Battery board
Prototyping: Bare breakout board
10
• Hirose 70-pin DF40 Series Receptacle Connector (0.4mm pitch)
• Tough to solder by hand without magnifying glass/microscope
• Stencil highly recommended to avoid solder bridges
• https://github.com/algoaccess/intel-edison-pin-breakout
Hirose 70-pin DF40 interface
11
Pin Function Description
1, 5, 9, 11, 13,
15
GND Ground
2, 4, 6 VSYS in Power Input (3.3V to 4.5V)
14 DCIN Connect to VSYS if powered from
external power
8, 10, 12 3.3V/1.8V out Reference voltage (100mA)
46, 61, 63, 65 UART1
(with flow
control)
UART with flow control
/dev/ttyMFD1
22, 27 UART2
(no flow control)
Linux debug serial port
/dev/ttyMFD2
3, 16, 18, 20 USB
(USB_VBUS does
not supply
power)
USB interface
41, 43
45, 47
I2C1
I2C6
2x I2C interfaces
Only master supported
51, 53,
55, 57, 59
SPI Master/Slave supported
Chip select: 51, 53
Picture from: https://learn.sparkfun.com/tutorials/general-guide-to-sparkfun-blocks-for-intel-edison
All pins except power and USB operate at 1.8V levels
1.8V logic levels
• All pins except power and USB operate at 1.8V levels
• But most chips are using 3.3/5.0 V
• For eg, MAX3232 RS232-TTL transceiver (3.3V)
• Use a level shifter like TXS0108EPWR
• Reference 1.8V from Module Pin 12
• For LEDs, you can just use a transistor
12
Bug: Using GPIO48 destabilises Wifi
13
http://iotdk.intel.com/docs/master/mraa/edison.html
Arduino Pin 7 can sometimes
negatively impact the WiFi capability,
if using WiFi avoid using this pin
Pin Naming Aliases:
GP48
Compute Module Pin 32
Arduino Pin 7
Avoid GPIO48
14J19, Pin 6
USB On-The-Go
15Adapted from Intel Edison Compute Module Hardware Guide (June 2016) Page 36
http://www.intel.com/content/www/us/en/support/boards-and-kits/000005808.html
• Host mode
• Connect USB peripherals like flash drives
• Client mode
• Loading firmware (DFU mode)
• USB OTG supports both Host and Client
• Can use a Double pole, double throw (DPDT) switches
USB Role USB_ID
(Pin 3)
FAULT
(Pin 19)
USB_VBUS
(Pin 20)
Host GND Floating Floating
Client Floating GND Host 5V
GND
Fault
USB_ID
USB-A Power Line
USB_VBUS
Source 5V
Client
Host
Intel Edison Linux Distributions
1. 1.6 (Default)
• Based on “Poky” Linux distribution
• Compile Poky Linux sources/packages using provided toolchain and recipes
• Limited “opkg” package manager and few default packages
• (eg, no nano, only vi)
• Can add third party “meta-openembedded” recipes during compile time
2.
• Produced by Emutex Labs
• Based on Debian 7 Wheezy (2013)
• More packages compared to Yocto using (apt-get)
• Packages outdated compared to Debian 8 Jessie (2015)
3. Compile your own: Yocto or Debian Jessie
• All use old kernel version 3.10.17 (Oct 2013)
16
Poor default support for USB-Ethernet and USB-Serial adapters
• Only supports adapters based on these chipsets
• Ethernet: ASIX AX88xxx USB 2.0 to Gigabit adapter
• Serial: Prolific PL2303 USB-Serial adapter
• More support requires kernel recompilation 17
Small rootfs partition size
18
• 1.4GB, 541MB available on initial boot, may be too small for some uses
• Modifying rootfs partition size requires recompilation
My compilation script
• Compiles in all available USB-Ethernet/Serial drivers, custom rootfs size
• Downloads sources, modifies compile options then compile
• https://github.com/algoaccess/edison_mod_kernel_image_gen
19
Lengthy compilation time
• 4-6 hours typical
• Use the cloud -> Google Compute Engine or AWS (About half hour on 32 threads)
• export SETUP_ARGS="--parallel_make=32 --bb_number_thread=32"
• IMPORTANT: Remember to SHUT DOWN your instance once finished, if not hefty charges will be incurred!!! 20
File System safety for embedded systems
• Improper shutdown of systems can corrupt file systems
• Cause: System off while data is being written
1. Read-only file system
• No writes to file-system allowed, no chance of system corruption
2. Enable full-journaling
• File-system journals store a list of changes to be made
• Ext4 default is to journal meta-data only, not the data itself
• We should also journal the data for additional protection
21
Read-only file system (preferred)
• ----------------/etc/fstab------------------------
rootfs / auto ro 1 1
/dev/disk/by-partlabel/boot /boot auto ro 1 1
/dev/disk/by-partlabel/home /home auto ro 0 2
tmpfs /var/tmp tmpfs nodev,nosuid 0 0
tmpfs /var/log tmpfs nodev,nosuid 0 0
• ------------------------------------------------------
• tmpfs: RAM drive
• nodev,nosuid: Security precautions for world-writeable file-systems
22https://gist.github.com/yeokm1/00bf00fbcda99cc33c2b
Mount file system to journal everything
• Set journal option to / partition
• tune2fs -o journal_data /dev/mmcblk0p8
• Set journal option to /home partition
• tune2fs -o journal_data /dev/mmcblk0p10
• ----------------/etc/fstab------------------------
• rootfs / ext4 data=journal,sync,noatime 1 1
• /dev/disk/by-partlabel/boot /boot auto ro 1 1
• /dev/disk/by-partlabel/home /home ext4 data=journal,sync,noatime 0 2
• ------------------------------------------------------
• data=journal: Journal everything. Data will be written twice, first in to journal, second into disk
• sync: Commit changes to disk immediately, do not cache. Performance loss
• noatime: Do not store last access time to increase disk performance to avoid updating access time in every sync
23
QnA
24

More Related Content

What's hot

Secret of Intel Management Engine by Igor Skochinsky
Secret of Intel Management Engine  by Igor SkochinskySecret of Intel Management Engine  by Igor Skochinsky
Secret of Intel Management Engine by Igor SkochinskyCODE BLUE
 
PCB Business Card
PCB Business CardPCB Business Card
PCB Business Cardyeokm1
 
How to Install ESP8266 WiFi Web Server using Arduino IDE
How to Install ESP8266 WiFi Web Server using Arduino IDEHow to Install ESP8266 WiFi Web Server using Arduino IDE
How to Install ESP8266 WiFi Web Server using Arduino IDENaoto MATSUMOTO
 
[5]投影片 futurewad樹莓派研習會 141218
[5]投影片 futurewad樹莓派研習會 141218[5]投影片 futurewad樹莓派研習會 141218
[5]投影片 futurewad樹莓派研習會 141218CAVEDU Education
 
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-io
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-ioHome automation-in-the-cloud-with-the-esp8266-and-adafruit-io
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-ioTran Minh Nhut
 
Iot Bootcamp - abridged - part 1
Iot Bootcamp - abridged - part 1Iot Bootcamp - abridged - part 1
Iot Bootcamp - abridged - part 1Marcus Tarquinio
 
IOT Talking to Webserver - how to
IOT Talking to Webserver - how to IOT Talking to Webserver - how to
IOT Talking to Webserver - how to Indraneel Ganguli
 
A Quick Introduction to Programmable Logic
A Quick Introduction to Programmable LogicA Quick Introduction to Programmable Logic
A Quick Introduction to Programmable LogicOmer Kilic
 
MOSS 2016, Bucharest, Romania - Designing the IoT Jukebox with Brillo
MOSS 2016, Bucharest, Romania - Designing the IoT Jukebox with BrilloMOSS 2016, Bucharest, Romania - Designing the IoT Jukebox with Brillo
MOSS 2016, Bucharest, Romania - Designing the IoT Jukebox with BrilloConstantin Musca
 
lesson2 - Nodemcu course - NodeMCU dev Board
 lesson2 - Nodemcu course - NodeMCU dev Board lesson2 - Nodemcu course - NodeMCU dev Board
lesson2 - Nodemcu course - NodeMCU dev BoardElaf A.Saeed
 
HITBSecConf 2016-Create Your Own Bad Usb
HITBSecConf 2016-Create Your Own Bad UsbHITBSecConf 2016-Create Your Own Bad Usb
HITBSecConf 2016-Create Your Own Bad UsbSeunghun han
 
Esp8266 - Intro for dummies
Esp8266 - Intro for dummiesEsp8266 - Intro for dummies
Esp8266 - Intro for dummiesPavlos Isaris
 
Introduction to beagle board
Introduction to beagle boardIntroduction to beagle board
Introduction to beagle boardAmit Karpe
 
HITBSecConf 2017-Shadow-Box-the Practical and Omnipotent Sandbox
HITBSecConf 2017-Shadow-Box-the Practical and Omnipotent SandboxHITBSecConf 2017-Shadow-Box-the Practical and Omnipotent Sandbox
HITBSecConf 2017-Shadow-Box-the Practical and Omnipotent SandboxSeunghun han
 
BlackHat Asia 2017-Myth and Truth about Hypervisor-Based Kernel Protector
BlackHat Asia 2017-Myth and Truth about Hypervisor-Based Kernel ProtectorBlackHat Asia 2017-Myth and Truth about Hypervisor-Based Kernel Protector
BlackHat Asia 2017-Myth and Truth about Hypervisor-Based Kernel ProtectorSeunghun han
 

What's hot (20)

Secret of Intel Management Engine by Igor Skochinsky
Secret of Intel Management Engine  by Igor SkochinskySecret of Intel Management Engine  by Igor Skochinsky
Secret of Intel Management Engine by Igor Skochinsky
 
PCB Business Card
PCB Business CardPCB Business Card
PCB Business Card
 
Espressif Introduction
Espressif IntroductionEspressif Introduction
Espressif Introduction
 
How to Install ESP8266 WiFi Web Server using Arduino IDE
How to Install ESP8266 WiFi Web Server using Arduino IDEHow to Install ESP8266 WiFi Web Server using Arduino IDE
How to Install ESP8266 WiFi Web Server using Arduino IDE
 
[5]投影片 futurewad樹莓派研習會 141218
[5]投影片 futurewad樹莓派研習會 141218[5]投影片 futurewad樹莓派研習會 141218
[5]投影片 futurewad樹莓派研習會 141218
 
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-io
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-ioHome automation-in-the-cloud-with-the-esp8266-and-adafruit-io
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-io
 
Tapping into the core
Tapping into the coreTapping into the core
Tapping into the core
 
Iot Bootcamp - abridged - part 1
Iot Bootcamp - abridged - part 1Iot Bootcamp - abridged - part 1
Iot Bootcamp - abridged - part 1
 
IOT Talking to Webserver - how to
IOT Talking to Webserver - how to IOT Talking to Webserver - how to
IOT Talking to Webserver - how to
 
A Quick Introduction to Programmable Logic
A Quick Introduction to Programmable LogicA Quick Introduction to Programmable Logic
A Quick Introduction to Programmable Logic
 
Beagle board101 esc-boston-2009b
Beagle board101 esc-boston-2009bBeagle board101 esc-boston-2009b
Beagle board101 esc-boston-2009b
 
Remote tanklevelmonitor
Remote tanklevelmonitorRemote tanklevelmonitor
Remote tanklevelmonitor
 
Asus Tinker Board
Asus Tinker BoardAsus Tinker Board
Asus Tinker Board
 
MOSS 2016, Bucharest, Romania - Designing the IoT Jukebox with Brillo
MOSS 2016, Bucharest, Romania - Designing the IoT Jukebox with BrilloMOSS 2016, Bucharest, Romania - Designing the IoT Jukebox with Brillo
MOSS 2016, Bucharest, Romania - Designing the IoT Jukebox with Brillo
 
lesson2 - Nodemcu course - NodeMCU dev Board
 lesson2 - Nodemcu course - NodeMCU dev Board lesson2 - Nodemcu course - NodeMCU dev Board
lesson2 - Nodemcu course - NodeMCU dev Board
 
HITBSecConf 2016-Create Your Own Bad Usb
HITBSecConf 2016-Create Your Own Bad UsbHITBSecConf 2016-Create Your Own Bad Usb
HITBSecConf 2016-Create Your Own Bad Usb
 
Esp8266 - Intro for dummies
Esp8266 - Intro for dummiesEsp8266 - Intro for dummies
Esp8266 - Intro for dummies
 
Introduction to beagle board
Introduction to beagle boardIntroduction to beagle board
Introduction to beagle board
 
HITBSecConf 2017-Shadow-Box-the Practical and Omnipotent Sandbox
HITBSecConf 2017-Shadow-Box-the Practical and Omnipotent SandboxHITBSecConf 2017-Shadow-Box-the Practical and Omnipotent Sandbox
HITBSecConf 2017-Shadow-Box-the Practical and Omnipotent Sandbox
 
BlackHat Asia 2017-Myth and Truth about Hypervisor-Based Kernel Protector
BlackHat Asia 2017-Myth and Truth about Hypervisor-Based Kernel ProtectorBlackHat Asia 2017-Myth and Truth about Hypervisor-Based Kernel Protector
BlackHat Asia 2017-Myth and Truth about Hypervisor-Based Kernel Protector
 

Viewers also liked

Getting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer KitGetting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer KitSulamita Garcia
 
Teeth presentation by Nathan Carver
Teeth presentation by Nathan CarverTeeth presentation by Nathan Carver
Teeth presentation by Nathan CarverBeMyApp
 
Intel IoT webinar #1 - Tedison presentation
Intel IoT webinar  #1 - Tedison presentation Intel IoT webinar  #1 - Tedison presentation
Intel IoT webinar #1 - Tedison presentation BeMyApp
 
Intel Edison a toda potencia.
Intel Edison a toda potencia.Intel Edison a toda potencia.
Intel Edison a toda potencia.Software Guru
 
IoT Knowledge Forum Slides by Deepak Gupta
IoT Knowledge Forum Slides by Deepak GuptaIoT Knowledge Forum Slides by Deepak Gupta
IoT Knowledge Forum Slides by Deepak GuptaTechXpla
 
Internet of Things and its applications
Internet of Things and its applicationsInternet of Things and its applications
Internet of Things and its applicationsPasquale Puzio
 

Viewers also liked (6)

Getting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer KitGetting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer Kit
 
Teeth presentation by Nathan Carver
Teeth presentation by Nathan CarverTeeth presentation by Nathan Carver
Teeth presentation by Nathan Carver
 
Intel IoT webinar #1 - Tedison presentation
Intel IoT webinar  #1 - Tedison presentation Intel IoT webinar  #1 - Tedison presentation
Intel IoT webinar #1 - Tedison presentation
 
Intel Edison a toda potencia.
Intel Edison a toda potencia.Intel Edison a toda potencia.
Intel Edison a toda potencia.
 
IoT Knowledge Forum Slides by Deepak Gupta
IoT Knowledge Forum Slides by Deepak GuptaIoT Knowledge Forum Slides by Deepak Gupta
IoT Knowledge Forum Slides by Deepak Gupta
 
Internet of Things and its applications
Internet of Things and its applicationsInternet of Things and its applications
Internet of Things and its applications
 

Similar to Intel Edison: Beyond the Breadboard

T22 imgmothercaract iranzuhuarte
T22 imgmothercaract iranzuhuarteT22 imgmothercaract iranzuhuarte
T22 imgmothercaract iranzuhuarteiranzuhuarte
 
T22 imgmothercaract iranzuhuarte
T22 imgmothercaract iranzuhuarteT22 imgmothercaract iranzuhuarte
T22 imgmothercaract iranzuhuarteiranzuhuarte
 
Comptia A+ Exam Notes for Core 1 and . Core 2
Comptia A+ Exam Notes for Core 1 and . Core 2Comptia A+ Exam Notes for Core 1 and . Core 2
Comptia A+ Exam Notes for Core 1 and . Core 2anandsoft0
 
Parallel Rendering of Webpages
Parallel Rendering of WebpagesParallel Rendering of Webpages
Parallel Rendering of WebpagesLangtech
 
To study about motherboard & its compponents
To study about motherboard & its compponentsTo study about motherboard & its compponents
To study about motherboard & its compponentsViral Parmar
 
T22 imgmothercaract iñaki_lazaro
T22 imgmothercaract iñaki_lazaroT22 imgmothercaract iñaki_lazaro
T22 imgmothercaract iñaki_lazarolaazaroo
 
Gigabyte mb manual ga-q77m-d2h_e
Gigabyte mb manual ga-q77m-d2h_eGigabyte mb manual ga-q77m-d2h_e
Gigabyte mb manual ga-q77m-d2h_eAnthony Wu
 
Developping drivers on small machines
Developping drivers on small machinesDevelopping drivers on small machines
Developping drivers on small machinesAnne Nicolas
 
computer archtecture lab, computer hardware , problem and solutons in computer
computer archtecture lab, computer hardware , problem and solutons in computercomputer archtecture lab, computer hardware , problem and solutons in computer
computer archtecture lab, computer hardware , problem and solutons in computerGS Kosta
 
Disk Drives Interfaces
Disk Drives InterfacesDisk Drives Interfaces
Disk Drives InterfacesAmir Villas
 
Edison pb 331179-001 (2)
Edison pb 331179-001 (2)Edison pb 331179-001 (2)
Edison pb 331179-001 (2)Incubate Hub
 

Similar to Intel Edison: Beyond the Breadboard (20)

How to Hack Edison
How to Hack EdisonHow to Hack Edison
How to Hack Edison
 
T22 imgmothercaract iranzuhuarte
T22 imgmothercaract iranzuhuarteT22 imgmothercaract iranzuhuarte
T22 imgmothercaract iranzuhuarte
 
T22 imgmothercaract iranzuhuarte
T22 imgmothercaract iranzuhuarteT22 imgmothercaract iranzuhuarte
T22 imgmothercaract iranzuhuarte
 
Manual
ManualManual
Manual
 
Manual 1
Manual 1Manual 1
Manual 1
 
Hardware hacking
Hardware hackingHardware hacking
Hardware hacking
 
101 1.1 hardware settings
101 1.1 hardware settings101 1.1 hardware settings
101 1.1 hardware settings
 
Comptia A+ Exam Notes for Core 1 and . Core 2
Comptia A+ Exam Notes for Core 1 and . Core 2Comptia A+ Exam Notes for Core 1 and . Core 2
Comptia A+ Exam Notes for Core 1 and . Core 2
 
Parallel Rendering of Webpages
Parallel Rendering of WebpagesParallel Rendering of Webpages
Parallel Rendering of Webpages
 
To study about motherboard & its compponents
To study about motherboard & its compponentsTo study about motherboard & its compponents
To study about motherboard & its compponents
 
Resent intel motherboards
Resent intel motherboardsResent intel motherboards
Resent intel motherboards
 
T22 imgmothercaract iñaki_lazaro
T22 imgmothercaract iñaki_lazaroT22 imgmothercaract iñaki_lazaro
T22 imgmothercaract iñaki_lazaro
 
Gigabyte mb manual ga-q77m-d2h_e
Gigabyte mb manual ga-q77m-d2h_eGigabyte mb manual ga-q77m-d2h_e
Gigabyte mb manual ga-q77m-d2h_e
 
Developping drivers on small machines
Developping drivers on small machinesDevelopping drivers on small machines
Developping drivers on small machines
 
AIMB-501 | Industrial Motherboard | Advantech | iTG India
AIMB-501 | Industrial Motherboard | Advantech | iTG IndiaAIMB-501 | Industrial Motherboard | Advantech | iTG India
AIMB-501 | Industrial Motherboard | Advantech | iTG India
 
computer archtecture lab, computer hardware , problem and solutons in computer
computer archtecture lab, computer hardware , problem and solutons in computercomputer archtecture lab, computer hardware , problem and solutons in computer
computer archtecture lab, computer hardware , problem and solutons in computer
 
Disk Drives Interfaces
Disk Drives InterfacesDisk Drives Interfaces
Disk Drives Interfaces
 
Hardware Hacks
Hardware HacksHardware Hacks
Hardware Hacks
 
Training2 ppt
Training2 pptTraining2 ppt
Training2 ppt
 
Edison pb 331179-001 (2)
Edison pb 331179-001 (2)Edison pb 331179-001 (2)
Edison pb 331179-001 (2)
 

More from yeokm1

I became a Private Pilot and this is my story
I became a Private Pilot and this is my storyI became a Private Pilot and this is my story
I became a Private Pilot and this is my storyyeokm1
 
What's inside a Cessna 172 and flying a light plane
What's inside a Cessna 172 and flying a light planeWhat's inside a Cessna 172 and flying a light plane
What's inside a Cessna 172 and flying a light planeyeokm1
 
Speaking at Tech meetups/conferences for Junior Devs
Speaking at Tech meetups/conferences for Junior DevsSpeaking at Tech meetups/conferences for Junior Devs
Speaking at Tech meetups/conferences for Junior Devsyeokm1
 
Reflections on Trusting Trust for Go
Reflections on Trusting Trust for GoReflections on Trusting Trust for Go
Reflections on Trusting Trust for Goyeokm1
 
Meltdown and Spectre
Meltdown and SpectreMeltdown and Spectre
Meltdown and Spectreyeokm1
 
Gentoo on a 486
Gentoo on a 486Gentoo on a 486
Gentoo on a 486yeokm1
 
BLE Localiser (Full) for iOS Dev Scout
BLE Localiser (Full) for iOS Dev ScoutBLE Localiser (Full) for iOS Dev Scout
BLE Localiser (Full) for iOS Dev Scoutyeokm1
 
BLE Localiser for iOS Conf SG 2017
BLE Localiser for iOS Conf SG 2017BLE Localiser for iOS Conf SG 2017
BLE Localiser for iOS Conf SG 2017yeokm1
 
Repair Kopitiam Specialty Tools (Part 2): Short Circuit Limiter
 Repair Kopitiam Specialty Tools (Part 2): Short Circuit Limiter Repair Kopitiam Specialty Tools (Part 2): Short Circuit Limiter
Repair Kopitiam Specialty Tools (Part 2): Short Circuit Limiteryeokm1
 
PCB Business Card (Singapore Power)
PCB Business Card (Singapore Power)PCB Business Card (Singapore Power)
PCB Business Card (Singapore Power)yeokm1
 
SP Auto Door Unlocker
SP Auto Door UnlockerSP Auto Door Unlocker
SP Auto Door Unlockeryeokm1
 
SP IoT Doorbell
SP IoT DoorbellSP IoT Doorbell
SP IoT Doorbellyeokm1
 
Distance Machine Locker
Distance Machine LockerDistance Machine Locker
Distance Machine Lockeryeokm1
 
A Science Project: Building a sound card based on the Covox Speech Thing
A Science Project: Building a sound card based on the Covox Speech ThingA Science Project: Building a sound card based on the Covox Speech Thing
A Science Project: Building a sound card based on the Covox Speech Thingyeokm1
 
A Science Project: Swift Serial Chat
A Science Project: Swift Serial ChatA Science Project: Swift Serial Chat
A Science Project: Swift Serial Chatyeokm1
 
The slide rule
The slide ruleThe slide rule
The slide ruleyeokm1
 
Windows 3.1 (WFW) on vintage and modern hardware
Windows 3.1 (WFW) on vintage and modern hardwareWindows 3.1 (WFW) on vintage and modern hardware
Windows 3.1 (WFW) on vintage and modern hardwareyeokm1
 
Repair Kopitiam Circuit Breaker Training
Repair Kopitiam Circuit Breaker TrainingRepair Kopitiam Circuit Breaker Training
Repair Kopitiam Circuit Breaker Trainingyeokm1
 
A2: Analog Malicious Hardware
A2: Analog Malicious HardwareA2: Analog Malicious Hardware
A2: Analog Malicious Hardwareyeokm1
 
Getting Started with Raspberry Pi
Getting Started with Raspberry PiGetting Started with Raspberry Pi
Getting Started with Raspberry Piyeokm1
 

More from yeokm1 (20)

I became a Private Pilot and this is my story
I became a Private Pilot and this is my storyI became a Private Pilot and this is my story
I became a Private Pilot and this is my story
 
What's inside a Cessna 172 and flying a light plane
What's inside a Cessna 172 and flying a light planeWhat's inside a Cessna 172 and flying a light plane
What's inside a Cessna 172 and flying a light plane
 
Speaking at Tech meetups/conferences for Junior Devs
Speaking at Tech meetups/conferences for Junior DevsSpeaking at Tech meetups/conferences for Junior Devs
Speaking at Tech meetups/conferences for Junior Devs
 
Reflections on Trusting Trust for Go
Reflections on Trusting Trust for GoReflections on Trusting Trust for Go
Reflections on Trusting Trust for Go
 
Meltdown and Spectre
Meltdown and SpectreMeltdown and Spectre
Meltdown and Spectre
 
Gentoo on a 486
Gentoo on a 486Gentoo on a 486
Gentoo on a 486
 
BLE Localiser (Full) for iOS Dev Scout
BLE Localiser (Full) for iOS Dev ScoutBLE Localiser (Full) for iOS Dev Scout
BLE Localiser (Full) for iOS Dev Scout
 
BLE Localiser for iOS Conf SG 2017
BLE Localiser for iOS Conf SG 2017BLE Localiser for iOS Conf SG 2017
BLE Localiser for iOS Conf SG 2017
 
Repair Kopitiam Specialty Tools (Part 2): Short Circuit Limiter
 Repair Kopitiam Specialty Tools (Part 2): Short Circuit Limiter Repair Kopitiam Specialty Tools (Part 2): Short Circuit Limiter
Repair Kopitiam Specialty Tools (Part 2): Short Circuit Limiter
 
PCB Business Card (Singapore Power)
PCB Business Card (Singapore Power)PCB Business Card (Singapore Power)
PCB Business Card (Singapore Power)
 
SP Auto Door Unlocker
SP Auto Door UnlockerSP Auto Door Unlocker
SP Auto Door Unlocker
 
SP IoT Doorbell
SP IoT DoorbellSP IoT Doorbell
SP IoT Doorbell
 
Distance Machine Locker
Distance Machine LockerDistance Machine Locker
Distance Machine Locker
 
A Science Project: Building a sound card based on the Covox Speech Thing
A Science Project: Building a sound card based on the Covox Speech ThingA Science Project: Building a sound card based on the Covox Speech Thing
A Science Project: Building a sound card based on the Covox Speech Thing
 
A Science Project: Swift Serial Chat
A Science Project: Swift Serial ChatA Science Project: Swift Serial Chat
A Science Project: Swift Serial Chat
 
The slide rule
The slide ruleThe slide rule
The slide rule
 
Windows 3.1 (WFW) on vintage and modern hardware
Windows 3.1 (WFW) on vintage and modern hardwareWindows 3.1 (WFW) on vintage and modern hardware
Windows 3.1 (WFW) on vintage and modern hardware
 
Repair Kopitiam Circuit Breaker Training
Repair Kopitiam Circuit Breaker TrainingRepair Kopitiam Circuit Breaker Training
Repair Kopitiam Circuit Breaker Training
 
A2: Analog Malicious Hardware
A2: Analog Malicious HardwareA2: Analog Malicious Hardware
A2: Analog Malicious Hardware
 
Getting Started with Raspberry Pi
Getting Started with Raspberry PiGetting Started with Raspberry Pi
Getting Started with Raspberry Pi
 

Recently uploaded

Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 

Intel Edison: Beyond the Breadboard

  • 1. Intel Edison: Beyond the breadboard 1 By: Yeo Kheng Meng (yeokm1@gmail.com)Hackware v1.9 (29 June 2016)
  • 2. Why beyond the breadboard? 2 One of Algoaccess’s hardware product
  • 3. 3 Algo Access’s hardware setup OD, OS, CYL… OD, OS, CYL… Direct or USB-Ethernet adapter RS232 DB-9 Serial port
  • 4. Agenda 1. Intel Edison Basics 2. Hardware experience 3. Software experience 4
  • 5. So what is the Intel Edison? 5 35.5mm x 25 mm x 3.9mm System-on-module (SOM) • Using Hirose 70-pin DF40 Series Connector (0.4mm pitch)
  • 6. Raspberry Pi 3 vs Intel Edison specifications 6 Specifications Raspberry Pi 3 Intel Edison CPU 1.2Ghz quad-core BCM2837 Cortex-A53 ARMv8 (64-bit) 500Mhz dual-core Intel Atom x86 (32-bit) + Intel Quark MCU GPU 400Mhz Videocore IV None RAM 1GB DDR2 1GB DDR3 Storage External microSD cad 4GB eMMC flash onboard Networking Single band 802.11n Wifi + Dual-mode BT + LAN Dual-band 802.11n Wifi + Dual-mode BT I/0 Connectivity 3.3V level level GPIO bank + connectors 1.8V logic level GPIO-bank Price US$35 US$50++ Power consumption (Idle/Peak) 1W/3.6W 0.1W / 1 W Dimensions 85 x 56 x 17mm 35.5 x 25 x 3.9mm
  • 7. 2 models of Intel Edison 7 No chip antenna image from: http://www.nix.ru/autocatalog/thin_clients/208148_2254_draft_large.jpg From Intel Edison Compute Module Hardware Guide (June 2016) Page 13 http://www.intel.com/content/www/us/en/support/boards-and-kits/000005808.html
  • 8. Official Intel carrier boards 8 Mini Breakout board • USB Serial • USB-OTG • GPIO pins (1.8V logic level) • ~US$25 Arduino Breakout board • Arduino-style pins • USB-Serial • USB-OTG • Micro-SD slot • DC Jack 7-15V DC • 3.3V or 5V logic levels depending on J9 position • Default is 5V • ~US$60 https://www.arduino.cc/en/ArduinoCertified/IntelEdison
  • 9. Sparkfun stackable/carrier boards 9 Base Block 64x48 0.66” OLED + buttons “Level-shiftable” GPIO breakout 9-DOF IMU Dual H bridge Battery board
  • 10. Prototyping: Bare breakout board 10 • Hirose 70-pin DF40 Series Receptacle Connector (0.4mm pitch) • Tough to solder by hand without magnifying glass/microscope • Stencil highly recommended to avoid solder bridges • https://github.com/algoaccess/intel-edison-pin-breakout
  • 11. Hirose 70-pin DF40 interface 11 Pin Function Description 1, 5, 9, 11, 13, 15 GND Ground 2, 4, 6 VSYS in Power Input (3.3V to 4.5V) 14 DCIN Connect to VSYS if powered from external power 8, 10, 12 3.3V/1.8V out Reference voltage (100mA) 46, 61, 63, 65 UART1 (with flow control) UART with flow control /dev/ttyMFD1 22, 27 UART2 (no flow control) Linux debug serial port /dev/ttyMFD2 3, 16, 18, 20 USB (USB_VBUS does not supply power) USB interface 41, 43 45, 47 I2C1 I2C6 2x I2C interfaces Only master supported 51, 53, 55, 57, 59 SPI Master/Slave supported Chip select: 51, 53 Picture from: https://learn.sparkfun.com/tutorials/general-guide-to-sparkfun-blocks-for-intel-edison All pins except power and USB operate at 1.8V levels
  • 12. 1.8V logic levels • All pins except power and USB operate at 1.8V levels • But most chips are using 3.3/5.0 V • For eg, MAX3232 RS232-TTL transceiver (3.3V) • Use a level shifter like TXS0108EPWR • Reference 1.8V from Module Pin 12 • For LEDs, you can just use a transistor 12
  • 13. Bug: Using GPIO48 destabilises Wifi 13 http://iotdk.intel.com/docs/master/mraa/edison.html Arduino Pin 7 can sometimes negatively impact the WiFi capability, if using WiFi avoid using this pin Pin Naming Aliases: GP48 Compute Module Pin 32 Arduino Pin 7
  • 15. USB On-The-Go 15Adapted from Intel Edison Compute Module Hardware Guide (June 2016) Page 36 http://www.intel.com/content/www/us/en/support/boards-and-kits/000005808.html • Host mode • Connect USB peripherals like flash drives • Client mode • Loading firmware (DFU mode) • USB OTG supports both Host and Client • Can use a Double pole, double throw (DPDT) switches USB Role USB_ID (Pin 3) FAULT (Pin 19) USB_VBUS (Pin 20) Host GND Floating Floating Client Floating GND Host 5V GND Fault USB_ID USB-A Power Line USB_VBUS Source 5V Client Host
  • 16. Intel Edison Linux Distributions 1. 1.6 (Default) • Based on “Poky” Linux distribution • Compile Poky Linux sources/packages using provided toolchain and recipes • Limited “opkg” package manager and few default packages • (eg, no nano, only vi) • Can add third party “meta-openembedded” recipes during compile time 2. • Produced by Emutex Labs • Based on Debian 7 Wheezy (2013) • More packages compared to Yocto using (apt-get) • Packages outdated compared to Debian 8 Jessie (2015) 3. Compile your own: Yocto or Debian Jessie • All use old kernel version 3.10.17 (Oct 2013) 16
  • 17. Poor default support for USB-Ethernet and USB-Serial adapters • Only supports adapters based on these chipsets • Ethernet: ASIX AX88xxx USB 2.0 to Gigabit adapter • Serial: Prolific PL2303 USB-Serial adapter • More support requires kernel recompilation 17
  • 18. Small rootfs partition size 18 • 1.4GB, 541MB available on initial boot, may be too small for some uses • Modifying rootfs partition size requires recompilation
  • 19. My compilation script • Compiles in all available USB-Ethernet/Serial drivers, custom rootfs size • Downloads sources, modifies compile options then compile • https://github.com/algoaccess/edison_mod_kernel_image_gen 19
  • 20. Lengthy compilation time • 4-6 hours typical • Use the cloud -> Google Compute Engine or AWS (About half hour on 32 threads) • export SETUP_ARGS="--parallel_make=32 --bb_number_thread=32" • IMPORTANT: Remember to SHUT DOWN your instance once finished, if not hefty charges will be incurred!!! 20
  • 21. File System safety for embedded systems • Improper shutdown of systems can corrupt file systems • Cause: System off while data is being written 1. Read-only file system • No writes to file-system allowed, no chance of system corruption 2. Enable full-journaling • File-system journals store a list of changes to be made • Ext4 default is to journal meta-data only, not the data itself • We should also journal the data for additional protection 21
  • 22. Read-only file system (preferred) • ----------------/etc/fstab------------------------ rootfs / auto ro 1 1 /dev/disk/by-partlabel/boot /boot auto ro 1 1 /dev/disk/by-partlabel/home /home auto ro 0 2 tmpfs /var/tmp tmpfs nodev,nosuid 0 0 tmpfs /var/log tmpfs nodev,nosuid 0 0 • ------------------------------------------------------ • tmpfs: RAM drive • nodev,nosuid: Security precautions for world-writeable file-systems 22https://gist.github.com/yeokm1/00bf00fbcda99cc33c2b
  • 23. Mount file system to journal everything • Set journal option to / partition • tune2fs -o journal_data /dev/mmcblk0p8 • Set journal option to /home partition • tune2fs -o journal_data /dev/mmcblk0p10 • ----------------/etc/fstab------------------------ • rootfs / ext4 data=journal,sync,noatime 1 1 • /dev/disk/by-partlabel/boot /boot auto ro 1 1 • /dev/disk/by-partlabel/home /home ext4 data=journal,sync,noatime 0 2 • ------------------------------------------------------ • data=journal: Journal everything. Data will be written twice, first in to journal, second into disk • sync: Commit changes to disk immediately, do not cache. Performance loss • noatime: Do not store last access time to increase disk performance to avoid updating access time in every sync 23