[KERNEL] Unleashed Nexus Player v7 [12/23/2014]

bdkoepke

Member
Jan 6, 2010
15
2
0
Would anyone mind describing how to create a boot.img for the nexus player from a bzImage? I was able to create my own kernel configuration and I successfully built the bzImage, but I seem to be having issues creating the boot.img. Apparently you need a ramdisk image and then you have to execute mkboot. I figured I could get the original ramdisk image from unpack_ramdisk but it fails to find the Android Boot Magic.

Any word on this would be greatly appreciated. (I've built custom kernels for my old htc phone and my galaxy nexus and it was much more straight-forward to create the boot.img for those devices).
 

defconoi

Senior Member
Oct 31, 2008
3,184
6,076
0
SCHUYLKILL HAVEN
www.android-unleashed.com
Would anyone mind describing how to create a boot.img for the nexus player from a bzImage? I was able to create my own kernel configuration and I successfully built the bzImage, but I seem to be having issues creating the boot.img. Apparently you need a ramdisk image and then you have to execute mkboot. I figured I could get the original ramdisk image from unpack_ramdisk but it fails to find the Android Boot Magic.

Any word on this would be greatly appreciated. (I've built custom kernels for my old htc phone and my galaxy nexus and it was much more straight-forward to create the boot.img for those devices).
Use abootimg
 

bdkoepke

Member
Jan 6, 2010
15
2
0
Your welcome, let me know if you add anything worth while and I'll be happy to add your changes to my kernel.
Thanks defconoi, turns out I was using the wrong boot.img. After finding the correct file your suggestion worked perfectly.

I'm actually working on usb video support. I'm trying to build a skype/hangouts system for my family that will double as a video system. After enabling uvc video support my camera was detected successfully by https://play.google.com/store/apps/details?id=infinitegra.app.usbcamera&hl=en and was able to take pictures and camcord. The defconfig used by the nexus player already looks pretty optimized.

There is more work to go before native android apps will be able to use the usb camera, but I'm working on it :) Once I get it to a point of stability I'll forward the kernel config to you. I have a feeling some android frameworks will need to be modified as well. Hopefully the Xposed framework will work with ART soon and I'll be able to release my patches as an xposed hook. If I can get this to work the nexus player will end up being a pretty nice video conferencing system.

Anyway, thanks again.
 

defconoi

Senior Member
Oct 31, 2008
3,184
6,076
0
SCHUYLKILL HAVEN
www.android-unleashed.com
Thanks defconoi, turns out I was using the wrong boot.img. After finding the correct file your suggestion worked perfectly.

I'm actually working on usb video support. I'm trying to build a skype/hangouts system for my family that will double as a video system. After enabling uvc video support my camera was detected successfully by https://play.google.com/store/apps/details?id=infinitegra.app.usbcamera&hl=en and was able to take pictures and camcord. The defconfig used by the nexus player already looks pretty optimized.

There is more work to go before native android apps will be able to use the usb camera, but I'm working on it :) Once I get it to a point of stability I'll forward the kernel config to you. I have a feeling some android frameworks will need to be modified as well. Hopefully the Xposed framework will work with ART soon and I'll be able to release my patches as an xposed hook. If I can get this to work the nexus player will end up being a pretty nice video conferencing system.

Anyway, thanks again.
usb camera support would be really great . please keep us up to date on your progress.
I have a logitech C510, added UVC support and its not detected, can you share exactly what you added to get it detected?
 

defconoi

Senior Member
Oct 31, 2008
3,184
6,076
0
SCHUYLKILL HAVEN
www.android-unleashed.com
I have a logitech C510, added UVC support and its not detected, can you share exactly what you added to get it detected?
here are the defconfig options I added for usb video:
CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_V4L2_COMMON=y
CONFIG_USB_VIDEO_CLASS=y
CONFIG_VIDEO_MEDIA=y
CONFIG_V4L_USB_DRIVERS=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y

/dev/video0 is not present for the logitech C510

edit:
Just realized im missing USB Audio & CONFIG_VIDEO_CAPTURE_DRIVERS, we'll see if those fix the issue
 
Last edited:

bdkoepke

Member
Jan 6, 2010
15
2
0
here are the defconfig options I added for usb video:
CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_V4L2_COMMON=y
CONFIG_USB_VIDEO_CLASS=y
CONFIG_VIDEO_MEDIA=y
CONFIG_V4L_USB_DRIVERS=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y

/dev/video0 is not present for the logitech C510

edit:
Just realized I'm missing USB Audio & CONFIG_VIDEO_CAPTURE_DRIVERS, we'll see if those fix the issue
Seems like the C510 supports UVC: http://en.wikipedia.org/wiki/List_of_USB_video_class_devices.

I ensured that my usb device worked on Linux. dmesg prints that it runs UVC 1.0.

I also attached my boot.img and .config (as nexusplayer.img, rename it to .config). I can confirm that it works with the Logitech C920.
 

Attachments

defconoi

Senior Member
Oct 31, 2008
3,184
6,076
0
SCHUYLKILL HAVEN
www.android-unleashed.com
Seems like the C510 supports UVC: http://en.wikipedia.org/wiki/List_of_USB_video_class_devices.

I ensured that my usb device worked on Linux. dmesg prints that it runs UVC 1.0.

I also attached my boot.img and .config (as nexusplayer.img, rename it to .config). I can confirm that it works with the Logitech C920.
right before u posted this I figured it out, had to enable those above and usb audio fixed it, here is v6 with usb audio and uvc usb video enabled:
https://www.androidfilehost.com/?fid=95864024717067950
 

defconoi

Senior Member
Oct 31, 2008
3,184
6,076
0
SCHUYLKILL HAVEN
www.android-unleashed.com

bdkoepke

Member
Jan 6, 2010
15
2
0
any way to get this working with hangouts/skype?
That is what I'm working on currently. I'm not exactly sure how android determines which devices are supported by the framework, but I will be working on it this week in my spare time. I will be sure to post here if I make any headway. If anyone has android/java/ndk/c experience then please pm me. Would be worth coordinating efforts.
 

defconoi

Senior Member
Oct 31, 2008
3,184
6,076
0
SCHUYLKILL HAVEN
www.android-unleashed.com
That is what I'm working on currently. I'm not exactly sure how android determines which devices are supported by the framework, but I will be working on it this week in my spare time. I will be sure to post here if I make any headway. If anyone has android/java/ndk/c experience then please pm me. Would be worth coordinating efforts.
I found a patch that probably wont apply cleanly that sets external usb webcams as internal cameras but its for eclair:
https://android-m912.googlecode.com/files/v4l2_camera_v2.patch
 

pchtc

Senior Member
Sep 13, 2007
807
274
83
Ottawa
mpeg2/dts needs to be enabled android side
wouldnt it be great if they just let us purchase the mpeg2 license
thats how it works on raspberry pi
and its only 2$ id gladly pay more than that to have proper playback in xbmc/kodi
its nice to say that mpeg 2 is old and h.264 is what current
but all tvtuners extract video in mpeg2
so mpeg2 licese is needed for proper tv playback

@ defconoi
is there a chance that your moded kernel might shut off certain cores at times
your kernel is great
i find tat since switching to it in and xbmc x86 instead of arm
sometimes it crashes
the issue could be the x86 version of xbmc/kodi and might have nothing to do with the kernel
have you experienced this
should i just try chaging the governor?
 

defconoi

Senior Member
Oct 31, 2008
3,184
6,076
0
SCHUYLKILL HAVEN
www.android-unleashed.com
wouldnt it be great if they just let us purchase the mpeg2 license
thats how it works on raspberry pi
and its only 2$ id gladly pay more than that to have proper playback in xbmc/kodi
its nice to say that mpeg 2 is old and h.264 is what current
but all tvtuners extract video in mpeg2
so mpeg2 licese is needed for proper tv playback

@ defconoi
is there a chance that your moded kernel might shut off certain cores at times
your kernel is great
i find tat since switching to it in and xbmc x86 instead of arm
sometimes it crashes
the issue could be the x86 version of xbmc/kodi and might have nothing to do with the kernel
have you experienced this
should i just try chaging the governor?
this is a very new soc so I'm unsure if any hotplugs for msm will even work, we may need extensive rewrites of drivers, Im working on porting intelliplug now.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone