Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008...
Transcript of Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008...
![Page 1: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/1.jpg)
Development of Mobile LinuxOpen Platform
Development of Mobile LinuxOpen Platform
April 16, 2008Jyunji Kondo
Fujitsu Software Technologies Limited
![Page 2: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/2.jpg)
IdeasIdeasApplicationpackage(.apk)
Dalvikbyte code(.dex)
Dalvik VM(ARMv5)
extract
convert
Classlibraries
CPU nativecode(ARMv5)
CPU nativecode(ARMv5)
convert
linkage
Linux kernel(ARMv5+BSP)
Linux kernel(ex. i.MX31)
Applicationpackage(.apk)
Dalvikbyte code(.dex)
Dalvik VM(ARMv5)
extract
convert
Classlibraries
CPU nativecode(ARMv5)
CPU nativecode(ARMv5)
convert
linkage
Emulator Real Hardware
Copyright 2008 FUJITSU SOFTWARE TECHNOGIES LIMITED
![Page 3: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/3.jpg)
Main thesisMain thesis
“It's not so difficult “It's not so difficult to just enable functions of to just enable functions of AndroidAndroidusing wellusing well--maintainedmaintainedLinux BSP!” Linux BSP!”
Copyright 2008 FUJITSU SOFTWARE TECHNOGIES LIMITED
![Page 4: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/4.jpg)
Real HardwaresReal Hardwares
Copyright 2008 FUJITSU SOFTWARE TECHNOGIES LIMITED
i.MX31 Product Development Kit
![Page 5: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/5.jpg)
TopicsTopics1. input device2. sound3. power management4. telephony
Copyright 2008 FUJITSU SOFTWARE TECHNOGIES LIMITED
![Page 6: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/6.jpg)
Input deviceInput device“If Linux BSP supports keyboards, mice, and “If Linux BSP supports keyboards, mice, and
touch screens as input device, Android can touch screens as input device, Android can handle those.”handle those.”
Copyright 2008 FUJITSU SOFTWARE TECHNOGIES LIMITED
Facts:Android emulator supports keyboards and mice.
Internals:Android watch all files under /dev/input/.
![Page 7: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/7.jpg)
Input deviceInput device“If Linux BSP supports keyboards, mice, and “If Linux BSP supports keyboards, mice, and
touch screens as input device, Android can touch screens as input device, Android can handle those.”handle those.”
Copyright 2008 FUJITSU SOFTWARE TECHNOGIES LIMITED
Hypothesis:Touch screens can be handled with
event interface of input device.Result:Achieved with small modification of input driver.
![Page 8: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/8.jpg)
Input deviceInput device“If Linux BSP supports keyboards, mice, and “If Linux BSP supports keyboards, mice, and
touch screens as input device, Android can touch screens as input device, Android can handle those.”handle those.”
Copyright 2008 FUJITSU SOFTWARE TECHNOGIES LIMITED
How:• changing X-Y coordinate
• X, Y direction• resolution
• changing event type• EV_ABS/ABS_PRESSURE → EV_KEY/BTN_TOUCH
![Page 9: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/9.jpg)
SoundSound“If Linux BSP supports ALSA driver,“If Linux BSP supports ALSA driver,
Android can play Android can play musicsmusics.”.”
Copyright 2008 FUJITSU SOFTWARE TECHNOGIES LIMITED
Facts:Android emulator can play music on PC.
![Page 10: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/10.jpg)
“If Linux BSP supports ALSA driver,“If Linux BSP supports ALSA driver,Android can play Android can play musicsmusics.”.”
RealHardware
Emulator
Android
SoundSound
Copyright 2008 FUJITSU SOFTWARE TECHNOGIES LIMITED
Internals:MP3/3GPP
MediaPlayer API
Linuxkernel
EAC driver
PCM
ALSA driver (ex. pcmC0D0p)
PCM
Host PC’s sound driver
pseudo H/W
PCM
real H/W (PMIC)
PCM(SDMA)
Hypothesis:
![Page 11: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/11.jpg)
Power managementPower management““If Linux BSP supports to control If Linux BSP supports to control CPU clock CPU clock and and
backlight brightnessbacklight brightness, , power management of android can be supported.”power management of android can be supported.”
Copyright 2008 FUJITSU SOFTWARE TECHNOGIES LIMITED
Facts:Android provides 2 lock types
• partial wake lock• full wake lock
Android also control backlight brightness
![Page 12: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/12.jpg)
Power managementPower management““If Linux BSP supports to control If Linux BSP supports to control CPU clock CPU clock and and
backlight brightnessbacklight brightness, , power management of android can be supported.”power management of android can be supported.”
Copyright 2008 FUJITSU SOFTWARE TECHNOGIES LIMITED
Internals:Android operates sysfs files
•/sys/android_power/acquire_full_wake_lock•/sys/android_power/acquire_partial_wake_lock•/sys/class/leds/keyboard-backlight/brightness•/sys/class/leds/lcd-backlight/brightness•/sys/class/leds/button-backlight/brightness
![Page 13: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/13.jpg)
“If Linux BSP supports to control “If Linux BSP supports to control CPU clock CPU clock and and backlight brightnessbacklight brightness, , power management of android can be supported.”power management of android can be supported.”
RealHardwareEmulator
Android
Power managementPower management
Copyright 2008 FUJITSU SOFTWARE TECHNOGIES LIMITED
Internals: wake lock
PowerManager API
acquire/release
Linuxkernel
android power driver
real H/W (CPU/IPU)
leds class
DPM
Hypothesis:
![Page 14: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/14.jpg)
Power managementPower management““If Linux BSP supports to control If Linux BSP supports to control CPU clock CPU clock and and
backlight brightnessbacklight brightness, , power management of android can be supported.”power management of android can be supported.”
Copyright 2008 FUJITSU SOFTWARE TECHNOGIES LIMITED
How:• CPU freq
• defines 4 OPs and policies• 532M, 399M, 266M, 133M
• throttle down every 3 seconds during no activities• LCD backlight
• become darker every 15 seconds.
![Page 15: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/15.jpg)
TelephonyTelephony““If Linux BSP can control baseband with serial I/F, If Linux BSP can control baseband with serial I/F,
you can make a phone call with android.”you can make a phone call with android.”
Copyright 2008 FUJITSU SOFTWARE TECHNOGIES LIMITED
Facts:• Android emulator supports a pseudo GSM
modem device.•There is the rild (Radio I/F Layer Daemon).
![Page 16: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/16.jpg)
““If Linux BSP can control baseband with serial I/F, If Linux BSP can control baseband with serial I/F, you can make a phone call with android.”you can make a phone call with android.”
RealHardwareEmulator
Android
TelephonyTelephony
Copyright 2008 FUJITSU SOFTWARE TECHNOGIES LIMITED
Internals:
Linuxkernel serial driver
W-SIM(PHS)
Hypothesis:
rild libreference-ril.so
android modem(pseudo GSM)
Androidmodem(GSM)
wsimdVT
![Page 17: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/17.jpg)
ConclusionConclusion
Copyright 2008 FUJITSU SOFTWARE TECHNOGIES LIMITED
“It's not so difficult “It's not so difficult to just enable functions of to just enable functions of AndroidAndroidusing wellusing well--maintainedmaintainedLinux BSP!” Linux BSP!”
![Page 18: Development of Mobile Linux Open Platform...Development of Mobile Linux Open Platform April 16, 2008 Jyunji Kondo Fujitsu Software Technologies Limited Ideas Application package (.apk)](https://reader035.fdocuments.in/reader035/viewer/2022081523/5fe5d3b4cc05a6128714ae4c/html5/thumbnails/18.jpg)
Copyright 2008 FUJITSU SOFTWARE TECHNOGIES LIMITED