greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion...
Transcript of greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion...
![Page 1: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/1.jpg)
Android
Greg Kroah[email protected]
A case study of anEmbedded Linux Project
http://github.com/gregkh/android-presentation
![Page 2: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/2.jpg)
DisclaimerEverything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.
Everything said here is from the viewpoint of an experienced member of the Linux kernel community, who also happens to have a lot of experience in the embedded arena as well.
If you have any questions / concerns / flames, you know where to find me.
![Page 3: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/3.jpg)
Focus on the kernel only.Who cares about userspace?
![Page 4: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/4.jpg)
![Page 5: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/5.jpg)
Everything I complain about, can be fixed tomorrow with no changes to any Android userspace program.
Almost all of these changes can only be done if Google developers allow them, as they will require changes to the Android libraries due to the user/kernel interfaces involved.
![Page 6: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/6.jpg)
Things Google did right
Linux
android.git.kernel.org
Followed the license of the kernel
![Page 7: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/7.jpg)
Things Google did wrong
android.git.kernel.org
Ignored the community
Thought they were special
Thought they were alone
![Page 8: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/8.jpg)
android.git.kernel.org
![Page 9: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/9.jpg)
android.git.kernel.org
6 different full kernel trees
![Page 10: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/10.jpg)
android.git.kernel.org
33 different kernel branches
![Page 11: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/11.jpg)
android.git.kernel.org
33 different kernel branches
2.6.25 – 4 branches2.6.27 – 3 branches2.6.29 – 9 branches2.6.30 – 1 branch2.6.32 – 7 branches2.6.33 – 6 branches2.6.34 – 3 branches
![Page 12: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/12.jpg)
android.git.kernel.org
1 old stale Linus tree
![Page 13: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/13.jpg)
android.git.kernel.org
2 known standalone drivers
![Page 14: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/14.jpg)
android.git.kernel.org
2 known standalone drivers
One has 13 different branches
![Page 15: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/15.jpg)
2.6.34rc2 based branch
283 files changed47,715 lines added 363 lines removed
![Page 16: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/16.jpg)
2.6.34rc2 based branch
50% drivers30% filesystem15% architecture 5% core
![Page 17: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/17.jpg)
● dcc_tty – arm tty driver● Synaptics i2c touchscreen driver
Drivers 2007
![Page 18: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/18.jpg)
Drivers 2008● reset key drivers● GPIO input drivers● Timed GPIO driver● ledtrigsleep debug driver● Kernel debugger core● pmem driver● Loads of MMC changes
![Page 19: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/19.jpg)
Drivers 2008● Nvidia Tegra MTD NAND controller● RTC alarm driver● Logger● Ram console● Switch subsystem● GPIO switch● USB Gadget subsystem rewrite
![Page 20: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/20.jpg)
Drivers 2009● Apanic debug flash driver● Uid status● TI Bluetooth rfkill driver● Bluetooth core fixes and extensions
![Page 21: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/21.jpg)
Drivers 2010● Tegra USB gadget driver● Tegra framebuffer driver
![Page 22: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/22.jpg)
Security● Binder● “secure” networking
![Page 23: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/23.jpg)
● YAFFS2● FAT Volume ID ioctl● inotify changes● Partition uevents● Special /proc filetype
Filesystems
![Page 24: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/24.jpg)
● PPP on L2TP Access Controller ● PPP on PPTP Network server● sysfs files for networking controls
Networking
![Page 25: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/25.jpg)
● Low memory killer● wakelocks● “early suspend”● ashmem● panic timeout● cgroup/cset changes● futex changes due to broken userspace● sysctl for swapless systems
core
![Page 26: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/26.jpg)
● PPP on L2TP Access Controller ● PPP on PPTP Network server● sysfs files for networking controls
Networking
![Page 27: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/27.jpg)
Ignoring the community
Ignoring the community
![Page 28: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/28.jpg)
commit b0a0ccfad85b3657fe999805df65f5cfe634ab8aAuthor: Greg Kroah-Hartman <[email protected]>AuthorDate: Mon Oct 5 16:29:29 2009 -0700Commit: Greg Kroah-Hartman <[email protected]>CommitDate: Fri Dec 11 12:23:21 2009 -0800
Staging: android: delete android drivers These drivers are no longer being developed and the original authors seem to have abandonded them and hence, do not want them in the mainline kernel tree. So sad :( Cc: Brian Swetland <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
![Page 29: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/29.jpg)
You are special and unique, just like everyone else.You are special and unique, just like everyone else.
Image courtesy of snowcrystals.com
![Page 30: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/30.jpg)
It's just a fork,It's just a fork,no big deal.no big deal.
![Page 31: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/31.jpg)
![Page 32: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/32.jpg)
![Page 33: greg@kroah - eLinux.org · Disclaimer Everything I say here is my opinion alone and not the opinion of my employer Novell. Heck, they don't even realize I'm here giving this talk.](https://reader034.fdocuments.net/reader034/viewer/2022042116/5e937c95c5193636092ade35/html5/thumbnails/33.jpg)