yashsingh1/xdaforums huggingface dataset:
[Eee Pad Transformer Android Development] jrohwer:
OK I'm out of options to try here. The same kernel source using the same config compiled with codesourcery (arm-none-linux-gnueabi) and Ubuntu's cross compiler (arm-linux-gnueabi). Both compilers are GCC 4.4 (specifically tested since the codesourcery one is that version). Note this is soft-float! Both compiles run without error. Packed both into Android boot images using the same initrd. Made the blobs to flash to the LNX partition. The codesourcery compiled kernel boots fine, while the Ubuntu cross-compiled one just gives a blank screen (error as above).

WTF is going on here?
[Eee Pad Transformer Android Development] rdnetto:
That's interesting. I've been using the Ubuntu toolchain so far and I haven't had any issues. I've attached my kernel for comparison.

Also, I don't believe it matters whether the kernel is compiled as hard or soft float since floats are strongly discouraged in the kernel for performance reasons (see here). Even with hardware acceleration, FP operations are slow.
[Eee Pad Transformer Android Development] jrohwer:
No attachment found:( Can you re-post or pm me?

Thanks for the link/explanation. Most probably I won't bother any further then...
[Eee Pad Transformer Android Development] rdnetto:
Oops, my bad. I've fixed it.
[Eee Pad Transformer Android Development] Kingzak34:
Did someone test upgrade to 12.10 ?

Cause for me first reboot was in text mode and then, stuck when booting.

Can the problem be a kernel problem ?
[Eee Pad Transformer Android Development] rdnetto:
Unlikely - if only the distro has changed, then that's probably where the problem lies. Take a look at /var/log/syslog* and see if there's anything that stands out.

Also, check that you haven't forgotten the Tegra Xorg drivers - /var/log/Xorg*log should be useful.
[Eee Pad Transformer Android Development] Kingzak34:
Ok, I'll try to get theses log, cause I can't boot anymore, I'll mount img on my computer, I'll post it ASAP
[Eee Pad Transformer Android Development] j0ey2069:
Can anyone give me a hand with this please?

I am trying to find the patch to enable overclocking the CPU up to 1.6GHz. I have searched everywhere And cannot find it.

Thanks,

Joe.
[Eee Pad Transformer Android Development] rdnetto:
This post has information on how to check if it's enabled.

My underestanding is that only the 2.6 kernel has overclocking enabled, not the 3.1 one. I'm currently merging in the latest patches from Nvidia, which will hopefully fix the broken USB hot-pluugging. I'll look at enabling OC afterwards.
[Eee Pad Transformer Android Development] Jhinta:
Lcd lid fixed thanks to TF101-wizard and lilstevie !!! Make sure to thank them !!

Verstuurd van mijn HTC One X met Tapatalk
[Eee Pad Transformer Android Development] sim590:
[Q] Am I doing this right?

Hey guys,

I've red couple of pages of this thread but I couldn't find an answer to my question.

What I've done so far

Installed ubuntu 11.10 rootfs from http://lilstevie.geek.nz/ports/ubuntu.img.gz on the dock's SD card

Flashed 2.6.36.4 kernel from http://dl.dropbox.com/u/60048492/transformer/Ubuntu-sdcard.zip (making changes to the bootimg.cfg file in order to boot from my rootfs)

Upgraded to Ubuntu 12.04

Used the tutorial in order to update kernel to 3.1.10 from this wiki page http://xdaforums.com/wiki/ASUS_Eee_Pad_Transformer/How_to_install_Ubuntu/Ubuntu_Install (Skipped the tegra driver installation and went with the package "nvidia-tegra" from the repository. I don't know why but, it didn't seem to install properly after using

./apply_binaries -r <path_to_rootfs> -xabi 11

It showed an error while starting X with unity:

I could give the apply_binaries script another try but each time I do so, I don't really know how to undo the changes and then I have to dd an image file that I saved in order to go back... (it's really long.. 32Go)

Installed lxde

Now I got some problems with the kernel. Since I use this kernel and drivers:

CTRL keys don't work properly (CTRL+C = ¢, etc)

No home, End, Page up, page down [EDIT]: Actually, page-up and page-down keys don't work only in bash terminal command line.. it seems.. Home and End still don't work.

top command shows this when I move the mouse really quickly

│
│ ᶘ ᵒᴥᵒᶅ.. I see you little boy!
simon@Zergling:~$ uname -a
Linux Zergling 3.1.10 #1 SMP PREEMPT Wed May 2 01:07:14 CEST 2012 armv7l armv7l armv7l GNU/Linux
simon@Zergling:~$ top

top - 00:18:22 up 37 min, 2 users, load average: 0.30, 0.30, 0.25
Tasks: 144 total, 2 running, 141 sleeping, 0 stopped, 1 zombie
Cpu(s): 32.4%us, 15.8%sy, 0.0%ni, 51.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 742324k total, 280164k used, 462160k free, 24984k buffers
Swap: 0k total, 0k used, 0k free, 150476k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
810 root 20 0 46808 9964 4600 S 40 1.3 6:55.76 Xorg
1655 simon 20 0 94216 12m 8612 R 25 1.7 0:11.40 gnome-terminal
1409 simon 20 0 15660 6604 4020 S 14 0.9 0:02.00 openbox
1771 simon 20 0 2164 1068 760 R 8 0.1 0:05.90 top
...

CPU%---> Xorg 810 root 20 0 46808 9964 4600 S 40 1.3 6:55.76 . If the GPU was making his job properly with nvidia tegra drivers, it shouldn't take 40% cpu usage, right?

(I use canadian french multilangual)

My questions are:

Am I doing this right?

Am I using the right kernel and tegra drivers? If so, why is the keymap messed up? How can I fix these issues?

An attempt made:

Using xmodmap to modify the keycode interpreted by X. I use xev in order to find the keycode, but I can't find CTRL+key keycodes.. I'm new to all of this pretty much. I'd rather not modify the every single keys like ctrl+c, ctrl+x, etc since I also use ctrl+shift+T for new terminal tab and it doesn't work.. It prints a stripped "T"..

Thank you for all your time in advance. I've been trying to make this work for over a week now..
[Eee Pad Transformer Android Development] Sni:
I don`t think someone break keymaps in kernel. Its probably Xorg or DE problem

However for lastest fixed build kernel Jhinta/TF101-GNU-kernel on github

Which version of l4t do you have in ubuntu repo? isn`t it outdated?

Ubuntu 12.04 is armhf, so you have to use hardfp binaries

Try latest l4t 16.2 from developer.nvidia.com/linux-tegra
[Eee Pad Transformer Android Development] Sni:
Kernel update

If someone is still interesting, I've merged kernel with lastest l4t nvidia souces (r16r3-rc)

Changes:

- framebuffer now fully works, switching between X and fb works.

- usb hotplug bugs fixed

- wifi disconnects fixed (used bcmdhd from cyanogenmod sources)

- I've remapped upper keys for F1-F12 scrollock, pause, ins, del.

Sources at github.com mozggg TF101-GNU-kernel

(sorry, external links blocked)

gnu.zip - for CWM flash. Includes kernel and modules. Installs on mmcblk0p8

bcm4329.tar.gz - firmwares for current bcmdhd driver and .hcd for bluetooth. Must be extracted to /lib/firmware
[Eee Pad Transformer Android Development] Kingzak34:
Maybe you can contact jrohwer to work together, he just released a new moded kernel, it will be good if we can have a mix of both kernels.

( http://xdaforums.com/showthread.php?t=2347581 )
[Eee Pad Transformer Android Development] jrohwer:
Two requests/questions:

1. Can you upload the modules for this kernel compile as well?

2. What cross compiler toolchain did you use? Or did you compile on the transformer itself? Which gcc version? I used the arm-linux-gnueabihf- crosscompiler that is distributed with Ubuntu, but got compile errors with gcc-4.6, so my kernel is compiled with gcc-4.4. I haven't tried gcc-4.7 yet as I'm running Ubuntu 12.04 on my laptop and gcc-4.6 is the latest version for that release.
[Eee Pad Transformer Android Development] Sni:
1. I've included modules inside CWM gnu.zip.

You will also need newer bcm4329 firmwares. I'll update my upper post with that

Btw, your bindroot method is really prettier ( while this gnu.zip is for rootfs on mmcblk0p8).

I'm going to switch to it. But i just broke my data cable and it will be hard to repartition now =\

2. I had cross-toolchain problems before. The most stable was sourcery arm-2010q1 arm-none-eabi-gcc-4.4.1

Now I use gentoo and compile on tf101 itself. armv7a-hardfloat-linux-gnueabi-gcc-4.6.3 (not 4.7 yet)

I had one trivial compilation error with Jhinta sources. It is fixed.
[Eee Pad Transformer Android Development] ssciberras:
may i ask which version of beta 12 are you using, am finding different versions...

Ig you have the correct files, would you attach them as zip or link?

thanks
[Eee Pad Transformer Android Development] Ke1evraTi:
You can download the files straight from the nvidia site or use the ones posted in the ac100 wiki. I think that all beta 12 files are the same, just packaged differently.
[Eee Pad Transformer Android Development] rdnetto:
Yes. The (current) kernel is based on the one used in Android, so any USB device that works there should also work under Ubuntu (plus a few others that don't due to lack of software).
[Eee Pad Transformer Android Development] Jhinta:
FB fully fixed looking into sound and thats it:rolleyes:
[Eee Pad Transformer Android Development] ssciberras:
was just about to compile kernel - so what should i do? any more instructions on how fb was fixed?

thanks
[Eee Pad Transformer Android Development] Jhinta:
:confused:

dsp.c

switch(cmd){
case DSP_CONTROL:
fm34_config_DSP();
switch(arg){
case START_RECORDING:
gpio_set_value(TEGRA_GPIO_PH3, 1);
msleep(TIME_WAKEUP_TO_PROGRAMMING);
if(headset_alive){/*Headset mode*/
if(PID==101){

????

so from what im reading from source the sound driver controlled by dsp fm34 in user space by android enabling line out and bypass dsp.

reading it like this its like

case PLAYBACK:
default:
if(recording_enabled != START_RECORDING){
FM34_INFO("Audio output event enabled, bypass DSP\n");
gpio_set_value(TEGRA_GPIO_PH3, 1);
msleep(TIME_WAKEUP_TO_PROGRAMMING);
ret = i2c_master_send(dsp_chip->client, (u8 *)bypass_parameter, sizeof(bypass_parameter));
msleep(5);
gpio_set_value(TEGRA_GPIO_PH3, 0); /* Bypass DSP */
}

So ioctl /dev/dsp_fm34 PLAYBACK :confused:
[Eee Pad Transformer Android Development] ssciberras:
jhinta,

Would you be able to attach the zimage and the initrd separately, as i have a sbkv2 and am using a loop image.

Am compiling the kernel, but would like to make sure i don't mess it up.

Thanks

Stephen
[Eee Pad Transformer Android Development] Jhinta:
here you go
[Eee Pad Transformer Android Development] ssciberras:
thanks, will let you know how it goes.

I was trying to compile - had not errors, but could not find zImage anywhere.

I compiled on the TF, so removed the cross-compiler string, and added ext2, 3, iso and cifs, but otherwise no differences. did make clean, make menuconfig, make -j2 - and looked for file in arch/arm,

thanks

stephen

---------- Post added at 06:51 PM ---------- Previous post was at 06:27 PM ----------

jhinta, tried you kernel with my init

did not boot, first error is unpacking initramfs failed: uncompression error.

then lots of text no more errors and rboots.

Your kernel with my init is slightly larger, so might be the problem. I will have to trim init - maybe just use a simple one without much error checking as is the default one.

I could also try to compile again... but am getting stuck. Am not an expert at compiling kernels, but have doen some few now.

thanks the same.
[Eee Pad Transformer Android Development] ssciberras:
I have tried different modules, but it always comes at a greater size than before -3.5 mb cf 2.4

which compression does the bootloader use? i am using the loop image method, not uboot or nvflash, so i cannot have too big files

thansk
[Eee Pad Transformer Android Development] Ke1evraTi:
Hey, could you please post the updated kernel or source.
[Eee Pad Transformer Android Development] lilstevie:
I disable ext2/3 because they are pointless to have compiled in as the ext4 driver is backwards compatible with ext2/3
[Eee Pad Transformer Android Development] Danzano:
Good to see you online :)

Is the current package up datable to 12.04 LTS? Or will there be an image for this one?

Still waiting for the icys development to cool down but after it does I want to return to dual-boot

EDIT: I see images have been released for the ac100 but for now there is no official driver package so it has to be based on the open source driver. Are you possibly waiting for the tegra2 armhf package to be released to do new work?
[Eee Pad Transformer Android Development] lilstevie:
12.04 is still in beta. there will be no images until it is released
[Eee Pad Transformer Android Development] ssciberras:
i have tried to compile the kernel several times on the tf and on the PC. No success, stopping at some power setting, sleep modules. I disabled them, but still make fails with an error.

still trying since i have limited experience in compiling kernels, but had no such problems before .

would the drivers still work on 2.6.36 kernel? had tried, but X had not started - maybe it was a xorg setting?
[Eee Pad Transformer Android Development] Jhinta:
try better kernel compression.

And how big can it be the total boot.img??
[Eee Pad Transformer Android Development] ssciberras:
tried lzma, but it seems the kernel is failing to compile on my computers.

the one time i compiled it, the boot img was 3.5
[Eee Pad Transformer Android Development] Jhinta:
Dit you installed the lzma codec for it to even work

Verstuurd van mijn Transformer TF101 met Tapatalk
[Eee Pad Transformer Android Development] jozka.1:
The initrd is same as by kernelblob with kernel 2.6.36 (kernel compiled on my PC and works).

But when I change kernel (zImage by jhinta or my compiled), so I get kernel panic - uncompression error.
[Eee Pad Transformer Android Development] ssciberras:
yes, did add lzma in the menuconfig. or do I need to add it elsewhere as well. besides, at that point, it was not compiling.

on another note, would kernel 3.3 be any better? it should have better support for android features, so some issues might be better tackled. Was starting to work on it - but I realied that the nvidia drivers are for3.1latest, and jhinta pushed his own kernel.
[Eee Pad Transformer Android Development] Jhinta:
Lzma as install unzip on you desktop for one to unzip a zip fie

So install lzma

sudo apt-get install lzma

Verstuurd van mijn HTC Desire HD met Tapatalk

---------- Post added at 08:33 AM ---------- Previous post was at 08:21 AM ----------

AS far as the new kernel 3.x i dint got the drivers working , got full fb but once it switch to user space it hangs .( dont realy know why ) lilstefy you got some luck here?

Also the kernel i have working has every thing but sound , my prio is fixing that sound
[Eee Pad Transformer Android Development] jozka.1:
Please, what is the difference between 2636-zImage and 2638-zImage (I mean the .config)? 2636 goes right boot, but 2638 not.

Please could you post the .config, which you used at compile kernel (2.6.36)?

When I compile the kernel from source with tf101_gnulinux_defconfig, so it isn't boot.
[Eee Pad Transformer Android Development] Ke1evraTi:
Hey Jhinta, could you post the latest kernel with working FB or the source for it so I can compile it.

Thanks
[Eee Pad Transformer Android Development] lilstevie:
thats a rootfs not mountable error not a problem with the kernel
[Eee Pad Transformer Android Development] jozka.1:
And any help - council, where the error could be ? :)

E: I try compile kernel with config from /proc/config.gz, but it isn't about solution
[Eee Pad Transformer Android Development] Jhinta:
Sorry dude , i'm wil not be at home for two day's , if i have some time to download and patch ill send it but dont count on it:cool:

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

how do you build the Boot.img witch commands???
[Eee Pad Transformer Android Development] jozka.1:
bootsize = 0x800000
pagesize = 0x800
kerneladdr = 0x10008000
ramdiskaddr = 0x11000000
secondaddr = 0x10f00000
tagsaddr = 0x10000100
name =
cmdline = nvmem=128M@384M mem=1024M@0M vmalloc=128M gpt video=tegrafb console=tty0 usbcore.oldscheme_first=1 lp0_vec=8192@0x1fbed000 root=/dev/loop0 ro quiet splash

and

./abootimg-i686 --create boot.img -f boot.cfg -k zImage -r initrd.img
[Eee Pad Transformer Android Development] Jhinta:
? are you getting the same as jozka.1 pic?

also send me the initrd your using. ( or is it the same as mine? )
[Eee Pad Transformer Android Development] jozka.1:
I use same initrd as by http://xdaforums.com/showpost.php?p=23428126&postcount=3 and there it works and all I'm doing equally - well.

Sorry, my english is bad...
[Eee Pad Transformer Android Development] Jhinta:
hmmmm, if i got time ill edit initrd to see what going on there.
[Eee Pad Transformer Android Development] jozka.1:
But initrd is same as your - I think, only I edited init -> added mount loop device.

E: I compiled the kernel from github.com/lilstevie/linux_kernel_TF101 with .config from /proc/config.gz (running Ubuntu on my TF), but it doesn't work.

The only kernel that works on my TF is from OLiFE.tar.gz -> kernels/2636-zImage.
[Eee Pad Transformer Android Development] Jhinta:
Ya but your having a mount error , so somthings wrong
[Eee Pad Transformer Android Development] ssciberras:
i am having a problem compiling the 2.6.39 kernel, so may i ask what compilers you are using? here is what is happened:

http://pastebin.com/1Z2dfMJh

jhinta, this evening will check your kernel again and let you know
[Eee Pad Transformer Android Development] Jhinta:
ah thi one is a full blown initrd you can make that a lot simpler and smaller

when iḿ home ill create one
[Eee Pad Transformer Android Development] ssciberras:
i know that it could be simpler, but was afraid because there was some ubuntu thing or method that i would not know about.

and most of it is scripts, so would it be any difference in size when compressed?

thanks
[Eee Pad Transformer Android Development] Jhinta:
You ealsy create a inittd just Google it btw the reason you can't compile is beacuse your running it on the tf had the same problem compile it on a PC with the correct crosscompiler.

Verstuurd van mijn HTC Desire HD met Tapatalk
[Eee Pad Transformer Android Development] ssciberras:
can you suggest cross-compiler? is it linaro? or gcc ?
[Eee Pad Transformer Android Development] jozka.1:
I use https://sourcery.mentor.com/sgpp/lite/arm/portal/release1039 arm-none-linux-gnueabi- and I haven't problem with compile.
[Eee Pad Transformer Android Development] ssciberras:
thanks finally managed to compile 2.6.39.4. still need to tweak some settings, as it is still 3.7Mb large. witl ltry with LZMA.

n the meantime, Jhinta kernel keeps going into reboots, initramfs uncompression error.
[Eee Pad Transformer Android Development] Jhinta:
Please make a print screen

Way to big sould be 3,2 think you have to mutch options on

Verstuurd van mijn Transformer TF101 met Tapatalk
[Eee Pad Transformer Android Development] jozka.1:
I don't understand, why you use LZMA? I use Gzip and I had kernel of size 4.4 MB and all right.

E: initrd must be OK, when it works with other kernel...
[Eee Pad Transformer Android Development] Jhinta:
Because he is on sbk2 file size limit lzma is beter compression ( or is this incorrect ? )

Verstuurd van mijn Transformer TF101 met Tapatalk
[Eee Pad Transformer Android Development] jozka.1:
I've too SBKv2! :)

But as I say, kernel can be up to 4.4 megabytes large.

E: I use config as lilsteve
[Eee Pad Transformer Android Development] Jhinta:
Print screen please

Verstuurd van mijn Transformer TF101 met Tapatalk
[Eee Pad Transformer Android Development] jozka.1:
My screen is here > http://xdaforums.com/showpost.php?p=24926710&postcount=1866

E: I think that the error must be at the kernel, because initrd with 2636-zImage works
[Eee Pad Transformer Android Development] Jhinta:
You have mount error , also the intit that your using ,

I wold have done mouting like this

Mount -o loop /rootfs /dir

Root will be dir en not the loop dev

And even remove the whole script and chain root to that dir

I have a fully working sript like this at home you can vind it in xda dev desire hd ubuntu same sript by me

It can do rootfs or file acces on div partitons

Verstuurd van mijn Transformer TF101 met Tapatalk
[Eee Pad Transformer Android Development] Jhinta:
Try booting with out sdcard or renme rootfs-> let it go to terminal do the mounting from there

Verstuurd van mijn Transformer TF101 met Tapatalk
[Eee Pad Transformer Android Development] jozka.1:
?

When I removed init script, so I got same error screen...
[Eee Pad Transformer Android Development] Jhinta:
Try the un modded initrd so the one i'm using

Verstuurd van mijn Transformer TF101 met Tapatalk
[Eee Pad Transformer Android Development] jozka.1:
When I use org. initrd by lilsteve or your, so I get same error.

E: but statement is slower and on the top is "initramfs unpacking failed uncompression error"
[Eee Pad Transformer Android Development] Jhinta:
Change root to

root=/dev/ram0 init=/sbin/sh should bing you to terminal

Verstuurd van mijn Transformer TF101 met Tapatalk
[Eee Pad Transformer Android Development] jozka.1:
Do you think in boot.cfg?

E: if yes so I get again same error

E: when I add "noinitrd" to cmdline so I get "initramfs unpacking failed uncompression error". Why?

E2: I managed to deleted error with "uncompression error", but now I get "ramdisk incomplete write"

E3: when I set ramdisk_size=8000 so I get "ramdisk eof while reading compressed data" :(
[Eee Pad Transformer Android Development] jozka.1:
Works!!!!!

I added initrd directly into kernel and it works! :)

Tested on 2.6.36 (CONFIG_INITRAMFS_SOURCE:=/path/to/directory/with extraht initrd.img and abootimg with "-r initrd.img" where initrd.img is file of zero size)

E: I'm compiling 2.9.39 with support HW

E2: so kernel by jhinta doesn't work, on the display it appears only penguin without text - I haven't installed the drivers...

I tried 2.6.38 from http://gitweb.lilstevie.geek.nz and it freezes on logo Asus Eee Pad, I tried config from 2.6.36 and it too didn't help
[Eee Pad Transformer Android Development] Ke1evraTi:
It won't work without the drivers or modules installed. You have to add them first and then install jhinta's kernel.
[Eee Pad Transformer Android Development] ssciberras:
did you manage to do a simple one? i cannot find a simpler initrd for ubuntu on google, for arch ok, but am not sure which modules will need to be loaded.

E the simplest one is:

#!/bin/sh

mkdir -p /proc /sys /dev /run

mount -t proc proc /proc -o nosuid,noexec,nodev

mount -t sysfs sys /sys -o nosuid,noexec,nodev

mount -n -t devtmpfs udev /dev -o mode=0755,size=10M,nosuid

mount -t tmpfs run /run -o nosuid,nodev,mode=755,size=10M

sleep 1

NEWROOT=/new_root

mkdir $NEWROOT

mount /dev/mmcblk1p1 $NEWROOT

exec $NEWROOT/sbin/switch_root $NEWROOT /sbin/init 3

but there is no mention of any modules that need to be loaded. or would they be loaded after? in the ubuntu conf/modules there are:

libcrc32c

crc32c

zlib_deflate

btrfs

dm-mod

dm-mirror

dm-raid45
[Eee Pad Transformer Android Development] Jhinta:
so we have sound and kernel 3.1 -> testing hdmi :cool: there are some thing that need to be fixed but surly useable
[Eee Pad Transformer Android Development] rmaniac:
So does that mean you have moved away from the ASUS kernel? Also, what version of the Tegra drivers / patches are you using at this point?
[Eee Pad Transformer Android Development] Jhinta:
nv-tegra linux 3.1 kernel and basic hardware drivers and some patches and latest 3d driver , having two problems touch screen and doc , looking ad dmesg they are working , think manual xorg.conf setup will fix this , when i'm home ill send a cwm.zip and kernel image
[Eee Pad Transformer Android Development] ssciberras:
Good. I I had tried the previous kernel, and but would not boot.

So even hdmi would work.
[Eee Pad Transformer Android Development] Jhinta:
yep vid fully working audi -> my tv was showing audio disabled , think a simpel switch and it should work , didnt test it yet..

Getting XBMC fully working is my own prio. then i will build a live roofs for it.