yashsingh1/xdaforums huggingface dataset:
[Windows 8 Development and Hacking] cheatman:
Asus T100-TA Magic Stick

[IMG="Asus T100 Magic Stick"]http://files.tested.com/uploads/0/1507/35417-ubuntuandroid.png[/IMG]

Since development and hacking for the Asus T100 tablet has been rather slow these past few months, due to the many problems that plagued the kernel and missing drivers, I decided to make a simple-to-use toolchain that works well on the device out-of-the-box. Thus, I have bundled a fully working Ubuntu live CD image and an Android-x86 build into a single usb stick format (I call it the "Magic Stick"), to allow easy testing, booting and updating stuff on the tablet. You can also use it to recover your device and perform maintenance activities without the usual hassle. And you can use it for showing off to your friends and co-workers by triple booting your tablet.

T100 Magic Stick Features:

Dual-boot directly from USB stick into Android or Ubuntu!

Test and play with both systems to see if you like them

Ubuntu 15.04 Live:

Updated 4.0 kernel (thanks to Kirill Belyaev for the kernel build)

No more internal HDD errors (no more rpmb issues)

Suspend working!

Installer working with grub installation! Finally!!

microSD Card working correctly

Wi-Fi working stable since boot

Battery reporting

Hardware buttons

Additional tools by default (gparted, mc, uefi, efibootmgr, grub2)

Android CM13.0.2-rc1 Live:

No more internal HDD errors (no more rpmb issues)

Wi-Fi working

Bluetooth working

Battery reporting

Hardware buttons working

Google Services! (Play Store etc.)

Pre-rooted!

Writable system partition

Persistent data saving on stick (1GB internal storage)

Rotation sensor working

Shrink and change partition layouts

Install and repair bootloaders, grub2 and UEFI

Install, repair, debug and update any operating system

Download and Install:

The installation procedure is extremely simple:

Download the Magic Stick zip file from here: T100 Magic Stick download

Extract the ZIP file

Copy the contents of the extracted folder to a USB stick (at least 3GB free space required)

Disable secure boot in the UEFI firmware configuration (tap F2 at startup to enter configuration)

Boot from the USB stick (tap F2 at startup and choose the stick as boot device from the menus)

Thanks and credits:

Kirill Belyaev, Povilas Staniulis, rbg, Chih-Wei Huang, Brain WrecK, pstglia for their work and contribution + their dedication and their builds.

The whole Asus T100 Ubuntu Google+ Community (chck us out!);

The whole Android-x86 Google Group (check us out!);

Everyone else who contributed patches, fixes, ideas and suggestions!

Download:

v2.0-beta1: Download

Cheers,

C.
[Windows 8 Development and Hacking] cheatman:
Changelog:

v1.5: Ubuntu: no changes or improvements, sorry...

v1.5: Android: microSD card support

v1.5: Android: no more FC bugs at boot...

v1.5: Android: display driver improvements (some games and apps which didn't work will start working now)

v1.5: Android: better overall performance (+2500 points in Antutu than previous version)

v1.5: Android: better browser support (chrome, firefox etc.)

v1.5: Android: streaming support less buggy

v1.5: Android: latest 4.4.2-r3 build included (much more stable)

v1.5: Android: improved bluetooth support (some issues still reported, though)

v1.4: Ubuntu: added bluetooth support (seems unreliable)

v1.4: Ubuntu: updated packages to latest versions

v1.4: Ubuntu: fixed Software Center problems

v1.4: Android: data is saved to the stick (1GB internal storage only!)

v1.4: Android: added bluetooth support (tethering not working, yet)

v1.4: Android: added accelerometer sensor support

v1.4: Android: added rotation sensor support

v1.3: Ubuntu installer does not crash anymore!

v1.3: Added suspend support in Ubuntu

v1.3: Updated to Ubuntu 15.04

v1.3: Added sound for Ubuntu

v1.2: Initial release

Known Issues:

Ubuntu: suspend doesn't work as it should, no bluetooth, no rotation, no camera, no microphone;

Android: suspend doesn't work as it should, no bluetooth, no rotation, no microSD, no camera, no microphone;

Android: at boot, Google text-to-speech will FC a couple of times. This is fixed once you log into google play and update the GApps;

[*]Android: sometimes the keyboard dock is not enabled at boot. This is caused by a race condition at boot and I won't fix it. If you run into it, reboot and try again; (didn't encounter it anymore)

You tell me...

Frequent Questions:

Can I remove the stick after boot?

Answer: No. This works like a live CD.

Will my data be saved?

Answer: In Ubuntu no. This works like a live CD. In Android yes, you can store up to 1GB of data (due to popular request).

Can I install Ubuntu?

Answer: Yes. This works like a live CD.

Can I install Android?

Answer: Yes, but not using the built-in installer.

How can I install Android-x86?

Answer: Manually, but it's easy. Maybe I will create a step-by-step guide later...

Will Android work with ART (before or after install)?

Answer: No.

Can I install xposed framework?

Answer: Yes, but not on the live version, you must install Android locally first.

How can I update the Android-x86 version on the stick?

Answer: Replace the files in the "x86" folder on the stick.

How can I update the Ubuntu version on the stick?

Answer: You can't (not easily anyway).
[Windows 8 Development and Hacking] cheatman:
Windows Tools:

I recommend you download these and save them onto the USB stick you create yourself, to always have them on hand. I did not include them on the stick as they are licensed separately (even if "free") and all credits go to their respective authors. I also recommend downloading the Windows 8.1 drivers for the T100 and saving them to the same stick, just in case you have to re-install Windows. Just make a separate folder on the stick and save whatever you want there. It won't break any functionality.

EasyUEFI - Download

A tool which helps you manage UEFI boot entries, paths and configuration for booting with ease

Ext2Fsd - Download

A tool which helps you mount ro/rw the Android/Linux partitions in windows as regular drives

unsqashfs 4.0 - Download

A tool to extract the ".sfs" and ".squashfs" images to regular ".img" files (to make system.img writable, mountable etc.)

Advanced reboot script - Download

A Windows batch file that reboots the system so you can select the boot device using your touchscreen (boot in Android/Ubuntu directly without the dock attached etc.)

Linux how-to resources:

Unsquash FS: http://unix.stackexchange.com/questions/80305/mounting-a-squashfs-filesystem-in-read-write

Update grub: http://askubuntu.com/questions/281119/how-do-you-run-update-grub

Grub install to separate partition: http://askubuntu.com/questions/472669/install-grub-on-a-different-partition-on-triple-boot-system

Make IMG files: http://ubuntuhak.blogspot.ro/2012/10/how-to-create-format-and-mount-img-files.html

More grub: https://docs.oracle.com/cd/E26502_01/html/E28983/gkvif.html

Even more grub: http://superuser.com/questions/376470/how-to-reinstall-grub2-efi
[Windows 8 Development and Hacking] cheatman:
Reserved....
[Windows 8 Development and Hacking] gbuscrizist:
I am having some problems with this. Granted I am trying to use it for install on the Dell Venue 8 Pro. This tablet is a bay trail base, with most of the same hardware, minus the wireless/bt card. This works fantastic as a live cd, but when I install it I get problems. Is the ubuntu image only i386? When I was trying to change the kernel from the G+ group I kept getting the architecture mismatch (Kernel.deb file is amd64 and system is i386). Also the bootloader is kind of weird. All of the grub settings are correct, but if I want to boot ubuntu from the mmc I have to enter the advanced menu, then boot recovery mode. When recovery mode boots, I hit resume boot and then I am magically loaded into my installed system. Am I doing something wrong here?
[Windows 8 Development and Hacking] cheatman:
The live image is i386 only. For the grub boot loader, try copying the entry contents into the stick boot menu and see if it works as intended. The menuentry file on the stick is in ./boot/grub/grub.conf.

I'll be releasing a new version of the stick with Ubuntu 15.04 (i386) and some additional sound fixes in the next few hours as well.

Cheers,

C.
[Windows 8 Development and Hacking] cheatman:
Ok, v1.3 with new updates and fixes has been posted. Let me know of any improvements and/or problems.

Cheers,

C.
[Windows 8 Development and Hacking] roman2861:
Thank you for great work! One promise: please, fix bug for HP Omni 10. My tablet can't boot in Ubuntu (but works perfectly with Android). Here is a link to the G+ posts with bug disc.

https://plus.google.com/105824122847813147186/posts/4G1BQgD5LNQ

https://plus.google.com/105824122847813147186/posts/gxqsVsNNJoq
[Windows 8 Development and Hacking] cheatman:
The HP omni problem comes from the kernel, which I did not build and I do not maintain. Also, I don't have a HP omni, so I can't test it out.

The bottom line is that I can not promise to make it work, but I will update the kernel when possible. Keep in mind that this is a Asus T100 tool. Follow the thread and when an update for the kernel is posted, try the new version.

Cheers,

C.
[Windows 8 Development and Hacking] KILLplay:
Everything runs perfectly. Flawless Android and I'm still testing around Ubuntu. You've helped revitalize my T100! thanks!

Now I just need to figure out how to install the bootloader. Seems simple enough but your instructions say it may be a bit complicated so maybe I'm missing something
[Windows 8 Development and Hacking] alphaeagle777:
For some reason, after Ubuntu installed coulnd open the software manager and didnt have synaptics, also is there a way to turn of the white led,

second do i copy all the android files into the Ubuntu drive or i need to partition the ssd for another partition for android( what are the chances of 5.0/5.1)

thanks for the files and works good, only issue, not home dev but Linux/Ubuntu, that is not finger scroll friendly, and click and hold for right click(context menu) beside chromium that scroll with out having to hold the scroll bar like the rest of the system
[Windows 8 Development and Hacking] roman2861:
It will be great, if you fix it. Thanks for reply!
[Windows 8 Development and Hacking] feduss:
""Login failed, impossible to establish a reliable connection to the server. This could be a temporary problem or your Android device may not be suitable for data services. If the problem persists, contact customer service. ""

Gives me this error every time I try to log in with my google account. Solutions?
[Windows 8 Development and Hacking] Macro le noir:
Installation on hdd

I have installed ubuntu on my t100 on the hdd. It works great so manu thanks for that but I have on issue, I need to let the usb stick in on boot in order to make it boot. If I don't grub is in rescue mode saying that : "error : no such device : 25dc1ad7-c268…"
[Windows 8 Development and Hacking] FiendFyre:
Is there any way to get touch screen working on a Toshiba Encore 2 Write? I know this thread is for the Asus T100, but I tried this flash drive image out on my device and it ran, minus touchscreen. It booted up fine and everything. If anyone is able to help me out, it would be greatly appreciated! I think the issue stems from the device having a Wacom touchscreen, but I can give any information needed!
[Windows 8 Development and Hacking] cheatman:
[MENTION=5086847]feduss[/MENTION]: The connection problem did not appear in my tests and I am able to log into Google Services without any problems. Skip the account creation during the initial setup wizard and create it later and see if it works.

[MENTION=1586624]alphaeagle777[/MENTION]: try installing plasma-active. You can see it in action here: https://www.youtube.com/watch?v=mOMmp8iEaqY

[MENTION=4371196]Macro le noir[/MENTION]: Make sure you select /dev/mmcblk0 as the drive to install the grub2 boot loader during installation. Otherwise, the installer may detect the USB stick grub boot loader and install the OS selection menu for Ubuntu from there.

[MENTION=4734004]FiendFyre[/MENTION]: The stick will never have Encore 2 support unless one of the kernel developers include it in the configuration. I am not building the kernels myself, so it is best to ask the Android-x86 group for more info.

Cheers,

C.
[Windows 8 Development and Hacking] feduss:
I tried already to login later...maybe i'll solve the problem creating a new account
[Windows 8 Development and Hacking] Macro le noir:
Thanks for the reply. It was the correct issue, I didn't pay attention during installation. To solve the problem I juste reinstall grub at the right place.

edit : I speak to fast. Just reboot work, not after a shut down.

edit2 : after reinstalling ubuntu with grub at the rigth place, it still doesn't work. Can you explaim me how to install grub correctly ?
[Windows 8 Development and Hacking] krispin:
Grub entry

Hi cheatman, thanks for your great work and nice tutorials. Now I am trying to figured out, how to edit grub to add entry for android. It is situated in /dev/mmcblk0p5 in folder android. I have alrready installed ubuntu on keyboard HDD. Thanks.
[Windows 8 Development and Hacking] big.brother:
guys, did micro HDMI port work on android?
[Windows 8 Development and Hacking] Crossvxm:
Can anyone PLEASE explain to me if I am missing something? The instructions clearly stated:

"The installation procedure is extremely simple:

Download the Magic Stick zip file from here: T100 Magic Stick download

Extract the ZIP file

Copy the contents of the extracted folder to a USB stick (at least 3GB free space required)

Disable secure boot in the UEFI firmware configuration (tap F2 at startup to enter configuration)

Boot from the USB stick (tap F2 at startup and choose the stick as boot device from the menus)"

As I mentioned previously (and sadly nobody responded :( at all) All I get is a black menu that seems to want a command to be entered, which was not mentioned as part of the proceedure. It mentions "grub" somewhere at the top and entering anything is completely useless...
[Windows 8 Development and Hacking] Anghirrim:
Did you try to download again the zip? It's maybe corrupted.

How about your stick, which file system did you choose?
[Windows 8 Development and Hacking] Crossvxm:
Never figured the download may have corrupted...downloaded it from Microsoft Edge, which now that you mention it, Internet Explorer was notorious for ruining 1GB+ files.

As for my flash drive, I use a 16GB Transcend, fairly old and slowish but hasn't failed me yet, and has been used mainly as an installation stick. File system is on its default Fat32 (if I'm not mistaking, I'd have to pull it out of my closet and double check).

Is there a specific FS that must be used? And thank you for replying
[Windows 8 Development and Hacking] Anghirrim:
I would check the md5 sum of your downloaded file. IE and Microsoft Edge are differents, I don't think we can make any correlation inbtheir behaviour.

Regarding the FS, I used ntfs which worked fine. Don't know if it makes any difference. All the others live USB I've created so far are under fat32.
[Windows 8 Development and Hacking] Crossvxm:
Thanks it worked 100%. Don't know which of the two was the fix, but I redownloaded it and full formatted the flash drive as NTFS (took way longer than the download itself, but I wasn't risking a "Quick format").

Since my flash drive is longer than the modern average, I'm considering buying the Sandisk Micro USB/USB 3.0 flash drive that Best Buy has, or at least a very discreet Micro USB (OTG) flash drive that way I don't have to have the keyboard when I play with Android. I don't plan on making it something to use as a "daily driver," but just something to play with and show off here and there.

I hit your thanks button, you deserve it!
[Windows 8 Development and Hacking] Anghirrim:
If you check some pages before, I did a speed comparison between usb from dock / micro usb / micro sd slots, all using the same micro sd card or not.

Per other guys, our micro sd slot is notoriously known to be ****ty and slow. On benchmarks, yes, but I found it really ok in terms of " real use experience" while trying android on it.

Don't know if spending money in a USB3 stick is worth the speed gain if you only aim to play sometimes with the live environment.

I would recommend to choose a very discret micro usb stick that you would plug on the micro usb port. So that way you can boot and use android without the keyboard.
[Windows 8 Development and Hacking] feduss:
Or he can try the android eufi installer...on my t100 it workes correctly and it installs android on C>androidOS

Inviato dal mio A0001 utilizzando Tapatalk
[Windows 8 Development and Hacking] Darklink93:
Hi guys,

In the past I installed Magic Stick 1.3 version and it worked well. Due to corrupt data, I had to delete it.

Now I would install MS 1.5 version but I got an error after loading grub menu:

"Trying to terminate EFI services again" then black screen and webcam led turn on and stuck at this

I used 2 USB 3.0 32gb sticks in NTFS and FAT32, SecureBoot disabled, T100TA with Win10. I tested 1.5 and 1.4 MS releases and downloaded them several times.

Anyone has an idea please ?

Thanks
[Windows 8 Development and Hacking] Olivier_V:
Hi,

I've tried to boot the magic key but after the grub menu I have a blank screen.

My computer is T100HA-FU040T (4 Go RAM + 128 Mo integred memory).

I've disabled secure boot.

Any idea ?

Thanks
[Windows 8 Development and Hacking] Anghirrim:
No error message, nothing?

Can you please tell us more about you stick, file system, type, etc...
[Windows 8 Development and Hacking] Olivier_V:
In the grub screen I've on top left the message :

Could not open "\EFS\BOOT\fallback.efi" : 14

I choose the Ubuntu entry, then after a few second (while the system seems to freeze) a small message beginning with [000... appears (too quickly for reading) on the top of the screen and then blanck screen.

My stick is a Lexar 8 Go fat32 stick.
[Windows 8 Development and Hacking] Anghirrim:
Strange. Can you try with your stick formatted in NTFS?
[Windows 8 Development and Hacking] Olivier_V:
I will try and post.
[Windows 8 Development and Hacking] Olivier_V:
Not better in NTSC :

on top left when the grub menu comes :

Could not open "\EFS\BOOT\fallback.efi" : 14
error : unknown filesystem
error : no such device /.disk/info.

But the file /disk/info exist ...

I've tried to reload the complete zip ; same problem
[Windows 8 Development and Hacking] Anghirrim:
Is it normal that it tries to launch fallback.efi??

Let me check it.

Edit: There is NO fallback.efi in the Magic Stick zip. Did you modify anything? Are you sure you downloaded the right zip file?
[Windows 8 Development and Hacking] Olivier_V:
No I only unzip the file. I didn't modify anything !

I downloaded the zip file from first page :

https://drive.google.com/file/d/0B_NLqfSyZfYARGt4VmZheFJMNjQ/view?usp=sharing

The unziped folder has 453 files.

And I've seen that there is no fallback.efi too ...

EDIT : Google gives some answer for this search :

https://www.google.fr/search?client...-8&oe=utf-8&gfe_rd=cr&ei=RjhjVoOmGMSBVI-UvtgI

EDIT 2 : I've try to rename /EFI/BOOT/grubx64.efi to fallback.efi ; the message about fallback.efi disappears but same problem with black screen (black and not blank sorry).
[Windows 8 Development and Hacking] Anghirrim:
The first Google link gives a trick which is to rename the grub.efi file as fallback.efi.

Can you try in this order, one by one until it works (if one entry does not work, for sure rename it as it was before changing the next one:

bootia32.efi ==> fallback.efi

grubx64.efi ==> fallback.efi

BOOTx64.EFI ==> fallback.efi

I don't understand what causes your laptop to try to boot the file fallback.efi.. so strange. Are you seeing Grub at all?

PS: Just PM me in french if easier, I'm french too.
[Windows 8 Development and Hacking] Olivier_V:
OK I've sent a PM.

EDIT : My machine is T100HA-FU040T and not T100-TA .... perhaps not same ?
[Windows 8 Development and Hacking] Anghirrim:
Hey... I've seen on internet that the T100HA is shipped with Windows 10 64 bits. Isn't you EFI a regular one, 64bit and not 32bit as in the T100TA?
[Windows 8 Development and Hacking] Olivier_V:
How to know that ?
[Windows 8 Development and Hacking] parkerlreed:
For the Android image has anybody noticed that YouTube only offers up to 360p? I can't get it to go any higher.
[Windows 8 Development and Hacking] orbitz52:
how big is the download file for android? thanks
[Windows 8 Development and Hacking] chadillac.q.roberts:
I got android installed and running on my Asus t100 Chi... I just don't know how to boot to it.
[Windows 8 Development and Hacking] lolasher:
I tried putting this on sdcard, tablet starts grub from it, but it goes to "grub rescue" with "error: no such device: <LONG-I-GUESS-HEX-CODE>" Any way to fix it?
[Windows 8 Development and Hacking] tonyngai:
Can your t100 Chi run android perfectly?

I have a t90chi but it just cannot run android.

It went blank screen every time I tried to run it.
[Windows 8 Development and Hacking] Vioner:
This build is only for Asus T100 (T100TA).
[Windows 8 Development and Hacking] AgrOpenSource:
Thank you man. Good job! Just several questions - what prevents webcam from working in android/ubuntu? any upcoming solution or hint where can I look to fix it by myself? For the moment I see that webcam is not even detected in Ubuntu.

Also, some apps are crashing in the Android, what is the root cause for this, how can I see the debugmsgs?

I just got this tablet and would like to contribute in Android/Ubuntu configuration for the device.

Thanks, Agr
[Windows 8 Development and Hacking] gregpilot:
Booting into Android locally installed without keyboard

Greetings:

Thanks cheatman for all of your hard work!

I have a question, advanced search is down on xda and if this has been answered please direct me to the post.

I have installed androidx86 locally to my T100TAM. Then I installed kali linux 1.10a x86, its installer wrote a new grub instance to the mmcbkl0p1 efi partition.

Many kernel patches, wifi firmware patches and grub and kernel paramater edits later, I have a mostly-working Kali install and a dual boot option for Androidx86, with Android selected as the default in grub.cfg.

I would only use Kali with the keyboard, however attempting to boot into Android works fine WITH the keyboard attached, it will not boot without the keyboard. I get as far as the grub2 menu, letting the default Androidx86 boot results in a blank screen. I really would like to use as a tablet in Android.

Any suggestions?
[Windows 8 Development and Hacking] parkerlreed:
Jide is releasing Remix OS as a standard PC image (On the 12th) http://www.xda-developers.com/136794-2/

This would be fantastic to use on the T100.
[Windows 8 Development and Hacking] cheatman:
Yes. Use two grub2 installations, instead of one grub with multiple entries. Why? Because in one of them you can have Kali as the default boot entry and in the other one you can have Android as the default boot entry.

The two grubs can be installed side by side with different names. They will appear as two different boot devices in the UEFI BIOS and you can beet them separately. Set the timeout for both to 1 so they boot instantly. You can then set the default boot device to Android from the BIOS and that's it.

A simpler option you might try is setting a timeout for the default boot entry in you current grub config so Android boots automatically.

PS: if you meant something else by "Android doesn't boot", let me know. I expect the stick to work for you given your tablet model (same as mine) in live boot mode. If Android works in live mode, it should also work while installed on the HDD.

Cheers,

C.