yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF700] Duckman5:
So...yeah. I'm going to end up punching somebody in the face if I have to spend another second trying to get App Inventor to execute a shell script through Terminal Emulator. I have Android Studio installed now, but It's probably gonna take me a while to get up to speed (I know jack squat about Java). So yeah...It's probably just better that I share what I know with [MENTION=3971563]workdowg[/MENTION] and he can just include it in his script with a couple extra lines.

I have a TF300T (on the latest bootloader), so for me to extract my boot image, the command I figured out is:

dd if=/dev/block/mmcblk0 of=boot.img bs=524288 skip=31 count=16

According to this: http://dl.dropboxusercontent.com/u/101952252/Asus_Transformer_Infinity_TF700T/flash_layout.txt

for a TF700T, it should be

dd if=/dev/block/mmcblk0 of=boot.img bs=524288 skip=23 count=16

but that info is from 2012 and something may have changed (I can't imagine why the offsets would be different). Someone with a TF700 will have to test and let me know.

that boot.img can then be fed into a copy of abootimg that I compiled using the NDK to produce our desired zImage and initrd.gz

abootimg -x boot.img

The resulting files can then be moved to the /system/boot directory.

I've attached the compiled app in a zip file for you. You cannot run the file from the /sdcard/ directory, but you CAN run it from /data/media/0/. You just might need to chmod it first. The problem with that is that you would need to know the exact location of the executable. Can you use the $0 variable if it's in the same folder (or a subfolder) as the script? The only other options are to move it to /data or create then destroy a ramdisk (seems overly complicated).

Either way, enjoy. I'll be plodding along trying to figure out Java and the Android Studio. Probably more plodding, then along, but I digress.
[Asus Transformer TF700] _that:
IIRC the offset is different for 32 GB and 64 GB devices.
[Asus Transformer TF700] 2ral:
Latest android and bootloader

I guess I had tried a stupid attempt. Performed sudo apt-get update sudo apt-get dist-upgrade sudo do-release-upgrade and of course ruined the linux loader as I agreed to modify kexecboot. So please tell me what is the latest stable release to install. I guess it is 12.10 ? Also any alternatives to dual bootloader? It's uncomfortable to load that gui menu to choose the os, then tablet is reloaded and only then the proper os started. Even it's impossible to choose any without keyboard. I've seen video that if you do nothing the Android is being loaded by default at bootloader query and only if you press volume up the linux loads. How to implement such stuff? Thanks for help
[Asus Transformer TF700] Ananasnonym:
the newest kexecboot has a timeout for booting the first on the list, and you can choose the entry with volume keys and power button (without dock).

Gesendet von meinem LG-P880 mit Tapatalk
[Asus Transformer TF700] Duckman5:
Wow...now that i expected even less. Thanks for the heads up. Mine is a 16 GB TF300T for the record, then.
[Asus Transformer TF700] cogano:
See OP. IMHO there is no stable release, it is all for enthusiasts ;)

You'd better use Lubuntu 12.04 since it is "LTS" release. There are alternative / backport repos, which allow you to install newer versions of applications like Chrome / GIMP / etc...

---------- Post added at 02:28 PM ---------- Previous post was at 01:59 PM ----------

Is it an expected behaviour that if the kexec host and kexec guest kernels are compiled with different versions of compiler, the kernel execution might fail?

In particular, the current kexec host kernel and kexec guest linux kernel is cross-compiled with linaro gcc 4.7.x.

I tried to boot a guest linux kernel, which was cross-compiled with gcc 4.8 and linaro gcc 4.8 and also natively compiled with gcc 4.8, and the boot fails -- kexecboot reboots TF700t and that's all: instead of booting the new kernel the screen remains black for ever.
[Asus Transformer TF700] 2ral:
tried the lubuntu 12.04 lts. that works fast enough but not a good choice. returned to ubuntu 12.10 though it is not LTS :(
[Asus Transformer TF700] Ananasnonym:
may i ask what bothers you? so i can improve for v1.2

Gesendet von meinem LG-P880 mit Tapatalk
[Asus Transformer TF700] 2ral:
No mainly it is awesome. I've returned to Lubuntu. But 12.04 Lubuntu is not a LTS release actually. The first LTS release of Lubuntu is 14.04. And that is a great choice for Transformer. It would be a great if we moved to that LTS release as I guess as soon as that release would become insufficient we would rather throw away this tablet at least couple of years before that.

When it comes to 12.04 Lubuntu for TF700T at least one of the main issues for me that Lubuntu Software Center is not working. And Bluetooth for sure is already discussed problem

And some bugs with file manager when it works with usb flash drives or sd cards. After second plug of the same device with new data it shows old data. You need to reboot to see updates

Also it loads the default Deutsch layout of keyboard. Performed the edit of keyboard file but no effect. Only lxkeymap changes the input lang. but it doesn't save after reboot
[Asus Transformer TF700] C288:
Wine

Earlier I wondered if wine would work on our tablets and the answer was no. But I think it will now. I found something at http://wiki.winehq.org/ARM. So my question is, with this, will wine now work on our tablets?
[Asus Transformer TF700] _that:
If someone invests a lot of time in building it, then yes. But since it needs to use software CPU emulation it will be very slow, most likely too slow to do anything useful.
[Asus Transformer TF700] C288:
Boot.cfg

@workdowg At the bottom I see the only thing todo is to rewrite the boot.cfg. I was wondering what you mean by this and what you want done? If I could know that, I would be willing to rewrite it for you?
[Asus Transformer TF700] workdowg:
I was just going to make it more descriptive. But I think that is most with the boot configuration script. People will have a chance to modify it to there liking anyway...

I have most of the rootfs install script written, the hardest part was getting the new blank image formated. Busy box Mkefs gave me issues, so I'm using a modified binary to do it... It put me behind...

From my Debloated Stock Kitkat VS980 4G VZN
[Asus Transformer TF700] C288:
Delay Time

Is there a way to change the amount of time before it automatically goes to the default os.
[Asus Transformer TF700] cogano:
It is hard coded in kexecboot binary. There seemed to be some references to a timeout variable in boot.cfg, however this is not implemented actually.
[Asus Transformer TF700] 2ral:
Guys what kind of improvements I would like to see for example. Hide log information of bootloader wich is more suitable for debugging not everyday usage. Also prevent restart after selecting os too boot. Reduce os choice to 2-3 at start up.

and actually if someone published 14.04 that would be awesome
[Asus Transformer TF700] jcfunk:
Needs to do soft reboot to unload current kernel. You can edit the boot.cfg to have as many choices as you.

I back you on hiding the debug info.
[Asus Transformer TF700] Ananasnonym:
So guys, I succeeded in making a 14.04 net-image, but it is very buggy with no optimizations (other than touchpad, X drivers and touchscreen) Everything I have done to a minimal 14.04 armhf image is done by the install script and relevant edited files are in /install-folder (I think it's everything :P)

Please help in making it better.

To install:

User ubuntu

Pw: ubuntu

sudo su

cd /

./install.sh

On Lubuntu-Core:

Touchpad works, Touchscreen works, Internet works, I've made no further tests.

Issues:

After second login on Lubuntu-core I cannot start any programs and the "Start" button on the bottom left has only two entries: Logout and Run. Run restarts openbox and does nothing more and Logoout says Error too many open files. This is a serious issue.

Link1: https://mega.co.nz/#!nJ42xC5Y!AGMEw8XnLDxSmVW6XMPC48dAHPerYVJpzcTE0KT0Aro

Link2: http://d-h.st/8KC

sha1sum: https://mega.co.nz/#!XMp01bCJ!IFTnUgt5nz-Ue3n37RvlN_EV260luvnU4jkbRgcSGxg

5337004231874b9690e7bb364f2cf2f4cda2052e net-14.04.tar.lzma
[Asus Transformer TF700] 2ral:
Problem with Ubuntu 12.10 image and Lubuntu 12.10

Guys both installation images have the same problem:

Whenever I plugin flash card or try to read content from micro sd card from file explorer it pop out the error: The specified directory is not valid

how to fix it please ?

Going back to Ananasnonym's distro as the usb flash and micro sd mounts well on that distro. But there is a keyboard layout problem that impossible for me to reconfigure it to save changes after reboot. It doesn't change from Deutsch to English. And ubuntu software center doesn't work there
[Asus Transformer TF700] Ananasnonym:
try chmod -R 777 /media/*

Gesendet von meinem LG-P880 mit Tapatalk
[Asus Transformer TF700] workdowg:
mke2fs on Android?

So, I'm at a stand still. I have pretty much the whole rootfs installer for use inside Android script written, but it may be for nothing. I can't seem to get a blank image file formatted to ext4. Busybox mke2fs doesn't support the "-t" switch. I have another Busybox built by rabits but can't get it to run under Android. I'm thinking this was the reason he went with doing it through recovery...

Any idea's would be great. Otherwise I'm just spinning my wheels and will give in...
[Asus Transformer TF700] _that:
What about Android's own make_ext4fs?
[Asus Transformer TF700] workdowg:
Slaps forehead, "How'd I miss that.". Now my script is throwing errors about my if statements...

From my Debloated Stock Kitkat VS980 4G VZN
[Asus Transformer TF700] workdowg:
Updated OP

New menu driven installer script in the OP.

Android_kexecboot_installer_v1.5.zip

This allows you to choose what you would like to do as well as return you to the menu. ;)

FYI... Almost have the rootfs installer working... Still getting device busy error (sync issue I'm hoping). If anyone would like to see/try it PM me (The code is not very pretty at the moment). For the moment I have stuck with installing image files to /data/media/linux, until I figure the rest out. :)
[Asus Transformer TF700] JoinTheRealms:
Thanks for the suggestions,

1, Im not aware of anyway of disabling these messages, even on x86 distros these messages are always shown, but "covered" by plymouth, plymouth isn't supported by most/ all KMS drivers on the ARM platform.

2, The restart is necessary for kexecboot to function (http://xdaforums.com/showthread.php?t=1266827).

3, 14.04 isn't possible yet, we are waiting on a display driver update from nvidia. no eta sorry.

edit: sorry xda notifying me of old posts..
[Asus Transformer TF700] workdowg:
OK. I got the installer working. The device error I was struggling with was my own stupidity... I cd'd into the mount directory, but not back out. Two days of debugging for that. I'm going to do a couple more odd improvements and release it. 70+ people downloaded the other one already, so this one should do for a while... It will allow installs to of image files to the internal, micro and dock SD. That will now let us do everything inside of Android...

From my Debloated Stock Kitkat VS980 4G VZN
[Asus Transformer TF700] workdowg:
Something bad...

Something bad happened... Got bootlooped and backups got corrupt...

Edit: Clean Cromi-x install.. Still bootlooped... Looks like nvflash time...
[Asus Transformer TF700] workdowg:
Edit2: Corrupt data partition... Good to go.
[Asus Transformer TF700] jcfunk:
downloaded, are these scripts to be used in android? because first line is #!/sbin/sh, which works in recovery, but needs to be #!/system/bin/sh to work in android. unless you use script manager.
[Asus Transformer TF700] workdowg:
These are Android terminal scripts. I wanted to do this in Android so I could do other things while waiting. ;)

They work fine with /bin/sh (it's in the path in terminal), but I'll change it in version 2 coming this week.

Version 2 will allow install of rootfs to /data/media /linux inside Android.

From my Debloated Stock Kitkat VS980 4G VZN
[Asus Transformer TF700] cogano:
It would be nice to use partition UUID in multiboot/boot.cfg to avoid issues with the same system being run from microSD, SD or USB slots.

I checked briefly the kexec host environment and no UUID symlinks to /dev/sdXY and /dev/mmcblk1p1 exist. On Linux, it is usually udev's task to create them and our kexec-host initrd.img includes udevd binary already, although it does not get started and is not configured. AFAIK, there are other light-weight alternatives like 'mdev'.

Possibly also kexecboot binary would have to be modified to dereference the symlink (dev/disk/by-uuid/some-uuid) to its target (dev/sdaXY). I do not really know how the process of executing another kernel works and if it expects /dev/sdXX parameter our it would easily accept the symlink before rebooting...

Apart from that, could there be other issues which would make use of UUIDs impossible? I may look into it if I find some time.
[Asus Transformer TF700] ryanbadowski:
Two questions:

1. Regarding the post above, the Lubuntu installer (lubuntu-rootfs-installer-v.1.1.zip) from post #1 isn't able to locate this rootfs file. It hints that I should rename the file to begin with "rootfs-". Is this cool?

2. Do any of the current rootfs builds have Bluetooth working?

BTW, To all the amazing people working on this... Your work is so appreciated. Thank you!
[Asus Transformer TF700] Ananasnonym:
1) No. Use v1.1.

2) No, not yet, but I have already achieved a file transfer. I just have to integrate it in a minimal release, will upload it in about an hour.

Gesendet von meinem LG-P880 mit Tapatalk
[Asus Transformer TF700] Ananasnonym:
Ok here it is: v1.2

Changelog:

Fixed Lubuntu-Software-Center

Changed /etc/rc.local to load bluetooth drivers from android

Changed kernel to that10-cogano6 (bluetooth support, f2fs support (not for system partition))

Known issues:

Startup time

when you switch in PCManFM to root in /home/$USER/ there may be messages about "Permission denied" Just click ok (several times if needed). It is a known bug of PCManFM in 12.04.

Report back any issues you may encounter.

To change the keyboard layout to anything other than Austria change the line xkblayout "at" to "us" or whatever you need in /etc/X11/xorg.conf

THIS VERSION IS OUTDATED! PLEASE USE V1.3 from here

Link: https://mega.co.nz/#!OdYn3aoA!1ERE7wUeLDtkrG34LS1etc8-XZiw222ejeyc6DHFUkk

sha1sum: https://mega.co.nz/#!iMh10QJY!ZnyO9_su0fZFpDkTSbFNYyVKXpiHzZyMbradEe4OplM

d2859387d457b4d98e9b56b5de1aaee2d28781e1 rootfs-minimal-Lubuntu-12.04-v1.2.tar.lzma
[Asus Transformer TF700] ariadnejro:
I've installed the new 1.2 rootfs and the kernel seems to be still version 3.
[Asus Transformer TF700] Ananasnonym:
what do you mean? it is always 3.1.10, but different configurations

Gesendet von meinem LG-P880 mit Tapatalk
[Asus Transformer TF700] steffenbakke:
So can I use the lubuntu installer for this rootfs aswell like I would do with the other lubuntu's from OP? Or would I need to extract them manually :)
[Asus Transformer TF700] ariadnejro:
I mean that10-cogano3.
[Asus Transformer TF700] workdowg:
OP updated

V2.0 of Android Kexecboot Installer in OP.

v2.0 - 06/13/2014

--Added rootfs installer

--Fixed more error checking issues
[Asus Transformer TF700] Ananasnonym:
Yes, you can use the installer. Do not check make dev/mmcblk0p8 my home.

Gesendet von meinem LG-P880 mit Tapatalk
[Asus Transformer TF700] workdowg:
Worked fine using my installer script.

1 question... Did you install Network Manager? The applet isn't running.
[Asus Transformer TF700] workdowg:
It was invisible... ;)

-- Suggestion: Add Onboard or other onscren keyboard.
[Asus Transformer TF700] workdowg:
I'd like to add some kernel error checking for the next release. As it stands now if you are not running that10 or that cm112 and use the kernel installer you will have an unbootable system. Even if you are using one of those if you choise the wrong one, same deal unbootable.

Here is what I need to make that not hapoen...

I need people using other kernels to run

cat /proc/version

and post the results here. It would also be great if you tell me what kernel it is suppose to be, and possibly a link to it so I can extract the zImage and add it to the installer...

Thank you.
[Asus Transformer TF700] ryanbadowski:
I can't log in as Ubuntu User. The password "ubuntu" seems correct, and it looks as if it's trying to log in, but it returns to the login screen.

I can log in as Guest, but I don't think I can do much without admin privileges.
[Asus Transformer TF700] Ananasnonym:
Guys, I am sorry! I packaged the wrong rootfs. It's still v1.1

Please forgive me..

Gesendet von meinem LG-P880 mit Tapatalk
[Asus Transformer TF700] Ananasnonym:
Links updated. It now works all as intended.

Gesendet von meinem LG-P880 mit Tapatalk
[Asus Transformer TF700] workdowg:
[MENTION=4582979]JoinTheRealms[/MENTION] - kexec fails - says boot the usual way....
[Asus Transformer TF700] JoinTheRealms:
Yeah i literally just for the first time saw that lol, the code runs too fast to see the output, im gonna get a photo if it. Im glad wifi is working!

btw did you run the kexec on ubuntu or arch?

---------- Post added at 11:53 PM ---------- Previous post was at 11:25 PM ----------

@moreD_cn here the output before kexec fails (it might be slightly off, took 10+ trys to get a readable photo with my phone -_-)

zImage and initrdimg found, try kexec...
kernel: 0x407df008 kernel size 47d608
kexec_load: entry = ox8600600 flags = 280004
??_segments = 3
segment[0].buf
segment[0] .bufsz
segment[0] .mem
segment[0] .memsz
segment[1] . .....................(does on like this)
segment[1]
segment[1]
segment[1]
segment[2]
segment[2]
segment[2]
segment[2]
kexec_load failed: invaild argument
entry = 0x8600800 flags = 280004
segment[0].buf
segment[0] .bufsz
segment[0] .mem
segment[0] .memsz
segment[1] . .....................(does on like this)
segment[1]
segment[1]
segment[1]
segment[2]
segment[2]
segment[2]
segment[2]
failed to load kernel image, fallback to normal way...
[Asus Transformer TF700] workdowg:
On Arch. But now my install is totally unusable. Dmesg's keep filling the screen... I can't get anything done. Any solutions???

Edit: does it have anything to do with the logging moreD_CN turned on originally? It seems to just be cpu temps, asuspec something, battery temp...etc
[Asus Transformer TF700] JoinTheRealms:
Yeah run sudo dmesg -n1 and it will stop, im uploading a kernel now with less debugging and hopefully kexec working

---------- Post added at 01:24 AM ---------- Previous post was at 01:04 AM ----------

Wooooo finally got Kexec booting! heres the link: https://www.dropbox.com/s/mqtpydpr11eef81/installerV4-test.zip also should i changed the degugging level from 7 to 3 i have no idea on what effect this will have, i was assuming slightly better i.o performance since its not writing lots of data to logs.

Just note: its doing something to permissions, so intially you will need to change vt and run sudo adduser username to be able to boot into unity (exactly the same issue as on the tf300t actually)

[MENTION=5363490]moreD_cn[/MENTION] your a legend by the way :) cant wait to have more of a play with this !
[Asus Transformer TF700] workdowg:
Kexec works... Kind of. It boots. But it keeps locking linux up after a couple minutes. I went back 1 version in case it was the kernel itself. I'm building my Arch rootfs.
[Asus Transformer TF700] workdowg:
Your new installer installs to /data/media/linux .... But it looks in /data/linux for the rootfs on boot. I have a crying baby and my rootfs builder is not working right. It looks like I moved/deleted some files around 4 months ago when I last used it. I have to back away. When you have something to try again, pm me.... I'm removing the OP files, keep working the thread and if I am able to get any of your/moreD_CN's stuff working, I will put it in the OP
[Asus Transformer TF700] JoinTheRealms:
Agreed. lnstaller needs cleaning up, init needs some work, a few things i wanna try with the kexeced kernel. :fingers-crossed:
[Asus Transformer TF700] workdowg:
[MENTION=4582979]JoinTheRealms[/MENTION] - fix /data/linux

1) /META-INF/com/google/android/aroma/exec/available_disks.sh change /data/media to /data

2) /META-INF/com/google/android/aroma/exec/available_space.sh change /data/media to /data

I'm working with the installer that didn't have kexec working. Even though the dmesg to console logging need to be turned off, it doesn't lock up my Arch install... When I get my rootfs built, I'm going to repost that version for the moment. Does it really keep the file growing? And is is possible write a script to stop it for now instead of having you recompile another kernel?

BTW... THANK YOU! :svetius:
[Asus Transformer TF700] JoinTheRealms:
Well ive been reading though rabits scripts all morning (btw he is crazy good at linux scripting! im actually learning alot just reading through them) he disables kernel messages in the init script with this: echo "1 1 1 7" > /proc/sys/kernel/printk Im a arch noob but in ubuntu placing this line in /etc/rc.local should stop any kernel messages in console(un-tested at this point)

oh and ive fixed the installer: here https://www.dropbox.com/s/4snczd4m09ngki7/installerV5-test.zip

moreD_cn had the init script looking at /data/linux (for testing purposes i believe) ive now changed it back to /data/media/linux to align with the aroma installer:)

Im gonna add a prompt before the kexec loads so you choose between kexeced kernel and hybrid kernel
[Asus Transformer TF700] JoinTheRealms:
[MENTION=3971563]workdowg[/MENTION] could you give this a test with arch? i couldnt get any wifi while on arch. https://www.dropbox.com/s/30f9dt13w5wvr8z/installerV6-test.zip

ive added a menu before it loads the kexec, to let you choose between the old hybrid kernel and the new kexec kernel, works as expected but my shell scripting knowledge isnt great so there are few things that i need to address (mainly pressing a key outside the choice range will kernel panic:)) ive also disabled fsck on mmcblk0p7 because the initrd of the kexeced kernel will do the checks, and it was taking over a minute to boot.
[Asus Transformer TF700] workdowg:
I will try in a while... I have wifi working using v5 and I am building my rootfs-archtf700t-8-2013.tar.lzma as we speak. I have been recording every step in this rootfs build. I'll share it when I reboot and see Openbox running....

BTW... Pretty sure the problem with 13.04 is the updated xorg-server (1.14) and xf86-input-evdev packages. I kept the old versions for Arch when I found out doing an update killed X... I forgot about that... I will try later to get the tegra4linux drivers working with the new drivers....

Edit: also the new mtev and synaptic drivers may not work, so I kept them too.
[Asus Transformer TF700] JoinTheRealms:
Cool im gonna give a distro-upgrade with ubuntu a try soon.

Note on ubuntu: if using the kexec kernel, you wont be able to successfully login to the ubuntu user account(none of rabits user tweaks) so to fix this just run sudo ln -s /mnt/host/ubuntu /home
[Asus Transformer TF700] workdowg:
Ubuntu user worked fine on your v5... what changed? Sorry, I had to ask that... Are you trying a fresh install of the rootfs each time?
[Asus Transformer TF700] JoinTheRealms:
I not sure exactly whats changed, something in the initrd.img moreD_cn posted needs to be changed so it creates a soft link between linux's /home and androids /data/ubuntu (this is where rabits mounted the ubuntu user's /home so it wasn't affected by the i.o 'lag' of loop mounting)

Creating the soft link manually has the same effect

oh and with v6 if you boot ubuntu with the hybrid kernel this wont be an issue, as the initrd soft links are created by the installer.zip
[Asus Transformer TF700] workdowg:
Much better booting. I'm not sure those fsck's were necessary...