yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF700] quicknik:
Re: [DEV] Native Ubuntu Linux on Infinity tf700

So I have built a dev vm for ubuntu touch and working on it. Man it eats over 20GB.

It takes a long time to downlosd so be patient and do something else while it is doing its thing.

I will attempt to get this on the tf700 and utilize some of rabits hard work.

From what I can tell this is a chroot on top of cm10.1 so should work fine.
[Asus Transformer TF700] puff8stuff:
Wow, exciting. I'd be willing to test :)
[Asus Transformer TF700] rabits:
Ubuntu Touch on tf700

Hi, Guys! Now we have working Ubuntu Touch preview for our device. Additional info here.
[Asus Transformer TF700] rtfpessoa:
@rabits, will you add dualboot for this version ("not touch" ubuntu) with CyanogenMod?
[Asus Transformer TF700] pvka13:
I was able to set up 13.04 KDE (with compiz) and LXDE on my 32GB TF700. I used 0.8.0 as a base. It's possible to freely experiment with the rabits software stack provided the following packages are pinned: Pinned packages (/var/lib/synaptic/preferences file). Here's the list of installed packages (dpkg --get-selections) on my system.

Here are my impressions:

LXDE is very fast. KDE with compiz takes around one minute to boot, but after that its performance is acceptable (in fact, I use it as my main DE). KDE uses ~310MB of RAM after booting.

Brightness doesn't work automatically, though it's possible to control it via /sys/class/backlight/pwm-backlight/brightness. Max value is 255, min is 3. If you set brightness to 2 or lower then the screen turns off without a way to turn it back on. Only a reset fixes this.

The screen doesn't turn off on lid close. This is due to the touchscreen and the touchpad being active and firing touch events when the screen touches the dock. This script can be used to fix the issue. It disables the offending input devices on lid close and re-enables on lid open. Don't close the lid quickly if you use this script! Not only script doesn't work properly in this case due some delays in lid-close event processing, it also exposes a bug somewhere in the xserver stack which leads to a xserver crash quite often. Just don't close the lid quickly and you'll be fine. My "procedure" is as follows: close the lid so that there's ~1cm between the tablet and the dock, close lid slowly until the screen turns off, wait ~1 second after that and finally close the lid full.

I occasionally experience severlal second long lock-ups, especially during heavy IO load. Does anyone experience this too? Maybe there's a workaround?

I have one a bit unrelated question: what's the rationale for the UKSM patch being applied? The samepage merging is only useful when there many duplicate pages actually exist, which almost universally is when one runs several identical VMs on the same host. This is not the case here. I think it's not worth to waste precious memory and CPU bandwidth for little benefit - at least on my system there was only ~20-30MB savings when using all 1GB ram. A better solution would be to simply swap out unused memory. The main mmc memory is comparatively fast - ~15MB seq read/write, 4MB/s 4k read, 3MB/s 4k write - this should work reasonably well.

I get the feeling that the initrd scripts should fsck the rootfs image being loaded. Every time the system locks up or reboots (which still does happen), there's a certain risk of filesystem corruption. If occasional errors are not fixed, there's huge risk for data loss, or mysteriuos bugs. I've spent at least an hour debugging why I can't recreate /etc/mtab file - the culprit was filesystem corruption during an earlier reboot.
[Asus Transformer TF700] rabits:
Yes, I'm working on unification of initram scripts now.

Hm, maybe you right. I added it in beginning for test, but forgot to do any tests))

It is a necessary thing I've added it to the list.
[Asus Transformer TF700] pgratz:
Hi All,

This is my first time posting in this thread so I wanted to start with many thanks to Rabits and others for putting this together!

I searched the thread and I havent seen anyone talking about the problem I'm having so I thought I'd post up. On the previous iteration (.71 IIRC) Wifi seemed to work fine with my dock installed (never tried it without), however now on .8 I can't seem to get Ubuntu to see the wifi interface. I saw notes here about some people having this problem when booting without the dock. In my case I usually leave the dock on at all times so I don't think it is the same problem. Does anyone have some advice on how to address it (I'm reasonably well versed in Linux sys admin from the cli). For what its worth iwconfig doesn't even report a WIFI enabled interface.

Also a minor annoyance is that the onscreen virtual keyboard keeps popping up whenever I swtich to a terminal or anything that takes keyboard input. Since I have the dock I'd like to kill this but I haven't been able to figure out how to make it go away permanently.

If you all would rather I post this in the user forum let me know and I apologize for the wasted bandwidth here.

Thanks!

Paul
[Asus Transformer TF700] spidasense:
Re: [DEV] Native Ubuntu Linux on Infinity tf700

Can wine be installed on this version?
[Asus Transformer TF700] rabits:
Yes. Nothing is impossible!)))
[Asus Transformer TF700] spidasense:
Re: [DEV] Native Ubuntu Linux on Infinity tf700

true that. but for this case haha the wine packages arent installing from the source, it says the package can be found but somewhere else and that it is obsoleted. any ideas? I want to see if I can get ftl running on ubuntu, that would be so awesome

---------- Post added at 12:47 AM ---------- Previous post was at 12:46 AM ----------

go to the bottom right and click that little button that looks like a lists option and then pres the close button on the bottom left. havent figuured out how to close it perm though
[Asus Transformer TF700] spidasense:
thislooks complicated O.O how to get wine on arm 12.10

would def be worth it though devs :3
[Asus Transformer TF700] rtfpessoa:
@rabits, i want to build CM10.1 with your stuff to dualboot, can you give me a fast explanation of what do i need to replace in CM10.1 source so it builds the boot.img ok?

Do i just need to replace the /boot/ramdisk/cm folder in CM10.1 source? Do i need to change any of the bootimg.cfg stuff you have in CM?

If you could give me a fast explanation i would apreciate it very much. Even if your work in CM is not finished yet. I just want to learn how to build it included in CM.
[Asus Transformer TF700] rabits:
Ok. See README.md in repo - "Create boot image". Do everything, but replace `cp -af boot/ramdisk/stock boot/img/ramdisk` in second step by `cp -af boot/ramdisk/cm boot/img/ramdisk`. That's all))

Also, if you do this under tf700 linux - you can simple install it by `dd if=boot/img/boot.blob of=/dev/mmcblk0p8`.
[Asus Transformer TF700] rtfpessoa:
That way i know beacause i already read that but i wanted to put your ramdisk into CM10.1 build process is it possible?
[Asus Transformer TF700] rabits:
Ah, sorry)) Yes, I think this is possible...
[Asus Transformer TF700] djmulder:
see Rabits! I'm not the only insane one ^.^
[Asus Transformer TF700] rabits:
Congratulations! So?

I do not have time to play these games.
[Asus Transformer TF700] rtfpessoa:
@rabits, when building the kernel with your instructions i get i problem when defining the "O=$KERNEL_OUT" option. Do you have any idea what it might be?

It does not accept the defconfig and breaks the compiling...

When compiling CM10.1 kernel should i use the config you provide in kernel/.config of your source or the defconfig from CM?
[Asus Transformer TF700] Hundsbuah:
you have to put the .config in the $KERNEL_OUT dir

then

make -j6 O=$KERNEL_OUT zImage

make -j6 modules O=$KERNEL_OUT DESTDIR=$MODULES_OUT

make -j6 modules_install O=$KERNEL_OUT INSTALL_MOD_PATH=$MODULES_OUT

---------- Post added at 04:16 PM ---------- Previous post was at 03:50 PM ----------

Does anyone else has the same problem:

tools/blobtools/blobpack boot/img/boot.blob LNX boot/img/boot.img

Found 1 partitions as commandline arguments

Partname: LNX Filename: boot/img/boot.img

Size: 60

1 partitions starting at offset 0x3C

Offset: 76

echo -n "-SIGNED-BY-SIGNBLOB-$(dd if=/dev/zero count=8 bs=1)" | cat - boot/img/boot.blob > boot/img/boot.blob.new && mv boot/img/boot.blob.new boot/img/boot.blob

8+0 Datensätze ein

8+0 Datensätze aus

8 Bytes (8 B) kopiert, 4,1685e-05 s, 192 kB/s

tools/blobtools/blobunpack boot/img/boot.blob

Header size: 1

0 partitions starting at offset 0x0

Blob version: 60

There are always 0 partitions found, dont know why
[Asus Transformer TF700] rtfpessoa:
Good to know there is some kernel dev insterested in do the multiboot updates for CM.

When i put the .config there it says:

"Restarting .config..."

And starts asking me stuff like:

1. Preemptible tree-based hierarchical RCU (TREE_PREEMPT_RCU)

2. An RCU suitable for small SMP systems (JRCU) (NEW)

If i answer the 5 questions it gives this error:

Using /media/data/android/dev/tf700t/ubuntu/source/kernel/src as source for kernel

/media/data/android/dev/tf700t/ubuntu/source/kernel/src is not clean, please run 'make mrproper'

in the '/media/data/android/dev/tf700t/ubuntu/source/kernel/src' directory.

make[1]: *** [prepare3] Error 1

make: *** [sub-make] Error 2

Any idea?
[Asus Transformer TF700] Hundsbuah:
yes :)

make clean

make distclean

make mrproper

make O=$KERNEL_OUT clean

make O=$KERNEL_OUT distclean

make O=$KERNEL_OUT mrproper

then copy the kernelconfigfile in the $KERNEL_OUT dir and name it .config

(cp -af KERNELDIR/arch/arm/configs/KERNEL_CONFIG_FILENAME $KERNEL_OUT/.config)

then

make -j6 O=$KERNEL_OUT zImage

make -j6 modules O=$KERNEL_OUT DESTDIR=$MODULES_OUT

make -j6 modules_install O=$KERNEL_OUT INSTALL_MOD_PATH=$MODULES_OUT
[Asus Transformer TF700] rtfpessoa:
Sry but this out stuff is making me crazy:

rtfpessoa@Krypton:~/android/dev/tf700t/ubuntu/source/kernel/src$ make -j6 O=$KERNEL_OUT zImage

SHIPPED scripts/kconfig/zconf.tab.c

HOSTCC scripts/kconfig/zconf.tab.o

scripts/kconfig/zconf.tab.c:200:24: fatal error: zconf.hash.c: No such file or directory

compilation terminated.

make[3]: *** [scripts/kconfig/zconf.tab.o] Error 1

make[2]: *** [silentoldconfig] Error 2

make[1]: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.

make: *** [sub-make] Error 2

Any idea?

Should i put the .config in the src folder when using O= or just in the out?
[Asus Transformer TF700] Hundsbuah:
Here is my bash script

ATTENTION ON THE PATH CONFIGS AN NAMECONFIG AT THE BEGINNING!!!

my folder structure is:

/home/lowi/git/a/tf700t_kernel (my kernel dir)

/home/lowi/git/a/tf700 (dualboot rabit folder)

script is at: /home/lowi/git/a/makedualboot.sh

#!/bin/bash

# CONFIG
ROOTDIR=$PWD
KERNEL_FOLDERNAME=tf700t_kernel
KERNEL_CONFIG_FILENAME=tf700t-oc
RABIT_DUALBOOT_FOLDERNAME=tf700

# PATH's
DUALBOOTDIR=$ROOTDIR/$RABIT_DUALBOOT_FOLDERNAME
KERNELDIR=$ROOTDIR/$KERNEL_FOLDERNAME

KERNEL_OUT=$DUALBOOTDIR/source/kernel/out
MODULES_OUT=$DUALBOOTDIR/source/kernel/out_modules
KBUILD_OUTPUT=../out

# fresh install
rm -rf $DUALBOOTDIR
git clone https://github.com/rabits/tf700.git
cd $DUALBOOTDIR

# update busybox
git submodule update --init source/busybox/src

# update blobtools
git submodule update --init tools/blobtools

# remove old kernel
rm -rf source/kernel/src

# copy kernel from source to dualboot script folder
mkdir -p -m777 source/kernel/src/
cp -arf $KERNELDIR/* source/kernel/src/

# switch to kernel source folder
cd source/kernel/src

# apply patches
patch -p1 < ../../../kernel/patch/uksm/uksm-0.1.2.1-for-v3.1.ge.10.patch
patch -p1 < ../../../kernel/patch/uksm/0001-Mute-page-allocation-failure-warning-message.patch

# clean old configs
make clean
make distclean
make mrproper

# copy config kernel from source to dualboot script folder
cp -af $KERNELDIR/arch/arm/configs/$KERNEL_CONFIG_FILENAME $KERNEL_OUT/.config
#cp -af $DUALBOOTDIR/kernel/.config $KERNEL_OUT/.config

# build the kernel
make -j6 O=$KERNEL_OUT zImage
make -j6 modules O=$KERNEL_OUT DESTDIR=$MODULES_OUT
make -j6 modules_install O=$KERNEL_OUT INSTALL_MOD_PATH=$MODULES_OUT

# switch back to rabits dualboot dir
cd $DUALBOOTDIR

# prepare ramdisk
rm -rf boot/img/ramdisk && cp -af boot/ramdisk/stock boot/img/ramdisk && cp -af boot/ramdisk/multi/* boot/img/ramdisk/ && rm -rf boot/img/ramdisk/lib/modules && cp -a $MODULES_OUT/lib/modules boot/img/ramdisk/lib/

# make ramdisk
cd boot/img/ramdisk && find | cpio -H newc -o | lzma -9 > ../initrd.img && cd ../../..
abootimg --create boot/img/boot.img -k $KERNEL_OUT/arch/arm/boot/zImage -f boot/bootimg.cfg -r boot/img/initrd.img

# Build blobtools
cd tools/blobtools && make && cd ../..

# Prepare blob file:
tools/blobtools/blobpack boot/img/blob LNX boot/img/boot.img

# Prepend header of the blob, thanx that:
echo -n "-SIGNED-BY-SIGNBLOB-" > boot/img/boot.blob
dd if=/dev/zero bs=1 count=8 >> boot/img/boot.blob
cat boot/img/blob >> boot/img/boot.blob

# Verfy blob file:
tools/blobtools/blobunpack boot/img/boot.blob

---------- Post added at 05:02 PM ---------- Previous post was at 04:51 PM ----------

with this code it works:

# Prepare blob file:
tools/blobtools/blobpack boot/img/blob LNX boot/img/boot.img

# Prepend header of the blob, thanx that:
echo -n "-SIGNED-BY-SIGNBLOB-" > boot/img/boot.blob
dd if=/dev/zero bs=1 count=8 >> boot/img/boot.blob
cat boot/img/blob >> boot/img/boot.blob
[Asus Transformer TF700] rtfpessoa:
@Hundsbuah now it's fine i found the problems and its almost fine just need to know if it doesn't boot CM because i did something wrong or because rabits didn't finished it.

@rabits, kernel booted ubuntu but it not even passed the start menu for CM, is it normal rabits? or by now it should already pass that screen in CM?
[Asus Transformer TF700] pvka13:
Oh come on, please don't play with kernels and stuff if you don't know what exactly you're doing. Flashing random kernels or booting random userlands is _not_ safe - you're risking not only bricking the device, but also incurring possibly irrepairable hardware damage.
[Asus Transformer TF700] snypa:
you ... are a n00b ... why are you here? :cyclops:
[Asus Transformer TF700] rtfpessoa:
LOL, i'm not a Dev but i have some basis on what i'm doing.

I think probably @rabits didn't finished the init scripts for CM. or i maibe missing something.

If you don't know what you are talking about don't talk.

Its just a kernel its not big deal flashing...go read some wikis.
[Asus Transformer TF700] pvka13:
I'm pretty sure there's no hardware safety guards against incorrect power IC settings. If you manage to crash the kernel, flash wrong kernel or any other combination that lead to undefined value of PC in privileged mode you always have a chance of frying the board.. But hey, you say you know better.
[Asus Transformer TF700] TitanUranus:
Ignorance

Back around the turn of the century I created and compiled my own linux, and using incorrect settings it somehow blew my monitor up (I think it was a frequency issue). Me and my friend (a computer software engineer) were sitting waiting on it booting when suddenly the monitor went pop, there was a big blue flash out the back (CRT) then acrid smoke sdtarted pouring out of it.

You can deffinitely do irreperable damage

if you don't know what you are doing. I recompiled the whole thing and managed to use the linux with my TV as a monitor, but a few days later I picked up a battered and filthy old monitor from a cash converters place for a quid. That was my monitor for about the next 5 years (pic was good) then I cleaned it up with bleach and sold it for £30 along with an old PC!

Don't mess with things you aren't sure about unless you can afford to lose or replace some hardware is the lesson.
[Asus Transformer TF700] x3maniac:
so i got around to figuring out / getting minecraft to work on tf101. which should work with tf700. i'm also posting here cause i read on the OP in the additional section says "minecraft"

http://xdaforums.com/showpost.php?p=38848268&postcount=63

screen shot is included in post

-don
[Asus Transformer TF700] rtfpessoa:
OMG its one experto over here!!

I'm just using @rabits sutff with some changes i know don't cause stupid problems.

If you know that much why don't you help @rabits updating this project instead of being here talking about crazy stuff that might happen?

Get real mr expert.
[Asus Transformer TF700] jupppo:
Both, could you do us all a favour and have your "expert" contest on PM?
[Asus Transformer TF700] rtfpessoa:
@rabits, the CM kernel doesn't use the scripts that the stock kernels need to get overclock. Are you copying them? I'm asking this because CM does only have 1.7GHz and after flash your stuff i have 1.8GHz...hehehehe

When we update CM the kernel will be replaced by a new one without dual-boot? If yes can you make a simples zip we can flash with CM rom to recreate dualboot stuff?
[Asus Transformer TF700] rabits:
Guys, if dualboot is replaced by another bootimage - you can reinstall dualboot with skipping rootfs installation and install only bootimage.
[Asus Transformer TF700] spidasense:
Re: [DEV] Native Ubuntu Linux on Infinity tf700

first post this please im sure alot of people would like to knowthis
[Asus Transformer TF700] rabits:
Already in users thread (* You can skip rootfs preparation and install only bootimage).
[Asus Transformer TF700] workdowg:
get rootfs from tablet?

Ok, so how do I get the rootfs.img off my tablet and into something to share with others?

Edit: never mind, I copied the rootfs.img to my pc, mount it as root to a dir and use file-roller as root to zip the files into rootfs-archarmtf700t-0.5.tar.lzma
[Asus Transformer TF700] spidasense:
Re: [DEV] Native Ubuntu Linux on Infinity tf700

Hey could you guys make it to where the bootloader auto loads android if no option is picked instead of ubuntu?
[Asus Transformer TF700] singoutout:
Re: [DEV] Native Ubuntu Linux on Infinity tf700

+1 to this
[Asus Transformer TF700] rabits:
Ok, request attached to new installer release))
[Asus Transformer TF700] seven2099:
anyone manage to get the full gnome-shell working with this?

Gnome-shell (3.6.x) always falls back to classic gnome as no extensions seem to load/work

Any clues anyone?
[Asus Transformer TF700] seven2099:
Hey Rabits

I've been testing out gnome 3.5.4 fully implemented, running and its honestly the best tablet/touch friendly interface I've ever used on Ubuntu (i've tested it out in larger Samsung Ultrabook Touch).

Can you please see if its possible to get this running on ur RootFS?
[Asus Transformer TF700] pvka13:
I was able to solve the random-freeze-during-heavy-I/O issue. The culprit is that large amount of memory is used as buffer cache to hold dirty pages. When the dirty page threshold is hit, all buffer cache is written out at once, without allowing other processes to do much I/O.

The solution is to add the following to /etc/sysctl.conf

vm.dirty_bytes=2048000
vm.dirty_background_bytes=1024000

The configuration can be reloaded without a reboot by running "sysctl -p" as root
[Asus Transformer TF700] singoutout:
Re: [DEV] Native Ubuntu Linux on Infinity tf700

It seems to have fixed most of the lags, but it still lags a lot when opening the dash menu in Unity. Have you found any fix to that? :)
[Asus Transformer TF700] pvka13:
I use KDE, so I didn't have to deal with Unity on Transformer a lot. You can try to remove unity lenses packages that are not critical for you - this might enhance performance. Another option would be to use an additional, fast launcher such as synapse.
[Asus Transformer TF700] spidasense:
Re: [DEV] Native Ubuntu Linux on Infinity tf700

could you give a quick explanation as to what all these diferent launchers and lenses" are? im new to ubuntu and linux and I dont know what people mean by using a different launcher or the difference between fedora and oracle and all that and would like to know
[Asus Transformer TF700] workdowg:
Re: [DEV] Native Ubuntu Linux on Infinity tf700

Thank you.
[Asus Transformer TF700] singoutout:
Re: [DEV] Native Ubuntu Linux on Infinity tf700

I personnally use xfce, but since unity is a little more tablet friendly, it would be cool to fix these lag problems :)

I thought you might have found an optimale solution;)
[Asus Transformer TF700] workdowg:
Re: [DEV] Native Ubuntu Linux on Infinity tf700

@rabits, I accidentally removed some lines from your prepare_tar.sh. I corrected that and changed a few other things. I now have an installable Arch Linux rootfs. I'll be uploading tomorrow, I'm on my way to work right now... http://xdaforums.com/showthread.php?p=39530470

Sent from my VM "Evo 3D" using 2ʞןɐʇɐdɐʇ .
[Asus Transformer TF700] rabits:
Ok, I've added your thread to rootfs links.
[Asus Transformer TF700] LEGOracer69:
Why is Minecraft off the list? What's the matter?
[Asus Transformer TF700] spidasense:
Re: [DEV] Multiboot Linux on Infinity tf700

someone said on the general thread their friend would be able to optimize it to work but I havent heard anything since
[Asus Transformer TF700] pvka13:
Launcher is any program that can be used to start programs. Unity is one of them, there are many others, with different features and design. An unity 'lense' is just a fancy name to a plugin that Unity uses to find items to display on the dock when you open it. Naturally, less lenses means less time is spent querying them. You can remove them in synaptic.

Unity lags on regular hardware too, thus I'm afraid there are some wrong decisions made when designing it. It would be very time consuming to fix those ourselves. Let's hope the new Unity written in Qt/QML won't suffer from these problems.

By the way, I've found another optimization. Mounting the rootfs using loop device is, surprisingly, very inefficient. I didn't save the results of my benchmarks, but I remember the loop device being almost twice slower than direct access to the mmcblk0p8 filesystem for small and medium size random reads and writes. If I mount the rootfs from a sdcard with similar performance characteristics as the internal mmc, the transformer feels much faster. A more convenient option would be to simply copy the files on the rootfs to some directory within the data partition of the transformer, then bind-mount it to root when booting. This would bring an quite considerable performance boost compared to the image-based rootfs.

A bit extreme optimization would be to slice a chunk of memory from the data partition, trick the kernel that a partition exists there and form a RAID0 device with an equally sized partition on a microsd card. This would literally double the I/O performance. Poor I/O is the main reason why a lot of applications are slow to launch.
[Asus Transformer TF700] spidasense:
Re: [DEV] Multiboot Linux on Infinity tf700

all that complicated stuff sounds awesome, lets do it devs :D ill be patient though since I pretty have no way of helping lol
[Asus Transformer TF700] rabits:
2 times is sounds terrific, but I need some time to spend real performance tests, before I start implementing this feature...

Also, I would note that this is probably really simplify the process of installing and running additional systems.
[Asus Transformer TF700] Zeklandia:
Re: [DEV] Multiboot Linux on Infinity tf700

For some reason the installer is not finding the rootfs-.tar.lzma files. Could this be cause by Android 4.2's new SD card management?

Sent from my Transformer Infinity
[Asus Transformer TF700] LEGOracer69:
Hi. Is the hardware acceleration working? Because I was trying to get minecraft working, but after getting to the title screen (Optionslike Muliplayer, Single player, etc) and I wasn't even aple to enter options because of lags

PS

I am after changing some lib files to ARM ones, so do not say it will not work from stock. I have changed several lib files like in the tutorial from TF101 Linux. Maybe i did something wrong, maybe I do not have enough RAM memory. Maybe it is not optimalized yet. I do not know. Please help me.
[Asus Transformer TF700] rabits:
Please, read this post #324