[Q] looking pl2303.ko and snd-usb-audio.ko - Gen8, Gen9, Gen10 Q&A, Help & Troubleshooting

Hello
Tablet Archos 101 it (gen8)
SDE Debian Wheezi
I am looking pl2303.ko and snd-usb-audio.ko
Motivation: to replace an Eeepc research in the field (lightness, autonomy, solar charging, etc.).
Hoped uses:
- Gps usb data logger
- Sound recordings
- Measures: environment, social sciences...
- Image recordings (external webcam if possible)
Tests: SDMP works, the GPS, the sound card is recognized by lsusb
I have not managed to compile modules pl2303.ko and snd-usb-audio.ko
I do not know the Archos 101 can be used for that.
Thank you
Otherwise: Archos and resale of card use BeagleBoard or Arduino.
This is my translation by Google !

cguillem said:
Hello
Tablet Archos 101 it (gen8)
SDE Debian Wheezi
I am looking pl2303.ko and snd-usb-audio.ko
Motivation: to replace an Eeepc research in the field (lightness, autonomy, solar charging, etc.).
Hoped uses:
- Gps usb data logger
- Sound recordings
- Measures: environment, social sciences...
- Image recordings (external webcam if possible)
Tests: SDMP works, the GPS, the sound card is recognized by lsusb
I have not managed to compile modules pl2303.ko and snd-usb-audio.ko
I do not know the Archos 101 can be used for that.
Thank you
Otherwise: Archos and resale of card use BeagleBoard or Arduino.
This is my translation by Google !
Click to expand...
Click to collapse
Kernel source with included crosscompiler is https://gitorious.org/archos/archos-gpl-gen8-kernel and https://gitorious.org/archos/archos-gpl-gen8
Or use the source from openaos almost identical with the archos source just a few additions. http://dev.openaos.org/wiki/SettingUpMultiRootGen8#Buildingyourownkernelfromtheopenaosgitsource
Add the source from the modules you want to compile and go ahead.
divx118

Related

[Q] Porting Honeycomb to Toshiba AC100

Hi,
I own a Toshiba AC100 loaded with Android 2.1. Toshiba promised since the launch an update for Android. Nothing is out today.
I saw that a guy has achieved to port Honeycomb to Nook Color using the preview sdk. I really would like to know from you experts if this would be possible on the AC100.
Waiting for answers.
I second that question, would be very much interested in it.
Your not going to get any other answer then this. ..... wait till nvida and Toshiba release the source. Developers can't properly port or develop software or a Tom to run on tetra hardware for hunycomb untill they have the drivers(source) so to speak. I am sure if you look in your device specific thread for the Toshiba folio100 u will see the answer similar to mine there......
I heat that Pipposanta of tabletroms has a honeycomb port for the AC100 that just got released.
aComb100 v0.3 x3 Honeycomb 3.0.1 Review & installation Android 3.0 on Toshiba AC100
Original & active thread: tabletroms.com/forums/ac100-rom-development/1918-acomb100-v0-3-honeycomb-3-0-review-installation-android-3-0-toshiba-ac100.html
Review Android 3.0.1 on Toshiba AC100
10.09.11 InterSolar
Video (russian language) youtube.com/watch?v=nLCTN2tyTaY]Toshiba AC100-116 android 3.0 - YouTube (video is early beta version 3.0, if you have camera, we need new review.
Installation Android 3.0 on Toshiba AC100
Last Installation files:
1. Install 2.2 Silver 4b narod.ru/disk/14151973001/ac100_flash_v4b.7z.html
Choice 116 cmd - with 3G build-in modem
Choice 117 cmd - without 3G build-in modem
2. After this install last Android 3.0.1 narod.ru/disk/24414263001/and3v0_3x3.7z.html
last version: Android 3.0.1 v 0.3 x3 for Toshiba AC100
Choice flash_uni.cmd
*Only if its cant work, сhoice 117 cmd
what works
touchpad
sound
usb
graphic acceleration on android
sleep (standby) (after patch)
keyboard after patch work perfectly (cant works only two or three key in top raw - function keys)
Wi-Fi (when dancing with a tambourine ala shaman - now need more action after installation
function cant work now:
Camera
bluetooth
Debugging & work list on Android 3.0 on Toshiba AC100
It would be nice to finish here, these bugs and comments (which complained about the user):
Operating Bluetooth
Camera (users write that it does not work)
Support for networks WiFi AD-Hoc - WiP (All Android devices cant default support Adhoc, but we have solution (is'nt very easy))
Support AC3 Sound codec in Films & Hardware decoding (avi) - WiP, we have solution
No H/W acceleration in MX Player.
Youtube playback not working probably because of above.
Lid switch not working.
Support WiMax (use madwimax drivers)
Save all network settings in Wi-Fi by SSID - partially done, use market.android.com/details?id=org.kman.WifiManager - WiFiManager
Time from battery work ~3-4 hours (its not power save) & AC100 little heat - partially done, use Powersave profile market.android.com/details?id=com.antutu.CpuMasterFree - CpuMasterFree. Its increase battery life up to 6-7 hours & heat off.
Force closes on browser when trying to download files - done, need use this solution tabletroms.com/forums/ac100-rom-development/1918-acomb100-v0-3-honeycomb-3-0-review-installation-android-3-0-toshiba-ac100-9.html#post25323
To run all the programs for 2.2 (eg 2gis, skype last) - done, need use this solution tabletroms.com/forums/ac100-rom-development/1918-acomb100-v0-3-honeycomb-3-0-review-installation-android-3-0-toshiba-ac100-9.html#post25323
OpenVPN support - done, did xandrster
Supports NTFS * - done, is implemented in firmware v4a by silver-alx *
Incorrect sleep/suspend mode - done
The top row of the keyboard (add functions work. Keys correctly) partially done
The software increases the volume of sound (the sound of movies in 3.0 as quiet?) done
Wi-Fi connection with open access points (after the flash without additional) - Partially done. did xxl-pda & after xandrster
3G modems USB detect automaticly - done, did xandrster
Blocking turning in applications where rotation is programmed by default (similar to 4b) - done
Thanks pipposanta (first developer A3.0 on AC100), xxl-pda, Xakep_fsb, xandrster, big_agent & LicRen
old version (0.2 , 0.1) - tabletroms.com/forums/ac100-rom-development/949-acomb100-v0-2-honeycomb-3-0-a.html
(0.3 test1) db.tt/l4r2ykm - download in dropbox here
dl.dropbox.com/u/27358017/test_2.7z (fast direct link)
(0.3 test2) ac100.163.ru/firmware/3.0/Android%203.0%20(test).rar
(0.3 x1) ac100.163.ru/firmware/3.0/ac100v03x1.zip
(0.3 x2) narod.ru/disk/24204997001/and3v0_3x2.zip.html
Goog evening
Russia
Sample Android 3.0:
tabletroms.com/forums/attachments/ac100-rom-development/393d1311775823-acomb100-v0-2-honeycomb-3-0-open-apps-asus-sm.jpg
tabletroms.com/forums/attachments/ac100-rom-development/445d1312464304-acomb100-v0-2-honeycomb-3-0-298211.jpg
Click to expand...
Click to collapse
aComb100 v0.4 Honeycomb 3.0.1 Review & installation Android 3.0 on Toshiba AC100
Original & active thread: tabletroms.com/forums/ac100-rom-development/2793-acomb100-v0-4-honeycomb-3-0-1-review-installation-android-3-0-toshiba-ac100.html
New 0.4 released!
Review Android 3.0.1 on Toshiba AC100 (Dynabook AZ)
07.10.11 InterSolar
Video (russian language)Toshiba AC100-116 android 3.0 - YouTube (video is early beta version 3.0, if you have camera, we need new review.
Installation Android 3.0 on Toshiba AC100
Last Installation files:
2. After this install last Android 3.0.1 download
last version: Android 3.0.1 v 0.4 for Toshiba AC100
Before flashing - install drivers, get miniusb-plugged ac100 to fastboot (ctrl+esc+power),
Also you can start backup.cmd (copy from scripts) or backup.sh before install for backup your current firmware.
Run flash.cmd - for windows , flash.sh - for linux.
Run restore script if firmware not start.
All function now works
Touchpad
Sound
USB
Graphic acceleration on android (All Games works)
Sleep (standby) (after patch)
Keyboard after patch work perfectly (cant works only two or three key in top raw - function keys)
Wi-Fi
Bluetooth
Camera (little delayed now & cant show preview)
Features:
- New kernel with swap,loop,squashfs,joystick,btusb,wimax support (look into /system/lib/modules);
- Battery hold 8+ Web-surf, if SetCPU have Powersave profile (you can try too from market juiceDefender);
- Correct Sleep if bluetooth is on (Go to sleep hold button Power more 3 sec, for un-Sleep all functional keys (i'm using down arrow);
- WiFi connect with open point (immediately after the flash, no more run the additional scripts? if not - run 2.sh);
- Correct work DHCP in WiFi connect;
- Keyboard works more correctly;
- 3G modems (usb or internal) start automatically;
- correct automount points;
- MidnightCommander,dropbear,busybox 1.1.19 included;
- openVPN support.
- usb mouses,keyboard support;
Debugging & work list on Android 3.0 on Toshiba AC100
It would be nice to finish here, these bugs and comments (which complained about the user):
Operating Bluetooth (default is off, work only manually from terminal, (!) work normally in 0.4)
Support for networks WiFi AD-Hoc - WiP (All Android devices cant default support Adhoc, but we have solution (is'nt very easy))
No H/W acceleration in Adobe MX Flash Player.
Youtube playback working slowly because of above.
Lid switch not working?
Support WiMax (use madwimax drivers) - experimental done, need test
Maybe the kernel to support usb sticks? - partially done. did xandrster
Internal Terminal (app) cant work after flash - partially done.
Support AC3 Sound codec in Films & Hardware video decoding (avi & mkv) - download MX Video Player (with support for AC3), + hardware decoding video at Tegra (last version 1.3, you need both files: player & codec ) and use (AC3 sound to display software). Thank sergyo007 and rasta12
Save all network settings in Wi-Fi by SSID - partially done, use WiFiManager
Time from battery work ~3-4 hours (its not power save) & AC100 little heat - partially done, use Powersave profile CpuMasterFree. Its increase battery life up to 6-7 hours & heat off.
no installs several applications at the time of installation errors in the log fall down - done, did xandrster
Internal 3G Modem may cant work after flash x3 & greather version - done, did xandrster
Force closes on browser when trying to download files - done, need use this solution aComb100 v0.3 Honeycomb 3.0 Review & installation Android 3.0 on Toshiba AC100
Market & Gtalk work, but cant download or install apps from Market - done, did xandrster
To run all the programs for 2.2 (eg 2gis, skype last) - done, need use this solution aComb100 v0.3 Honeycomb 3.0 Review & installation Android 3.0 on Toshiba AC100
OpenVPN support - done, did xandrster
Supports NTFS * - done, is implemented in firmware v4a by silver-alx *
Incorrect sleep/suspend mode - done
The top row of the keyboard (add functions work. Keys correctly) partially done
The software increases the volume of sound (the sound of movies in 3.0 as quiet?) done
Wi-Fi connection with open access points (after the flash without additional) - Partially done. did xxl-pda & after xandrster
3G modems USB detect automaticly - done, did xandrster
Blocking turning in applications where rotation is programmed by default (similar to 4b) - done
Camera (users write that it does not work) - done, thanks zombah, xandrster
Thanks pipposanta (first developer A3.0 on AC100), xxl-pda, Xakep_fsb, xandrster, big_agent & LicRen
old version (0.2 , 0.1) - aComb100 v0.2 Honeycomb 3.0
0.3 - aComb100 v0.3 Honeycomb 3.0 Review & installation Android 3.0 on Toshiba AC100
Goog evening
Russia
Click to expand...
Click to collapse
Please use the Q&A Forum for questions Thanks
Moving to Q&A

[14 Apr 2012][USER/DEV] USB Host Support & Development [CM7/CM9]

Nook Color USB Host Support & Development Thread​​
What is USB Host mode?
The ability to connect your day-to-day USB devices to your Nook Color
Is it the same as OTG ( On-The-Go )?
Principally YES , Technically NO
USB OTG has an id-pin that allows the host to detect automatically the state it should be and enable charging & hosting
On the nook , the id-pin is not connected so we have to control the states ourselves ( Nook Color Tweaks )
This is why an OTG cable is not needed ( but should work as well )
Purpose of this thread
As you might know , dalingrin and verygreen brought us USB Host support some time ago
This thread will rely on that original thread , but will bring some order so we can continue explore & develop.
CM9 ( ICS ) introduced us the USB HOST API , and much more support based on Honeycomb
I personally moved completely to CM9 since it's far superior IMO ( even at the current state of development )
so CM7 info is based on my own past experience & user experiences posted.
Current Status​​​​
please share your experience here
Nook Color USB HOST Device Compatibility List​Standard Support
External Storage ( Disk-On-Key / Card-Reader / HDD )
Keyboards & Mice
Game Controllers
Custom HID Input Controllers
DSLR & VDSLR Cameras
Audio Output
For detailed info & other devices go to post 2 - Possibilities include : Webcams , GPS , BT , 3G , DVB-T and more...
MUST READ!
Before posting an issue please SEARCH both this & the original thread​
Tools Needed
microUSB to USB Female adapter / USB Gender Changer
Generic microUSB cable ( same as your other android )
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Nook Color Tweaks
USB Hub ( Optional for some , Required for others )
External VBus​External VBus mode will enable you to use an external power source to charge the nook while using USB Host mode
This mode is quite buggy but still usable - READ before using a powered hub
When you make it to ON, the battery charger pump is opened and connected to vbus terminals. In this state it is safe to connect nook to a power source, usb host will work and the battery should be charging at the same time.
Click to expand...
Click to collapse
Using the OEM cable to enable 2A charge
As far as I know , the OEM cable doesn't seem to work with USB Host mode
And as a result of this ( & most if not all usb hubs specs ) - you can't charge the nook with 2A using External VBus
Why do some devices REQUIRE an external hub?
The maximum current the nook can supply is 100mA
If your usb device require more than 100mA , External hub is REQUIRED
Read post 3 to find out how to diagnose power requirements
Important : Using a non-powered hub can mask the power requirements for some devices!
Tested Hubs
Testimonials : Belkin 4 Port Hub | Belkin FSU237 7 Port Powered Hub
^ That is what I use ( Link for ex. )
Needs Attention​
Charger code bugs involving External VBus
"Charging" status while using External VBus
Home-Screen Widget
Audio Input
This is a Work-In-Progress
since I don't have much time , I'll be glad to see this as a community effort , so if you have any info to share feel free to do so​​
USB Devices Support Extended Info
USB Devices Support Extended Info​​There are Countless possible uses , Currently only 6 known to work​​please share your experience here
Nook Color USB HOST Device Compatibility List​Standard Support​​
External Storage - Disk-On-Key / Card-Reader / HDD
CM7 - FAT32 ( should Auto-Mount , CM7 users please confirm )
CM9 - FAT32 / NTFS ( Mount using StickMount / Drive Mount )
*NTFS support is not native , so keep reading this post if you plan to use it
Keyboards & Mice
Most should be supported - Re-Mapping how-to on post 3
Game Controllers
CM7 - Try Gamepad IME , no reports on successful attempts
Testimonials : Link 1 | Link 2 | Link 3 | Link 4 | Link 5 | Link 6
CM9
USB/BT Joystick Center
USB Joystick Center has Driver-Settings included for these Devices (ready to use, others you can create at your own):
Wireless:
- PS3 Controller without root (* CSR Bluetooth 2.x/EDR+ USB Stick is needed)
- X360 Controller ("Microsoft Wireless Gaming Receiver for PC" USB is needed)
- Bluetooth Keyboards
- iCade
- iControlPad (SPP Mode)
- PhoneJoy
- Wii Remotes 1-4 + Nunchuck + Classic
- Zeemote
* Please read the Sixaxis pairing instructions on the help site of the app!
USB:
- X360 Controller - Wired
- PS3 Sixaxis - Wired
- Hyperkin N64 Moonlight Controller
- Logitech (Rumble, F310, F710)
- Microsoft Sidewinder 2 Precision
- Trust GXT 24
- X360 Rockband: USB Guitars + Drums
- N64 "Controller Adapter for PC USB" (for 2 Controllers)
- PSX 1/2 "USB Gamepad Converter Dualschock" with 2 Player support
- PSX + N64 USB Dual Converter
- SNES "Controller Adapter for PC USB"
- C64/Atari/Amiga "Donalds USB-Joystickadapter" for 2 Players
- C64/128/A600 "Keyrah" USB Keyboard + 2 Joysticks Adapter
- Stelladapter 2600 to USB
- "PC/Gamepad/Joystick Adapter" (15 Pin D-Sub)
- PSX - USB 4 "Buzz Junior" Wired Controllers
- PSX 1/2 (EAXUS) "Super Dual Box Advanced" Adapter for PC USB
If you have an adapter that is not natively supported and you have trouble to use it, enter the support forum.
Click to expand...
Click to collapse
Custom HID Input Controllers
You can try to make a custom "driver" in USB/BT Joystick Center ( see Game Controllers ^ )
Or , Go to post 3 which describes the manual way using the key layout file if your input controller contain mainly buttons
DSLR & VDSLR Cameras
Many apps on Google Play , Here is what I could find
DSLR Controller (BETA) - Known to work
Remote Your Cam USB Lite
ML Controller
DslrDashboard 0.25.3 beta
Audio Output
If your device doesn't require special drivers , and recognized as a USB Audio on your PC - It should work
Testimonials : Logitech DAC A-5572A | Beresford TC-7520SE Caiman | FiiO E7
Ready For User Testing​
Webcams
SimpleWebCam.apk - Live feed only , More info below
GPS ( PL-2303 Based )
PL2303GPS MockLocation DEMO - More info below
Microsoft Kinect
PowerAMP Status Bar Controller - More info below
Midi Controller
Grand Piano Pro
Data Loggers
USB Dataloggerreader test
Following data loggers are supported:
* Voltcraft DL-120-TH, DL-100-T, DL-181-THP
* LOG32 sold by several electronic vendors
* Lüftungslogger sold by www.luftdicht.de
* maybe others
Barometric Pressure Sensor
VarIO Variometer
Temperature Measurement
USB-2001-TC - USB-Based Single-Channel Thermocouple
Oscilloscope
OsciPrime Oscilloscope - DIY Project
Kegbot
Kegbot Kegerator Controller - Kegbot™ Project
K8055
K8055 Demo (Free Ver) - USB EXPERIMENT INTERFACE BOARD
Research & Development​USB Host is a bit of a challenge , Since it lives in both the kernel & userspace
Some devices require kernel "attention" , but some can use USB Host API
My advice is to try the API route first since it's native to ICS in general and it's cross-device
USB Host API is pretty much the same as libusb , so linux devs should be comfortable with it
​Linux
Module Management
BotBrew
Build native GNU/Linux applications: the easy way
Porting Libusb for Android on the Beagleboard in 5 steps
Android
Android Developers - USB Host
Code to Launch Foam Missiles Over USB!
Android USB Host + Arduino: How to communicate without rooting your Android Tablet or Phone
Android USB Host + USB VCP Driver
Kismet on Android
External Storage​To use NTFS file-system on CM9 you need to do the following :
Download the attached zip @ the bottom of this post
Extract fuse.ko ( credits : fattire ) & Place it in your sdcard ( eg. /sdcard/fuse.ko )
Open terminal session
Code:
insmod /sdcard/fuse.ko
Mount
*I can picture a fuse kernel module "injector" as an option in Nook Tweaks - if you up for it you can find the source in post 3
Audio Output​Although audio output is hard-wired in the kernel , There is still room for improvement
Once it's connected it takes control over all audio output
Novo7 Advanced devs for example have made a software mod to allow basic control via userspace
Drivers and libraries for NOVO7A (with usb audio)
Also , You can support google making it mainstream by starring this issue
Enable USB audio on the Galaxy Nexus (or any Android 4.0 device)
Audio Input​Relevant Info : Link 1 | Link 2 | Link 3 | Link 4
Testimonials : usb audio 7.1 | generic USB audio dongle | Logitech USB Headset 360 , More Info | MS Lifecam cinema | USB2.0 7.1CH Sound Adapter | Plantronics USB headset
I've been experimenting with my MicMate + ECM8000 combo on CM9 not long ago
I was able to use RTA apps to some extent , But recording apps FC
This needs further research
Webcams & Video Input​Last Update: 09/05/12​CM7 Relevant Info : Link 1 | Link 2 | Link 3
Kernel support is present already :
CONFIG_V4L_USB_DRIVERS=y
CONFIG_USB_VIDEO_CLASS=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
Here is a source for an app that would allow you to view the video feed through JNI - Usage of USB webcam with customized Galaxy Nexus & Iconia Tab A500
You can download it compiled SimpleWebCam.apk ( Credits : bigrushdog )
Camera App/Skype/Etc. shouldn't work , For that we need something that will emulate the output as internal camera
9/5 - Camera HAL on the works
External USB cam on Android 4.0.4 with Toshiba folio 100
UVC camera YUYV pixel format support in android applications
How to make the default camera android app work on QSB
Analog CVBS is displayed on Android OS by USB interface
GPS​CM7 Relevant Info : Link 1
Testimonials : GlobalSat BU-353 , More Info
CM9 Relevant Info : Link 1
DVB-T​Last Update: 06/05/12​
Android DVB-T - I can't download this app from Google Play ( This item is not compatible with your device ) , So I can't test it.
DroidTV ( In Development ) - Follow the git for progress , APK ( Still needs compiled modules )
Related Modules : dvb-core.ko , dvb-usb.ko , dvb-pll.ko , mxl5005s.ko , tda18271.ko , qt1010.ko , mt2060.ko , af9013.ko , tda18218.ko , dvb-usb-af9015.ko
Microsoft Kinect​Last Update: 02/05/12​
PowerAMP Status Bar Controller - Suppose to have support but I couldn't get my Kinect to work with it , Maybe you will.
Microsoft Kinect + Tegra 2 + Android 4.0 (Ice Cream)
Kinect->USB/BT Joystick Center support for Root users
There is a lot of "hidden" potential using Kinect
Here is an interesting project , he has plans for Android as well.
Reverse Parking Assist Using Microsoft Kinect
3G​Iconia A500 | Archos Gen8
BT​Relevant Info : Link 1
Related Modules : bluetooth.ko , btusb.ko , rfcomm.ko , bnep.ko , sco.ko
Phone Tether​Tether Android Phone (Desire) to Android Tablet (Iconia A500) via USB Cable
Video Output​Last Update: 02/05/12​
Send to Framebuffer
DisplayLink for android
Serial Port​Last Update: 06/05/12​
Serial-to-USB-ANDROID
Slick USB 2 Serial Demo
USB Serial Monitor Lite
Arduino Uno Communicator
Android USB Serial Driver
Midi Controller​Last Update: 06/05/12​
USB-MIDI-Driver
USB MIDI Monitor
Scanners​Build native GNU/Linux applications: the easy way
Pico Projectors​An Open Source driver for USB pico projectors
IR​Last Update: 02/05/12​Does USB IR Transciever work with Android?
Diagnostics & Development
Diagnostics & Development​​
I take no responsibility.............. DO IT ON YOUR OWN RISK! ​
This part of the thread will be dedicated to reading and diagnosing logs , and more advanced stuff for developers
most of the usb-related stuff are using kernel messages to let us know their status
to read kernel messages we can use Android Debug Bridge ( or ADB )
the original protocol is used via USB , but we already use it to connect our usb devices so we need a different route
So , you should basically know 2 apps :
adbWireless enables a wireless ADB connection , just like USB so you can view logs on your PC
Android Terminal Emulator will let you use Android's built-in Linux command line shell right on the nook itself.
It doesn't matter what you choose , those are just 2 different ways to view the same thing - and you will know more by the end of this post
I'll try to make this post appeal to both the command-line and GUI guys
Command-Line​​You can use the following on both CM7 & CM9
So , open your app of choice ( adbWireless / Terminal Emulator / Whatever ) and establish a connection ( shell ) if needed
First you should start with
Code:
su
Since we are dealing with kernel stuff , you need superuser permissions.
this command will give you root access till the end of the session.
If you see ‘#’ - you already got root access
If you see ‘$’ - type ’su’ to get root access.
Now that we got root permissions we have read&write access to the system
Here is a list of relevant commands and their actions
Code:
[B]logcat[/B] - view the internal log of the Android system
[B]dmesg[/B] - view the message buffer of the kernel
[B]cat /proc/kmsg[/B] - continuous dmesg ( to stop the log use ctrl+c )
[B]echo host > /sys/devices/platform/musb_hdrc/mode[/B] - usb host ON
[B]echo peripheral > /sys/devices/platform/musb_hdrc/mode[/B] - usb host OFF
[B]echo external > /sys/devices/platform/i2c_omap.1/i2c-1/1-0048/twl4030_usb/vbussrc[/B] - external vbus ON
[B]echo internal > /sys/devices/platform/i2c_omap.1/i2c-1/1-0048/twl4030_usb/vbussrc[/B] - external vbus OFF
[B]lsusb[/B] - list usb devices
[B]cat /proc/asound/cards[/B] - list audio devices
GUI​​General :
Lumberjack - Log export and viewer
CommandCenter - CM7 Support
USB HOST :
USB Host Viewer
USB Device Info
USB Host Diagnostics - CM7 Support
Usb Host Controller - CM7 Support
How To Diagnose Power Requirements ( 100mA limit )​​
As I stated earlier some devices require more than 100mA to become functional
in that case this can be easily spotted by looking at the logs ,
Enter cat /proc/kmsg on adb/terminal or watch dmesg log on lumberjack
Connect your usb device and look for the RED line :
Code:
<6>usb 1-1: Product: U3 Cruzer Micro
<6>usb 1-1: Manufacturer: SanDisk
<6>usb 1-1: SerialNumber: 0572710F0A803B8A
<7>usb 1-1: uevent
<7>usb 1-1: usb_probe_device
[B][COLOR="Red"]<6>usb 1-1: rejected 1 configuration due to insufficient available bus power[/COLOR][/B]
<4>usb 1-1: no configuration chosen from 1 choice
If you see it that means you need to connect an external power source ( hub for example )
Re-Mapping Input Buttons/Keys​​
Let's say you are using a full keyboard with Multimedia/Function keys or some kind of an HID device with buttons
And you want to map/re-map specific keys to do other functions in the system such as controlling volume , play/pause , go to home etc..
This is how you do it
Install KeyEvent Display
Connect your usb input device
Press the key you want to re-map and look for its scancode ( key code )
Here you can see I pressed FN+Print Screen keys on my logitech keyboard , and found out the their scancode is 127
Open your favorite file browser ( I use Root Explorer )
Navigate to /system/usr/keylayout
backup Generic.kl file!
Edit Generic.kl , look for the keycode you found and change it's command
My original layout :
As you can see it's mapped as a menu key
Now let's say for example I wanted this combination to trigger default music app , all I need is to change the highlighted line to
Code:
key 127 MUSIC
If you see '#' in the start of the line , delete it to make the key active
If your keycode doesn't exist - you can add it in a new line ( make sure it doesn't exist before you create a new line )
Save and Reboot! ( you must reboot for changes to take effect )
Since we are changing Generic.kl , almost every input device that is connected or present on the nook will be effected by the change
If at any step you find the hardware keys / keyboard not working properly - restore to your backup and reboot.
If you have more than 1 device with the same keycode and you need them to perform different actions you will have to create a specific key layout
More info can be found @ Key Layout Files
NOTE : This was tested on CM9 , I'm not sure this works on CM7 as well ( although probably not as generic.kl was introduced in HC )
Controlling USB Host & External VBus via Tasker​​
Install "Locale Execute" plug-in from the Market
In Tasker open "Tasks" and make a new one (e.g. "USB Host ON")
Category: Plugin Action: Execute
Give it a name on the label and push the edit button
Insert the command
Code:
@! echo host > /sys/devices/platform/musb_hdrc/mode
Apply
You can now test it , or use it in a profile of your choice.
Superuser App will ask for permission for *every single new command* you use in Locale Execute. No workaround.
Use these commands to control usb host & external vbus state
Code:
[B]@! echo host > /sys/devices/platform/musb_hdrc/mode[/B] - usb host ON
[B]@! echo peripheral > /sys/devices/platform/musb_hdrc/mode[/B] - usb host OFF
[B]@! echo external > /sys/devices/platform/i2c_omap.1/i2c-1/1-0048/twl4030_usb/vbussrc[/B] - external vbus ON
[B]@! echo internal > /sys/devices/platform/i2c_omap.1/i2c-1/1-0048/twl4030_usb/vbussrc[/B] - external vbus OFF
Control App Development​​Nook Tweaks : Source
Nook-Color-usbhost-switcher ( verygreen's old app ) : Source
My Focus​​
GPS
Audio Input
DVB-T
Home-Screen Widget
Guess I'll grab a spot just for fun.
Has anyone managed to get the Xbox 360 wired controller working?? If so, what would I need to do to make it work? I'm using CM9
Dj-Gutz said:
[*]Game Controllers
CM9 users try USB/BT Joystick Center
Click to expand...
Click to collapse
Should work.. give it a try
I haven bought that app yet because once I plug in the controller, I see that the lights turn on but then go off and the controller Buttons won't work... am i missing anything??
Yeah probably just the keylayout , the app will just make it easier I don't see why not give it a try , you can refund if it doesn't work
Or you can find a cracked version and if it works buy the app
If you want a "free" way use KeynrTracker.apk from this Thread
see if you can capture the key codes of the buttons
I just tried it and the same... it lights but after half a second it just turns off... will it need external power?? I checked behind the controller and it says 5v - 400mA
bassrebel said:
I just tried it and the same... it lights but after half a second it just turns off... will it need external power?? I checked behind the controller and it says 5v - 400mA
Click to expand...
Click to collapse
Almost certainly will require external power. 400mA > 100 mA. Standard USB ports can source up to 500 mA so there are going to be a LOT of USB devices that don't work without external power on the NOOK.
I went ahead and bought the 7 port USB hub that OP is using... argh I'll have to wait two more weeks for that :/
Hacked this together from stuff I had on hand. Made gender changer from two travel usb kits for the female ends and the left over usb cable is soldered to the 5v+ and ground wires and connected to stock nook charger.
I can get the nook to charge or connect to devices like mouse or phone but not charge and connect at the same time. original goal was to use a mouse and charge simultaneously but for some reason I cant get it to work.
Also I can transfer files back and forth between nook and phone. Would like to be able to usb tether internet from phone to nook but doubt that is possible.
I don't remember if I ever tried charging without using a hub
can you try a powered hub with upstream port?
about usb tethering it might be possible , take a look at this
Tether Android Phone (Desire) to Android Tablet (Iconia A500) via USB Cable
Dj-Gutz said:
I don't remember if I ever tried charging without using a hub
can you try a powered hub with upstream port?
about usb tethering it might be possible , take a look at this
Tether Android Phone (Desire) to Android Tablet (Iconia A500) via USB Cable
Click to expand...
Click to collapse
Bought a powered hub and tried on the upstream ports, can get it to charge but not connect to mouse. I need to mess with it more, its kinda tricky to figure out what works.
Thanks for the link! lots of good info but alot of that is beyond me, I guess now is a good time to learn
---------- Post added 2nd February 2012 at 12:26 AM ---------- Previous post was 1st February 2012 at 11:50 PM ----------
USB Host Controller app- http://forum.xda-developers.com/showthread.php?t=1468531
Shows info about what is connected and logs, I haven't tried using it to mount anything.
Thread UPDATED
Post 1 & 2 - Minor updates
Post 3 -
LOG Reading & Diagnosing
How To Diagnose Power Requirements ( 100mA limit )
Controlling USB Host & External VBus via Tasker
Re-Mapping Input Buttons/Keys
Confirmed: Xbox 360 wired controller does work with the nook color, it feels beautiful playing arkham city and assassins creeds revelations here
---------- Post added at 09:43 AM ---------- Previous post was at 09:37 AM ----------
just to add, I'm on cm9
This cable would work with it right? http://www.amazon.com/gp/product/B005OOJPKS/ref=oh_o00_s00_i01_details
I can't see a reason why not , but I haven't tested it myself
Dj-Gutz said:
I can't see a reason why not , but I haven't tested it myself
Click to expand...
Click to collapse
Ok I tried it and plugged a flash drive into it. It show'd it as plugged in but I couldn't do anything with it....
CM9?
use drive mount or stickmount as specified on post 2

[DEV] Debian GNU/Linux (testing) for Galaxy Note i717

Now that I've ported the Kexecboot bootloader, I'm moving on to my ultimate goal of getting a GNU/Linux desktop distribution running on the Note. My distro of choice for ARM these days is Debian, because it works well both in a chroot on Android as well as natively booted on its own. With kexecboot, you can boot kernels off of the external SD card or even off of USB drives, so you can have Debian and Android installed simultaneously. I'm booting Debian off of my external SD, a 16GB Sandisk class 10.
TO-DO LIST:
* Creating rootfs [DONE] - Use debootstrap to create a minimal armhf rootfs of Debian testing
* Compile kernel [DONE] - Using the CM11 kernel as a base, compile a kernel with features necessary for Debian
* Booting [DONE] - Boot a kernel that loads the Debian root filesystem natively
* USB OTG [DONE] - Once booted, use USB keyboard and mouse to interact with the device
* WiFi Networking [DONE] - Automatically load the WiFi driver and connect to a wireless network at boot, enabling remote access
* Basic Video [DONE] - Load an X server to display graphical applications on the display
* 3D Acceleration [WIP] - Use the Freedreno driver to accelerate GLES and GL 3D applications
* Screen rotation [TODO] - Figure out if Freedreno can rotate the screen to landscape mode
* Video Acceleration [TODO] - Use the MSM video decoder to accelerate video playback
* Audio [WIP] - Write an ALSA UCM configuration file to map the correct mixer channels to get sound out of internal speaker and/or headphones
* Touch and Pen [WIP] - Pen input seems to work, but touchscreen isn't being detected by X
* Bluetooth [WIP] - I can initialize and scan, but was unable to pair and hold a connection. Useful for keyboard and mouse while charging/externally powering device.
* Mobile Radio [TODO] - Make use of the mobile connection for data, possibly calls if anyone wants to take a shot. I'm not going to work on this.
* Package for release [TODO] - Build a fresh rootfs free of my development changes, copy any necessary stuff, package, and upload.
I plan on developing this simultaneously for the Note i717, Note 3 (N900T), and HP TouchPad as I have all three of these and I should be able to get supported kernels working for all three as well. I'll post pictures as I go, right now I'm still mostly working from an SSH shell over WiFi.
https://www.youtube.com/watch?v=qtb-TSGumNo
EDIT: Got the same patch applied to the TouchPad and it too is running these programs as shown in the video. Unfortunately the backlight doesn't come on on the TouchPad so it's hard to see anything.
EDIT 2: Colors sorta fixed: http://i.imgur.com/1kmKDOw.jpg I fixed the main picture but the 3D rendered video is now messed up with red and blue swapped.
CalcProgrammer1[/QUOTE said:
That sounds way to kool.
If I could get over my "terminal" fear I'd give you a hand, but as reading code I have no clue.
I couldn't even get linuxonandroid nor deploylinux to work and they both had a GUI.
That idea to use a REAL OS on the plablet is as great as using a REAL OS on a computer.
I do hope you succeed especially if the phone works also. LOL!
Thanks. :good:
Click to expand...
Click to collapse
What keyboard/trackpad combo are you using?

[WIP] Enhanced kernel for CherryTrail devices (tablets/convertibles) - 4.14

Hi, there!
Now that we can use Project Croissant to get ChromeOS running or non-Chromebook devices, what is missing is a better kernel for improved compatibility.
Thanks to the threads by @nabil2000 I was able to successfully build a chromeos-4.14 kernel that boots on my test device (Lenovo MIIX320-10ICR - Z8350 processor) using a CONFIG from FydeOS 5.31 with most hardware enabled (WiFi, Bluetooth, sound), but it has the same issue as latest ATB builds: it freezes after a while. This doesn't happen with latest FydeOS or CloudReady builds (CloudReady bought FlintOS so I guess they are using some of their code now), so my guess if that their kernels have some patches that aren't included in the Chromium git. FydeOS is open-sourced only for RaspberryPi and TinkerBoard, there are no sources available for the PC or VMWare versions (PC version is not open source as many say, so be aware).
I already have some ideas to make the trackpad as well as the battery meter and brightness work, but it is not useful if the kernel isn't as stable as FydeOS (virtually no freezes or crashes once booted). I have already checked, and the issue is not the intel_idle.max_cstate issue that plagued most BayTrail/CherryTrail devices in the past (using value 1 doesn't change anything).
So any ideas how to get FydeOS kernel source? Patches to make the current chromeos-4.14 kernel stable?
UPDATE: As @nabil2000 reported, it seems that FydeOS is not willing to release their kernel source. But it is possible to get kernel config from v5.31 using configs.ko module, which is missing in the next version (v6.0). Using FydeOS v5.31 as base it is possible to build a very stable kernel for CherryTrail devices.
Thanks
Installation v71/v72 - kernel 4.14
FydeOS has the best support for the MIIX320-10ICR, with some caveats:
It will boot to a black screen, but you just need to wait until it finishes loading the hit Ctrl+Alt+Fn+F2, the screen will blink and then hit Ctrl+Alt+Fn+F1 to go back to ChromeOS (for some reason, the developer shell is blank in 5.31 but it seems to work fine on 6.0). Use Ctrl+Shift+Fn+F3 to rotate the screen manually;
WiFi works out of the box, Bluetooth is detected but audio does not work (Chromium misses a library for audio over Bluetooth);
Sound works too, but you need to install some UCM files (more about this later);
Camera does not work, and the trackpad works very well, with gestures, but does NOT click (tap to click work with a custom conf file, see below - the trackpad actually sends two events when clicking the physical button, as some Windows devices do, and this doesn't work with cmt driver).
First I tried to build the ChromeOS file using the chromium.img from FydeOS v5.31. It booted fine and I was amazed to see the ChromeOS logo and Google enrollment, but PlayStore setup didn't finish (low space?) and there was no way to install it to another driver: many GPT errors and the installer failed...
Then I tried to do everything on place:
Booted to FydeOS on USB drive;
As I could not get to the dev shell in v5.31, I had to login then use crosh and shell, then installed it on a second external disk (120GB SATA on USB, /dev/sdb):
PS: your device may be a different one, check the correct device name using "lsblk" or "fdisk -l" and be aware that this installation erases the whole disk!
Code:
sudo chromeos-install --dst /dev/sdb
After installing, I have used option 2A from GitHub page (very detailed, thanks!) with the script, soraka (or pyro) and caroline recoveries (both versions 11151.113 = v71) on another disk:
PS: FydOS v5.31 kernel does not have support to VTPM_PROXY, while v6.0 does, it means you cannot use swtpm.jar with FydeOS v5.31 and chromefy. For nocturne or Android Pie ARC, you must use FydeOS v6.0, otherwise ARC won't work.
Code:
sudo bash ./chromefy.sh /dev/sdb recovery.bin caroline.bin
Answered YES to use the local installation, YES to resize partitions and NO in the end to keep SELinux as enforced (it may work fine if you keep it to enforced with nocturne recovery tho when using FydeOS v6.0);
Rebooted using the final installation, logged in and everything seemed fine, but then Play Store would not show installed apps even after a reboot, so I tried a powerwash and it seems it fixed the issue, now it seems to be working fine.
Original post: https://forum.xda-developers.com/showpost.php?p=78891386&postcount=729
Post installation fixes v71/v72 - kernel 4.14
1. Sound
You need to install UCM files using linuxium-install-UCM-files.sh script after remounting rootfs as RW.
Code:
sudo remount -o rw,remount /
sudo bash ./linuxium-install-UCM-files.sh
2. Headphone jack
You must send this quirk to the rt5645 module when loading it, so while rootfs is still RW, as root add a file named "miix320.conf" to /etc/modprobe.d with this line:
Code:
options snd_soc_rt5645 quirk=0x1030
PS: if you have used the correct UCM files then the audio should change between speakers and headphones, but not mic. To enable internal mic:
Code:
sudo alsaucm -c chtrt5645 set _verb HiFi set _enadev DMic
and to enable mic from headset:
Code:
sudo alsaucm -c chtrt5645 set _verb HiFi set _enadev HSMic
3. Tap to click with trackpad
While rootfs is still RW, as root add a file named "50-mixx320.conf" to /etc/gestures:
Code:
Section "InputClass"
Identifier "MIIX320 conf"
MatchUSBID "048d:*"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Option "Tap Minimum Pressure" "1"
EndSection
PS: for this to work, make sure "tap-to-click" is enabled in trackpad section of system Settings. If you have another device, use "dmesg | grep input:" with "lsusb" to find your device USB id instead of "048d:*".
Still needing fixes:
- chrome://flags is blank for some reason, so any special flags should be added manually to "chrome_dev.conf" instead;
- Trackpad physical button click;
- Brightness control;
- Battery meter;
- Rotation;
- Automatic change between tablet/desktop modes;
- Cameras (hardly they will work as they rely on ATOMISP, which was abandoned and does not work even on newest kernels).
Original post: https://forum.xda-developers.com/showpost.php?p=78978577&postcount=757
reserved
Good news! With chromeos-4.19 it is possible to fix most problems:
- trackpad button click;
- battery meter;
- accelerometer sensor module is loaded, it needs to be tested;
- possibly brightness can be fixed too.
Using FydeOS v5.31 kernel config as base I could get a very stable build, but it broke loading ARC somehow, and I have no idea why. Maybe it's a permissions/signatures issue? I will try to run chromefy again, with the new kernel already in place to see if it works.
lfom said:
Good news! With chrome-4.19 it is possible to fix most problems:
- trackpad button click;
- battery meter;
- accelerometer sensor module is loaded, it needs to be tested;
- possibly brightness can be fixed too.
Using FydeOS v5.31 kernel config as base I could get a very stable build, but it broke loading ARC somehow, and I have no idea why. Maybe it's a permissions/signatures issue? I will try to run chromefy again, with the new kernel already in place to see if it works.
Click to expand...
Click to collapse
Nice to see you do some kernel work.
Care to share link to Chromium OS Kernel 4.19 source code, I would like to get a crack at using menuconfig to add drivers..
nabil2000 said:
Nice to see you do some kernel work.
Care to share link to Chromium OS Kernel 4.19 source code, I would like to get a crack at using menuconfig to add drivers..
Click to expand...
Click to collapse
Sure. I should post a full guide as soon as I get ARC working without issues, the new kernel is awesome.
I have used the same base procedure as you did:
https://github.com/dnschneid/crouton/wiki/Build-chrome-os-kernel-and-kernel-modules
I then cloned (duplicated) the kernel source (chromeos-4.14) so I could then checkout the newer version while keeping the old one:
Code:
$ cd ~/kernel_new
$ git reset --hard origin/chromeos-4.19
PS: I am building on Xenial (not chroot), so I had to install libssl-dev in order to successfully build it.
lfom said:
Sure. I should post a full guide as soon as I get ARC working without issues, the new kernel is awesome.
I have used the same base procedure as you did:
https://github.com/dnschneid/crouton/wiki/Build-chrome-os-kernel-and-kernel-modules
I then cloned (duplicated) the kernel source (chromeos-4.14) so I could then checkout the newer version while keeping the old one:
Code:
$ cd ~/kernel_new
$ git reset --hard origin/chromeos-4.19
PS: I am building on Xenial (not chroot), so I had to install libssl-devel in order to successfully build it.
Click to expand...
Click to collapse
I am a lazy billy - thanks - I like copy & paste, & think as little as I can afford
Could you help me patching it on my GPD pocket?
it uses cherry tail
https://forum.xda-developers.com/ha...gpd-pocket-t3928828/post79496417#post79496417
thank you

Android 8.1 changing kernel configuration after compiling?

At the moment, i am experimenting with an chinese Android Headunit which is based on Android 8.1. I try to enable USB-Audio, i rooted the device and copied several files which do the audio rooting and configuration:
- audio_policy_configuration.xml
- primary_audio_policy_configuration.xml
- usb_audio_policy_configuration.xml
- audio_policy_volumes.xml
I had a look at them and everything looks fine, USB-Audio should work. But it doesn´t. Der USB-DAC is recognised by the headunit and also powered, but the Audio is not re-rooted.
So it might be possible that USB-Audio is not enabled in the kernel: https://source.android.com/devices/architecture/kernel/config
CONFIG_SND_USB=y
CONFIG_SND_USB_AUDIO=y
# CONFIG_USB_AUDIO is for a peripheral mode (gadget) driver
Is it possible to change this, or is it a must to recompile the whole kernel?
update pls!

Categories

Resources