yashsingh1/xdaforums huggingface dataset:
[Eee Pad Transformer Android Development] hanswurschtus:
Hi,

i tried to install your kubuntu image following your instructions on this thread. i made the /data/linuxroot directory and unpacked the kubuntu image. then i unpacked the kernel modules (modules-3.1.10-15-gabaf62d.tar.gz) and flashed Ubuntu-3.1.10-15-rootbind-oc1.5.zip with TWRP.

then i tried to boot up but all i got were some kernel messages and the it stopped booting:

the last messages was (see screenshot as well):

system-udevd[459]: could not open moddep file '/lib/modules/3.1.10-15-gabaf62d/modules.dep.bin'

an suggestions? i tried the steps above a few times (rm'ing the /data/linuxroot directory and restarting from scratch)

thx

hans
[Eee Pad Transformer Android Development] montolla:
Hello

that was an example....

I am asking about access or mounting the mmc device on linux. That is.

I can access android or fast boot or even recovery any .ore.

My device was permenently flashed with a moded boot image that boot from the second partition of the micro sd.

I am sorry if I am not asking for ghe device on this topic but tbis could happen go this device too.

So again. My question is.

how can I can access the files on the 8nter al mmc devices when the linux was boot on the device or How can I flash it from the booting linux with out fast oot or recovery way?

Thanks so much.

Thanks
[Eee Pad Transformer Android Development] hanswurschtus:
ping
[Eee Pad Transformer Android Development] The-Undertaker:
[MENTION=3753391]jrohwer[/MENTION]

- after extracting image i've been installing modules 3.1.10-9

- reboot into twrp recovery

- flashing kernel 3.1.10-9

- reboot

but it stops loading at rows

...
tegra_idle_enter
cpuidle_idle_call
cpu_idle
[Eee Pad Transformer Android Development] pbecchi:
FTDI driver

Hello

I have installed Lubuntu on my EEE Pad .

It is fantastic and exciting to work with it:I thank you very much for all your work.

This is my first Linux experience and since it is very difficult to get help and guidance i am trying to learn I to use it mainly googling around.

I have installed Arduino IDE to program their boards and I need now to connect using an FTDI cable.

The driver ftdi_sio is not there: I have tryed the different kernels but in all the modules ftdi_sio.ko doesnt show up.

I have , then , looked at the gid, and I discover that the code for that module is present and this means that it has not been included at build time.

I learned that I have to download and rebuild to get the driver *.ko file : do you tink that I can do that with my Ft101?

Any help and guidance on how to do it?

Thank again
[Eee Pad Transformer Android Development] steveeJ:
impressive fast learning and you're on the right way!

you can actually do that on the tablet, but you will need a native arm toolchain for compiling the Linux kernel. if you're lucky you can simply install build-essentials on your lubuntu. just to make it clear, if you compile on the tablet you are not cross compiling.

you need to clone the kernel sources from the git repository, and copy the kernel config from /proc/config.gz to the kernel dir/.config e.g. using zcat. you can then reconfigure the kernel by "make menuconfig" or edit the .config by hand. best include the driver you need as a module. that allows you to insmod the module right away without having to flash a new kernel.

I know the instructions are not exact, but they should point out important keywords that will help you to research more and get the task done.
[Eee Pad Transformer Android Development] TomTcom:
Hello. I don't actively work on this anymore but look at my signature for compiling the kernel for Linux tf101.

Found it: http://xdaforums.com/showthread.php?t=2183945
[Eee Pad Transformer Android Development] pbecchi:
Thank you

...I will try , but I will surely ask some other question:

1- where I can get the toolchain from?

Thanks again
[Eee Pad Transformer Android Development] steveeJ:
have you tried installing the package build-essentials via apt-get? you can easily find tutorials for compiling a kernel on ubuntu online. e.g. this guide: https://wiki.ubuntu.com/KernelTeam/GitKernelBuild

you will clone a different git repository of course
[Eee Pad Transformer Android Development] TomTcom:
Step 7 of my guide is a git clone for a ready made repository of the toolchain. If you want to experiment with newer chains the post above mine is correct but not all toolchains work well with various versions of a kernel so start easy then dig deeper into it.
[Eee Pad Transformer Android Development] steveeJ:
isn't that a toolchain that runs on x86 and produces arm code a.k.a. cross compiling? he is trying to compile the kernel on the tablet, therefore he needs a native toolchain.
[Eee Pad Transformer Android Development] TomTcom:
You are correct however this is a very complete guide that will help get him going. I wrote it with the dev who had started with one of the original Linux on tf101 projects.

I compiled the kernel natively on the tf101 and used most of the same commands minus the cross compile related steps.

I can't remember how I did it all but most of the guide covers an extensive portion that isn't clear for compiling the kernel for the tf101 for Linux so it's a good step forward.
[Eee Pad Transformer Android Development] pbecchi:
Thank to all of you.

I really have proceeded trying to get from your suggestions and from this guide :https://wiki.ubuntu.com/KernelTeam/GitKernelBuild

I am getting to the point to start building the new modules and I get this message

tf101@tf101:~/Documents/TF101-GNU-kernel-master$ make modules

scripts/kconfig/conf --silentoldconfig Kconfig

*** Error during update of the configuration.

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

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

The present kernel configuration has modules disabled.

Type 'make config' and enable loadable module support.

Then build a kernel with module support enabled.

make: *** [modules] Error 1

I guess , at this point, I should compile and build a complete kernel, I will use in substitution of the actual one.

Any additional suggestion?

:confused:

I have tried : make -j2 zImage

I get another error:

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

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

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

tf101@tf101:~/Documents/TF101-GNU-kernel-master$ make menuconfig

scripts/kconfig/mconf Kconfig

?????
[Eee Pad Transformer Android Development] TomTcom:
Let me suggest this as to not clutter this thread, PM me exactly what you are doing start to finish, what you have downloaded so far in terms of libraries, and if you have a Linux machine or only wish to compile on the TF101. Your errors above indicate you have no "config" which is what is needed to guide the "make" command in setting up certain requirements/dependencies to get the kernel built. I know you are interested in a module and "I think" it's possible to make the modules without doing the whole kernel but then there are other problems such as the kernel on your system allowing this module to run, correctly compiled, correct version, and other factors that may ultimately require you to compile the kernel.

Also, many things to consider. Are you using this thread's Linux setup? If you read the OP, look at post #3 http://xdaforums.com/showpost.php?p=43203818&postcount=569. This has nvidia support which makes it a kernel version 3.0 or higher if I'm not mistaken. This may require tweaks, different toolchain, and a host of other small things versus the guide I have.

My guide shows you start to finish using 2.6 based kernels, how to add modules (some info), and package all of them together to make a flashable file for X3Maniac's setup which is mentioned in the OP.

There are many others probably much smarter at this than I am but we can give it a shot as I have compiled on Linux for the TF101 and natively compiled on the tablet itself.
[Eee Pad Transformer Android Development] jrohwer:
Here you go - I have rebuilt the modules for the latest kernel (3.1.10-15) and have included ftdi_sio as requested. It is quick and easy for me as my compile environment is set up. Feel free to ask if you want other modules :)

Just extract attached into /lib/modules of your linux root filesystem. Remember to run "sudo depmod -a" after booting into linux.

Indeed you can't compile modules without a properly set up compile enviroment, and the modules have to have exactly the same version as the main kernel. They also need to be compiled with the same toolchain as the main kernel. Moreover the kernel source has to be identical for compiling the main kernel and modules. If you really want to get into this I suggest cloning my github kernel source, and then building the whole kernel and module once from scratch. The config I used is tf101-linux_defconfig. I run on Ubuntu 14.04 on my desktop and the cross compiler I am using is the one that is shipped with Ubuntu (gcc-arm-linux-gnueabihf). You should also be able to compile on your TF101 if you clone the kernel sources there. Then you would just use gcc. It is rather slow however.
[Eee Pad Transformer Android Development] bfmetcalf:
I'm guessing it worked then? glad it worked if it did :)
[Eee Pad Transformer Android Development] vietchinh:
IT did only for that error message. It didnt extract, buti extreacted manually. This mod is working. Now installing ubuntuu wooo .
[Eee Pad Transformer Android Development] prog19:
the kernel file is named modules-3-1.1.10-9.tar.gz

that's why the tat cmd doens't work

tar -xzf /sdcard/modules-3-1.1.10-9.tar.gz should be ok
[Eee Pad Transformer Android Development] vietchinh:
WRRRRRRRRRRRRRRRONNNNNNNNNNNNNNNNNNNGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG

heh it is still called 3-1.10-9.tar.gz

jsut extract it manually
[Eee Pad Transformer Android Development] zachf714:
Dang I need to get my dock replaced and my ass back over here :)
[Eee Pad Transformer Android Development] sidneyk:
OK, I finally got the ArchLinux trimslice linked in an earlier post to boot and prior to that got the commands to actually work. I am on EOS4 latest nightly and discovered that I had to reflash the ROM and leave it setup with the supplied jellybean busybox instead of the updated Sterrickson busybox from the Play store. I think I have the permissions messed up though because the command : depmod -a did not work but gave an error saying that it was a read-only file system and I was root at the time as I haven't even setup a regular user yet. Going to try to fix up the perms and try again.
[Eee Pad Transformer Android Development] Kingzak34:
You can use netinstall, it has a onscreen keyboard for those who dont have a dock ;)
[Eee Pad Transformer Android Development] vietchinh:
DONT USE NETINSTALL V0.7.

First u areunable to "sudo depmod -a" AND u cant login...

Sucks though :3

anyways im gonna test tubuntu
[Eee Pad Transformer Android Development] Kingzak34:
Never had such problem bro ;)
[Eee Pad Transformer Android Development] vietchinh:
........................................................................................................

I dont have any problem with v0.6.

Only v0.7.

How the hell do you login?

like root + pw temppwd doesnt work.

" sudo depmod -a" gives me permission denied.

onlydepmod -a works. maybe.

I'll test again just ensure.
[Eee Pad Transformer Android Development] Sni:
here is my .config

However i didn`t test cams and ASUS-specific hardware (like fm24) - I never used it.

Please, test how audio works. I got it fail once
[Eee Pad Transformer Android Development] smokesignals:
You need to remount the root filesystem read-write: mount -o remount,rw / will do that.

There is probably a better way to do this automatically (such as perhaps unpacking the kernel blob, changing the command line and repacking and reflashing it) but I created a systemd service to do it. Put this in /etc/systemd/system/remount-rw.service:

[Unit]
Description=Remount Root Read-Write

[Service]
Type=oneshot
ExecStart=/usr/bin/mount -o remount,rw /

Then cd into /etc/systemd/system/multi-user.target.wants and create a symlink to the "service" you just created with ln -s /etc/systemd/system/remount-rw.service .

Also, this might be burying the lede a little bit here, but if you're not super-comfortable with Linux, you probably should be using one of the other distros or something; I just went with Arch because I wanted a super-minimal distro where I could set up everything myself instead of having it preconfigured for me.
[Eee Pad Transformer Android Development] jrohwer:
I never tested cams as well and fm24. But sound is working on my kernel. Thanks for your .config. Will try to compile but will only get to do this in about 10 days time as I will be out of town for a while....
[Eee Pad Transformer Android Development] jrohwer:
Yes I am sure this is the problem. The command line in my kernel has a "ro" argument which boots the root fs read only. You could extract the boot image and change the command line to "rw" as quoted above, and explained in the OP as well. However, be careful. The reason Ubuntu boots ro by default that it includes a file system check on boot. There is an upstart job that runs under init (mountall) that then remounts all the filesystems as rw. Running a file system check on a mounted file system can be devastating and lead to corruption. I have never run Arch linux so don't know how its init boot process works (does it check filesystems on boot?) but maybe this remount step is not there by default. So the solution above seems very reasonable since it essentially does the same thing.
[Eee Pad Transformer Android Development] sidneyk:
Actually, I figured that out that the kernel command line was booting Arch up as ro. I was considering unacking the kernel and changing this, but have just been running the remount rw command manually. The bigger problem is that I have no network connection (wifi). I see that netcfg is included in the image, but I haven't used netcfg before and have to find some info on it. I use Arch everyday on my desktop system and work with Solaris most everyday on my job. I admittedly don't know everything, but I'm pretty comfortable with Linux or I wouldn't have gotten this far. I also see that no modules are showing up with lsmod. I'm sure I'm probably going to have to figure some things out and it may get tricky since ArchARM includes it's own kernel which may throw alot of things off since we're using a different kernel. I also see something about autofs not loading. Arch uses systemd, as pointed out by a previous poster and does try to do fsck on filesystems unless disabled in fstab. I see a bunch of errors relating to the read-only filesystems during boot, so I need to investigate the recommended service and see if it makes things rw at the proper time. With Arch being a rolling release I''m not sure how easy it will be to get things going to work properly with this method. It sounds like a more static distro may actually work best. A challenge to explore. I did manage to get a connection with my Wii ethernet adapter for long enough to make one run of pacman -Syu and then it didn't work on next boot. Got to get the wifi worked out. Thanks for the pointers guys.
[Eee Pad Transformer Android Development] vietchinh:
I think the OP must say: DONT USE THE PLAYSTORE BUSYBOX, USE THE STOCK COMES FORM ANY ROM.

Because now its working everything that op said.
[Eee Pad Transformer Android Development] smokesignals:
fsck won't operate on a mounted filesystem, or at least the version of fsck in Arch won't. I did try to figure out how to stop systemd from running fsck (I assumed that Android fscks /data itself but that seems not to be the case since every time I boot Linux even after Android it says the maximum mount count has been reached) but since, like I said, fsck won't run on a mounted filesystem, I decided it wasn't that important.
[Eee Pad Transformer Android Development] jrohwer:
If no modules are showing up with lsmod then no modules are loaded. Then wifi won't work. Try putting the following lines into a file /etc/modules in your linux rootfs, chmod to 644, and reboot.

scsi_wait_scan
tun
bcm4329 iface_name=wlan0

You can try now again lsmod if the bcm4329 module is loaded, and then ifconfig again to see if the wlan0 interface is there.
[Eee Pad Transformer Android Development] jrohwer:
Well I guess it depends. I'm coming from stock rooted, and have tried both Stericson busybox from the Play Store as well as the busybox from Android Kitchen, and both work just fine. I haven't tested JRummy busybox from PlayStore or any other version. Which did you use?
[Eee Pad Transformer Android Development] vietchinh:
I used stericson busybox. It didnt had a Z option in tar extraction. It was minor anyways. The biggest problem i hve right now it doesnt boot in to the image. It's stuck.. ( Tubuntu). In the other hand net installer doesnt allow me to sudo depmod -a . So i am kinda stranded, but i read that the kernal boot up in ro? I will search the problem.
[Eee Pad Transformer Android Development] pbecchi:
How to add driver/modules to modules-3.1.10-15-gabaf62d

I have followed this guide hhtps://wiki.ubuntu.com/KernelTeam/KernelGitBuild exept were marqued inBold.

Prerequisites

There are a few tools that are necessary in order to build your own kernel(s). The 'git' (or 'git-core' for 10.04 or before) package provides the git revision control system which will be used to clone the mainline git repository. The 'kernel-package' provides the make-kpkg utility which automatically build your kernel and generate the linux-image and linux-header .deb files which can be installed. You will need to install the following packages:

sudo apt-get install git build-essential kernel-package fakeroot libncurses5-dev

Kernel Build and Installation

Change to the directory where you want to clone the git tree. In this example we will use $HOME:

cd $HOME

Clone the mainline kernel git tree:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

I have downloaded the git:https://github.com/jmrohwer/TF101-GNU-kernel end extrated the zip

I have not checked the commits.

Change to directory linux:

cd linux

Info (!) If you only want to test all commits up to and including a specific one, instead of every commit you just downloaded, one may execute:

git checkout COMMIT

where COMMIT is the specific commit number (ex. 9587190107d0c0cbaccbf7bf6b0245d29095a9ae).

You want now to clean up from previous build(not necessary first time), with

sudo make mrproper

Copy the kernel config file from your existing system to the kernel tree:

cp /boot/config-`uname -r` .config

Since /boot/config-.. not exist, I have followed SteeveJ guide:

extracted /proc/config.gz to .config

or extracted the .config from the git with:

make tf101-linux_defconfig

verify:that CONFIG_LOCALVERSION=-15 (in my case) is correct!

Bring the config file up to date. Answer any questions that get prompted. Unless you know you are interested in a particular feature, accepting the default option by pressing Enter should be a safe choice:

make oldconfig

In cases where your kernel source is significantly newer than the existing config file, you'll be presented with all of the new config options for which there is no existing config file setting. You can either sit there and keep hitting Enter to take the default (generally safe), or you can just run:

yes '' | make oldconfig

which emulates exactly the same thing and saves you all that time.

(optional) If you need to make any kernel config changes, do the following and save your changes when prompted:

make menuconfig

Selecting the driver I want to add -(>Drivers ->Usb ->.Usbserial->fdti_sio in my case)

From now on the Guide is not relevant anymore I had to continue using other suggestions.Thanks to SteeveJ and TomTcom

Build the modules files using a thread per core + 2. This process may take time:

make -j2 modules

Finally I try to install the new module:

insdep driverFileName.ko

THANKS TO:

JROHWER

STEEVEJ

TOMTCOM
[Eee Pad Transformer Android Development] jrohwer:
The vanilla Linux source code has been extensively modified to make it work on our TF101. Rather than cloning the mainline tree, clone my tree:

https://github.com/jmrohwer/TF101-GNU-kernel

The localversion has to do with the latest commit in the kernel tree. Of course this won't be present in the mainline tree as the changes I (and others) have made are not pushed back to mainline. They are only for our TF101. So if you clone my tree, you should just be able to do:

make tf101-linux_defconfig
make menuconfig (then select all the changes you want to make, e.g. new modules to build)
make -j2 modules
[Eee Pad Transformer Android Development] pbecchi:
JROHWER

THANKS A LOT!!

I have seen now your previous post!

Since I have cloned your Git and spent a couple of day on finding a way out ,I will try anyhow to compile the module by the suggested code.

THanks
[Eee Pad Transformer Android Development] pbecchi:
Thank you Jrohwer: the new modules library of your previous post work like a charm!!

Now I am trying to compile and add the module myself, but I have some other questions:

- make tf101-linux_defconfig create the file .config but how does he know what kernel I am using -10 , -12 or -15?

-I have run :

make tf101-linux_defconfig

make menuconfig

make clean

make -j2 modules

but I get the error:

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

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

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

??????:confused:
[Eee Pad Transformer Android Development] jrohwer:
There is a key CONFIG_LOCALVERSION in the .config which specifies the local version (in this case -15). If you have the latest git source, then this should be set at -15. You can of course change it yourself if you want.

I am not sure about the error you are getting. Maybe try once to compile the kernel itself (just using make -j2). It may be that this creates some files during the build process that are then needed for building the modules. After you've done it once you should be able to just compile the modules.
[Eee Pad Transformer Android Development] TomTcom:
Pbecchi - don't mix the guide from me with commands or instructions from this thread. I believe jrohwer said the git can be cloned in this thread which means the config and source and code isn't the same.
[Eee Pad Transformer Android Development] pbecchi:
Thank's again.

CONFIG_LOCALVERSION=-15 is already set!

I tried to understand the reason for the other error:

it was related to the previous "make modules" I did..... it was not necessary any recompile since modules where alredy there!

Then I run:

sudo make mrproper ->to clean up everything

and then again:

make tf101-linux_defconfig

make menuconfig

make -j2 modules

and ... this time .....WORKED!!:)

I than have substituted ftdi_sio.ko in the /lib/modules/...../ and....

THE DRIVER WORKS!!!:)

I will edit my previous post to include these commands!!

Thanks to everybody
[Eee Pad Transformer Android Development] oXydead:
Just wondering, why isn't anyone making a video tutorial about it?
[Eee Pad Transformer Android Development] soldier9599:
[MENTION=3753391]jrohwer[/MENTION] [MENTION=850592]smokesignals[/MENTION] [MENTION=4342873]sidneyk[/MENTION] [MENTION=4705140]vietchinh[/MENTION] [MENTION=4642124]hlavicka82[/MENTION] [MENTION=4674343]zachf714[/MENTION] [MENTION=962702]4512jth[/MENTION]

I see all of you talking about installing Arch in this thread, so I'm wondering did any of you got the GPU drivers working? The latest X releases are incompatible, and the linux4tegra package in AUR is outdated. Any help would be appreciated.
[Eee Pad Transformer Android Development] smokesignals:
I don't recall having any issues with the GPU drivers, but that was over a year ago. I eventually gave up on trying to run real Linux on my tablet and flashed it back to stock anyway (and sold it to Gazelle), since it was never going to be a particularly great experience in terms of performance.
[Eee Pad Transformer Android Development] vietchinh:
I accidenlty bricked my TF 101 xD.

I already moved on and accuird nexus 5. I still come here and see the progress.