[Q] Android linux and kernel development - Nexus 7 (2013) Q&A

I have a list of things that I want to do for my flo, and I have no clue where to start.I actually don't even know if this is the correct forum to ask this in, but here goes.
1. I want to be able to use an external WiFi adapter android, and looped Linux images, how can I do this? From everything I've read it seems it starts with including drivers in your kernel for the WiFi adapter. How do I do this? I've read around 10 different tutorials and each are different.
2. I can mount a Linux image inside of android and run it, that's cool, but slow and ineffective. I want to boot into Linux and kiss android goodbye Why do we have to use vnc to connect to the GUI instead of just starting one up? Is it simply because a lack of drivers that connect the GUI to the hardware?. I know that there isn't a version of Linux that will boot on the flo, so why can't I make one? My problem is I don't know where to start. What part of android or Linux has he be coded/compiled differently to work. There are many images that are based on the arm instructions, why is it not possible to just put extract that image and mount it to boot? I believe that a kernel is somewhat of a bridge between the software and firmware, but I don't know what has to change in any of it. I would like to start with a basic non-gui flavor of Linux, then worry about gnome or KDE later.
Any help in the right direction is greatly appreciated. I taught myself JavaScript and HTML back in the 90's just so I could start my own website and say I built it myself. I can learn, I just don't know what I need to learn. Everyone has to start somewhere, I say go big or go home.

Bump
Sent from my Nexus 7 using xda app-developers app

Related

Can we natively run Ubuntu on the Desire?

Hello,
I'm a recent Android user and I'm fascinated by this phone, much over iPhone/iOS.
I'm an old Linux dog and I was wondering about the Desire running Linux.
I've seen recently somebody started Ubuntu on the HD2 by modifying the bootloader (haret), we have the Linux kernel booting natively on the Desire, so instead of an Android image can't we just boot a linux image?
The vnc running solution is not quite what I have in mind. I want to run Ubuntu natively on the hardware so I have a few questions:
-does the desire kernel support KMS? or should I try to compile an xorg driver for the snapdragon video chipset?
-do the other drivers from the kernel can be accessed as simply as in linux? I mean in linux every driver I need is compiled in the kernel, so the desire kernel should already have all the necessary drivers in it, for wifi, touchscreen, etc, just for the sistem to use them. So can a linux use them like android does?
-r/w access I think can be bypassed as long as we boot from the sd card, I've seen the solution on this forum, correct me if I'm wrong.
-I've developed a few branch distros based on Ubuntu for my work, but all of them are x86/x64 based, so it's just package customisations, here ve have a non x86 CPU so it must all be cross-compiled, i know there are arm repos for Ubuntu, are they snapdragon compatible?
I know this area is Android development and not Ubuntu development but here are all the guys that really know something about the inners of the system.
Please pardon my English, I did my best.
afaik no one has been able to get debian running on desire.
I'd start with that if I were you.
I tried to get Debian to boot on the Desire and it turned to be impossible to boot. If you can get Debian to boot than naturally Ubuntu would boot without any issues.
I was using the VNC method though.
Well,
you can't install Ubuntu right away...
but you can make a fairly usable Linux modifying some of the available ROMs around.
The most difficulty thing is the X11 system, I don't know if there are any driver...
if android use Framebuffer, maybe you can run X11 over FB.
the rest all can be arranged... removing dalvik & core android... add basic gnome stuff, &c...
if you find some solution for dual boot and want to make a "normal" linux for HTC Desire, I can help you in this for I don't want to be flashing a custom image, then my normal "daily-use" android every now and then
It would be brilliant if we could get Maemo running on the Desire. Considering it is after all just Debian linux it should not be an impossible task. The only difficulty is drivers but that will come with time.
These days I'm busy with my exams,
I started the thread earlier than I can get to work for data/ideas collecting.
Now for what I plan on doing:
-boot a kernel and load the initial files from the sd card instead of internal flash:
h**p://forum.xda-developers.com/showthread.php?t=689911
-put a simple init script to show "hello world" and drop you to a bash prompt,
from there is Linux installing/debugging
The drivers should be provided by the kernel: /dev/eth0 or /dev/wifi0 for wifi, /dev/fb0 framebuffer, etc etc etc.

[PROGRAM] Heimdall - Open-Source Cross-Platform Flashing Suite (1.4.0 Now Available)

What is Heimdall?
Heimdall is a cross-platform open-source tool suite used to flash ROMs onto Samsung Galaxy S devices.
How does it work?
Heimdall uses the same protocol as Odin to interact with a device in download mode. USB communication in Heimdall is handled by the popular open-source USB library, libusb-1.0.
Why “Heimdall”?
The flashing software Odin is named after the king of gods in Norse mythology. Loke, the software component on the Galaxy S that provides functionality to flash, may also to be named after an important character in Norse mythology, often translated as Loki. As such I have named my flashing software Heimdall, after the Norse god, and guardian of the Bifrost Bridge.
What platforms does Heimdall run on?
Linux, OS X and Windows (XP, Vista, 7 etc.)
Why use Heimdall when we can use Odin?
Odin is generally unreliable and only runs on Windows systems. Furthermore, Odin is leaked Samsung software that is not freely available or well understood by the community.
Is Heimdall safe?
No matter what method you chose, flashing firmware onto your phone has a lot of potential for disaster. We have tested Heimdall with a variety of phones flashing several different firmware versions resulting in a 100% success rate. As such we believe that Heimdall is generally reliable. However keep in mind, just like any flashing software, Heimdall has the potential to brick your phone if not used correctly.
How do Galaxy S phones get bricked when flashing?
Besides the inherent risks like power outs, accidental removal of the USB cable etc. The Galaxy S appears to be running extremely unreliable USB control software.
A failure to flash does not automatically equate to a bricked phone. However if you're extremely unlucky and the flash fails whilst transferring the primary boot-loader, secondary boot-loader or params.lfs (all quite small) than you've got yourself a paper weight that you're hoping Samsung will replace.
Please be extremely careful mixing files from different firmware releases. Don't do so unless you're certain it will work!
What Galaxy S variants has Heimdall been tested with?
We’ve tested Heimdall with a Galaxy S GT-I9000 (8 GB) from the United Kingdom and Galaxy S GT-I9000 (16 GB) from Australia. We don’t personally have access to any other devices to test with, however users have confirmed Heimdall functions correctly with the AT&T Captivate, Bell Vibrant, Telstra GT-I9000T, Epic 4G and the Galaxy Tab.
Enough talk, where can we get it?
The latest release is available here. Please read the instructions and README files included in the archives.
I love you, man. Will you have my baby?
No, but I will very gladly accept donations. If you appreciate my work and would like to support future development you can make a donation here. If you think you have something else to offer, then feel free to shoot me a PM or contact me via the contact form on the Glass Echidna website.
Sounds interesting.. Certainly something to watch in the future..
for linux? YES! i love u
Kudos for you! wow it looks impressive
A question though....
the instructions seems to be very... Windows oriented.
What about Linux or MAC OS?
Do we need to run it with WINE, or just run it as a DOS executable?
same question for MAC OS, you know people in MAC are so used to plug and play, If i were a MAC user i'll just plug my phone in, and expect to run Heimdall by click on it and have it come up.
However at the moment it seems to require Windows emulation for it to run.
Thanks guys.
Also, I forgot to add in the README that you also need the same PIT file as the one that is installed on your device, probably version 512.
I can see by my website's bandwidth usage that people have been downloading the alpha. Has anyone tested it yet?
AllGamer said:
the instructions seems to be very... Windows oriented.
What about Linux or MAC OS?
Do we need to run it with WINE, or just run it as a DOS executable?
same question for MAC OS, you know people in MAC are so used to plug and play, If i were a MAC user i'll just plug my phone in, and expect to run Heimdall by click on it and have it come up.
However at the moment it seems to require Windows emulation for it to run.
Click to expand...
Click to collapse
The alpha release is just the Windows binaries. Whilst the source code certainly compiles for OS X and Linux I want to make sure that everything is running fine on Windows first, with Odin nearby if need be.
Benjamin Dobell said:
The alpha release is just the Windows binaries. Whilst the source code certainly compiles for OS X and Linux I want to make sure that everything is running fine on Windows first, with Odin nearby if need be.
Click to expand...
Click to collapse
ahh, Good to know, i was worried there for a second
I can't test it yet, my phone hasn't come back from repair.
i'll help test as soon as my phone is back.
go public linux binary too, else ppl will use odin instead your and you wont receive much feeback as much as if you release linux binaries.
husq510 said:
go public linux binary too, else ppl will use odin instead your and you wont receive much feeback as much as if you release linux binaries.
Click to expand...
Click to collapse
I know it's a pain that Linux users have to wait (as usual). As much as I do want feedback, I don't want feedback from Linux users saying that the flash failed for some reason and that they don't have access to Windows/Odin.
I'm not actually sure if I'll ever release Linux binaries as binary compatibility across multiple Linux distributions is problematic. Of course once I've confirmed everything is working on other peoples' devices, what phone models are supported etc. then I will release the source code with instructions to compile for all supported platforms.
EDIT: Has Heimdall really been downloaded ~45 and no-one has bothered to install and run it?
I'm having trouble with the following step:
4. Under Universal Serial Bus Controllers right click on the Samsung composite driver and chose Properties.
I don't have such device in device manager.
Windows 7 x86
very cool stuff, thank you a lot!!!
first of all. i am a linux only user and had to run odin on a virtual box which is a pain in the ass but i fully understand your argument to first only release a windoze version to get it out of alpha state.
now, while i know that it's also possible to brick the device with odin and i have flashed several times now. i am a little afraid to try heimdall (to be honest). did you implement the additional security measures (delay+resend) after you bricked your device or before? you wrote that heimdall supports only full firmware flashes atm. it would be cool if we could also use it to just flash a kernel. any plans to implement this?
thanks!
mike.sw said:
I'm having trouble with the following step:
4. Under Universal Serial Bus Controllers right click on the Samsung composite driver and chose Properties.
I don't have such device in device manager.
Windows 7 x86
Click to expand...
Click to collapse
Is your device plugged in to your PC and in download mode?
I suppose you would also have needed to install Kies at some stage. However, Odin makes use of this driver so if Odin works it should be there.
Oh god, I'm an idiot.
Connected phone to wall charger, and was sure it's my USB cable.... *facepalm*
jodue said:
very cool stuff, thank you a lot!!!
first of all. i am a linux only user and had to run odin on a virtual box which is a pain in the ass but i fully understand your argument to first only release a windoze version to get it out of alpha state.
now, while i know that it's also possible to brick the device with odin and i have flashed several times now. i am a little afraid to try heimdall (to be honest). did you implement the additional security measures (delay+resend) after you bricked your device or before? you wrote that heimdall supports only full firmware flashes atm. it would be cool if we could also use it to just flash a kernel. any plans to implement this?
thanks!
Click to expand...
Click to collapse
I implemented the delay and resend after my phone was bricked.
I think I was ludicrously unlucky in how my phone got bricked. Given that the primary boot loader is only 256 KiBs whilst the factory filesystem is over 250 MiB (plus other files). The chance of failing whilst the primary or secondary boot loader is being sent is quite slim.
When I was debugging Heimdall I would often intentionally stop at other points during the flash. After resetting it would just result in the connect phone to PC image being displayed (instead of booting). Then I could just restore with Odin (after several attempts) and then further restore using ClockworkMod backups.
However, by no means do I want to pressure anyone into running the software, especially whilst it's only an alpha release.
EDIT: I just realised I didn't answer your question about just kernel flashing. Yes, I definitely intend to implement functionality to only flash singular components at a time. I'd also like to implement functionality to dump files if possible. However I won't know if I can do that until I get my phone repaired or get my hands on another Galaxy S device.
Hey again
I'm looking the flash.bat and see it need two files that my firmware (I9000JPJG8) don't have in zip/tar file:
-boot boot.bin -sbl Sbl.bin
How heimdall will handle it? Is it safe to go on?
mike.sw said:
Hey again
I'm looking the flash.bat and see it need two files that my firmware (I9000JPJG8) don't have in zip/tar file:
-boot boot.bin -sbl Sbl.bin
How heimdall will handle it? Is it safe to go on?
Click to expand...
Click to collapse
Heimdall won't let you continue as the first thing it does (before connecting to your phone) is check that the specified files exist. Those two files are the primary boot loader and the secondary boot loader. I'm a bit surprised they're missing from your firmware. They're usually in the Code tar archive.
You'll have to grab them from somewhere. If you don't want to download more firmware then you can retrieve them from your device. Err, I'll update this post in a minute or two with instructions.
This is one little tricky FW.
The last one I tried was I9000XWJM5 and it had 3 tar files as supposed.
This one just have one tar file, and people who installed it with Odin said to use only the PDA section with the single tar file.
I'm not sure, but it seem to work for them.
BTW in your README I think you should remind for the folks to put the pit file in the dir as well
Also here in WIN7 it didn't let me change the driver as simply as stated in README.
What I had to do is to use the Have Disk option, and point it to the dir. Otherwise it says that Windows already have the correct driver installed.
mike.sw said:
This is one little tricky FW.
The last one I tried was I9000XWJM5 and it had 3 tar files as supposed.
This one just have one tar file, and people who installed it with Odin said to use only the PDA section with the single tar file.
Click to expand...
Click to collapse
If you still have I9000XWJM5 laying around you could give that a go, it is the firmware I use.
If not you can get the boot loaders by copying them first to your sdcard using:
Code:
sudo dd if=/dev/block/bml1 of=/sdcard/boot.bin
sudo dd if=/dev/block/bml4 of=/sdcard/Sbl.bin
Clearly your phone needs to be rooted to use sudo.
EDIT: I need to go to bed now (it's actually well and truly morning here). I'll be on in 5-6 hours if you require any more help. Thanks for going to all this effort so far!
Yea, I'll grab JM5 again just in case the **** hits the fan
Benjamin Dobell said:
I implemented the delay and resend after my phone was bricked.
I think I was ludicrously unlucky in how my phone got bricked. Given that the primary boot loader is only 256 KiBs whilst the factory filesystem is over 250 MiB (plus other files). The chance of failing whilst the primary or secondary boot loader is being sent is quite slim.
When I was debugging Heimdall I would often intentionally stop at other points during the flash. After resetting it would just result in the connect phone to PC image being displayed (instead of booting). Then I could just restore with Odin (after several attempts) and then further restore using ClockworkMod backups.
However, by no means do I want to pressure anyone into running the software, especially whilst it's only an alpha release.
EDIT: I just realised I didn't answer your question about just kernel flashing. Yes, I definitely intend to implement functionality to only flash singular components at a time. I'd also like to implement functionality to dump files if possible. However I won't know if I can do that until I get my phone repaired or get my hands on another Galaxy S device.
Click to expand...
Click to collapse
thank you for the additional information on the process. i think i will give it a shot next time i want to flash a new firmware. donation is on the way!

Native Ubuntu on DInc2

I've done a few different Google searches and checked around, but I can't find any guides or resources on how to get Ubuntu up and running on this phone. If anyone has any ideas or resources that could help me out, that would be really cool. Thanks!
Well, probably what your best bet will be is to set up a VNC client on a remote machine running Ubuntu and remote into it. That would seem the most feasible and plausible solution to me. Here is a link in reference to what I'm talking about.
http://www.androidcentral.com/ubuntu-squeezed-nexus-one-and-sprint-htc-evo-4g
I remember on the OG Dinc, people had Ubuntu images saved on their sd cards that they could open up and load through Terminal Emulator. Since no one has built an image yet, I might just build a Ubuntu image for ARM v7 and post it.
More power to you. Please do. I prefer mint over ubuntu how hard would it be to make a bootable mint image? Id like ro give it a go
Sent from my Incredible 2 3D using xda premium
Parted Magic 6.3
Has any one thought about Parted Magic 6.3?
It can load from USB or CD ROM and run from RAM.
It's Linux based, so the only issue should be the drivers.
When i had my inspire you could actually use rom manager to flash the ubuntu image so everytime you boot into recovery it actually boots you into ubuntu. Wonder if that same image would work for us we have the exact same processor as the inspire
Sent from my ADR6350 using xda premium

[Q] Really nervous about accidentally bricking, so just some cautionary questions...

So I have an Optimus G LS970, added a couple apps, but other than that it's pretty basic. I'm wanting to root this device and eventually add a custom rom on it perhaps, but I've very new to this and don't want to accidentally brick my device.
1) I've been looking for stable linux rooting methods, the only one I've found that looks promising is here, but it's 2 years old. Does anyone know anything about it's stability for android 4.1.2, kernel 3.4.0?
2) In order to transfer files (music, pictures, pdfs/ebooks) to/from my device it needs to be mounted, but I haven't been able to mount it for this (or any other) purpose at all. It shows up as connected (command "lsusb" shows "Bus 002 Device 028: ID 1004:631d LG Electronics, Inc.") but it won't mount. Will this be possible once rooted, or is there some other cause to this?
3) Once rooted, I want to get rid of some of the Preinstalled apps but I'm not sure which will lead to instability and which would be fine to remove, does anyone know where I can check this, or would I just need to list all the apps I don't want on my phone and have you all tell me on an app-by-app basis which is safe to remove?
4) Lastly, when it comes to using alternative app markets, I haven't had much luck. I was trying to test using alt stores with f-droid and nothing showed in the lists, so I don't know if that's a thing with f-droid or my device. Is there anything you need to do to use alt app stores aside from enabling it in the system settings, and installing the app store's .. app?
Thanks in advance!
JustAk said:
So I have an Optimus G LS970, added a couple apps, but other than that it's pretty basic. I'm wanting to root this device and eventually add a custom rom on it perhaps, but I've very new to this and don't want to accidentally brick my device.
1) I've been looking for stable linux rooting methods, the only one I've found that looks promising is here, but it's 2 years old. Does anyone know anything about it's stability for android 4.1.2, kernel 3.4.0?
2) In order to transfer files (music, pictures, pdfs/ebooks) to/from my device it needs to be mounted, but I haven't been able to mount it for this (or any other) purpose at all. It shows up as connected (command "lsusb" shows "Bus 002 Device 028: ID 1004:631d LG Electronics, Inc.") but it won't mount. Will this be possible once rooted, or is there some other cause to this?
3) Once rooted, I want to get rid of some of the Preinstalled apps but I'm not sure which will lead to instability and which would be fine to remove, does anyone know where I can check this, or would I just need to list all the apps I don't want on my phone and have you all tell me on an app-by-app basis which is safe to remove?
4) Lastly, when it comes to using alternative app markets, I haven't had much luck. I was trying to test using alt stores with f-droid and nothing showed in the lists, so I don't know if that's a thing with f-droid or my device. Is there anything you need to do to use alt app stores aside from enabling it in the system settings, and installing the app store's .. app?
Thanks in advance!
Click to expand...
Click to collapse
All of your questions are answered here. http://forum.xda-developers.com/showthread.php?t=2050582
And the FAQ.
1. See above
2. Install the LG drivers, link is in that OP, then tick MPT. That should transfer your files. If not, you may need to uninstall, then reinstall them.
3. DO NOT remove any apps unless you unlock! Info is in that link also.
4. I have no idea on that one.
Sent from my LG-LS970 using XDA Premium 4 mobile app
engine95 said:
All of your questions are answered here. http://forum.xda-developers.com/showthread.php?t=2050582
And the FAQ.
1. See above
2. Install the LG drivers, link is in that OP, then tick MPT. That should transfer your files. If not, you may need to uninstall, then reinstall them.
3. DO NOT remove any apps unless you unlock! Info is in that link also.
4. I have no idea on that one.
Sent from my LG-LS970 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
1) *EDIT* [Doesn't say anything about linux rooting, how am I supposed to install a windows drive on a linux system?] I overlooked the linux mention. Thanks! Can't find something. How/where do I find adb?
2) Ignore, see 1) [Again, how am I supposed to install the Windows driver in linux?]
3) Thanks for that. I didn't know the importance of unlocking the bootloader.
JustAk said:
1) *EDIT* [Doesn't say anything about linux rooting, how am I supposed to install a windows drive on a linux system?] I overlooked the linux mention. Thanks! Can't find something. How/where do I find adb?
2) Ignore, see 1) [Again, how am I supposed to install the Windows driver in linux?]
3) Thanks for that. I didn't know the importance of unlocking the bootloader.
Click to expand...
Click to collapse
Sorry bout that. Linux drivers are native, so they're anyway installed.
You use either fiddy629 root for Linux, or Framaroot.
Sent from my LG-LS970 using XDA Premium 4 mobile app
---------- Post added at 10:53 PM ---------- Previous post was at 10:51 PM ----------
Edit. You don't have to have ADB, but there's alot of info if you google it.
Sent from my LG-LS970 using XDA Premium 4 mobile app
engine95 said:
Sorry bout that. Linux drivers are native, so they're anyway installed.
You use either fiddy629 root for Linux, or Framaroot.
Sent from my LG-LS970 using XDA Premium 4 mobile app
---------- Post added at 10:53 PM ---------- Previous post was at 10:51 PM ----------
Edit. You don't have to have ADB, but there's alot of info if you google it.
Sent from my LG-LS970 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I tried fiddy619's thing here using the universal linux one. It asked me for ADB. Found that debian has "android-tools-adb" so I installed that, now there's this:
Code:
Using: /usr/bin/adb
Waiting for device... Connect your LGOG via USB in Charge Only Mode
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
Device found
Beginning Root Process
Disconnect your phone from USB
Disable USB Debugging
Enable USB Debugging
Press enter to Continue
I can't tell if this is telling me to do these things, or if it's saying it already did them. Any idea?
JustAk said:
I tried fiddy619's thing here using the universal linux one. It asked me for ADB. Found that debian has "android-tools-adb" so I installed that, now there's this:
Code:
Using: /usr/bin/adb
Waiting for device... Connect your LGOG via USB in Charge Only Mode
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
Device found
Beginning Root Process
Disconnect your phone from USB
Disable USB Debugging
Enable USB Debugging
Press enter to Continue
I can't tell if this is telling me to do these things, or if it's saying it already did them. Any idea?
Click to expand...
Click to collapse
Nevermind that, I got it working just fine. took o nly a couple seconds and it was done. Now I have "SuperSU" in my apps menu, so I'm guessing it worked.
JustAk said:
Nevermind that, I got it working just fine. took o nly a couple seconds and it was done. Now I have "SuperSU" in my apps menu, so I'm guessing it worked.
Click to expand...
Click to collapse
Awesome, glad to hear it worked! Which if you have SuperSU it should have. I too only use linux(Linux Mint specifically) and while most guides are made for Windows, things are usually easier from the linux terminal because we don't need to download drivers, android uses a modified linux kernel, etc. Welcome to the forums, glad to have you here! All the info you need is here and plenty of people will be glad to help(as engine has already demonstrated). As for the alternative app markets, Ive read plenty and tested a few but really, nothing comes close to the play store. On our phone Banks Gapps is the standard google apps package to install if you are flashing a custom rom. Just make sure you get the correct version of gapps for the version of android your rom is based on.
HPTesla said:
Awesome, glad to hear it worked! Which if you have SuperSU it should have. I too only use linux(Linux Mint specifically) and while most guides are made for Windows, things are usually easier from the linux terminal because we don't need to download drivers, android uses a modified linux kernel, etc. Welcome to the forums, glad to have you here! All the info you need is here and plenty of people will be glad to help(as engine has already demonstrated). As for the alternative app markets, Ive read plenty and tested a few but really, nothing comes close to the play store. On our phone Banks Gapps is the standard google apps package to install if you are flashing a custom rom. Just make sure you get the correct version of gapps for the version of android your rom is based on.
Click to expand...
Click to collapse
Ah. brilliant, thanks!
The only problem I'm now having is getting the phone to connect to my computer so I can transfer music or ebooks or whathaveyou to/from my device. I've gone through the arch wiki for android (even though I'm running debian) and this forum postt but I keep getting an error:
Code:
$ android-connect
Listing raw device(s)
Device 0 (VID=1004 and PID=61f9) is a LG Electronics Inc. V909 G-Slate.
Found 1 device(s):
LG Electronics Inc.: V909 G-Slate (1004:61f9) @ bus 2, dev 8
Attempting to connect device
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
Android device detected, assigning default bug flags
Error 1: Get Storage information failed.
Error 2: PTP Layer error 02fe: get_handles_recursively(): could not get object handles.
Error 2: (Look this up in ptp.h for an explanation.)
Listing File Information on Device with name: (NULL)
LIBMTP_Get_Storage() failed:-1
I can start a separate thread regarding this issue, but if you have any insight, figured it couldn't hurt to ask real quick.
JustAk said:
Ah. brilliant, thanks!
The only problem I'm now having is getting the phone to connect to my computer so I can transfer music or ebooks or whathaveyou to/from my device. I've gone through the arch wiki for android (even though I'm running debian) and this forum postt but I keep getting an error:
Code:
$ android-connect
Listing raw device(s)
Device 0 (VID=1004 and PID=61f9) is a LG Electronics Inc. V909 G-Slate.
Found 1 device(s):
LG Electronics Inc.: V909 G-Slate (1004:61f9) @ bus 2, dev 8
Attempting to connect device
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
Android device detected, assigning default bug flags
Error 1: Get Storage information failed.
Error 2: PTP Layer error 02fe: get_handles_recursively(): could not get object handles.
Error 2: (Look this up in ptp.h for an explanation.)
Listing File Information on Device with name: (NULL)
LIBMTP_Get_Storage() failed:-1
I can start a separate thread regarding this issue, but if you have any insight, figured it couldn't hurt to ask real quick.
Click to expand...
Click to collapse
This may or may not help, but when I've had issues with Linux hooking up I've had to format my SD. Something gets stuck in there that Linux just didn't like.
Sent from my LG-LS970 using XDA Premium 4 mobile app
JustAk said:
Ah. brilliant, thanks!
The only problem I'm now having is getting the phone to connect to my computer so I can transfer music or ebooks or whathaveyou to/from my device. I've gone through the arch wiki for android (even though I'm running debian) and this forum postt but I keep getting an error:
Code:
$ android-connect
Listing raw device(s)
Device 0 (VID=1004 and PID=61f9) is a LG Electronics Inc. V909 G-Slate.
Found 1 device(s):
LG Electronics Inc.: V909 G-Slate (1004:61f9) @ bus 2, dev 8
Attempting to connect device
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
Android device detected, assigning default bug flags
Error 1: Get Storage information failed.
Error 2: PTP Layer error 02fe: get_handles_recursively(): could not get object handles.
Error 2: (Look this up in ptp.h for an explanation.)
Listing File Information on Device with name: (NULL)
LIBMTP_Get_Storage() failed:-1
I can start a separate thread regarding this issue, but if you have any insight, figured it couldn't hurt to ask real quick.
Click to expand...
Click to collapse
Are you doing this with the phone turned on and booted into the os? It gives you a PTP error first, make sure the phone is in MTP. At the bottom you also have a LIBMTP error tho. I don't have much experience with debian but from what I understand it is extremely stable but the downside is that it can be a bit out of date at times. Ubuntu and all ubuntu derivatives had a major mtp flaw awhile back but it has since been fixed. Im not sure if it has been fixed in debian. Yes ubuntu is based off of debian, but just like linux mint will add things to the ubuntu base, ubuntu will do the same to the debian base. So LIBMTP MAY be out of date, Im not sure. I know that I have no problem seeing my phone from either the terminal or file browser. Check this out and see if it helps any.
If not you may have to follow engine's advice and format the sd.
EDIT: Also this might work, it is for linux mint but adding the repository and installing it should work on debian(I think) since they all use .deb files. Before ubuntu officially supported mtp by default this was the most popular work around.
HPTesla said:
Are you doing this with the phone turned on and booted into the os? It gives you a PTP error first, make sure the phone is in MTP. At the bottom you also have a LIBMTP error tho. I don't have much experience with debian but from what I understand it is extremely stable but the downside is that it can be a bit out of date at times. Ubuntu and all ubuntu derivatives had a major mtp flaw awhile back but it has since been fixed. Im not sure if it has been fixed in debian. Yes ubuntu is based off of debian, but just like linux mint will add things to the ubuntu base, ubuntu will do the same to the debian base. So LIBMTP MAY be out of date, Im not sure. I know that I have no problem seeing my phone from either the terminal or file browser. Check this out and see if it helps any.
If not you may have to follow engine's advice and format the sd.
EDIT: Also this might work, it is for linux mint but adding the repository and installing it should work on debian(I think) since they all use .deb files. Before ubuntu officially supported mtp by default this was the most popular work around.
Click to expand...
Click to collapse
The first thing you linked to (steneteg.org or somesuch) was another avenue I went down trying to solve this, but alas it resulted with much the same problems. The second link to the linuxmint forums looked very promising, the only problem with it is the ppa has been dropped by webupd8 so it no longer is available (404s).
I have just discovered earlier today that adb push/pull works for getting things onto/off of my device, but I can't use adb to mount the device to allow it to be seen with a filemanager (thunar in this case). So, that's progress I think.
EDIT : I just saw mention somewhere of androidair, have yyou any experience with this app's reliability/security?
JustAk said:
The first thing you linked to (steneteg.org or somesuch) was another avenue I went down trying to solve this, but alas it resulted with much the same problems. The second link to the linuxmint forums looked very promising, the only problem with it is the ppa has been dropped by webupd8 so it no longer is available (404s).
I have just discovered earlier today that adb push/pull works for getting things onto/off of my device, but I can't use adb to mount the device to allow it to be seen with a filemanager (thunar in this case). So, that's progress I think.
EDIT : I just saw mention somewhere of androidair, have yyou any experience with this app's reliability/security?
Click to expand...
Click to collapse
You can try searching for other places where go-mptfs is located, other ppas where it still might be. The ubuntu forums also has this as a possible solution. I haven't used androidair but I have moved files over wifi using the sshdroid app and an ssh server on my pc with great success. If you have any experience with ssh that could be a possible solution although it is obviously slower than usb. But ssh in general is a simple and great tool, also pretty secure since you are simply connected to your home wifi - as long as your wifi is secure you should be fine.
On my pc I believe its openssh that I use - plenty of tutorials out there for that - and here is the link to sshdroid in the play store. Hope this helps!
EDIT: I will also be at work until 2p.m. EST so may not be able to reply back until then - don't worry, I will as soon as I get home if you have any other issues.

Nextbook Flexx 11 how to dual boot android and 8.1/10

ok! where to even start...
I like many got this 2in1 at wal-mart and I live it. unfortunately I like many am not yet familiar with the new UEFI bootloader bios SOC stuff
heres what I do know and please correct me if im wrong. also please tell me if this 2 in 1 is and can be flashed the same as the asus t100
ok the Flexx11 has a bayntrail-t CR quad core processor 1.33-1.83ghz model Z3735F the t100 is3740
11.6" screen ips touchscreen at 1366x768 res
Efun is the corp and yifang vers.NX1106.1.02.008\139
THE BIOS IS YFG0315009112
it is a 32bit EFI bootloader
the reason I mention all of this is I have tried several times to dualboot androoid and each time ruined the computer and had to return it and I simply no longer wish to return it and love it to much to get something else
the first try the time began to lag and was unfixable for some reason the second time i somehow lost the keys booting and formatted wrong or something and the tablet bricked it would remain black with keyboard lit and no button combo could get it back no boot at all.
I am currently using AMIDUOS to run android kitkat and I love it but from what I understand it isnt compatible with win10 and really still isnt the same as the full android being on the tablet although really really close and awesome
but honestly I have been doing this stuff for years and now with this new windows secure boot and system on a chip stuff im lost
ever get anywhere with this?
I'm curious as well.
It has to be possible. I say that because I recently owned a ChuWi dual-boot device with the same Baytrail processor and SOC.
I wonder if it wouldn't be possible to take a system dump from one of the chuwi dualboot devices and flash it to the nextbook.
Sent from my Ascend Mate 2 using XDA Free mobile app
I'm also interested in doing this. It appears that the Nextbook Ares has the same hardware (minus 1GB RAM) but has Android. I contacted Nextbook to see if I could get a copy of the Ares Android firmware but was denied. If someone with the Ares could upload a backup that would be helpful.
I was finally able to get this working using this method...
https://hitricks.com/guide-how-to-dual-boot-remix-os-with-windows-uefi-legacy
So far I was able to get it to boot from a partition on the main drive as a test. In the process of installing to a secondary partition on my sd card. We'll see how it goes.
I wasnt able to get the boot menu that he shows but after going through the steps I then had an Android OS boot option in the bios boot menu. Pretty awesome! Runs great. Tried running Dead Trigger 2 as a test with full graphics. Ran perfectly.
I just bought one of these yesterday, and it shipped with Windows 10 Home 32-bit. I'm trying to install the 64-bit version but it won't boot from USB. Turns out it doesn't support 64-bit OSes. Where can I find recovery images for this? I messed up and now I don't have audio or touchscreen drivers.
64 bit processor?
I just bought one of these yesterday, and it shipped with Windows 10 Home 32-bit. I'm trying to install the 64-bit version but it won't boot from USB. Turns out it doesn't support 64-bit OSes. Where can I find recovery images for this? I messed up and now I don't have audio or touchscreen drivers.
Click to expand...
Click to collapse
Alright, I'm slightly confused now. Looking at system specs for mine it says it has an x64 based processor. Doesn't that mean it should be able to handle 64-bit OS? Even though it comes with 32-bit? If possible I would like to put 64-bit on it as well, but I'd like to be sure that that's not going to break it.
GeneticJulia said:
Alright, I'm slightly confused now. Looking at system specs for mine it says it has an x64 based processor. Doesn't that mean it should be able to handle 64-bit OS? Even though it comes with 32-bit? If possible I would like to put 64-bit on it as well, but I'd like to be sure that that's not going to break it.
Click to expand...
Click to collapse
It just won't boot the USB. At all. Unless it's 32-bit.
rowdyrocket said:
I was finally able to get this working using this method...
https://hitricks.com/guide-how-to-dual-boot-remix-os-with-windows-uefi-legacy
So far I was able to get it to boot from a partition on the main drive as a test. In the process of installing to a secondary partition on my sd card. We'll see how it goes.
I wasnt able to get the boot menu that he shows but after going through the steps I then had an Android OS boot option in the bios boot menu. Pretty awesome! Runs great. Tried running Dead Trigger 2 as a test with full graphics. Ran perfectly.
Click to expand...
Click to collapse
I'm loving Remix OS on here with dual boot. Having some issues though and I really want this to work.
Main and I mean main issue is no sound at all, no rotation is next in line and Bluetooth isn't working. Everything else works great.
This is so awesome its like Android lollipop with windows desktop functionality. Now if I can get the bugs fixed I will be in android hog heaven.
GREAT FIND BRO!!!!! EXACTLY what I was looking for maybe even better than.
for those interested here is the XDA section for all things REMIX OS
http://forum.xda-developers.com/remix
By the way for those who may want to know I installed dual boot onto the hard drive it went with no issues.Here's some tips for flexx 11
1. I used a partition manager such as easy partition manager to partition the C: drive regardless of what the tutorial said. Couldn't use windows disk management. I deleted the recovery for an extra 5 gigs (make a backup if you do) I used about 19 gigs from the C: drive and made an E: NTFS.
2.Also do not use the remix files from that tutorial use the ones here from the main site http://www.jide.com/remixos-for-pc they are newer and the ones from the other post where incomplete. Also the newer ones on the site now include OTA updating which is totally awesome.
3. I'm hoping this will help someone..... After I was all finished I expected it to dual boot as any other dual boot restart and then i would see options for the OS's not the case here I got stuck on this I was using easy BCD and trying all sorts of stuff, once I looked at the tut a little closer I realized you don't need any of that. Once your all done do a restart and it will go back to windows as usual. Now go to settings, then recovery, then advanced startup and choose from devices I think its the second option on the left list. There you will find Android OS click that and it will take you to your dual boot options. Sounds a lot more complicated than it really is. But believe me once you know this your better off.
And that's all I've got please and I mean please post here with any fixes especially for sound and if you have questions I will try to help.
Thanks
PS: I AM GETTING OCASIONAL LOCK UPS, MEANING THE OS FREEZES AND I HAVE TO RESTART BY HOLDING POWER.
Im not sure if this is good news or not...
Using the methos outlined I was not able to get audio bluetooth autorotate and other things to work but after a bit of digging I found out that remix os has an image specifically for nextbook baaytrail (Our PC) here: http://www.jide.com/remixos/devices
click other upper left.....
I cannot find instructions to install this though and using the other install instructions from here fail because the only part of the file to replace is the system image.
I also attempted the other install methods and easy BCD does not work for this PC
So if anyone can help to install this file specifically for our computer as well as verify that it works and what works and how you installed would be great
OK this is really cool I have made headway sort of.
I have installed kit kat android-x86-4.4-r3.img using the Androidx86-Installv24-5800.exe installer and i have rotation, root and it works pretty good for the most part wifi works great so far no bluetooth, it freezes during shut down and the major issue as in most cases is the sound. Im not sure about the camera now that I think about but i will check and report back here.
I really want the sound working on this and I woud be bigtime happy this forum could be solved as far as im concerned
From what I understand there is a bug with baytrail and linux where the spp port is pointed automatically to the usb or something. but for the life of me after weeks of scouring the internet cannot find a laymens guide to a simple fix for this. I'm really not even sure there is one because I'm yet find a rock solid confirmation of a solution
Update: camera doesn't work either
So far the 4.4.3 port is the best. I just can't seem to find any help whatsoever so its looking like so close yet so far away. Its a pure shame that audio and a few other major bugs are the only things in the way of this being a fully working and easy dual boot method.
I have bought a nextbook flexx10 but am unable to install remix OS. I have followed all the steps highlighted before.
1. partitioned the drive with gparted to make a 10G NTFS drive
2. downloaded android x86 5.1.1 iso and remix iso from jide website.
3. used android installer and android 5.1.1 iso to install the image
4. used 7zip to uncompress the remix iso
5. then copied over the 4 necessary files from remix to the drive to the android drive
6. copied over grub.cfg
Now, I do see the entry for androidOS but when I select that, I just get a message at the center of my screen that says "AndroidOS boot failed" and a blue OK button in DOS like font. thats it.. I am interested in knowing if any additional BIOS settings needs to be tweaked.
furthermore, I have tried installing android x86 6.0 by formating the same partition as ext4. All proceeded well and i got to the last screen that said "Run android-x86 now" or reboot. I removed the USB and was able to get into android. (some missing functionality). But when i reboot into windows and try to boot into androis, I get the same message of Andoid boot failed..
Thus I need to know if there's some BIOS settings related to permissions or sorts that i'm missing.
thanks
murlig123 said:
I have bought a nextbook flexx10 but am unable to install remix OS. I have followed all the steps highlighted before.
1. partitioned the drive with gparted to make a 10G NTFS drive
2. downloaded android x86 5.1.1 iso and remix iso from jide website.
3. used android installer and android 5.1.1 iso to install the image
4. used 7zip to uncompress the remix iso
5. then copied over the 4 necessary files from remix to the drive to the android drive
6. copied over grub.cfg
Now, I do see the entry for androidOS but when I select that, I just get a message at the center of my screen that says "AndroidOS boot failed" and a blue OK button in DOS like font. thats it.. I am interested in knowing if any additional BIOS settings needs to be tweaked.
furthermore, I have tried installing android x86 6.0 by formating the same partition as ext4. All proceeded well and i got to the last screen that said "Run android-x86 now" or reboot. I removed the USB and was able to get into android. (some missing functionality). But when i reboot into windows and try to boot into androis, I get the same message of Andoid boot failed..
Thus I need to know if there's some BIOS settings related to permissions or sorts that i'm missing.
thanks
Click to expand...
Click to collapse
Sorry for the late reply, use the installer and create a separate drive using C: like a D: or E: and get android 4.4 the .IMG that should work for you and the installer should do everything for you.
So use the uefi android installer after you partition a drive to load android 4.4 the uefi IMG
Its just going to piss you off though because there's no audio and seemingly no way to fix it, which is a crying shame ��
P.S. typically secure boot is off in the bios on this machine, but if by any chance you turned it on or the newer ones come that way make sure it is off or this will not work.
UEFI Settings
So I can get to a menu with 6 icons (2 rows and 3 columns) by running the "shutdown.exe /r /o" command and then going to Troubleshoot>Advanced Options>UEFI Firmware Settings and clicking restart. The problem is that when I get to this menu the touchscreen and keyboard do not work, and I can only move the highlighter up and down, not left and right. Hopefully one you guys have figured this out. I contacted the Nextbook support desk and they were no help at all.
korycooper said:
So I can get to a menu with 6 icons (2 rows and 3 columns) by running the "shutdown.exe /r /o" command and then going to Troubleshoot>Advanced Options>UEFI Firmware Settings and clicking restart. The problem is that when I get to this menu the touchscreen and keyboard do not work, and I can only move the highlighter up and down, not left and right. Hopefully one you guys have figured this out. I contacted the Nextbook support desk and they were no help at all.
Click to expand...
Click to collapse
Okay. So I was able to test this one of my co workers Nextbook and it seems like its a problem with mine.
This might be beneficial for us Flexx 11 users. It's a full port of Remix 2.0 to the Ares 8 with everything working except the camera rotation issue. Very promising. I've heard the hardware is similar. Working on attempting to install on mine. Anyone else tried it?
http://forum.xda-developers.com/remix/supported-devices/port-remix-os-2-0-nextbook-ares-8-t3498015
Hey guys,
NextBook Flexx 11, 64Gb, NXW116QC264, Windows 10
I'm really interested in trying to install Remix OS in Dual boot. However, in my trials, I goofed up my tablet. I found an image, but it turned out to be a Windows 8.1 image, and it wiped everything from my tablet. I had originally had Windows 10 on it.
Could someone perhaps be able to send me the recovery partition of their Nextbook; as long as they had Win10 installed. Maybe if I dump a Win10 recovery partition, I can do a repair on it and restore Win10 to the system.
I can't find the stock/factory rom for the Win10 version of the Flexx.
Thanks in advance,
Kori
KorishanTalshin said:
Hey guys,
NextBook Flexx 11, 64Gb, NXW116QC264, Windows 10
I'm really interested in trying to install Remix OS in Dual boot. However, in my trials, I goofed up my tablet. I found an image, but it turned out to be a Windows 8.1 image, and it wiped everything from my tablet. I had originally had Windows 10 on it.
Could someone perhaps be able to send me the recovery partition of their Nextbook; as long as they had Win10 installed. Maybe if I dump a Win10 recovery partition, I can do a repair on it and restore Win10 to the system.
I can't find the stock/factory rom for the Win10 version of the Flexx.
Thanks in advance,
Kori
Click to expand...
Click to collapse
Just to be clear...(and this goes for everyone wondering in the future) it was windows 10, from the factory??? Last i checked
they only shipped with windows 8.1 or android, depending on the model...If not and you put windows 10 on there, back when it was free, you just use the media creation tool from Microsoft to update windows 8.1 to Windows 10 (after restoring windows 8.1)... it can do this because most tablets have unchangeable hardware, so no cd key is required...it's like how your md5 hash verifies your downloaded files, Windows provides Microsoft with your hardwares md5 hash signature and if it is in the list, then it activates the pc/tablet... but, it only works if you got it free, not if you bought it... if you bought win10 then you will need your cd-key when you re-install, while the other steps are same as above... just note, that for the free upgrade there was NO cd-key, therefore in that instance, if it asked you for a key, you would leave it blank, which you can do in any case, and add your key in from Windows if needed...
And... as for the others having sound issues in Android, I read something about a reason for that having to do with something called an... 'audio stack', I think it was??? Not 100% sure what it meant, but basically, it is designed so the audio hardware only works in windows, I think... (so they can make more money, by making you buy the android tablet separately...)
hope this helps someone who stumbles upon this thread...
Wiebenor said:
Just to be clear...(and this goes for everyone wondering in the future) it was windows 10, from the factory??? Last i checked
they only shipped with windows 8.1 or android, depending on the model...If not and you put windows 10 on there, back when it was free, you just use the media creation tool from Microsoft to update windows 8.1 to Windows 10 (after restoring windows 8.1)... it can do this because most tablets have unchangeable hardware, so no cd key is required...it's like how your md5 hash verifies your downloaded files, Windows provides Microsoft with your hardwares md5 hash signature and if it is in the list, then it activates the pc/tablet... but, it only works if you got it free, not if you bought it... if you bought win10 then you will need your cd-key when you re-install, while the other steps are same as above... just note, that for the free upgrade there was NO cd-key, therefore in that instance, if it asked you for a key, you would leave it blank, which you can do in any case, and add your key in from Windows if needed...
And... as for the others having sound issues in Android, I read something about a reason for that having to do with something called an... 'audio stack', I think it was??? Not 100% sure what it meant, but basically, it is designed so the audio hardware only works in windows, I think... (so they can make more money, by making you buy the android tablet separately...)
hope this helps someone who stumbles upon this thread...
Click to expand...
Click to collapse
I realize this is a dead thread, but I had to chime in... I bought my NextBook Flexx 11 from Walmart 3 or 4 years ago and it shipped with Windows 10 Home, not Windows 8.1... However, IMHO, Windows 10 is a resource hog on this little device. I'm currently looking in to installing Linux...

Categories

Resources