yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF700] C288:
I was in synaptic package manager and was looking for a package and when i clicked on one of my removable drives it showed the files. So i went to file manager and clicked on the drive it gave the error. So why would it show up in one program and not the other.
[Asus Transformer TF700] JoinTheRealms:
I don't know, maybe your user doesn't have read permissions for that device, try with "sudo nautilus" and navigate to the device..
[Asus Transformer TF700] LetMeKnow:
Oop, it is my bad and thanks for the information. I just learn a new thing...:)
[Asus Transformer TF700] C288:
Thanks

I figured it out i have to open file manager and click tools and open the folder as root and then i can access it.
[Asus Transformer TF700] steaksauce:
I'd love to test it out, but reading through the dev thread... It seems a bit over my head. If you'd be willing to break it down a bit for me, I'd definitely be more than willing to test it out. Seems like the capacity for things to go catastrophically wrong is fairly low
[Asus Transformer TF700] JoinTheRealms:
Well Its still rather safe and it cant, brick your device if something goes wrong, but there is potential for data lose, so you'd just have to make sure everything is backed up. Also at this point we are recommending you backup mmcblk0p5 (as it says in the thread.)

Kexecboot is using a small 5mb partition (mmcblk0p5) that houses a boot.cfg file, when you boot the kernel, kexecboot automatically looks for that boot.cfg file as it points kexecboot to the rootfs and also the kexec kernel and initrd. What is a kexec kernel and initrd?

The implementation of kexec on embedded devices, works by loading a zImage (this is a file containing the kernel) and an initrd (this is the ramdisk its responsible for setting up everything for the operating system to take over) into memory and then adjusting some flags used by the bootloader so when you reboot, instead of the bootloader booting from the internal kernel (or the normal kernel that's located on a dedicated kernel partition) it loads the kexec kernel instead.

NORMAL SETUP:
BOOTLOADER ---> KERNEL ----------------->
INITRD ---> ANDROID

KEXECBOOT SETUP:
BOOTLOADER ---> KERNEL --------------------------------------------------------------> | REBOOT | BOOTLOADER ---> KEXEC-KERNEL --------------------------->
INITRD ---> KEXECBOOT (loading the choosen kernel into memory) | REBOOT | KEXEC-INITRD--->OPERATING SYTEM

Sorry if that makes it more complicated, diagrams are hard to make...

OPERATING SYSTEM can be either Android or Linux, it could even be a recovery etc. Too many possibilities with kexec and kexecboot.

The zImage can now be _that's or Hunds without any modifications from me, if you want boot android, all you need to do is unpack their kernel(ive posted unpacked android and linux kernels in the dev thread) to somewhere in the device your booting from and point the boot.cfg to that location also. I and moreD have given examples of this is the dev thread (if possible you should pay more attention to moreD's post since he actually knows what hes talking about:D)

The only difference if you want to boot from linux is you need to replace the android initrd (ramdisk) with a linux one (again, in the dev thread.) and again point the boot.cfg to it. If you want to boot from, lets say an image on /data/media/linux/rootfs.img then an entry in your boot.cfg might look like this:

LABEL=Ubuntu

BOOT=7 (Slightly complicated, moreD gives a good explanation, for now, IMAGE + KEXEC = 7. DIR + KEXEC = 3 etc)

DEVICE=/dev/mmcblk0p8 (the partition the image is located)

IMAGE=/media/linux/rootfs.img (path to the image)

KERNEL=/boot/zImage (the path to the kernel, this needs to be INSIDE the image)

INITRD=/boot/initrd.img (same as above)

PRIORITY=50 (determins what entry will be shown first.)

Ahh if only i spent this much time studying i might actually pass a paper this year... :D Hope this helps a bit..
[Asus Transformer TF700] Diamond5170:
What about dual-boot with Ubuntu touch? It has a smaller image (~400mb).
[Asus Transformer TF700] JoinTheRealms:
Should work, add an entry for it in the boot.cfg and replace the zImage with one that supports kexec-hardboot (basically everyone in the dev forum) and replace it with the ubuntu touch initrd.
[Asus Transformer TF700] C288:
Password

When I boot into Lubuntu it shows a tf700t log in which I didn't put there. How do I fix this.
[Asus Transformer TF700] Ananasnonym:
Jup, just add the root user and your default user to the groups "inet" GID=3003 and "net_raw" GID=3004, if they don't exist yet, add them with

sudo su
echo "inet:x:3003:root,<youruser>" >> /etc/group
echo "net_raw:x:3004:root,<youruser>" >> /etc/group

There could be a command for that, but for me it worked by editing the group-file. For adding root and your user to the groups, use usermod
[Asus Transformer TF700] steaksauce:
[MENTION=4582979]JoinTheRealms[/MENTION]

Thanks for the kexec explanation. This is a bit deeper than I generally delve into these things, but if I'm understanding this right I need to:

1. Flash bryce09's kernel

2. Place zImage and initrd.img in mmcblk0p1/boot/, as per your instructions here

3. Extract the Linux kexec file into the linux boot image? (Unsure about this actually performing this step, though I think I get the gist.)

4. place boot.cfg in mmcblk0p5/multiboot, ensuring that it points to the correct locations

5. Simply reboot? and profit?

I feel like I must be missing something. Thanks for spending time on this, if my information is correct, I'll give this a try soon.

How does selecting which OS to boot work with this method?
[Asus Transformer TF700] workdowg:
It is kind of interesting those groups are missing for some people. My rootfs has them in it...
[Asus Transformer TF700] JoinTheRealms:
[MENTION=3971563]workdowg[/MENTION] i dont think they are in the lubuntu rootfs as i also had to add them. Heres the corrected zImage https://www.dropbox.com/s/wedffc6vcw5m7ta/zImage ill fix the blobs later on
[Asus Transformer TF700] cogano:
Hey devs,

just a small remark: the dual/multiboot installer V6.8 looks for rootfs-* in a few locations but that works only partially with CROMi 5.2.1, namely only with the USB flash drive (I have not tested micro SD).

The mmc*p8 is mounted on /data and the actual user content of the internal storage is mounted via fuse or linked at several locations: /sdcard, /storage/emulated, /storage/sdcard0, /data/media/0, /data/media/legacy, etc. and the rootfs-* file is ignored if placed in the root of the internal sdcard.

Also, the installer has hardcoded path for the uncompressed rootfs.img to /data/media/linux and as such the directory does not appear on /sdcard root eventually.

Might be good to check for some typical directories in /sdcard in order to provide flawless installation for the various "locations".

Keep up the good work!
[Asus Transformer TF700] JoinTheRealms:
i really dont know what you mean?

---------- Post added at 11:38 AM ---------- Previous post was at 11:33 AM ----------

Your very close, You dont need to flash bryce's kernel as thats what we would us as the kexec kernel(You might be able to use that or hunds kernels with bryces initrd. more on that at the bottem)

insted flash this kernel https://www.dropbox.com/s/f8bcm3qgz86njj1/blob its just _thats kernel the only modification is in the ramdisk. This kernel does not boot straight into Android or Linux, rather kexecboot. Then you choose the OS you want to boot, kexec boot looks at the PATH in the boot.cfg, loads it then reboots. Instead of booting back into kexecboot again the bootloader is pointed to the kexec kernel and you boot the OS you choose in the kexecboot interface. When you reboot again you will be back at the kexecboot interface

The kernel you need for Android 4.3 will be bryces kernel, This is because his initrd (ramdisk) is modified to work with 4.3. We need bryces kernel unpacked, and placed in /boot/ (this assumes your currently in android, and the directory will need to be created) and pointed to in the boot.cfg.

Its most likely that that and hunds kernels will also work if you replace their ramdisk with bryces ramdisk. Have a read of this post: http://xdaforums.com/showpost.php?p=47247732&postcount=84 for link to unpacked kernels and more instructions.

Thanks for your report mate, i havnt used later versions of cromi, i think im using 4.7 at the moment, my .lzma files are found /data/media/ while cromis *home* folder is /data/media/0/

This is because rabits (who created the installer) intended it for 4.1, which didnt have this crazy mounting scheme. I really dont understand how the installer works, so i haven't been able to modify it. Id recommend using Terminal Emulator to manage the files under android.
[Asus Transformer TF700] C288:
Password

What i meant was that when i turn on my tablet i click 2 to boot to linux then 1 for rootfs.img then 2 for kernel. Then before lubuntu boots a screen shows up in command prompt style at the top it says tf700t login. Then it has a spot for user and password, which i don't know. I've tryed Ubuntu/Ubuntu, Ubuntu/Root, and even my lubuntu log in but nothing works. What is the problem? Is there a command I can type in android terminal to fix this? By the way I can boot into android.
[Asus Transformer TF700] steaksauce:
Okay, this is becoming progressively clearer to me. Based on your description of how the kernel works, I'll have to flash it AFTER I've placed the files where they need to be, correct?

My final point of confusion is how to handle the kexec kernel for the linux img. Am I correct in my understanding that this file is placed inside the image? If so, how do I go about this. I've never modified an image before. (I'm assuming it can be done with most image mounting software?)

EDIT: Just (maybe) one more question. Supposing everything just goes wrong here and neither linux nor android are accessible, can I still boot into recovery the same way? If so, would I fix this hypothetical problem just by reflashing CMB and a kernel that won't activate kexec? Sorry for all the questions, I just really like to understand exactly what I'm doing before I jump in.
[Asus Transformer TF700] JoinTheRealms:
its ubuntu ubuntu with no caps, i recommend you flash the latest kernel in the dev thread post 3 also, after that use the repair option and it should then boot to a gui.
[Asus Transformer TF700] JoinTheRealms:
Well id start with android first, https://www.dropbox.com/s/mid7slgf28to2yr/kernel.zip this is bryces kernel unpacked, extract it and move the zImage and initrd to /boot (you will have to create this file.) and then do

su
cd /data/media
mkdir mount
mount -t vfat -o loop /dev/block/mmcblk0p5 /data/media/mount/

(these commands should be ran from android terminal emulator)

then you can modify /data/media/mount/multiboot/boot.cfg and add an entry for android (I give an example of this above) (Note if these commands dont work, you should move on to setting up a rootfs.)

then run:

umount mount/

Then flash the installer.zip and setup a rootfs, this will clobber the current kernel, but the boot.cfg wont change. Boot into your linux rootfs and run:

mkdir mount
mount -t vfat -o loop /dev/mmcblk0p5 mount/

and add an entry for linux (The PATH will be /media/linux/rootfs.img), also find the unpacked linux kernel in the link above and put in /boot (Again this will be INSIDE the rootfs) also if you didnt make an android entry do it now. (you should also back up mmcblk0p5 at this point also.)

and then run:

sudo umount mount/

At this point reboot and flash the kexecboot kernel and it *should* be able to boot android and linux, booting android 4.3 should work, but again your the first tester.

(if the kexecboot interface doesnt show, and it boots to the "options" menu there is something wrong with the boot.cfg or it was found at all)

None of this will touch the recovery or bootloader, so you will always be able to reflash a normal android only kernel and everything will be back to normal.
[Asus Transformer TF700] JoinTheRealms:
No its a real kexec, the implementation is slightly different to a desktop pc, we use a kexec-hardboot which mean the device has to reboot as our hardware drivers cannot re-instalise properly without it. after a kexec kernel has been loaded and the device rebooted the last part of the process involves the bootloader checking kexec reserved memory addresses and if a kernel is found, boots it instead of the normal emmc located kernel.
[Asus Transformer TF700] cogano:
Does anybody know the proper syntax of setxkbmap command to get the dock keyboard emulate functional keys and alt key?

Or is it that the definition files for remapping the keys are missing in Lubuntu rootfs? (I noticed there are some on workdowg github for Arch Linux, haven't studied lubuntu sources yet.)
[Asus Transformer TF700] C288:
Wine

Do you know if wine will work on this? The lubuntu one.
[Asus Transformer TF700] basarix:
Ì have a quick question that has probably already been asked, but i am interested in this project and curious about this.

why is the dock needed for this to work? (other than the obvious ease of linux use with a keyboard).

i ask mainly because i do not own the dock but would like to slap linux on the pad.

on that note, does anyone know of any non ubuntu distros installable on a tf700t?
[Asus Transformer TF700] JoinTheRealms:
Theres no requirement for the dock :) the only issue we would have had till now is, you coudnt navigate the init menus without a keyboad meaning you could only dualboot and not multiboot(press vol down to boot linux, leave it for 10sec to boot android etc). Now we have something called kexecboot, ive written nearly a book on it in the latest few pages of these threads :) WARNING: some Assembly is required! if your an enthusiast this shouldnt be an issue.

The main benifit to someone without a dock is now you can multiboot without restriction, kexecboot is a nice gui that serves as a second stage bootloader, with it you can navigate with the volume keys and select with the power key etc.

Right now your choices in rootfs are rabits: ubuntu 12.10 and workdowgs: Lubuntu 13.04 and Arch-Linux. Im currently building ubuntu 13.04 (gave up on 13.10) next im gonna try Debian followed by fedora.

Nope sorry, if it exists it cant run x86 code on ARM processors:

Wine

Is

Not, an

Emulator ;)
[Asus Transformer TF700] _that:
Well, but you can combine it with one. There were some successful experiments with wine and qemu on arm doing the x86 translation - but don't expect it to be fast. :)
[Asus Transformer TF700] JoinTheRealms:
Lol i remember someone on the tf101 forum got windows 8 running in qemu, it rendered around 1-2fps i think, which isnt actually that bad imo (not by any stretch usable but fast considering the complexity )
[Asus Transformer TF700] Diamond5170:
Maybe better replace xfce with unity8 shell? https://unity.ubuntu.com/getinvolved/development/unity8/

With that shell we have touch interface and don't have many bugs from ubuntu touch version. Or i am wrong and that not possible?

PS: lol, to post links without 10 posts, i just use https :)
[Asus Transformer TF700] JoinTheRealms:
Hmm it depends if theres a backport to 13.04 as we cant run saucy just yet. the other issue is we dont really have a multitouch driver. What ubuntu touch does to solve these driver issues is it can use androids drivers using libhyris, should be able to do the same thing on our native ubuntu but i haven't done anything useful with it yet.
[Asus Transformer TF700] ryanbadowski:
Bluetooth Not Working

Anybody able to get bluetooth working?

I'm getting a "No Adapters Found" message.
[Asus Transformer TF700] steaksauce:
Okay I've got the Android portion of this done. Before I move on, though... In the boot.cfg how do I know which mmcblk to use for each OS? And how do I back up mcmcblk0p5?
[Asus Transformer TF700] JoinTheRealms:
In almost all cases you want to use mmcblk0p8 (data partition). You can use this kexecboot kernel (Host kernel) https://www.dropbox.com/s/f8bcm3qgz86njj1/blob Instead of the one in the dev thread, this one is the same other than this one has script that helps you set up a boot.cfg entry, although its not finished yet, if you want to remove an entry you has to do it manually. If you try it yet me know how it works for you (You can get into the options menu by "exit" in the kexecboot menu.)

By the way, Is 4.3 working for you? or did you use cromi?

---------- Post added at 02:44 PM ---------- Previous post was at 02:44 PM ----------

Not yet sorry, its on the list though ;)
[Asus Transformer TF700] C288:
Uninstal

How do i remove this. I don't have a backup. So is there something I can do to remove Lubuntu?
[Asus Transformer TF700] JoinTheRealms:
Yes remove /data/media/linux/rootfs.img and /data/ubuntu
[Asus Transformer TF700] C288:
Remove

I did this, but now how do I remove the startup script. (The selection screen.)
[Asus Transformer TF700] JoinTheRealms:
flash another kernel and it will be back to normal.
[Asus Transformer TF700] workdowg:
I have 3 new rootfs only installers. Arch, Lubuntu and Ubuntu. I had to make a separate one for each for now until I understand the Aroma installer a little better. These will allow for /home being on mmcblk0p8. I'll be uploading them later today... I changed the logo to one I made for Arch... I'll make one for the others later....
[Asus Transformer TF700] workdowg:
That I can try in the morning. I can't do too much without wifi.... Chroot is not my favorite way to get a working rootfs. :)
[Asus Transformer TF700] moreD_cn:
the kernel was compiled with wakelock and earlysuspend support, so while waking up you should manually echo on > /sys/power/state or you'll keep waking up and then suspending.

---------- Post added at 07:20 AM ---------- Previous post was at 07:10 AM ----------

hopefully it'll work :) I'll fix this when post my kernel.
[Asus Transformer TF700] JoinTheRealms:
Damn reached my thanks limit :) thanks for your help, its much appreciated
[Asus Transformer TF700] JoinTheRealms:
[MENTION=3971563]workdowg[/MENTION] heres your zImage https://www.dropbox.com/s/53ctuxjcem583h0/zImage

compiled from stock 10.6.1.14.8 with _that's patches and moreD_cn's config, i couldn't test it because blob tools refuses to work for me...
[Asus Transformer TF700] workdowg:
Will test when I get up. I'll make it work for you... About 6 hours from now...
[Asus Transformer TF700] JoinTheRealms:
I just noticed it doesn't need to be in a blob for the installer :p so i tried it, and android is working great lol but theres no dualboot :confused: it goes from asus splash screen to android, no framebuffer. Not sure what i done wrong...

Go sleep lol, it only 9pm here so i got another 6 hours to work on it :)
[Asus Transformer TF700] workdowg:
I'm just leaving work, 5am. Did you run all the compiling from inside rabits git structure. Check his github. Check the readme.md
[Asus Transformer TF700] JoinTheRealms:
His commands are scary lol, ive got moreD_cn's .config in the right place when i run

make -j9 O=$KERNEL_OUT zImage && make -j9 modules O=$KERNEL_OUT DESTDIR=$MODULES_OUT && make -j9 modules_install O=$KERNEL_OUT INSTALL_MOD_PATH=MODULES_OUT

It cant find the .config

when i just run make -j9 it starts compiling fine ?
[Asus Transformer TF700] moreD_cn:
if you specify O=some_other_folder you should put .config there too..:)
[Asus Transformer TF700] JoinTheRealms:
lol this is getting Sooo far over my head but im committed lol. Its now trying to compile but not with your config in fact when it even detects a .config is present it asks for me to run make mrproper

Rabits says to use a 4.7 linaro toolchain but i couldnt find it, so i just using a prebuilt 4.6 linaro toolchain so i hope thats not causing troubles

---------- Post added at 11:45 PM ---------- Previous post was at 11:28 PM ----------

Ahh i see the error of my ways http://www.linux.com/learn/linux-tr...wbie-corner-building-and-running-a-new-kernel [MENTION=3971563]workdowg[/MENTION] im not sure how much you know about kernel compling process but that link may help you also
[Asus Transformer TF700] moreD_cn:
okay i've got both android and linux kexec kernel running fine on my tablet :D

Here's the kernel for linux http://sdrv.ms/13MhzTw and this is the recovery installer http://sdrv.ms/13MhDmq

(seems gdrive's ui is confusing so I switched to skydrive this time..)

If you use an img file as rootfs, it should be placed in /data/linux/* but not /data/media/linux/* anymore.

Then if you choose a root partition (real partition or rootfs image) it'll try to boot using kexec. But if it fails to load kernel it'll fallback to a normal boot.

HOW TO USE KEXEC KERNEL: just put them in /boot of your linux root partition. The kernel image must be named zImage and ramdisk is initrd.img. If kexeced kernel is successfully loaded, it'll reboot automatically with the new kernel and boot directly into linux ( if it doesn't please let me know! )

edit: in addition I post my kexec-hardboot patch here for those want to use their own kernel source :)

BTW: in linux wifi works fine for me.. if there's any problem with wifi you can send your kmsg to me

---------- Post added at 01:47 PM ---------- Previous post was at 01:42 PM ----------

Oh..in fact I was compiling my kernel with 4.8 linaro and it just won't boot... but things just turn fine as I switched to 4.7

and here's the link to 4.7 linaro which I'm using: https://launchpadlibrarian.net/1376...x-gnueabihf-4.7-2013.04-20130415_linux.tar.xz
[Asus Transformer TF700] JoinTheRealms:
Yaaay new stuff :cool: but maan i just got mine to compile about 30 seconds ago and now its obsolete lol, ill give the kexec ago asap

Ive got everything to compile fine(stock 10.6 with _thats patches) but where im having trouble building the installer, i cant find the busybox source Rabits used (seems to have been moved) oh well it was a good learning experience !

---------- Post added at 01:27 AM ---------- Previous post was at 12:59 AM ----------

Sorry just to make sure, i need to make a /boot folder and place the extracted zImage and initrd.img in there?

Hmm its just rebooting back into the normal multiboot menu? I guessing it falls back to the multiboot menu if the linux kernel isnt found? it found my ubuntu rootfs at /data/linux and booted it but i couldnt get into lightdm. stuck at bash. Androids working fine so far.
[Asus Transformer TF700] moreD_cn:
Yes.. /boot/zImage and /boot/initrd.img
[Asus Transformer TF700] JoinTheRealms:
Yeah it isnt starting lightdm, boots to a blank screen and i cant start it manually. Seem very close to the issue im having with my 13.04 rootfs with the old kernel.

x server is failing, something to do with no being able to connect with dbus, ill pull the relevant logs tomorrow. What partition are you using for the kexec?
[Asus Transformer TF700] moreD_cn:
I used to upgrade my ubuntu to 13.04 and it got similar issue too. But for now I'm using kdm and it's fine

I have both image and real partition on my microsd, they both succeed to start X
[Asus Transformer TF700] workdowg:
Arch wifi still doesn't work. Where exectly do I copy these files from/to? Android works great... I am going to try 'buntu to see if i have the same issue.
[Asus Transformer TF700] JoinTheRealms:
Thanks man, im gonna make a new rootfs and try it, would the kexec be capable of booting from a usb? that would awesome (i dont own a microsd atm, but gonna buy a class 10 one today:))
[Asus Transformer TF700] moreD_cn:
in rabits' original 4.1 config these two options are set to:

CONFIG_BCMDHD_FW_DIR="/lib/vendor/firmware"
CONFIG_BCMDHD_NVRAM_PATH="/lib/vendor/firmware/nvram.txt"

however I missed them and left them to android default..

CONFIG_BCMDHD_FW_DIR="/system/vendor/firmware"
CONFIG_BCMDHD_NVRAM_PATH="/data/misc/wifi/nvram.txt"

So I think in linux you can copy firmware from /lib/vendor/firmware to /system/vendor/firmware and /lib/vendor/firmware/nvram.txt to /data/misc/wifi/nvram.txt

---------- Post added at 01:06 AM ---------- Previous post was at 12:46 AM ----------

I tried putting my microsd in a card reader and then connect it to usb and it works.

BTW, speed tests showed that my class 10 microsd was still slower than the internal :(