yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF700] workdowg:
OP updated for using _that's that10 stock Android kernel with kexecboot...
[Asus Transformer TF700] C288:
Recovery, Please Answer

Nobody has answered my question from above. Can someone please answer it?
[Asus Transformer TF700] workdowg:
To reboot to TWRP?
[Asus Transformer TF700] C288:
Yes
[Asus Transformer TF700] workdowg:
It would have to be in the host blob... I'm going to attempt to compile a new one from that10, but I need to set up my dev box. I have some new tools to help, so we'll see...

From my Debloated Stock Kitkat VS980 4G VZN
[Asus Transformer TF700] C288:
Ok
[Asus Transformer TF700] workdowg:
Well I looked it all over again and it all seems out of my league. With moreD_cn missing and JoinTheRealms' tablet shot, we will just have to wait for someone to gather the pieces and pick up where they left off. The recovery thing would be nice, but all the new inprovements _that included in his kernels for Linux would be the reason we need a more up to date Linux kexecboot kernel...

Sorry for the bad news...
[Asus Transformer TF700] cogano:
It would be good to have a default item from boot.cfg to boot from after a given time automatically.
[Asus Transformer TF700] workdowg:
i'll add a todo list in the OP... Maybe someone will stumble upon this thread and help...
[Asus Transformer TF700] workdowg:
Added kexecboot support to rabits Ubuntu-12.10 rootfs image and changed the name for clarity... Up in ten minutes.

Testing now...
[Asus Transformer TF700] workdowg:
Boots fine. Don't forget to open a terminal and update and upgrade. Then add inet and inet-raw to the end of /etc/group(this allows regular users to use the Internet ) :

sudo apt-get update
sudo apt-get upgrade
sudo echo " inet:x:3003:root,ubuntu" >> /etc/group
sudo echo " net_raw:x:3004:root,ubuntu" >> /etc/group

and reboot.

From my Debloated Stock Kitkat VS980 4G VZN
[Asus Transformer TF700] workdowg:
Apparently you can't sudo echo, so just do a sudo gedit and add the inet and net_raw lines to the end...

From my Debloated Stock Kitkat VS980 4G VZN
[Asus Transformer TF700] jcfunk:
I've been working on adding the reboot to recovery into kexecboot menu, I need to know what the terminal command would be to reboot into recovery.

Also is it possible to use lubuntu rootfs for AC100, its tegra 2 based. I couldn't find info on how to make a rootfs.
[Asus Transformer TF700] workdowg:
The ac100 rootfs works only if you disable lightdm. I haven't had time to work on the graphic driver issue. It needs nvidia drivers but they wont work with the newer xorg. Even adding ServiceFlags "IgnoreABI" "true" doesn't help.... I was trying to work with an older Ubuntu and dist-upgrade it without updating the xorg but have had little luck. If you want I have the ac100 rootfs bootable to console if you would like to try. Have a usb keyboard ready to change tty's...

I can't find any info on what command would work for recovery ...
[Asus Transformer TF700] jcfunk:
That _10 kernel keymaps work for f-keys.
[Asus Transformer TF700] Duckman5:
I was trying to do the same thing last weekend. I have a rootfs that is all 14.04, but has the xorg (and some supporting stuff) from 12.04 (XABI 11). I can get X to start and I can use xfce, but for some stupid reason I can't get lightdm to start. I have no idea why and didn't have any time yet this weekend to look into it. Any hints you might have would be useful.

Also, as far as the boot to recovery thing goes, I can't imagine it is that hard to do. Recovery is just a minimal android boot. Assuming the recovery kernel supports kexecboot I will bet you that you can just add it as a regular entry in the boot menu. What partition is it stored on? For that matter, does anyone have a list of all the partitions and what they store? It would be super helpful for me.

Thanks!
[Asus Transformer TF700] cogano:
http://xdaforums.com/showthread.php?t=2004273

---------- Post added at 09:38 AM ---------- Previous post was at 09:17 AM ----------

The proper ;) way to create a group and add some users to it would be:

$ sudo groupadd -g 3003 inet
$ sudo groupadd -g 3004 net_raw
$ sudo usermod -a -G inet,net_raw root
$ sudo usermod -a -G inet,net_raw ubuntu

Alternatively, the direct edit of /etc/group should be good enough, but "sudo echo" would have to be run in a new shell, so that the redirection to a file still has the escalated privileges:

$ sudo bash -c "echo inet:x:3003:root,ubuntu >> /etc/group"
$ sudo bash -c "echo net_raw:x:3004:root,ubuntu >> /etc/group"
[Asus Transformer TF700] workdowg:
Yes, yes it does. The problem for our Linux is the current kexec Linux kernel is compiled from _that5 right now. We need someone to compile a new one. All my attempts have failed miserably...

Side note: The reason for the extra steps for regular users to access the internet is because the kernel we have was compiled with paranoid_android flag...
[Asus Transformer TF700] cogano:
[MENTION=3971563]workdowg[/MENTION] - where do you want me to upload that10 zImage so that you can include it in OP?
[Asus Transformer TF700] workdowg:
The Linux image!? Pm me.

From my Debloated Stock Kitkat VS980 4G VZN
[Asus Transformer TF700] C288:
If you mean the command for terminal emulator. It is simply "reboot recovery".
[Asus Transformer TF700] jcfunk:
extracted the config for the Linux kernel and will build using that_10 source. will be able to post for testing

Update:

Here is a link for zImage and modules that compiled when I used the config from the linux kernel.

that_10-linux-kernel
[Asus Transformer TF700] cogano:
kexecboot binary source code?

[MENTION=4582979]JoinTheRealms[/MENTION] [MENTION=3971563]workdowg[/MENTION] or possibly others: do you know where the source code of a working kexecboot binary included in the current initrd.img of host kexec kernel is?

Is it the original [MENTION=5363490]moreD_cn[/MENTION] code on GitHub?

https://github.com/moreD/kexecboot/

Or did someone fork that already?
[Asus Transformer TF700] workdowg:
Good question.
[Asus Transformer TF700] workdowg:
OP updated

Added that10 Linux kernels by conago (THANK YOU!) to the rootfs images and the zip file to the OP. Download again or added the files in conago's zip file to your current rootfs...
[Asus Transformer TF700] jcfunk:
I was looking into building from kexecboot.org or using kexec-loader. Also ubuntu has a project for it but has little developement.
[Asus Transformer TF700] cogano:
I was able to compile moreD_cn's kexecboot with the --enable-timeout option (should boot in 10 seconds the first item), but I can't make it to the boot.blob - kernel panics due to missing /init. I guess, the initramfs does not get mounted.

I used host kexec kernel in the OP and followed _that's tutorial for unpacking and repacking.

I noticed that initramfs is compressed with lzma instead of gzip, but I guess it should not much matter.

Interestingly, some other tool complained that the blob was not created by mkbootimg with a standard offset. However, this tool did not complain on _that's standard android kernel blob v10.

I may try to recompile mkbootimg with the nonstandard offset and try again. Tomorrow.

If somebody can share an idea how the kexec host kernel was packed, I would be glad...
[Asus Transformer TF700] JoinTheRealms:
Yeah ive always compressed with lzma to maximize compression (some of my testing ramdisks were pushing 8mb, which is the limit for the mmcblk0p4 partition)

use blob-tools to unpack blob, then something like "mkdir init && cd init && lzma -dcS .img ../initrd.img | cpio -i" to decompress the boot.img, to repack i do find ". | cpio -o -H newc | lzma > ../newinitrd.img" the package into a blob with blob-tools (following _thats tutorial)

The kexecboot binary is compiled from moreD's source here: https://github.com/moreD/kexecboot/ if someone wanted to update the binary to a newer version, should be possible to cherry-pick those commits from moreD ontop of the later source.
[Asus Transformer TF700] cogano:
Ah, the use of mkbootfs instead of "cpio -o -H newc" was the culprit, now it boots fine. Thanks a lot.

BTW, moreD_cn kexecboot is patched with "--enable-timeout" configure option, which sets a default time out of 10 seconds (can be set otherwise) before booting the first item. However, this is not a run-time variable, it is simply hard-coded.

The timeout behaves differently than e.g. in grub: it resets on a key touch and starts counting again, after another 10 seconds always the _first_ item is booted, no matter that other item might have been selected.

IMHO, it still makes sense to have it enabled, it is an unneccessary complication for kids to decipher the operating system names and choose their favourite Cromi for Angry Birds ;)

[MENTION=3971563]workdowg[/MENTION]: if you agree, I would provide you with kexec-host-kernel blob with automatic timeout. (Later today, since I have only a statically linked binary now, which is too big).
[Asus Transformer TF700] workdowg:
Sounds great!. I personally would love that option. Don't know how many times I've walked away to do something and come back to it still just sitting there... :silly:

From my Debloated Stock Kitkat VS980 4G VZN
[Asus Transformer TF700] jcfunk:
I compiled that10 kernel for host , I was going to change color of kexecboot the white backgroud is to bright for my eye.

Also don't think the ramdisk doesn't need modules for hush2.0oc kernel, but I'm not sure
[Asus Transformer TF700] steffenbakke:
Anyone able to help me on this one? When doing the commands I get

"Bash /etc/group: Permission denied"

Also I tried the following:

sudo groupadd -g 3003 inet

sudo groupadd -g 3004 net_raw

sudo usermod -a -G inet,net_raw root

sudo usermod -a -G inet,net_raw ubuntu"

With the two first commands it just said it already existed, when typing the two other commands it didnt give any response, and nothing was new after a reboot. Anyone has an idea?
[Asus Transformer TF700] cogano:
Show us the contents of /etc/group. E.g. run:

sudo cat /etc/group

And copy what you see in the terminal.

BTW, what "new after reboot" did you expect? (Wifi is not working?)
[Asus Transformer TF700] steffenbakke:
What I meant was the changes to WiFi, so it would work... Sorry for the confusion :p.

Well, I copied the content I gør from running the cat command on it, into a text file, then I thought I would just be able to acces it from my tablet when being in Android mode, as I saw users where located outside of the rootfs file... But I was wrong, as I couldnt acces the desktop enviorment with the Ubuntu account in the first place, I am now using another sudo user that I've created. And I am pretty sure that one is stored inside of the rootfs, wich goes out of my mind... So could u confirm this method would work?

Go to the login screen, acces the shell logging in as Ubuntu, then running the Cat command, and create a new file in the home of Ubuntu user, then doing visudo on it and pasting the content I got from the Cat command into it, then reboot to Android and acces it so I can share it here?

I may have misunderstood the command "visudo", for me it appeared as a text editor, but by searching a little it appeared to me like it was only a tool for the sudoers file, are there any other way to edit text files from command line?
[Asus Transformer TF700] workdowg:
Updated OP

Added kexec host blob, by conago, with 10 second time out. This will start the OS you have set to the highest priority in the boot.cfg after 10 seconds. In the example boot.cfg it is CROMI-x/CROMBi-KK (PRIORITY=100).
[Asus Transformer TF700] cogano:
[MENTION=5298578]steffenbakke[/MENTION]: do you have a microsd card? You can save the text file there and read it on your computer later. If you have the dock with the keyboard, then it even has a standard USB port.

BTW, /etc/group is already a plain text file, so you can copy it with whatever tool you like anywhere else (microsd, Android internal sdcard, ...)

visudo is a wrapper for safe editing of sudoers file, it cannot do anything else.

If you want a shell editor, try vi, vim, or nano (the last one is simple to use, though I do not know if it is installed by default)
[Asus Transformer TF700] steffenbakke:
No microsd card... Oh yeah didn't even think about the usb, I was mostly thinking about finding a usb data cable from my tab to pc... But now that u say it, I might have an unused usb stick somewhere

---------- Post added at 08:22 PM ---------- Previous post was at 08:14 PM ----------

[/COLOR]root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:ubuntu
tty:x:5:
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:ubuntu
fax:x:21:
voice:x:22:
cdrom:x:24:ubuntu
floppy:x:25:
tape:x:26:
sudo:x:27:ubuntu
audio:x:29:pulse,ubuntu
dip:x:30:ubuntu
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:ubuntu
sasl:x:45:
plugdev:x:46:ubuntu
staff:x:50:
games:x:60:
users:x:100:ubuntu
nogroup:x:65534:
libuuid:x:101:
crontab:x:102:
syslog:x:103:
fuse:x:104:
messagebus:x:105:
avahi-autoipd:x:106:
lpadmin:x:107:ubuntu
ssl-cert:x:108:
netdev:x:109:ubuntu
whoopsie:x:110:
ssh:x:111:
utempter:x:112:
rtkit:x:113:
bluetooth:x:114:
scanner:x:115:
colord:x:116:
lightdm:x:117:
nopasswdlogin:x:118:
avahi:x:119:
pulse:x:120:
pulse-access:x:121:ubuntu
saned:x:122:
ubuntu:x:1000:
android_user:x:1023:ubuntu
ntp:x:123:
inet:x:3003:root,ubuntu
net_raw:x:3004:root,ubuntu
testing:x:1001:
testing@tf700:~$
[Asus Transformer TF700] workdowg:
Just a thought... Did you click on the wifi icon and select your wireless network? I only ask because I just downloaded a fresh copy of the newest rootfs I posted and installed it. I had no issues loging in, selecting my wireless network and using Chromium to get on the internet as the Ubuntu user.... I didn't try adding a new user (don't really have a need), but I'm sure it would work.... Just my 2 cents...
[Asus Transformer TF700] cogano:
[MENTION=5298578]steffenbakke[/MENTION]: your problem with non-working wi-fi does not seem related to this issue, since you have the users added to the groups correctly.
[Asus Transformer TF700] steffenbakke:
Well I have tried being on different networks, none of them have been working....

Chromium isn't installed on the new user, only Firefox is.

Oh a little addon to this post... The error I get using wget/firefox is that the server is not find, so wget says "www.google.dk" or something similar not found, while firefox says "Server not found", the same happens when using "ping" in the terminal
[Asus Transformer TF700] cogano:
Hm. Difficult to trace the problem remotely. You'd better try the current version of lubuntu rootfs in the OP (it was updated recently) - it should work out of the box (no need for adding groups inet, etc...).
[Asus Transformer TF700] _that:
Looks like a nameserver problem. Can you ping an IP address?
[Asus Transformer TF700] steffenbakke:
Already using the newest... Even tried re-installing some times... It's weird, because even with a re-download of the rootfs, the problem with not being able to use the default user and so on countinues...

Just tried to ping 8.8.8.8 (google-public-dns-a.google.com.) this is receiving 64 bits each second so it looks fine,

Looks like a dns problem, as I cant ping urls, got any ideas on a fix?

---------- Post added at 10:31 PM ---------- Previous post was at 09:36 PM ----------

Okay so tried setting the DNS servers to googles public one(witch I can ping) via the connection manager, didnt fix it even after a restart. Tried to do it manually in /etc/dhcp/dhclient.conf didnt work neither. Any other ideas?

Tried editing nameservers to googles public ones aswell, no help
[Asus Transformer TF700] cogano:
Can you say, which kernel you have?

cat /proc/version

or

uname -a
[Asus Transformer TF700] steffenbakke:
Linux Version 3.1.10-test-1-+ (josh@ubuntu) (gcc version 4.7.3 20130328 (prerelease) (crosstool-NG linaro-1.13.1-4-7-2013.04-20130415 - Linaro GCC 2013.04) #6 SMP PREEMPT Tue Oct 15 07:08:52 PDT 20013
[Asus Transformer TF700] cogano:
IMHO your kexec setup does not work and the kernel included in Lubuntu rootfs is not loaded.
[Asus Transformer TF700] workdowg:
Well... This is the Android kernel for CROMBi-KK not native Linux. conago was asking for you to get the Linux version from the Lubuntu install...
[Asus Transformer TF700] steffenbakke:
If I use the other command this is what I get

"Linux tf700 3.1.10-test-1-+ #6 SMP PREEMPT Tue Oct 15 07:08:52 PDT 2013 armv7l armv7l armv7l GNU/Linux"
[Asus Transformer TF700] workdowg:
And I'm now downloading a fresh lubuntu copy from my site to test install.
[Asus Transformer TF700] steffenbakke:
I used the 9oc kernel for the cromi-x not kitkat... I used the command he told me to, both of the commands actually wich gave different responses.
[Asus Transformer TF700] workdowg:
I just checked all the zip files in the OP. None are mixed up. I also just installed the lubuntu and it boots fine. internet works. i'm off to work...
[Asus Transformer TF700] steffenbakke:
This is just weird then... Well, the only problem I have right now is with DNS/nameservers, witch I should be able to fix in one way Or another... Thanks anyways

Edit:

Got wget to work and ping to URL, it works now with sudo infront of it. Firefox still out of function

After reboot only IP works again
[Asus Transformer TF700] cogano:
[MENTION=5298578]steffenbakke[/MENTION]: the two commands ("uname -a" and "cat /proc/version") do pretty much the same, the latter is just more verbose. Take your time and compare the strings.

The errors you are experiencing (working ping, but failing domain name resolution) look exactly as the issues with old kernels (which used to be resolved through adding groups and assigning users to those groups) and this should not be an issue with today's builds anymore.

Sorry for being brief in my last post: I was in a hurry. What I wanted to say is that if you use the current Lubuntu rootfs, then you should have kernel version that10-cogano3 (as per my communication w/ workdowg, I have not really downloaded the rootfs).

E.g. my setup (in Linux):

ubuntu@tf700:~$ uname -a
Linux tf700 3.1.10-that10-cogano3 #1 SMP PREEMPT Sun May 18 22:36:14 CEST 2014 armv7l armv7l armv7l GNU/Linux

While in my Android (some old Cromi X 5.xx):

Linux version 3.1.10-10.6.1.14.8-that5-oc+ (that@ws) (gcc version 4.7.2 (Gentoo
4.7.2-r1 p1.5, pie-0.5.5) ) #16 SMP PREEMPT Thu Sep 5 00:20:05 CEST 2013

And when I checked in kexecboot (the first GUI menu after power-on of your TF700t in which you choose the system to boot offers also a "System" submenu, there you can choose "Exit" and in the next displayed textual menu you can choose "Shell" and type "uname -a". You can "exit" the shell to get back or just type "reboot".), then I can see there is some kernel compiled by josh@ubuntu sometime in October 2013 and the version has "-test-1-+" string (pretty much like the one of yours in _Lubuntu_).

This leads me to an idea, that your kexec boot process does not work (the kernel in Lubuntu is not loaded by kexecboot) and therefore your Linux is booted with the same kernel as is used by kexecboot.

To straighten up the process of our guessing, it might help if you can compare the three kernel versions (use "uname -a", the string is less cluttered).

If it proves you have the same kernel in kexecboot and Lubuntu, you should check your multiboot/boot.cfg.

As per OP (booted to Android):

Then use your file browser to open the text file /data/media/0/Download/kexectemp/multiboot/boot.cfg and paste its contents here. Also tell us, which of the LABELs you choose to boot Lubuntu.

Finally, do not forget to unmount the directory again so that you do not screw the files there accidentally:

su
umount /dev/block/mmcblk0p5

Hope it helps!
[Asus Transformer TF700] steffenbakke:
Helps alot! Thanks for the explanation...

It's weird because I am pretty sure I have downlosded the newest, and flashed it but I could be wrong. I'll try it again when I get home.. Again thanks
[Asus Transformer TF700] cogano:
I think you do not get the point: the problem is most probably not with the Lubuntu installation in the image container (done by the Installer v1.1). If you downloaded the latest rootfs, it surely has /boot/zImage and /boot/initrd.img files.

The point is that the /boot/zImage is possibly not loaded during boot to replace the kexecboot running kernel. That is, your setup behaves like dual-boot we had before implementaion of kexec.

If you fail to get it working, you'd better start again and re-do carefully every step as described in OP and watch for any error messages.
[Asus Transformer TF700] steffenbakke:
That was what I was trying to say, with the redownload just to make sure its the new rootfs. And then redo it all
[Asus Transformer TF700] Ananasnonym:
Hello guys,

I proudly present to you my build of Lubuntu 12.04.4 LTS from Ubuntu-Core!

This rootfs has the advantage that it is a Long Term Support version, which means it gets security updates until April 2017 and is very stable. As soon as nvidia releases the driver for X in 14.04, I will make an effort to build a rootfs from minimal ubuntu there. But for now this is my rootfs of choice.

User: ubuntu
password: ubuntu

Features:

DPI 225 x 224 (If you want smaller make /etc/X11/xorg.conf: DisplaySize 217 136 bigger)

Hardware acceleration by using nvidia drivers (egl works)

Icon fixes for elementary theme

Conky fixes

Hundsbuah based linux kernel included (v 3.1.10-test-1-+ in /boot/zImage and /boot/initrd.img)

Overclock to 1.8 GHz per default (change in /etc/JoinTheRealms/overclock/OCsettings)

Hotplugging of CPU-Cores (if you don’t want this delete echo balanced … line in /etc/rc.local)

If you want to use that10 kernel you have to remove overclock and hotplugging too afaik

Touchpad works

Touchscreen works

Speaker works

One click opens files

Remapped keys:

Search -> Alt_L,

Menu -> Super_R,

Shortcuts:

Home -> pcmanfm

Touchpad enable/disable -> lxterminal

Brightness keys work

Camera key -> gnome-screenshot

Browser key -> chromium-browser

Settings key -> lubuntu-software-center

Volume keys work (When FKeys Mute = F11 and LowerVolume = F12)

Ctrl-Alt-y toggles function keys to Esc, F1-F12 and back to original, (I couldn’t remap the brightness keys because they are catched by brightness changing, so the order is Esc, F1, F2, F3, BDown, BUp, F4, … F12) If you want Fkeys per default change ~/.Xmodmap and /etc/Ananasnonym/Fkeys accordingly.

Automatic remapping of the keys when you dock the keyboard (udev script)

<1.5 GB installed

Ubuntu backports sources enabled

Installed:

fuse-exfat lxappearance lxkeymap lubuntu-core xfce4-power-manager lubuntu-software-center gnome-screenshot leafpad xcompmgr rsync build-essential

Installed (not by apt): pnmixer

To install default Lubuntu apps:

sudo apt-get install lubuntu-desktop

To add your own user:

sudo adduser $YOURUSER

– all files from /home/ubuntu are also in /etc/skel, so your new user will be identical to the ubuntu user

Known issues:

It takes a long time to load the login screen

Conky displays (null) for external IP for a long time after boot, after some time it works

„at“ locale not installed yet => in Terminal is no ß, ö, ä, …

who, users etc. do not display anything. whoami works. Might be a kernel problem?

Questions:

How can I enable hardware acceleration for chromium?

Many thanks to rabits, JoinTheRealms, workdowg, but also rss351 (your try to debootstrap was very helpful and did work eventually!)

Lubuntu 12.04 Minimal Download

sha1sum: 6138c2cdde4fbac49f65d2c7d945612ae6bb1683 minimal-Lubuntu-12.04.tar.lzma

minimal-Lubuntu-12.04.tar.lzma.sha1

Edit: This version is outdated! Please use this: http://xdaforums.com/showpost.php?p=52916144&postcount=906
[Asus Transformer TF700] workdowg:
Excellent! Will test and mirror to the OP.

Edit: @Ananasnonym Can I get a md5 hash please?
[Asus Transformer TF700] Ananasnonym:
sha1sum: 6138c2cdde4fbac49f65d2c7d945612ae6bb1683 minimal-Lubuntu-12.04.tar.lzma

minimal-Lubuntu-12.04.tar.lzma.sha1