SlideShare ist ein Scribd-Unternehmen logo
1 von 39
©SIProp Project, 2006-2008 1
How to Build Android 5.0 on Zedboard
Noritsuna Imamura
©SIProp Project, 2006-2008 2
Agenda
Build FSBL(First Boot Loader) & U-boot
Build Kernel
Make device tree file
Build Android 5.0.2
Setup Zedboard
©SIProp Project, 2006-2008 3
Link List
Android Source Code
https://github.com/noritsuna/zedroid_manifests.git
Kernel Source Code
https://github.com/noritsuna/zedroid_device_xilinx_ze
dboard-kernel.git
boot loader & kernel & Android binaries
https://github.com/noritsuna/zedroid_device_xilinx_ze
dboard-images.git
If you don’t need to build this from source code, please go
to “Setup Zedboard” section after these binaries.
©SIProp Project, 2006-2008 4
Build FSBL(First Boot Loader) & U-boot
©SIProp Project, 2006-2008 5
Download Board Design Files
ANALOG DEVICES
ADV7511 XILINX EVALUATION BOARDS
REFERENCE DESIGN
http://wiki.analog.com/resources/fpga/xilinx/kc705/adv751
1
File
http://wiki.analog.com/_media/resources/fpga/xilinx/kc705/
cf_adv7511_zed_edk_14_4_2013_02_05.tar.gz
Why need?
ADV7511 is Video Chip for HDMI on Zedboard.
Android requires visual output.
Android supports virtual display since 4.4. If you don’t need
use HDMI display, please skip this section.
©SIProp Project, 2006-2008 6
Unpack the downloaded file
Go to “cf_adv7511_zed” dir
Start “system.xmp” file by XPS
©SIProp Project, 2006-2008 7
Convert version
Click & Answer “Yes” After Questions
©SIProp Project, 2006-2008 8
Check HDMI & Generate Flow Design
Click “Generate BitStream”
©SIProp Project, 2006-2008 9
Export Hardware Design to “SDK”
Click “Export SDK”
©SIProp Project, 2006-2008 10
Lunch SDK
Click “Export & Lunch SDK”
©SIProp Project, 2006-2008 11
Finish to lunch SDK
©SIProp Project, 2006-2008 12
Next: Compile U-boot
©SIProp Project, 2006-2008 13
Prepare Compiler for u-boot
Download XILINX Compiler(Android NDK is OK)
PetaLinux with compiler
http://www.xilinx.com/support/download/index.html/conten
t/xilinx/en/downloadNav/petalinux.html
Set Environments
export PETALINUX=[path to petaLinux compiler]
export CCOMPILER=arm-xilinx-eabi-gcc
export ARCH=arm
export CROSS_COMPILE=arm-xilinx-eabi-
export PATH=$PATH:${PETALINUX}/tools/linux-
i386/arm-xilinx-gnueabi/bin
©SIProp Project, 2006-2008 14
Download & Compile u-boot
Download & Compile
git clone https://github.com/Xilinx/u-boot-xlnx.git
cd u-boot-xlnx/
git checkout -b xilinx-v14.4 xilinx-v14.4
make zynq_zed_config
make
After finish to compile u-boot, top directory has
“u-boot” file.
This is u-boot image without hardware info.
©SIProp Project, 2006-2008 15
Next: Back to SDK for building boot image
©SIProp Project, 2006-2008 16
Create Application Project
Select File -> New -> Application Project
©SIProp Project, 2006-2008 17
App Wizard 1/2:
Project Name: FSBL
Target Hardware:
Hardware Platform: cf_adv7511_zed_hw_platform
Processor: ps7_cortexa9_0
Click “Next>”
©SIProp Project, 2006-2008 18
App Wizard 2/2:
Select “Zynq FSBL”
Click “Finish”
©SIProp Project, 2006-2008 19
Created FSBL project
©SIProp Project, 2006-2008 20
Create Boot Image 1/4
Select Xilinx Tools -> Create Zynq Boot Image
©SIProp Project, 2006-2008 21
Create Boot Image 2/4
Lunch Wizard
Click “Add”
©SIProp Project, 2006-2008 22
Create Boot Image 3/4
Lunch Sub-Window
Select:
Partition type: bootloader
Input:
File path: [U-boot file]
Click “OK”
©SIProp Project, 2006-2008 23
Create Boot Image 4/4
Added your “u-boot” in “Boot image partitions”
Change “Output path”:
output.bin -> boot.bin
Click “Create Image”
©SIProp Project, 2006-2008 24
Created Boot Image
Start compiling automatically
After finish, You get boot image for Zedboard as
boot.bin
©SIProp Project, 2006-2008 25
Build Kernel
©SIProp Project, 2006-2008 26
Prepare Compiler
Download XILINX Compiler(Android NDK is OK)
PetaLinux with compiler
http://www.xilinx.com/support/download/index.html/conten
t/xilinx/en/downloadNav/petalinux.html
Set Environments
export PETALINUX=[path to petaLinux compiler]
export CCOMPILER=arm-xilinx-eabi-gcc
export ARCH=arm
export CROSS_COMPILE=arm-xilinx-eabi-
export PATH=$PATH:${PETALINUX}/tools/linux-
i386/arm-xilinx-gnueabi/bin
©SIProp Project, 2006-2008 27
Download & Compile Kernel
Download & Compile Kernel
git clone
https://github.com/noritsuna/zedroid_device_xilinx_ze
dboard-kernel.git
cd zedroid_device_xilinx_zedboard-kernel
git checkout zedroid-5.0.2_r1
make zynq_zed_android_defconfig
make uImage LOADADDR=8000
You can get “uImage” in “arch/arm/boot/”
©SIProp Project, 2006-2008 28
Make device tree file
©SIProp Project, 2006-2008 29
Build device tree file
Build device tree file
cd [kernel dir]
make zynq-zed-adv7511.dtb
You can get “zynq-zed-adv7511.dtb” in
“arch/arm/boot/dts/”
Rename “zynq-zed-adv7511.dtb” to “devicetree.dtb”
©SIProp Project, 2006-2008 30
Build Android 5.0.2
©SIProp Project, 2006-2008 31
Download source code & build
Install build tools following Google Android Site
https://source.android.com/source/downloading.html
Download source code & build
repo init -u
https://github.com/noritsuna/zedroid_manifests -b
zedroid-5.0.2_r1
repo sync
source ./build/envsetup.sh
lunch zedboard-userdebug
make
©SIProp Project, 2006-2008 32
Appendix: OpenGL/ES support
If you use “lunch zedboard-userdebug”, this
Android is for OpenGL/ES 2.0.
Zedboard doesn’t have GPU. My Android uses
software renderer. It’s soooooooo slow.
If you use OpenGL/ES 1.2, it’s better to use.
Android’s OpenGL/ES current version is “2.0”. Some
applications require “2.0”.
Special Options
OpenGL/ES 1.2 version
lunch zedboard_GLES12-userdebug
OpenGL/ES 2.0 version
lunch zedboard_GLES20-userdebug
©SIProp Project, 2006-2008 33
Mark up ARM RAM image info
Android’s RAM image is NOT for u-boot.
sudo apt-get install u-boot-tools
mkimage -A arm -O linux -T ramdisk -a 0x2000000 -
n "Zedboard ramdisk" -d [Android output
dir]/ramdisk.img uramdisk.image.gz
“uramdisk.image.gz” file is RAM image for u-boot.
©SIProp Project, 2006-2008 34
Setup Zedboard
©SIProp Project, 2006-2008 35
Prepare Hardwares: SD Card 1/2
4GB SD Card
Partition:
1st primary: VFAT(FAT32) over 1GB with boot flag
2nd primary: ext4 over 1GB
3rd primary: ext4 over 500MB
4th primary: Linux Swap over 500MB
Copy Files
[Xilinx SDK dir]/boot.bin
[kernel dir]/arch/arm/boot/uImage
[kernel dir]/arch/arm/boot/dts/devicetree.dtb
[Android dir]/uramdisk.image.gz
To 1st partition
©SIProp Project, 2006-2008 36
Prepare Hardwares: SD Card 2/2
4GB SD Card
Copy Files
[Android output dir]/system/* files with permission info
To 2nd partition
[Android output dir]/userdata/* files with permission info
To 3rd partition
©SIProp Project, 2006-2008 37
Prepare Hardwares: Zedboard DIPs
JP2, JP3, JP6: “Short”
JP18: “1V8” is “Short”
MI02, MI03, MI06: “3V3” is “Short”
MI04, MI05: “GND” is “Short”
©SIProp Project, 2006-2008 38
Prepare Hardwares: LAN, HDMI, OTG
Required LAN, HDMI
If you don’t connect them, it doesn’t boot up.
Required 2 more ports: USB Hub
USB port is OTG only. Other USB port is NOT USB.
©SIProp Project, 2006-2008 39
Power ON!
Insert SD Card
Connect AC Adapter and Turn on Power Switch!
Please wait 5-10 mins. Because when 1st boot, ART
compile all applications to native binary.
Enjoy!

Weitere ähnliche Inhalte

Was ist angesagt?

Inside Android's UI
Inside Android's UIInside Android's UI
Inside Android's UIOpersys inc.
 
Implementing generic JNI hardware control for Kotlin based app on AOSP
Implementing generic JNI hardware control for Kotlin based app on AOSPImplementing generic JNI hardware control for Kotlin based app on AOSP
Implementing generic JNI hardware control for Kotlin based app on AOSPCheng Wig
 
ADB(Android Debug Bridge): How it works?
ADB(Android Debug Bridge): How it works?ADB(Android Debug Bridge): How it works?
ADB(Android Debug Bridge): How it works?Tetsuyuki Kobayashi
 
Ovs dpdk hwoffload way to full offload
Ovs dpdk hwoffload way to full offloadOvs dpdk hwoffload way to full offload
Ovs dpdk hwoffload way to full offloadKevin Traynor
 
Reliability, Availability, and Serviceability (RAS) on ARM64 status - SAN19-118
Reliability, Availability, and Serviceability (RAS) on ARM64 status - SAN19-118Reliability, Availability, and Serviceability (RAS) on ARM64 status - SAN19-118
Reliability, Availability, and Serviceability (RAS) on ARM64 status - SAN19-118Wei Fu
 
VHDL-Behavioral-Programs-Structure of VHDL
VHDL-Behavioral-Programs-Structure of VHDLVHDL-Behavioral-Programs-Structure of VHDL
VHDL-Behavioral-Programs-Structure of VHDLRevathi Subramaniam
 
Digital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE studentsDigital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE studentsMitul Lakhani
 
ISMVL2018: A Ternary Weight Binary Input Convolutional Neural Network
ISMVL2018: A Ternary Weight Binary Input Convolutional Neural NetworkISMVL2018: A Ternary Weight Binary Input Convolutional Neural Network
ISMVL2018: A Ternary Weight Binary Input Convolutional Neural NetworkHiroki Nakahara
 
Message Signaled Interrupts
Message Signaled InterruptsMessage Signaled Interrupts
Message Signaled InterruptsAnshuman Biswal
 
I2C Subsystem In Linux-2.6.24
I2C Subsystem In Linux-2.6.24I2C Subsystem In Linux-2.6.24
I2C Subsystem In Linux-2.6.24Varun Mahajan
 
verilog code for logic gates
verilog code for logic gatesverilog code for logic gates
verilog code for logic gatesRakesh kumar jha
 
Chapter 3
Chapter 3Chapter 3
Chapter 3PRADEEP
 

Was ist angesagt? (20)

Inside Android's UI
Inside Android's UIInside Android's UI
Inside Android's UI
 
Implementing generic JNI hardware control for Kotlin based app on AOSP
Implementing generic JNI hardware control for Kotlin based app on AOSPImplementing generic JNI hardware control for Kotlin based app on AOSP
Implementing generic JNI hardware control for Kotlin based app on AOSP
 
ADB(Android Debug Bridge): How it works?
ADB(Android Debug Bridge): How it works?ADB(Android Debug Bridge): How it works?
ADB(Android Debug Bridge): How it works?
 
Ovs dpdk hwoffload way to full offload
Ovs dpdk hwoffload way to full offloadOvs dpdk hwoffload way to full offload
Ovs dpdk hwoffload way to full offload
 
Reliability, Availability, and Serviceability (RAS) on ARM64 status - SAN19-118
Reliability, Availability, and Serviceability (RAS) on ARM64 status - SAN19-118Reliability, Availability, and Serviceability (RAS) on ARM64 status - SAN19-118
Reliability, Availability, and Serviceability (RAS) on ARM64 status - SAN19-118
 
Linux Device Tree
Linux Device TreeLinux Device Tree
Linux Device Tree
 
VHDL-Behavioral-Programs-Structure of VHDL
VHDL-Behavioral-Programs-Structure of VHDLVHDL-Behavioral-Programs-Structure of VHDL
VHDL-Behavioral-Programs-Structure of VHDL
 
verilog
verilogverilog
verilog
 
Digital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE studentsDigital to Analog Converter by LDCE students
Digital to Analog Converter by LDCE students
 
SOME_IP_29408.pdf
SOME_IP_29408.pdfSOME_IP_29408.pdf
SOME_IP_29408.pdf
 
funnel shifter
funnel shifterfunnel shifter
funnel shifter
 
ISMVL2018: A Ternary Weight Binary Input Convolutional Neural Network
ISMVL2018: A Ternary Weight Binary Input Convolutional Neural NetworkISMVL2018: A Ternary Weight Binary Input Convolutional Neural Network
ISMVL2018: A Ternary Weight Binary Input Convolutional Neural Network
 
USB protocol
USB protocolUSB protocol
USB protocol
 
Arduino - Peripherals and interface
Arduino - Peripherals and interfaceArduino - Peripherals and interface
Arduino - Peripherals and interface
 
Message Signaled Interrupts
Message Signaled InterruptsMessage Signaled Interrupts
Message Signaled Interrupts
 
8085 lab
8085 lab8085 lab
8085 lab
 
I2C Subsystem In Linux-2.6.24
I2C Subsystem In Linux-2.6.24I2C Subsystem In Linux-2.6.24
I2C Subsystem In Linux-2.6.24
 
ARM lab programs
ARM  lab programs  ARM  lab programs
ARM lab programs
 
verilog code for logic gates
verilog code for logic gatesverilog code for logic gates
verilog code for logic gates
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 

Andere mochten auch (7)

OpenCV acceleration battle:OpenCL on Firefly-RK3288(MALI-T764) vs. FPGA on Ze...
OpenCV acceleration battle:OpenCL on Firefly-RK3288(MALI-T764) vs. FPGA on Ze...OpenCV acceleration battle:OpenCL on Firefly-RK3288(MALI-T764) vs. FPGA on Ze...
OpenCV acceleration battle:OpenCL on Firefly-RK3288(MALI-T764) vs. FPGA on Ze...
 
Resume
ResumeResume
Resume
 
將DNA在廚房抽出的程序
將DNA在廚房抽出的程序將DNA在廚房抽出的程序
將DNA在廚房抽出的程序
 
Protocol of the DNA Extraction in Kitchen
Protocol of the DNA Extraction in KitchenProtocol of the DNA Extraction in Kitchen
Protocol of the DNA Extraction in Kitchen
 
How to Build & Use OpenCL on OpenCV & Android NDK
How to Build & Use OpenCL on OpenCV & Android NDKHow to Build & Use OpenCL on OpenCV & Android NDK
How to Build & Use OpenCL on OpenCV & Android NDK
 
Zynq + Vivado HLS入門
Zynq + Vivado HLS入門Zynq + Vivado HLS入門
Zynq + Vivado HLS入門
 
10 Revealing Statistics About Compensation & Benefits You should Know
10 Revealing Statistics About Compensation & Benefits You should Know10 Revealing Statistics About Compensation & Benefits You should Know
10 Revealing Statistics About Compensation & Benefits You should Know
 

Ähnlich wie Zedroid - Android (5.0 and later) on Zedboard

Lecture02web 140phpapp01
Lecture02web 140phpapp01Lecture02web 140phpapp01
Lecture02web 140phpapp01letuan9999
 
Build and Run Android N Source Ccode on NXP SABRESD platform
Build and Run Android N Source Ccode on NXP SABRESD platformBuild and Run Android N Source Ccode on NXP SABRESD platform
Build and Run Android N Source Ccode on NXP SABRESD platformDaniel Chiu
 
Android on Windows 11 - A Developer's Perspective (Windows Subsystem For Andr...
Android on Windows 11 - A Developer's Perspective (Windows Subsystem For Andr...Android on Windows 11 - A Developer's Perspective (Windows Subsystem For Andr...
Android on Windows 11 - A Developer's Perspective (Windows Subsystem For Andr...Embarcadero Technologies
 
Open-source Android 10 on Orange Pi: myth or reality?
Open-source Android 10 on Orange Pi: myth or reality?Open-source Android 10 on Orange Pi: myth or reality?
Open-source Android 10 on Orange Pi: myth or reality?GlobalLogic Ukraine
 
mago3D workshop(English) in Thailand , 2018.07
mago3D workshop(English) in Thailand , 2018.07mago3D workshop(English) in Thailand , 2018.07
mago3D workshop(English) in Thailand , 2018.07Gaia3D,Inc.
 
OWF12/PAUG Conf Days Alternative to google's android emulator, daniel fages, ...
OWF12/PAUG Conf Days Alternative to google's android emulator, daniel fages, ...OWF12/PAUG Conf Days Alternative to google's android emulator, daniel fages, ...
OWF12/PAUG Conf Days Alternative to google's android emulator, daniel fages, ...Paris Open Source Summit
 
Android Platform Debugging and Development
Android Platform Debugging and DevelopmentAndroid Platform Debugging and Development
Android Platform Debugging and DevelopmentOpersys inc.
 
OpenChain AutomotiveWG(OSS license tools()
OpenChain AutomotiveWG(OSS license tools()OpenChain AutomotiveWG(OSS license tools()
OpenChain AutomotiveWG(OSS license tools()Yuichi Kusakabe
 
ChromePad - Chromium OS for ThinkPad
ChromePad - Chromium OS for ThinkPadChromePad - Chromium OS for ThinkPad
ChromePad - Chromium OS for ThinkPadAndrewWright224
 
Android Things: Android for IoT
Android Things: Android for IoTAndroid Things: Android for IoT
Android Things: Android for IoTOpersys inc.
 
ChromePad - Chromium OS ThinkPad X220
ChromePad - Chromium OS ThinkPad X220ChromePad - Chromium OS ThinkPad X220
ChromePad - Chromium OS ThinkPad X220AndrewWright224
 
Embedded Fest 2019. Игорь Опанюк. Das U-boot v2019: a look under the hood
Embedded Fest 2019. Игорь Опанюк. Das U-boot v2019: a look under the hoodEmbedded Fest 2019. Игорь Опанюк. Das U-boot v2019: a look under the hood
Embedded Fest 2019. Игорь Опанюк. Das U-boot v2019: a look under the hoodEmbeddedFest
 
A million ways to provision embedded linux devices
A million ways to provision embedded linux devicesA million ways to provision embedded linux devices
A million ways to provision embedded linux devicesMender.io
 
Extending Android's Platform Toolsuite
Extending Android's Platform ToolsuiteExtending Android's Platform Toolsuite
Extending Android's Platform ToolsuiteOpersys inc.
 
Working with the AOSP - Linaro Connect Asia 2013
Working with the AOSP - Linaro Connect Asia 2013Working with the AOSP - Linaro Connect Asia 2013
Working with the AOSP - Linaro Connect Asia 2013Opersys inc.
 
Developing new zynq based instruments
Developing new zynq based instrumentsDeveloping new zynq based instruments
Developing new zynq based instrumentsGraham NAYLOR
 
Android Platform Debugging and Development
Android Platform Debugging and DevelopmentAndroid Platform Debugging and Development
Android Platform Debugging and DevelopmentOpersys inc.
 

Ähnlich wie Zedroid - Android (5.0 and later) on Zedboard (20)

Lecture02web 140phpapp01
Lecture02web 140phpapp01Lecture02web 140phpapp01
Lecture02web 140phpapp01
 
Build and Run Android N Source Ccode on NXP SABRESD platform
Build and Run Android N Source Ccode on NXP SABRESD platformBuild and Run Android N Source Ccode on NXP SABRESD platform
Build and Run Android N Source Ccode on NXP SABRESD platform
 
Android on Windows 11 - A Developer's Perspective (Windows Subsystem For Andr...
Android on Windows 11 - A Developer's Perspective (Windows Subsystem For Andr...Android on Windows 11 - A Developer's Perspective (Windows Subsystem For Andr...
Android on Windows 11 - A Developer's Perspective (Windows Subsystem For Andr...
 
What & How to Customize Android?
What & How to Customize Android?What & How to Customize Android?
What & How to Customize Android?
 
Open-source Android 10 on Orange Pi: myth or reality?
Open-source Android 10 on Orange Pi: myth or reality?Open-source Android 10 on Orange Pi: myth or reality?
Open-source Android 10 on Orange Pi: myth or reality?
 
mago3D workshop(English) in Thailand , 2018.07
mago3D workshop(English) in Thailand , 2018.07mago3D workshop(English) in Thailand , 2018.07
mago3D workshop(English) in Thailand , 2018.07
 
Flowframes
FlowframesFlowframes
Flowframes
 
OWF12/PAUG Conf Days Alternative to google's android emulator, daniel fages, ...
OWF12/PAUG Conf Days Alternative to google's android emulator, daniel fages, ...OWF12/PAUG Conf Days Alternative to google's android emulator, daniel fages, ...
OWF12/PAUG Conf Days Alternative to google's android emulator, daniel fages, ...
 
Android Platform Debugging and Development
Android Platform Debugging and DevelopmentAndroid Platform Debugging and Development
Android Platform Debugging and Development
 
OpenChain AutomotiveWG(OSS license tools()
OpenChain AutomotiveWG(OSS license tools()OpenChain AutomotiveWG(OSS license tools()
OpenChain AutomotiveWG(OSS license tools()
 
ChromePad - Chromium OS for ThinkPad
ChromePad - Chromium OS for ThinkPadChromePad - Chromium OS for ThinkPad
ChromePad - Chromium OS for ThinkPad
 
Android Things: Android for IoT
Android Things: Android for IoTAndroid Things: Android for IoT
Android Things: Android for IoT
 
Readme
ReadmeReadme
Readme
 
ChromePad - Chromium OS ThinkPad X220
ChromePad - Chromium OS ThinkPad X220ChromePad - Chromium OS ThinkPad X220
ChromePad - Chromium OS ThinkPad X220
 
Embedded Fest 2019. Игорь Опанюк. Das U-boot v2019: a look under the hood
Embedded Fest 2019. Игорь Опанюк. Das U-boot v2019: a look under the hoodEmbedded Fest 2019. Игорь Опанюк. Das U-boot v2019: a look under the hood
Embedded Fest 2019. Игорь Опанюк. Das U-boot v2019: a look under the hood
 
A million ways to provision embedded linux devices
A million ways to provision embedded linux devicesA million ways to provision embedded linux devices
A million ways to provision embedded linux devices
 
Extending Android's Platform Toolsuite
Extending Android's Platform ToolsuiteExtending Android's Platform Toolsuite
Extending Android's Platform Toolsuite
 
Working with the AOSP - Linaro Connect Asia 2013
Working with the AOSP - Linaro Connect Asia 2013Working with the AOSP - Linaro Connect Asia 2013
Working with the AOSP - Linaro Connect Asia 2013
 
Developing new zynq based instruments
Developing new zynq based instrumentsDeveloping new zynq based instruments
Developing new zynq based instruments
 
Android Platform Debugging and Development
Android Platform Debugging and DevelopmentAndroid Platform Debugging and Development
Android Platform Debugging and Development
 

Mehr von Industrial Technology Research Institute (ITRI)(工業技術研究院, 工研院)

Mehr von Industrial Technology Research Institute (ITRI)(工業技術研究院, 工研院) (20)

What is the world where you can make your own semiconductors?
What is the world where you can make your own semiconductors?What is the world where you can make your own semiconductors?
What is the world where you can make your own semiconductors?
 
半導体製造(TinyTapeout)に挑戦しよう!
半導体製造(TinyTapeout)に挑戦しよう!半導体製造(TinyTapeout)に挑戦しよう!
半導体製造(TinyTapeout)に挑戦しよう!
 
Introduction of ISHI-KAI with OpenMPW
Introduction of ISHI-KAI with OpenMPWIntroduction of ISHI-KAI with OpenMPW
Introduction of ISHI-KAI with OpenMPW
 
Kernel/VMレイヤーを自分色に染める!By ISHI会
Kernel/VMレイヤーを自分色に染める!By ISHI会Kernel/VMレイヤーを自分色に染める!By ISHI会
Kernel/VMレイヤーを自分色に染める!By ISHI会
 
Principle Representation of The 8 Qubits Quantum Computer by RaspberryPi
Principle Representation of The 8 Qubits Quantum Computer by RaspberryPiPrinciple Representation of The 8 Qubits Quantum Computer by RaspberryPi
Principle Representation of The 8 Qubits Quantum Computer by RaspberryPi
 
Microwaveguquantum
MicrowaveguquantumMicrowaveguquantum
Microwaveguquantum
 
The easiest way of setup QuTiP on Windows
The easiest way of setup QuTiP on WindowsThe easiest way of setup QuTiP on Windows
The easiest way of setup QuTiP on Windows
 
GNU Radio Study for Super beginner
GNU Radio Study for Super beginnerGNU Radio Study for Super beginner
GNU Radio Study for Super beginner
 
The Self-Contained SDR Satellite Grand Station with Raspberry Pi 3
The Self-Contained SDR Satellite Grand Station with Raspberry Pi 3The Self-Contained SDR Satellite Grand Station with Raspberry Pi 3
The Self-Contained SDR Satellite Grand Station with Raspberry Pi 3
 
Self‐Contained SDR Grand Station with Raspberry Pi 3
Self‐Contained SDR Grand Station with Raspberry Pi 3Self‐Contained SDR Grand Station with Raspberry Pi 3
Self‐Contained SDR Grand Station with Raspberry Pi 3
 
衛星追尾用パラボラアンテナ建設記
衛星追尾用パラボラアンテナ建設記衛星追尾用パラボラアンテナ建設記
衛星追尾用パラボラアンテナ建設記
 
All list of the measuring machines for microwave
All list of the measuring machines for microwaveAll list of the measuring machines for microwave
All list of the measuring machines for microwave
 
5000円で誰でも作れる新世代衛星地上局
5000円で誰でも作れる新世代衛星地上局5000円で誰でも作れる新世代衛星地上局
5000円で誰でも作れる新世代衛星地上局
 
How to setup mastodon in chinese
How to setup mastodon in chineseHow to setup mastodon in chinese
How to setup mastodon in chinese
 
Radiation Test -Raspberry PI Zero-
Radiation Test -Raspberry PI Zero-Radiation Test -Raspberry PI Zero-
Radiation Test -Raspberry PI Zero-
 
How to Build & Use OpenCL on Android Studio
How to Build & Use OpenCL on Android StudioHow to Build & Use OpenCL on Android Studio
How to Build & Use OpenCL on Android Studio
 
3D Printed Google Cardboard for workshop
3D Printed Google Cardboard for workshop3D Printed Google Cardboard for workshop
3D Printed Google Cardboard for workshop
 
計算機(物理)
計算機(物理)計算機(物理)
計算機(物理)
 
How to Make a Scanning Drone in Chinese
How to Make a Scanning Drone in ChineseHow to Make a Scanning Drone in Chinese
How to Make a Scanning Drone in Chinese
 
How to Use OpenMP on Native Activity
How to Use OpenMP on Native ActivityHow to Use OpenMP on Native Activity
How to Use OpenMP on Native Activity
 

Kürzlich hochgeladen

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
 
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
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
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
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
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
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 

Kürzlich hochgeladen (20)

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
 
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
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
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...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
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
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 

Zedroid - Android (5.0 and later) on Zedboard

  • 1. ©SIProp Project, 2006-2008 1 How to Build Android 5.0 on Zedboard Noritsuna Imamura
  • 2. ©SIProp Project, 2006-2008 2 Agenda Build FSBL(First Boot Loader) & U-boot Build Kernel Make device tree file Build Android 5.0.2 Setup Zedboard
  • 3. ©SIProp Project, 2006-2008 3 Link List Android Source Code https://github.com/noritsuna/zedroid_manifests.git Kernel Source Code https://github.com/noritsuna/zedroid_device_xilinx_ze dboard-kernel.git boot loader & kernel & Android binaries https://github.com/noritsuna/zedroid_device_xilinx_ze dboard-images.git If you don’t need to build this from source code, please go to “Setup Zedboard” section after these binaries.
  • 4. ©SIProp Project, 2006-2008 4 Build FSBL(First Boot Loader) & U-boot
  • 5. ©SIProp Project, 2006-2008 5 Download Board Design Files ANALOG DEVICES ADV7511 XILINX EVALUATION BOARDS REFERENCE DESIGN http://wiki.analog.com/resources/fpga/xilinx/kc705/adv751 1 File http://wiki.analog.com/_media/resources/fpga/xilinx/kc705/ cf_adv7511_zed_edk_14_4_2013_02_05.tar.gz Why need? ADV7511 is Video Chip for HDMI on Zedboard. Android requires visual output. Android supports virtual display since 4.4. If you don’t need use HDMI display, please skip this section.
  • 6. ©SIProp Project, 2006-2008 6 Unpack the downloaded file Go to “cf_adv7511_zed” dir Start “system.xmp” file by XPS
  • 7. ©SIProp Project, 2006-2008 7 Convert version Click & Answer “Yes” After Questions
  • 8. ©SIProp Project, 2006-2008 8 Check HDMI & Generate Flow Design Click “Generate BitStream”
  • 9. ©SIProp Project, 2006-2008 9 Export Hardware Design to “SDK” Click “Export SDK”
  • 10. ©SIProp Project, 2006-2008 10 Lunch SDK Click “Export & Lunch SDK”
  • 11. ©SIProp Project, 2006-2008 11 Finish to lunch SDK
  • 12. ©SIProp Project, 2006-2008 12 Next: Compile U-boot
  • 13. ©SIProp Project, 2006-2008 13 Prepare Compiler for u-boot Download XILINX Compiler(Android NDK is OK) PetaLinux with compiler http://www.xilinx.com/support/download/index.html/conten t/xilinx/en/downloadNav/petalinux.html Set Environments export PETALINUX=[path to petaLinux compiler] export CCOMPILER=arm-xilinx-eabi-gcc export ARCH=arm export CROSS_COMPILE=arm-xilinx-eabi- export PATH=$PATH:${PETALINUX}/tools/linux- i386/arm-xilinx-gnueabi/bin
  • 14. ©SIProp Project, 2006-2008 14 Download & Compile u-boot Download & Compile git clone https://github.com/Xilinx/u-boot-xlnx.git cd u-boot-xlnx/ git checkout -b xilinx-v14.4 xilinx-v14.4 make zynq_zed_config make After finish to compile u-boot, top directory has “u-boot” file. This is u-boot image without hardware info.
  • 15. ©SIProp Project, 2006-2008 15 Next: Back to SDK for building boot image
  • 16. ©SIProp Project, 2006-2008 16 Create Application Project Select File -> New -> Application Project
  • 17. ©SIProp Project, 2006-2008 17 App Wizard 1/2: Project Name: FSBL Target Hardware: Hardware Platform: cf_adv7511_zed_hw_platform Processor: ps7_cortexa9_0 Click “Next>”
  • 18. ©SIProp Project, 2006-2008 18 App Wizard 2/2: Select “Zynq FSBL” Click “Finish”
  • 19. ©SIProp Project, 2006-2008 19 Created FSBL project
  • 20. ©SIProp Project, 2006-2008 20 Create Boot Image 1/4 Select Xilinx Tools -> Create Zynq Boot Image
  • 21. ©SIProp Project, 2006-2008 21 Create Boot Image 2/4 Lunch Wizard Click “Add”
  • 22. ©SIProp Project, 2006-2008 22 Create Boot Image 3/4 Lunch Sub-Window Select: Partition type: bootloader Input: File path: [U-boot file] Click “OK”
  • 23. ©SIProp Project, 2006-2008 23 Create Boot Image 4/4 Added your “u-boot” in “Boot image partitions” Change “Output path”: output.bin -> boot.bin Click “Create Image”
  • 24. ©SIProp Project, 2006-2008 24 Created Boot Image Start compiling automatically After finish, You get boot image for Zedboard as boot.bin
  • 25. ©SIProp Project, 2006-2008 25 Build Kernel
  • 26. ©SIProp Project, 2006-2008 26 Prepare Compiler Download XILINX Compiler(Android NDK is OK) PetaLinux with compiler http://www.xilinx.com/support/download/index.html/conten t/xilinx/en/downloadNav/petalinux.html Set Environments export PETALINUX=[path to petaLinux compiler] export CCOMPILER=arm-xilinx-eabi-gcc export ARCH=arm export CROSS_COMPILE=arm-xilinx-eabi- export PATH=$PATH:${PETALINUX}/tools/linux- i386/arm-xilinx-gnueabi/bin
  • 27. ©SIProp Project, 2006-2008 27 Download & Compile Kernel Download & Compile Kernel git clone https://github.com/noritsuna/zedroid_device_xilinx_ze dboard-kernel.git cd zedroid_device_xilinx_zedboard-kernel git checkout zedroid-5.0.2_r1 make zynq_zed_android_defconfig make uImage LOADADDR=8000 You can get “uImage” in “arch/arm/boot/”
  • 28. ©SIProp Project, 2006-2008 28 Make device tree file
  • 29. ©SIProp Project, 2006-2008 29 Build device tree file Build device tree file cd [kernel dir] make zynq-zed-adv7511.dtb You can get “zynq-zed-adv7511.dtb” in “arch/arm/boot/dts/” Rename “zynq-zed-adv7511.dtb” to “devicetree.dtb”
  • 30. ©SIProp Project, 2006-2008 30 Build Android 5.0.2
  • 31. ©SIProp Project, 2006-2008 31 Download source code & build Install build tools following Google Android Site https://source.android.com/source/downloading.html Download source code & build repo init -u https://github.com/noritsuna/zedroid_manifests -b zedroid-5.0.2_r1 repo sync source ./build/envsetup.sh lunch zedboard-userdebug make
  • 32. ©SIProp Project, 2006-2008 32 Appendix: OpenGL/ES support If you use “lunch zedboard-userdebug”, this Android is for OpenGL/ES 2.0. Zedboard doesn’t have GPU. My Android uses software renderer. It’s soooooooo slow. If you use OpenGL/ES 1.2, it’s better to use. Android’s OpenGL/ES current version is “2.0”. Some applications require “2.0”. Special Options OpenGL/ES 1.2 version lunch zedboard_GLES12-userdebug OpenGL/ES 2.0 version lunch zedboard_GLES20-userdebug
  • 33. ©SIProp Project, 2006-2008 33 Mark up ARM RAM image info Android’s RAM image is NOT for u-boot. sudo apt-get install u-boot-tools mkimage -A arm -O linux -T ramdisk -a 0x2000000 - n "Zedboard ramdisk" -d [Android output dir]/ramdisk.img uramdisk.image.gz “uramdisk.image.gz” file is RAM image for u-boot.
  • 34. ©SIProp Project, 2006-2008 34 Setup Zedboard
  • 35. ©SIProp Project, 2006-2008 35 Prepare Hardwares: SD Card 1/2 4GB SD Card Partition: 1st primary: VFAT(FAT32) over 1GB with boot flag 2nd primary: ext4 over 1GB 3rd primary: ext4 over 500MB 4th primary: Linux Swap over 500MB Copy Files [Xilinx SDK dir]/boot.bin [kernel dir]/arch/arm/boot/uImage [kernel dir]/arch/arm/boot/dts/devicetree.dtb [Android dir]/uramdisk.image.gz To 1st partition
  • 36. ©SIProp Project, 2006-2008 36 Prepare Hardwares: SD Card 2/2 4GB SD Card Copy Files [Android output dir]/system/* files with permission info To 2nd partition [Android output dir]/userdata/* files with permission info To 3rd partition
  • 37. ©SIProp Project, 2006-2008 37 Prepare Hardwares: Zedboard DIPs JP2, JP3, JP6: “Short” JP18: “1V8” is “Short” MI02, MI03, MI06: “3V3” is “Short” MI04, MI05: “GND” is “Short”
  • 38. ©SIProp Project, 2006-2008 38 Prepare Hardwares: LAN, HDMI, OTG Required LAN, HDMI If you don’t connect them, it doesn’t boot up. Required 2 more ports: USB Hub USB port is OTG only. Other USB port is NOT USB.
  • 39. ©SIProp Project, 2006-2008 39 Power ON! Insert SD Card Connect AC Adapter and Turn on Power Switch! Please wait 5-10 mins. Because when 1st boot, ART compile all applications to native binary. Enjoy!