yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF700] _that:
Error message? Have I missed something?

---------- Post added at 08:39 PM ---------- Previous post was at 08:17 PM ----------

Great post! One small correction/addition:

mmcblk0p4 is the update staging partition - only on the first reboot the bootloader moves the kernel/recovery from the blob in mmcblk0p4 to the final kernel/recovery partition. The kernel and recovery partitions have no entries in the GPT, so they have no mmcblk0pX number - unless you are using a kernel with a patch that hacks mmcblk0p9 and mmcblk0p10 (recovery and boot kernel) into existence.
[Asus Transformer TF700] workdowg:
http://xdaforums.com/showthread.php?p=51454981

From my VS980 - Stock KK
[Asus Transformer TF700] _that:
Ah! This is obviously not from my kernel's ramdisk or from Android - both don't have modprobe. I can guarantee that my kernel can boot Android, otherwise thousands of users would have noticed. ;)
[Asus Transformer TF700] M47Z:
ok i finally got lubuntu running now on externel sd dir :laugh: thanks JoinTheRealms workdowg and also cogano for nice round-up helped me alot yesterday! One little thing, in your example boot.cfg you have to use BOOT=3 for linux directory boot (if im not mistaken)

Android is still not usable but I dont care for now ;)

workdowg, you wrote in the dev thread you would be looking into elementary os a while ago, how did that turn out? installed it on acer aspire one netbook for a friend of mine, it performed faster than lubuntu and xubuntu on the same device :)
[Asus Transformer TF700] cogano:
Good point. Corrected now.
[Asus Transformer TF700] workdowg:
As I recall it booted, but had video driver issues I couldn't work out. Just not enough time...
[Asus Transformer TF700] cogano:
Keyboard layout for TF201dock with F keys

EDIT: The below mentioned approach has some weaknesses, see the post #728 for a better solution.

== original post ==

[MENTION=4878287]_that[/MENTION] mentioned in the change log of his v9 kernel that it should support the F1-F12 keys (the dock top row keys). Since I as not able to boot this kernel yet, I looked deeper at XKB definitions for X.org.

In particular, rabbit created a re-definition file for the TF201dock (located in /usr/share/X11/xkb/symbols/tf201dock in rootfs-lubuntu-tf700t-8-22-2013.tar.lzma).

It may be used on CLI, e.g. for setting basic German layout (de):

$ setxkbmap -symbols pc+inet\(evdev\)+tf201dock+de

where the individual abbreviations (pc, inet, tf201dock, de) refer to other definition files within xkb/symbols directory. The XKB stuff is quite complex, read some Wiki for more details.

This solution is just fine for command line or script, it however does not work for GUI tools (like lxkeymap), which allow to set keyboard type (pc105), language layout (de) and its variant (Dvorak) instead of choosing a series of "symbols" files as shown above.

As far as I understand, this "workaround" will not be needed once the kernel reports "fake" keycodes for the top row keys directly.

Is my expectation correct?
[Asus Transformer TF700] _that:
The kernel reports 100% real :) keycodes for the function keys.

Shift+WiFi Toggle = KEY_F1

Shift+Bluetooth Toggle = KEY_F2

...

Shift+Next Track = KEY_F12
[Asus Transformer TF700] ariadnejro:
I'd love to be able to dualboot Linux and Android, but I'm currently using crombi with data2sd and f2fs and the tablet is soooo fast that I can't go back.

So I'm asking _that if his last v9 kernel supports kexecboot and if there is a chance to dualboot Linux with a setup like mine.
[Asus Transformer TF700] _that:
The kernel supports kexec in both roles - with some manual work (putting all the configs, zImages and ramdisks in the right places :)) you should be able to get kexecboot working in your setup.
[Asus Transformer TF700] cogano:
It would be nice to have a kernel boot parameter for choosing the F keycodes with or without SHIFT modifier:

WiFi Toggle = KEY_F1

Shift+WiFi Toggle = WiFi Toggle

It is really a fight to use the keyboard and not utilise 20 years of typing habits ;)
[Asus Transformer TF700] _that:
Good idea - planned for the next release.
[Asus Transformer TF700] workdowg:
As usual you were correct. :) I must have mixed up the ramdisks... Android now tries to boot after being called from the kexecboot menu, but hangs on boot animation. Here is the logcat... It's a little big, probably let it run too long....
[Asus Transformer TF700] _that:
There appears to be something seriously wrong with your Android system... are you sure you're using the correct ramdisk and you have a /system/framework directory?

E/dalvikvm( 140): JNI posting fatal error: Native registration unable to find class 'com/android/internal/os/RuntimeInit'; aborting...
[Asus Transformer TF700] workdowg:
Oops, used_that9 instead of cm112. Android boots now.

From my VS980 - Stock KK
[Asus Transformer TF700] workdowg:
Deleted
[Asus Transformer TF700] cogano:
Keyboard layout for TF201dock with F keys - Part II

Having redefined the F keys mapping through XKB symbols, I did not enjoy the PC keyboard long: the trouble was that I use TF700t for remote access, too, and once there is another X server involved, all the local XKB mapping is useless and would have to be copied over to the remote machine. PITA.

Instead, I backported the CM and F-keys patch https://github.com/that1/android_kernel_asus_tf700t/commit/3bf17ce00bf565612616de4475535d5a18a600e3 from _that kernel v9 to v7 (because I could not get v9 boot successfully).

Unfortunately, the original patch was not a big success either: X.org sends both keycode and modifier state to the application and it is up to the application what it does with it. Obviously, sending F5 key to Midnight Commander is not the same as sending Shift + F5 and therefore the F-keys activation through SHIFT modifier was pretty much useless in Linux.

I eventually hacked the patch to:

Utilise “echo [0|1|2] > /sys/module/asusdec/parameter/key_mode” for activation of 0) unmodified keyboard layout of Asus, 1) slightly modified keyboard layout of CyanogenMod, and 2) redefined keyboard layout to match a standard PC keyboard. Default is mode 0.

In any of the three modes, Alt+Gr (Right Alt) changes the behaviour (i.e. in mode 0: Alt_Gr + WiFi = F1; while in mode 2: WiFi = F1 and Alt_Gr + WiFi = WiFi). My best guess is that using Alt_Gr as a modifier is safer than Shift, but I have not tested it in Android.

For the alternative layout in mode 2 (matching the standard PC keyboard), I also modified some other keys: BACK => ESC, MUTE => INSERT, SLEEP => DELETE, HOME => Super_L, SEARCH => Left_Alt

It might be a good idea to add "echo 2 > /sys/module/asusdec/parameter/key_mode" to init.d scripts for Linux rootfs.

Attached are the patched drivers/input/asusec/asusdec.c file and a clean patch, too. It would be nice if you guys can utilise it ([MENTION=4878287]_that[/MENTION], [MENTION=4582979]JoinTheRealms[/MENTION], [MENTION=3971563]workdowg[/MENTION]) so that I do not have to compile kernels myself anymore ;)
[Asus Transformer TF700] workdowg:
Got both CROMBi-KK 4/03/2014 (on internal) and my current (updated yesterday) Linux Deploy Arch Linux partition booting through kexecboot. Yay! This means both image files and partition installs are possible. I'm going to rip rabits 12.10 (it is a LTS after all) and my Lubuntu install to a partition and see how they function. I should probably make sure both are working from an image file too. ;)

I'm kind of busy today but I'll see if I can get the files uploaded for people wanting to use CROMBi-KK on internal. I'll link @cogano instructions (here) and some new info/files into the OP.

For those using CROMBi-KK on rom2sd and or f2fs (hint @ariadnejro) I will extract and zip up the other 2 _that kernels with no guarantees how it will work as I don't use either...
[Asus Transformer TF700] ariadnejro:
Thank you. My current crombi setup is with data2sd and f2fs. I suppose that I could try Linux on internal.
[Asus Transformer TF700] Duckman5:
I'm sorry if this has been covered before, but how hard would this be to port over to the TF300T? I have Xubuntu installed to an SD card partition and would like to continue dual booting with the newer Crombi-kk instead of Cromi-X. Is it as simple as just a zImage replacement? I've built/replaced kernels on my PC a million times,but I'm really new to Linux in the embedded space.
[Asus Transformer TF700] workdowg:
@JoinTheRealms is working on the TF300T because his TF700T is retired...

That said, I assume you would do what I did which was extract the zImage and initrd.img from the correct kernel blob in the CROMBi-KK zip file and place them in /system/boot
[Asus Transformer TF700] workdowg:
Both partition and image files are booting.

I'll post the kexec files for

CROMBi-KK

in the dev thread. I put a link to @cogano 's tutorial in the OP.

For those running CROMBi-KK w/_that9-oc+(modded for cm112 by jl20036), I have a quick rundown of what you need to do and the necessary files (ie cm112 android kernel) here
[Asus Transformer TF700] workdowg:
I'll hold on to them. I may be cross compiling soon... Haven't had much luck in the past but I'm going to try to set up another build environment with Arch. I just don't understand why it is so complicated in Arch. I may just set my old server up just to run Ubuntu for it. It has a Quad core AMD with 8GB ram which should be OK. I may need to pony up and get a SSD for it...
[Asus Transformer TF700] C288:
Desktop Environment

I am having trouble installing the deepin desktop environment. -http://www.ubuntugeek.com/install-deepin-desktop-environment-on-ubuntu-13-04.html- it looks really nice. Can anyone try this and see if they can get it to work. And another question are we limited on desktop environments because we have an arm processor.
[Asus Transformer TF700] workdowg:
Almost all desktop environments are in the arm repo's. At the moment I'm upgrading my lubuntu 12.10 image to 14.04. I'll try deepin once I get Nvidia drivers working... :)

From my VS980 - Stock KK
[Asus Transformer TF700] C288:
Ok Thanks

If you you do get the upgrade to work could you post a how-to. Telling how to upgrade.
[Asus Transformer TF700] workdowg:
Will do.

First try was a flop... Too many errors to figure it out. Of course I made a backup of my working install first. Been there done that. Too many times....
[Asus Transformer TF700] sbdags:
I had a terrible time updating my nvidia drivers recently. I had all kinds of issues until I put xubuntu on from fresh and then it all worked fine again......
[Asus Transformer TF700] workdowg:
You installed it fresh on the tablet?

From my VS980 - Stock KK
[Asus Transformer TF700] sbdags:
No my PC :p

I had Xubunti 14.04 running on an old nvidia card and updated my card to a new one and I had all kinds of issues with the nvidia drivers. Until I did a clean install :) Even purging them didn't help. All kinds of old settings were getting picked up.
[Asus Transformer TF700] cogano:
Then, I was probably lucky (Arch x86_64, plenty of RAM): I've never cross-compiled before, hence I vaguely followed the Ubuntu tutorial here.

It mentions linaro compiler, I remember from other threads there may be problems with the newest version, hence I pulled the older version from AUR (arm-none-eabi-gcc47-linaro).

The only relevant steps from the tutorial were:

export ARCH="arm"

export CROSS_COMPILE="/usr/bin/arm-none-eabi-"

copy the existing kernel config from /proc on the tablet to arch/arm/configs/<your_config_name>_defconfig

patch the asusdec.c driver

make <your_config_name>_defconfig

make menuconfig and exit immediately

make -j9 (pretty fast ;) )

I did not compile modules, since they're not loaded by kernel anyway.

BTW, I used _that kernel v7 from GitHub w/o any other patches.
[Asus Transformer TF700] C288:
Backup

Will backing up with twrp back up the Ubuntu installation to.
[Asus Transformer TF700] workdowg:
Short answer... no. /data/media does not get backed up.
[Asus Transformer TF700] C288:
Then How

Then is the only way just to copy the files or is there an easier way and have you got to ,trying to see if deepin works.
[Asus Transformer TF700] workdowg:
I copy to my home server using ftp. 4gb files don't always copy over to USB drive or microsd

From my VS980 - Stock KK
[Asus Transformer TF700] C288:
Deepin

Thanks and have you tried to get deepin working yet.
[Asus Transformer TF700] workdowg:
I killed another install and ran out of time and patience ... Maybe this weekend. I'm still having probllems getting a XFCE4 or core 14..04 Ubuntu booting. I know nothing about upstart. The only working GUI disto I have is lubuntu 12.10 and can't upgrade it because it keeps failing and then doesn't boot. Ubuntu is suppose to have an official upgrade path from 12.10 to 14.04 "soon" says the web site.

My Arch install needs some love again too, xorg server is too new again and now "IgnoreABI" doesn't even help to get a GUI to start. The linux4tegra drivers won't help either even if I could get them installed. They have an ABI version of 14 and xorg is 15... sigh
[Asus Transformer TF700] Ananasnonym:
Whats the latest linux kexec guest kernel? Does it have f2fs support? If not, how to enable it?

---------- Post added at 05:44 PM ---------- Previous post was at 05:41 PM ----------

Concerning backups of Lubuntu - I found it very convenient to use rsnapshot and a Backup partition on the external SD in the Dock. You can have daily/weekly/monthly Backups and 10 of them on an 14 gb partition (rsnapshot uses hardlinks to save space so only changes in the os take up extra space)
[Asus Transformer TF700] workdowg:
It could I suppose. You would have to ask [MENTION=4878287]_that[/MENTION] or someone who uses it. I only use the LINUX kernel [MENTION=4582979]JoinTheRealms[/MENTION] compiled from _that9-oc+. The CROMBi-kk Android kernel is extracted straight from the 4/3 CROMBi-kk zip file...
[Asus Transformer TF700] workdowg:
CROMBi-KK Kexecboot updated to 4/27/2014 release. Remember this is only for internal, _that based CROMBi-KK install. link
[Asus Transformer TF700] workdowg:
WOW! I booted my cleaned up lubuntu 12.10 image from a partition on my dock sd. I'm using a SanDisk Extreme Plus SDHC UHS-I 16gb ($24 at Walmart). It states 80MB/s read and 60MB/s write...

This install screams!!! It boots to LightDM in about 4secs and about 4sec more to get to the LXDE desktop after login. Now I just need to get it to update without breaking it for the ...4th time...
[Asus Transformer TF700] C288:
Wow

Wow that's good. It seems the sd is faster. By the way don't worry about deepin i browsed the website and there was no arm package. But i took the advice about the sd card and it is alot faster when it is booted from the sd card. Especially when it is a class 10 sd card. Keep Up the Good Work.
[Asus Transformer TF700] _that:
I incorporated a modified, simplified and enhanced version of your idea into my next kernel and tested it on a minimal Linux console (started from my Android preinit script). The remapped keys for Esc, Insert, Delete and Alt work fine (couldn't find a way to test Super on the console), and evtest shows that the kernel sends the expected keycodes for the function keys in all situations.

However the function keys still don't work as expected: mc doesn't like the keys from F1 to F5 (but F6 to F10 work fine :confused:), and also the shifted function keys don't work. Looks like I have to play with $TERM and some associated config files, and understand this: http://aperiodic.net/phil/archives/Geekery/term-function-keys.html :eek:
[Asus Transformer TF700] projeto56:
Hi guys!

Managed to get Lubuntu working on my tab :)

But can anyone tell me how do i reduce the size of the UI in general? Things are a little big for me. Thanks a lot.

Edit: nevermind, got Gnome shell running, and everything looks ok now :)

Thanks a lot to the devs involved on this project.
[Asus Transformer TF700] workdowg:
I can't remember right now what I did to fix all of it. You could try changing the dpi setting in xorg.conf.

- Fixed the DPI issue, in /etc/X11/xorg.conf, add the red to the monitor section

Code:

Section "Monitor"

Identifier "MonitorLVDS"

VendorName "Nvidia"

ModelName "T33 Tegra3"

Option "DPMS" "true"

Option*"DPI" "240 x 240"

# DisplaySize 218 136

EndSection

You could use 213 if you wanted smaller... I'll fix the font sizes too in the next update.

From my Debloated Stock Kitkat VS980 4G VZN
[Asus Transformer TF700] steffenbakke:
Any of u guys have gotten java/flash to work? I would have downloaded it through Software center but either it didnt load Or it never started downloadning. Tried with terminal but couldnt find any way that worked.... Using Ubuntu dualboot
[Asus Transformer TF700] JoinTheRealms:
Sure but we have no gpu decoding with it so its rather usable for games and video, html5 alternatives run much better. follow these instructions for flash http://xdaforums.com/showpost.php?p=40813881&postcount=129 note: quite outdated binary so make no reliance on security.
[Asus Transformer TF700] steffenbakke:
Hm... Ubuntu booted fine yesterday, now I tried to boot in it, but gets to a black fullscreen terminal window instead where I have to login with my ubuntu login details, after I log in I get into a terminal window saying Welcome to ubuntu 12.10 and some other things also something about a new release "12.10" and details on how to update. Further down I can use the terminal... But ohm, why is it not booting as normal? I tried to reinstall cromi, and the installer. But still gives me this.... Any ideas?
[Asus Transformer TF700] cogano:
[MENTION=5298578]steffenbakke[/MENTION] - look for log file of X.org (probably in /var/log/Xorg.0.log or so) and check its contents for errors (EE lines).
[Asus Transformer TF700] workdowg:
Thread title change...

I changed the thread title and closed the dev thread. Also reworked the OP for kexecboot...
[Asus Transformer TF700] workdowg:
"New" lubuntu 12.10 rootfs in the OP. It is trimmed as much as I can. If you try to update it, exclude xorg-server or else it won't boot to the gui... Good luck, if anyone gets it working with even 13.04 let me know. ;)
[Asus Transformer TF700] steffenbakke:
The download for Lubuntu witch should download the 650mb version 2014 version, actually downloads the old 2013 one on 689 mb
[Asus Transformer TF700] workdowg:
sorry, my bad. Been up for 25 hours.... easy fix 5 minutes...
[Asus Transformer TF700] workdowg:
Fixed... It installs fine. Still can't figure how to get it updated though. Google ubuntu disable lightdm and check the first result to stop it from automatically starting so you can diagnose xorg issues... Also try going into sypnatic and xserver-xorg on "hold" so it won't update...night.
[Asus Transformer TF700] steffenbakke:
Got the newest lubuntu rootfs installed... did step 1,2 in the Android part, the third one is a little tricky atleast for me... Made the temp folder in the root directory, used the twrp terminal and typed "mount -t vfat /dev/block/mmcblk0p5 temp/" when I was in the root folder, then I went to /dev/blocks and tried to do "cd /mmcblk0p5" that gave me an error saying " can't cd to /mmcblk0p5", then tried to do "cd /mmcblk0p5/multiboot" and got "No such file or directory exist"... Might just be me being stupid here and not understanding the steps, but I am supposed to copy the boot.cfg (https://www.lugotfl.org/tf700t/kexecboot/boot.cfg) file into mmcblk0p5/multiboot right? How am I supposed to do this if it doesn't exist? The content of the /temp folder in the root only includes ISN, PPID, SSN, UUID and two folders, one called lightsensor the other one sensors....
[Asus Transformer TF700] workdowg:
that all needs to be done from in Android using Android terminal emulator...

From my Debloated Stock Kitkat VS980 4G VZN
[Asus Transformer TF700] steffenbakke:
So I am not supposed to copy the boot.cfg into the multiboot?

Okay so I skipped the step number 3 in Android, as when ever I tried to CD into the /dev/block/mmcblk0p5 it said I couldnt CD into it... So I cant create the /multiboot in it. So right now, it's all running, I just get the error when I boot that the boot.cfg isnt set, so would any of you guide me to how I move the /data/media/temp/boot.cfg to /dev/block/mmcblk0p5/multiboot ? I tried with the CP command in terminal but it said "/dev/block/mmcblk0p5/multiboot: Not a directory "?
[Asus Transformer TF700] workdowg:
In Android terminal mount /dev/block//mmcblk0p5 to a temporary directory. Then copy boot.cfg to the multiboot directory there. I will add a warning in the opening post that if you mess with any other files on that partition you will probably brick your tablet. Below is sample commands that should work universally on our tablets.

The following assumes you downloaded or copied boot.cfg the the Download folder

Example Code:

su
cd /data/media/0/Download
mkdir kexectemp
mount -t vfat /dev/block/mmcblk0p5 kexectemp/
cp boot.cfg kexectemp/multiboot/
umount kexectemp/
[Asus Transformer TF700] steffenbakke:
So doing this would be working?

Mkdir /data/media/0/temp

mount -t vfat /dev/block/mmcblk0p5 /data/media/0/temp

cp /data/media/temp/boot.cfg /data/media/0/temp/mmcblk0p5/multiboot
[Asus Transformer TF700] workdowg:
as root
[Asus Transformer TF700] steffenbakke:
Got the android part running... Now when I have my connectbot to connect to the local hosted ssh server, and I do the following commands I get some errors...

"# mkdir /data/media/0/kexectemp

# mknod /dev/loop256 b 7 256

# losetup /dev/loop256 /data/media/linux/imagename.img

# mount -t ext4 /dev/loop256 /data/media/0/kexectemp"

It lets me do the first two, but at losetup it says theres no directory as "/dev/loop256" and at the mount one it says mount isnt a known command?
[Asus Transformer TF700] workdowg:
Let's back up a litlle... Are you using the "new" lubuntu image I put in the OP? If so you don't need to do any of that, it has the linux kernel already in it...

Otherwise let me look into those commands again, they came from my own how-to's and may have only worked with other devices... Right now I'm attempting the trusty upgrade using Linux Deploy this time... so my tablet is tied up right now.

I'll probably keep that section for those who have made their own rootfs images. I'll get the Arch and rabits Ubuntu booted tonight, install the kernel and repackage them...
[Asus Transformer TF700] steffenbakke:
Using the 2014 lubuntu rootfs
[Asus Transformer TF700] jcfunk:
I have an error when booting lubuntu on sdcard, it say

mkdir: can't create directory '/mnt/android/data'

I've looked inside initrd.img, I don't know why its not setting up rootfs.

I used the zip with zImage and initrd.img for linux.
[Asus Transformer TF700] C288:
New Instructions

The new instructions are a little misleading. Do you have to do all the steps under the "Kexecboot kernels install" (eg. Do you do all 1 2 and 3 or do you only do one of these). Secondly do we have to edit the boot.cfg or do we just use the example, or is that file already on the tablet.
[Asus Transformer TF700] workdowg:
Short answer is yes.

From the OP:

"You must have a

fully stable

CROMi-X 4+(TWRP 2.5+) or CROMBi-KK (trwrp_that-2.6.3 or TWRP 2.7) install to use any of the following (See this forum, here, for ROM details)

(If you are on stock rooted only, see rabits old thread as this is your only option, here)."

1) Android kernel - if you don't do this first you won't be able to to boot back into Android

2) Linux kernel - only need this if you have your own rootfs made by you or downloaded somewhere else.

3) Kexecboot kernel - This is how the kexecbooting is accomplished

The boot.cfg is usable as is if you read the file and have use of any of the common choices it describes.

I just updated it to give better descriptions in the kexecboot screen
[Asus Transformer TF700] workdowg:
Changes and updated OP

I made some changes to the OP and gave a little background.