[Q] Make both XUbuntu and Android 5.0.2 work - Transformer TF300T Q&A, Help & Troubleshooting

Hello there, I flashed the KatKernel for Android 5.0, moved the Linux folders into the /data/media/linux folder. The dual boot works great, it boots into XUbuntu, I managed to get the Wifi and the sound work allthough the sound volume is a little low. I also noticed that I have lag when playing hd videos but this isnt't the point. The problem is the Android. It boots into Android but it became unusable as I constantly get errors like Launcher3 stopped working or googleplayservices stopped working. I have CM 12 and XUbuntu. How can I get the Android to work again and still be able to boot into Ubuntu?

niemand_23 said:
... How can I get the Android to work again and still be able to boot into Ubuntu?
Click to expand...
Click to collapse
Did You tried kexecboot kernel? You need to replace android kernel inside archive. To do so You should extract blob file from CM12 firmware and then unpack them with androidroot blobtools and boottools. If You use windows minimal set in attach. First of all drop blob on blobunpack.exe to get <blob_name>.LNX file. Then drop <blob_name>.LNX on bootunpack.exe to get <blob_name>.LNX-ramdisk.cpio.gz and <blob_name>.LNX-kernel.gz. Now rename <blob_name>.LNX-ramdisk.cpio.gz to initrd.img and <blob_name>.LNX-kernel.gz to zImage and replace similar files inside archive in system/boot directory.

Graiden05 said:
Did You tried kexecboot kernel? You need to replace android kernel inside archive. To do so You should extract blob file from CM12 firmware and then unpack them with androidroot blobtools and boottools. If You use windows minimal set in attach. First of all drop blob on blobunpack.exe to get <blob_name>.LNX file. Then drop <blob_name>.LNX on bootunpack.exe to get <blob_name>.LNX-ramdisk.cpio.gz and <blob_name>.LNX-kernel.gz. Now rename <blob_name>.LNX-ramdisk.cpio.gz to initrd.img and <blob_name>.LNX-kernel.gz to zImage and replace similar files inside archive in system/boot directory.
Click to expand...
Click to collapse
Quick question: Would it be easier if I do a full wipe, install KatKiss-5.0_TF300T_017 and then install DB_katkern18_50? I am asking this becaus e I want to perform a clean installation of a new Android Rom and KatKiss doesn't seem that bad. What do you think?

niemand_23 said:
Quick question: Would it be easier if I do a full wipe, install KatKiss-5.0_TF300T_017 and then install DB_katkern18_50? I am asking this becaus e I want to perform a clean installation of a new Android Rom and KatKiss doesn't seem that bad. What do you think?
Click to expand...
Click to collapse
Possibly yes. Dualboot kernel is much closer to original boot method but it have one disadvantage - it's really hard to keep it up to date. So I don't know if curent KatKiss uses same kernel source as dualboot kernel, but it shouldn't cause any big issues.

Graiden05 said:
Possibly yes. Dualboot kernel is much closer to original boot method but it have one disadvantage - it's really hard to keep it up to date. So I don't know if curent KatKiss uses same kernel source as dualboot kernel, but it shouldn't cause any big issues.
Click to expand...
Click to collapse
I flashed the KatKiss Rom and then the KatKernel for DualBoot, the Android works now but it wont't boot into XUbuntu any more. I get the following errors:
*Setting up X socket directories...
start-stop-daemon: unable to start /usr/sbin/kerneloops (Permission denied)
*speech-dispatcher disabled: edit /etc/default/speech-dispatcher
saned disabled: edit /etc/default/saned
What seems to be the problem?

niemand_23 said:
I flashed the KatKiss Rom and then the KatKernel for DualBoot, the Android works now but it wont't boot into XUbuntu any more. I get the following errors:
*Setting up X socket directories...
start-stop-daemon: unable to start /usr/sbin/kerneloops (Permission denied)
*speech-dispatcher disabled: edit /etc/default/speech-dispatcher
saned disabled: edit /etc/default/saned
What seems to be the problem?
Click to expand...
Click to collapse
May be permissions was overwritten during ROM installation.

Graiden05 said:
May be permissions was overwritten during ROM installation.
Click to expand...
Click to collapse
So what now? How can I restore the permissions? It is very weird because back when I had CM 12 and the dual boot kernel it would boot into XUbuntu without any issue but the Android wasn' t working anymore. Now after i flashed the KatKiss Rom and then the dual boot kernel again, it won' t boot into XUbuntu anymore. Has anyone magaged to have a fully working dual boot (Android 5.0 and XUbuntu) ?

niemand_23 said:
So what now? How can I restore the permissions? It is very weird because back when I had CM 12 and the dual boot kernel it would boot into XUbuntu without any issue but the Android wasn' t working anymore. Now after i flashed the KatKiss Rom and then the dual boot kernel again, it won' t boot into XUbuntu anymore. Has anyone magaged to have a fully working dual boot (Android 5.0 and XUbuntu) ?
Click to expand...
Click to collapse
Just a dumb question... Where exactly did you find the dual boot Katkernel? I've looked pretty much everywhere and still no luck for me.

Mich3lin said:
Just a dumb question... Where exactly did you find the dual boot Katkernel? I've looked pretty much everywhere and still no luck for me.
Click to expand...
Click to collapse
This is where I got the dual boot kernel from: http://forum.xda-developers.com/showpost.php?p=57927124&postcount=556 (it's the 5.0 experimental one). I just don't understand why it won't boot into XUbuntu anymore now that I have the KatKiss Rom. Back when I got CM 12, it had no issues, the Android wouldn't work though.
It allways stops at this:
*Setting up X socket directories...
start-stop-daemon: unable to start /usr/sbin/kerneloops (Permission denied)
*speech-dispatcher disabled: edit /etc/default/speech-dispatcher
saned disabled: edit /etc/default/saned

niemand_23 said:
This is where I got the dual boot kernel from: http://forum.xda-developers.com/showpost.php?p=57927124&postcount=556 (it's the 5.0 experimental one). I just don't understand why it won't boot into XUbuntu anymore now that I have the KatKiss Rom. Back when I got CM 12, it had no issues, the Android wouldn't work though.
It allways stops at this:
*Setting up X socket directories...
start-stop-daemon: unable to start /usr/sbin/kerneloops (Permission denied)
*speech-dispatcher disabled: edit /etc/default/speech-dispatcher
saned disabled: edit /etc/default/saned
Click to expand...
Click to collapse
So, I finally had time to try this kernel and it works! Boots just fine into Katkiss ROM and Ubuntu, though I have not used my own rootfs, instead I used img file for our sibling TF700 https://goo.im/devs/rabits/tf700/rootfs.img.7z.zip/. Wifi works, though I couldn't connect...
If I'll have time I'll try to build my own rootfs and report back.

Mich3lin said:
So, I finally had time to try this kernel and it works! Boots just fine into Katkiss ROM and Ubuntu, though I have not used my own rootfs, instead I used img file for our sibling TF700 https://goo.im/devs/rabits/tf700/rootfs.img.7z.zip/. Wifi works, though I couldn't connect...
If I'll have time I'll try to build my own rootfs and report back.
Click to expand...
Click to collapse
Surprisingly , Ubuntu boots fine from the img file, but directly doesn't work. This is odd. Has anyone got a full working rootfs.img ?
@Mich3lin in order to make the wifi work open up a terminal session and type following (password for sudo is ubuntu):
sudo groupadd -r -g 3003 inet
sudo groupadd -r -g 3004 netraw
sudo groupadd -r -g 3005 netadmin
sudo adduser ubuntu inet
sudo adduser ubuntu netraw
sudo adduser ubuntu netadmin
Afterwards, log out and log in again. Now the wifi should work.
The audio works only on the headphones and the volume is kinda low. I really don't know how to make the speakers work.
The key mappings have some bugs. The volume buttons don't work properly. Instead of turning up or down the volume, it takes a screenshot.
I tried to install LibreOffice but I cannot install anything as I keep getting the error unsolved broken packages.

Related

[Q&A] How to build/modify your own linux image for eMMC install Debian sample inside

[Q&A] How to build/modify your own linux image for eMMC install Debian sample inside
This thread is for help and support with all linux distributions instalable in eeepad asus transformer. I will explain how to build your own image file or modify existing one in order to use lilstive OLife script.
As ubuntu is the most popular distro, please, all de questions related with ubuntu post them in lilstevie's thread.
You can install any distribution with arm architecture support, but you'll need to make some tweaks in the image in order to work propperly. As my experience in linux is most of it related with debian is the distro i will give the best support, but i'll try to answer every question you ask.
I've chosen debian armHardFloat port instead of debian armel fore many reasons, you can read about this port here:
http : //wiki. debian.org/ArmHardFloatPort
This port is still young so right now there are packages still unaviable to install but they are entering in wheeze day to day. If you preffer to use armel instead or armhf you can always do, you will loose improvement but you will have (at the time of writting this) less packages aviable. In the future (not far away) it will be the best option.
Building your own image:
There are many ways to create a image file but because we are going to need qemu in order to debootstrap the instalation the easiest way to create it is with qemu-img
Code:
qemu-img create debian-armhf.img 400M
I have only given 400M of space because is going to be a minimal instalation without desktop enviroment, it could be smaller but, just in case, that's the size i've chosen. The transfer with OLife it will be faster if the image is smaller.
When you boot for your first time you will find an error because there is no valid MSDOS partition table, this is ok, nothing happens because of that but if you want to avoid it use fdisk to create a partition table
Code:
fdisk debian-armhf.img
we need now to give format to the filesistem:
Code:
mkfs.ext4 debian-armhf.img
It will ask if you really want to do because it's not an ordinary partition and you have to type "s" to proceed
Now whe have ready the image and we have to mount it in some folder to install debian in it:
Code:
mount -o loop debian-armhf.img debian
asuming debian as the created folder for that.
We are ready to debootstrap de instalation:
Code:
debootstrap --verbose --arch armhf --foreign --include=btrfs-tools,locales,kbd,wpasupplicant wheezy debian http://ftp.de.debian.org/debian
this will make the first step to install wheezy armhf, --foreing parameter is because the target architecture is different from the host one and it's going to stop before de second-stage, it will include the packages btrfs-tools locales and kbd, you can add as many as you want but it will be always faster if you install them manually once installed in the transformer. I didn't install ssh server because i have a dock, but if you don't have it will be needed to complete the instalation with a remote shell, but you can also install packages later with chroot after the second stage.
In order to be able to chroot we will need qemu-user-static, with armhf it's needed 1.0 version with armel it's not necesary, it can be any version not too old. Also if you have an i386 system it's recomendable to install an amd64 kernel to do chroot or debootstrap will fail configuring cron. Actually i think in this sample image there is anacron instead of cron because there was an issue i thought it was related with that but later twb found out the problem was another different and now it's solved.
we will add qemu-arm-static to the instalation to be able to chroot
Code:
cp /usr/bin/qemu-arm-static debian/usr/bin/
we chroot to the new enviroment:
Code:
chroot debian
and execute the second stage of debootstrap:
Code:
./debootstrap/debootstrap --second-stage
After finish the instalation we will set the root password
Code:
passwd
and now it's ready, you can make tweaks, install packages (as ssh if you need it) or whatever you want, but you will have to add a repository to /etc/apt/sources.list in order to install any packages.
In this image and debootstrap proccess i've used german repositories because are the fastest for me, but you can use another one, right now it's neede also experimental repository to have working touch screen, but as soon xserver-xorg-input-evdev with full multitouch support enters sid as it won't be necesary
example of /etc/apt/sources.list
Code:
http://ftp.de.debian.org/debian unstable main contrib non-free
http://ftp.de.debian.org/debian experimental main contrib non-free
I have already installed in this image necesary packages for that and experimental repositories won't interfiere unless you pass the parameter for apt-file so you can forget about this if you want, but if you are building your own image apt-get install -t experimental xserver-xorg will do the work.
we have ready now our image but it need some files and tweaks to make everithing work in the eepad.
From here you can apply this to any arm image you want to test.
(all the files needed are in the attached file files.tar.gz in the rigth folders)
we need to add modules and firmware, i've extracted them from lilstive ubuntu.img
strictly necesary are:
Code:
/lib/firmware/nvram.txt
/lib/firmware/brcm/*
but you may need another ones if you are going to use external hardware, that's on you.
there are also two folder in /lib/modules one is for the asus kernel and the other one for chrome os kernel, i suggest to add both of them because it's just a bit space and you will be able to use the image with both kernels.
In order to make wifi work i've made /etc/modprobe.d/options.conf file with some parameters found in one of the threads of lilstevie and /etc/modules with the modules to load.
You will also need to configure /etc/network/interfaces and /etc/wpa_supplicant/wpa_supplicant.conf all this files are in the attached files.tar.gz but wpa_supplicant.conf is not because it depends of each ones wifi, but there is a wpa_supplicant.conf.example and you can always google for it a bit. If you don't have a dock make sure you do this correctly or you won't be able to connect to the internet and ssh device to continue instalation easily
if you want to be able to use adb (wich is really usefull if you for example did not correctly configure wpa_supplicant) you will have tu add also "/usr/bin/adbd" and /etc/init.d/adbd"
I've modify the original init.d script to avid LSB tags missing warning error, it's not really necesary rsyslog as previous service started but ... it works.
In order to make adb service start automatically we will execute (inside the chroot of course)
Code:
update-rc.d /etc/init.d/adb defaults
This may be different in non debian based distributions, but you can always ln manually to rcX.d
Finally, there is the "bug" it has made me think something was wrong and change cron with anacron, when you boot it appears to stop booting starting a service (cron, dbus, deppending what you have installed) but it isn't you can login pressing ctrl + alt + F2 (touchpad key),
we think it's related with the bootloader and default tty as 7 or something like that.
As workaround add in /etc/rc.local "chvt 1" (without quotes) just before exit 0 line
Because there is not oem-installation like in ubuntu after the first boot there are a couple of things to do, we have to resize the image to fit the partition, change password, configure locales and xorg keyboard-layout (if you have more than one locales) add an user and include in relevant groups and maybe more in the future so i've made a postinstalation.sh script included in /usr/bin:
Code:
#!/bin/sh
echo "Making online resize of the root partition"
partition=`mount -l | grep " / " | awk '{print $1}'`
resize2fs $partition
echo "changing root password"
passwd
echo "configure locales"
dpkg-reconfigure locales
echo "configure xserver keyboard layout"
dpkg-reconfigure keyboard-configuration
echo "configure localtime"
dpkg-reconfigure tzdata
echo "Please anter a user name"
read username1
adduser $username1
echo "adding user to relevant groups"
adduser $username1 audio
adduser $username1 video
adduser $username1 netdev
adduser $username1 plugdev
adduser $username1 bluetooth
adduser to bluetooth will fil because there is not installed any bluetooth manager so there is not bluetooth group yet, and remeber tu use OLife script to inject bluetooth firmware in order to have bluetooth working.
And that's it i think i haven't miss anything but i will update this when needed. You can now install your image with lilstevie's OLife script, you will have to rename it to ubuntu.img from now. If everithing went ok you can now install the desktop enviroment you prefer, on screen keyboard or whatever you like.
I haven't test network manager and i've only tested kde-netbook, but there are still broken dependencies and it's a bit slow. This will improve as soon as we have hardware acceleration (if we ever do), and armhf port goes ahead.
Lilstevie is going to host my images and maybe OLife script will have more options in the future, but from now you can download from here:
http://dl.dropbox.com/u/60048492/debian-armhf.img.tar.gz
(md5sum inside)
http://dl.dropbox.com/u/60048492/files.tar.gz
All credits and many thanks for lilstevie and twb for all the help they gave me.
I will apreciate any correction not only in this process but also in my english grammar/ortography
Please, any mod or admin can correct the word modufy in the title?
reserved
Thanks
Following your instructions, I can finally replace ubuntu with debian, which resides my home laptops, office desktop, and now, on my tablet as well. Unfortunately debian has no "onboard" package... and it's rather inconvenient without a dock.
Thanks anyway for bring debian to this tablet.
boseliquid said:
Following your instructions, I can finally replace ubuntu with debian, which resides my home laptops, office desktop, and now, on my tablet as well. Unfortunately debian has no "onboard" package... and it's rather inconvenient without a dock.
Thanks anyway for bring debian to this tablet.
Click to expand...
Click to collapse
What has onboard that haven't other onscreen keyboards? i haven't ever tried onboard and i just tried a couple of onboard keyboards in debian, i also did managed to load it automatically in login screen, But i did never went deeper, like "only appear if the focus is in textbox" or something like that.
Anyway i has to be easy to rebuild that package for debian or just install it from ubuntu. What do you exactly need?
onboard onboard
Onboard has keys that simulate middle-click and right-click of mouse. I tried to install ubuntu's deb file, but runs into problem with dependencies. Compiling the source on the tablet led to error related to gdk/gdk.h which i couldn't figure out how to resolve.
Onboard respond better than others, e.g. xvkbd and florence both have run-away key presses, i.e. a string of letters appear even for a quick single tap on a key.
Also, onboard integrates nicely with lightdm. I used xdm plus florence to log in (the screen keyboard hides most of xdm's GUI).
With fluxbox, debian seems faster than ubuntu+fluxbox on the tablet. That's why onboard is nice since fluxbox menu requires right-clicking on the desktop. Fortunately, fluxbox keys are easily configurable, so i still can shutdown by pressing some key combination.
Hopefully lilstevie has the time to work on hardware acceleration, which would then allows to dump android completely.
boseliquid said:
Onboard has keys that simulate middle-click and right-click of mouse. I tried to install ubuntu's deb file, but runs into problem with dependencies. Compiling the source on the tablet led to error related to gdk/gdk.h which i couldn't figure out how to resolve.
Onboard respond better than others, e.g. xvkbd and florence both have run-away key presses, i.e. a string of letters appear even for a quick single tap on a key.
Also, onboard integrates nicely with lightdm. I used xdm plus florence to log in (the screen keyboard hides most of xdm's GUI).
With fluxbox, debian seems faster than ubuntu+fluxbox on the tablet. That's why onboard is nice since fluxbox menu requires right-clicking on the desktop. Fortunately, fluxbox keys are easily configurable, so i still can shutdown by pressing some key combination.
Hopefully lilstevie has the time to work on hardware acceleration, which would then allows to dump android completely.
Click to expand...
Click to collapse
Ok, i'll give it a look and if i can i will build a debian package in order to include it in the image
I've managed to build a couple of packages for onboard. You can't imagine how much crap it's in building dependencies, mono, unity and so many things, so i've removed appindicator dependency because i don't think it's going to be really necesary. The true is that i don't have so much time right now so,
Can you please test it and tell me if you have any problem? I can try to rebuild another older version in order to avoid unity crap and those things without messing the code, but if this works well it's the eassiest solution.
You have to install both packages, the other dependencies are instalable from debian oficial repository, at least i haven't got any problem installing it in my building environment.
http://dl.dropbox.com/u/60048492/onboard_0.95.1-1_all.deb
http://dl.dropbox.com/u/60048492/python-virtkey_0.60.0-1_armel.deb
arch of python-virtkey is armel instead of armhf
Almost there... but obtained the following error msg:
Unpacking onboard (from onboard_0.95.1-1_all.deb) ...
dpkg: dependency problems prevent configuration of onboard:
onboard depends on python-virtkey (>= 0.60.0); however:
Package python-virtkey is not installed.
onboard depends on python-gconf; however:
Package python-gconf is not installed.
dpkg: error processing onboard (--install):
dependency problems - leaving unconfigured
Thanks again.
boseliquid said:
Almost there... but obtained the following error msg:
Unpacking onboard (from onboard_0.95.1-1_all.deb) ...
dpkg: dependency problems prevent configuration of onboard:
onboard depends on python-virtkey (>= 0.60.0); however:
Package python-virtkey is not installed.
onboard depends on python-gconf; however:
Package python-gconf is not installed.
dpkg: error processing onboard (--install):
dependency problems - leaving unconfigured
Thanks again.
Click to expand...
Click to collapse
python-virtkey is provided in my previous post, just install it, after that
#apt-get install -f
will resolve and install automatically pending dependencies.
I've already tried and it works.
EDIT: i have been working in the suppose you are runnin debian armel and not armhf
To get bluetooth working, you need an armhf build of brcm_patchram_plus.
Thankfully it's GPL'd, so here's a copy.
Hi,
I'm having a bit of trouble getting Debian on my TF101 using OLiFE.
I'm forced to use the android/Ubuntu dual-boot option, but that's another story.
Basically, there's a kernel panic and I can't see the entire screen without it rebooting one second later. I am able to flash my TF101 properly without bricking (it's a B60), but everytime I boot it up as my default OS, I get that rebooting screen.
NothingMuchHereToSay said:
Hi,
I'm having a bit of trouble getting Debian on my TF101 using OLiFE.
I'm forced to use the android/Ubuntu dual-boot option, but that's another story.
Basically, there's a kernel panic and I can't see the entire screen without it rebooting one second later. I am able to flash my TF101 properly without bricking (it's a B60), but everytime I boot it up as my default OS, I get that rebooting screen.
Click to expand...
Click to collapse
Kernel panic kinda implies the problem is with the kernel, not with Debian. If you're using the 3.1 kernel, try the 2.6 one by lilstevie. Whichever kernel you're using, you're better off seeking help in one of the kernel-specific threads.
rdnetto said:
Kernel panic kinda implies the problem is with the kernel, not with Debian. If you're using the 3.1 kernel, try the 2.6 one by lilstevie. Whichever kernel you're using, you're better off seeking help in one of the kernel-specific threads.
Click to expand...
Click to collapse
Could or couldn't it may also be a problem with initramfs and boot parameters. I now because i experienced it. So if you give us more information, better, try to record a video of the bootloop and pass it slowly to see the error, i did that and it worked for me
Franks Tools-new modified Ubuntu install
Hello i dont know if this is right thread,i like to ask you advanced users for some help.I wanna install ubuntua via new modified Franks tools by kenshin,released few days ago,i cannot find exact answer what i need to progress.
My questions are: How can i made nvflashable files system.img boot.img recovery.img and others to use franks tools? how to obtain these images?
2.) and if i will use those images that can be found here on forum can i then just flash for example Revolution HD rom? ,or does it destroy my installation of ubuntu via franks tools?
because i know that there is little play with partitions so i am not sure if i can flash any rom after use of franks tools dual boot option.thank you for help
shaola said:
Could or couldn't it may also be a problem with initramfs and boot parameters. I now because i experienced it. So if you give us more information, better, try to record a video of the bootloop and pass it slowly to see the error, i did that and it worked for me
Click to expand...
Click to collapse
I did everything stock and did exactly what you said to do for Debian, though I used the armel architecture and the adb wouldn't work with an error.
By everything stock, I mean that I didn't alter anything from the OLiFE folder except adding the ubuntu.img file.
NothingMuchHereToSay said:
I did everything stock and did exactly what you said to do for Debian, though I used the armel architecture and the adb wouldn't work with an error.
By everything stock, I mean that I didn't alter anything from the OLiFE folder except adding the ubuntu.img file.
Click to expand...
Click to collapse
The original kernel from OLiFE didn't work for me - I had a boot loop. Try manually compiling the lilstevie kernel, or using a kernel from Jhinta's kernel thread.
The packed kernels (CWM zips) for Ubuntu will work exactly the same under Debian. (or at least in the direct mount case - I don't know about loop mount)
i can't get wifi up ... could someone help?
it is shown in iwlist wlan0 scan but i can't find an network ...
while boot it sends many intervals and abort this progress with givin' up.
i just copied li/firmware file from olife.img und files from this thread over it ...
anyone could help please?
NoDiskNoFun said:
i can't get wifi up ... could someone help?
it is shown in iwlist wlan0 scan but i can't find an network ...
while boot it sends many intervals and abort this progress with givin' up.
i just copied li/firmware file from olife.img und files from this thread over it ...
anyone could help please?
Click to expand...
Click to collapse
what are you uing to scan? this driver ony supports wpasupplicant, not iw nor iwconfig
hi,
i installed the ubuntu image with olife on my transformer. i don't like ubuntu very much, i prefer debian which i run debian on my computer as well. i stumbled over this thread so i wondered what's the status of debian on our transformer.
can anyone tell me whats currently working.
hanswurschtus said:
hi,
i installed the ubuntu image with olife on my transformer. i don't like ubuntu very much, i prefer debian which i run debian on my computer as well. i stumbled over this thread so i wondered what's the status of debian on our transformer.
can anyone tell me whats currently working.
Click to expand...
Click to collapse
The same as in ubuntu. But you may need some tweeks. Depends of the kernel you are using. nvidia has released also a beta of the nvidia drivers for armhf and not only armel so you may use armhf or armel with jintha's kernel and have almost everithung working.

[Q] [Dualboot]-[Net-Install] Flash Jhintas Kernel with no Linux Machine available

Hello everybody!
I've just set up a dualboot with ICS/Stock/Rooted as default + Ubuntu as secondary using frankc123's one-click installer with NoDiskNoFun's Net-Install Ubuntu v0.6.
Everything went fine, except it didn't install Jhintas kernel during the Ubuntu install process (net-install) , tried multiple times chosing it being flashed as first, secondary, even building it during install... I've read of others having the same problem on NoDiskNoFun's thread and one user suggested it might be because the Net-Install script can't handle ubuntu being secondary...
So my question is: How do I either flash the Jhinta kernel on top of my Install with no Linux machine available except for the transformer itself
or
how do I change the dualboot order in frank's tool to make ubuntu the default and android the secondary Os (assuming thats really what causes the jhinta kernel not to install during the script)?
I'm really a noob when it comes to stuff like this so help would be greatly appreciated!
Thanks in advance!
I just struggled with the exact same issue today, except I'm using OLiFE instead of frankc123's one-click installer. I finally figured out how to get it working earlier.
There's a file left by net-installer in /Linux_for_Tegra/ named selfbuild.img that has the kernel image that needs to get flashed to your device. I just overwrote the image that contained the 2.6.36 kernel with Jhinta's kernel _after_ finishing all the steps from the net-install scripts. This was a little bit tricky with OLiFE because it builds the image from a few files, so I had to comment out this step to let it flash the provided selfbuild.img as is.
Hope that helps. I can check out what frankc123's one-click installer does if not.
xxaconexx said:
Hello everybody!
I've just set up a dualboot with ICS/Stock/Rooted as default + Ubuntu as secondary using frankc123's one-click installer with NoDiskNoFun's Net-Install Ubuntu v0.6.
Everything went fine, except it didn't install Jhintas kernel during the Ubuntu install process (net-install) , tried multiple times chosing it being flashed as first, secondary, even building it during install... I've read of others having the same problem on NoDiskNoFun's thread and one user suggested it might be because the Net-Install script can't handle ubuntu being secondary...
So my question is: How do I either flash the Jhinta kernel on top of my Install with no Linux machine available except for the transformer itself
or
how do I change the dualboot order in frank's tool to make ubuntu the default and android the secondary Os (assuming thats really what causes the jhinta kernel not to install during the script)?
I'm really a noob when it comes to stuff like this so help would be greatly appreciated!
Thanks in advance!
Click to expand...
Click to collapse
GdmImpulse said:
I just struggled with the exact same issue today, except I'm using OLiFE instead of frankc123's one-click installer. I finally figured out how to get it working earlier.
There's a file left by net-installer in /Linux_for_Tegra/ named selfbuild.img that has the kernel image that needs to get flashed to your device. I just overwrote the image that contained the 2.6.36 kernel with Jhinta's kernel _after_ finishing all the steps from the net-install scripts. This was a little bit tricky with OLiFE because it builds the image from a few files, so I had to comment out this step to let it flash the provided selfbuild.img as is.
Hope that helps. I can check out what frankc123's one-click installer does if not.
Click to expand...
Click to collapse
Hey!
Thanks for the reply! But if I am not mistaken OLiFE is Linux only, or isn't it? Like i said I unfortunately have no access to a Linux machine other than the transformer itself, so I'm stuck with Franks tools, plus while I get the theory behind what you are saying, I have no Idea how to do it myself... I'm really a newbie when it comes to Linux, which is why I'd like to try it out on the TF
Any ideas on how to flash the kernel either during install, or afterwards without OLiFE? Maybe via NVFlash? (Just wildly guessing here)
Thanks!
xxaconexx said:
Hey!
Thanks for the reply! But if I am not mistaken OLiFE is Linux only, or isn't it? Like i said I unfortunately have no access to a Linux machine other than the transformer itself, so I'm stuck with Franks tools, plus while I get the theory behind what you are saying, I have no Idea how to do it myself... I'm really a newbie when it comes to Linux, which is why I'd like to try it out on the TF
Any ideas on how to flash the kernel either during install, or afterwards without OLiFE? Maybe via NVFlash? (Just wildly guessing here)
Thanks!
Click to expand...
Click to collapse
It should definitely work with nvflash since that's what OLiFE is using. From what I can see in the scripts, you can run:
nvflash -r --download <PARTITION> selfbuild.img
Where <PARTITION> is 5 for secondary and 6 for primary (AFAICT, booting net-install from primary doesn't work anyways, so likely this should be 5 for you).
could you by any chance walk me through this? from what you said I'd be guessing to do the following:
put the selfbuild.img into the nvflash folder
open a cmd and navigate inside the folder
plug transformer in apx mode + install drivers
type nvflash -r --download 5 selfbuild.img into the cmd
is that all I have to do? if its really that easy, than wow!
where is the /Linux_for_Tegra/ folder that contains the selfbuild.img located tho? couldn't find it on my TF, and once I found it, how do I pull it? mount the ubuntu partition in android and pull it via root explorer?
thanks a lot! :victory:
acone
GdmImpulse said:
It should definitely work with nvflash since that's what OLiFE is using. From what I can see in the scripts, you can run:
nvflash -r --download <PARTITION> selfbuild.img
Where <PARTITION> is 5 for secondary and 6 for primary (AFAICT, booting net-install from primary doesn't work anyways, so likely this should be 5 for you).
Click to expand...
Click to collapse
xxaconexx said:
could you by any chance walk me through this? from what you said I'd be guessing to do the following:
put the selfbuild.img into the nvflash folder
open a cmd and navigate inside the folder
plug transformer in apx mode + install drivers
type nvflash -r --download 5 selfbuild.img into the cmd
is that all I have to do? if its really that easy, than wow!
where is the /Linux_for_Tegra/ folder that contains the selfbuild.img located tho? couldn't find it on my TF, and once I found it, how do I pull it? mount the ubuntu partition in android and pull it via root explorer?
thanks a lot! :victory:
acone
Click to expand...
Click to collapse
That sounds right. That's what I did to get it working. This is assuming that the Windows version of nvflash takes the same parameters of the Linux version, but it sounds like it does.
You can probably pull the file from Android. If you have an sdcard, you can copy it from Linux. I've uploaded the image from mine that you can try if you are having trouble pulling the file. This is from Net-Installer 0.6: 2shared.com/file/9wAIoPat/selfbuild.html
okay, so I've tried this, here's what happened:
-put the selfbuild.img into the nvflash folder
-open a cmd and navigate inside the folder
-plug transformer in apx mode + install drivers
-type nvflash -r --download 5 selfbuild.img into the cmd
-cmd shows something along the lines of nvflash starting [resume mode] than it would get stuck forever with nothing happening afterwards
-tried to see if nvflash was working properly via nvflash --sync and it would give me the 'nvflash started rcm version 0x4 command send failed' error SBK2 users get without using wheelie, then the device lost connection (odd, was that supposed to happen?)
-downloaded wheelie (eventho I have an sbk1 device [B50])
-navigated to the wheelie folder and replaced the bootloader.bin with the one from franks tools (not sure if that was necessary)
-opened up a cmd, navigated to the wheelie folder and typed in wheelie -1 -o 0x300d8011 --bl bootloader.bin -c transformer.bct (wheelie SBK1DEVICE SET_ODM_DATA_TO 0x300d8011 SET_THE_BOOTLOADER_FILENAME_TO bootloader.bin SET_THE_BCT_FILENAME_TO transformer.bct)
-nvflashed the selfbuild.img again using nvflash -r --download 5 selfbuild.img
IT WORKED!
not entirely sure what i did there as I just randomly pulled bits of information from a ton of threads and google, but it worked :victory:
touchpad is now working, but I still can't get it to connect to my wifi using wpa_gui, it shows my router when scanning (wpa2-personal psk aes [so i'm assuming the encryption has to be set to CCMP?]) but when I enter the password and try to connect it just gives me the "associating" for a second than says "disconnected, last message bssid=00:00:00:00:00:00 reason=0
any clues why?
thanks again for the help! :good::good:
GdmImpulse said:
That sounds right. That's what I did to get it working. This is assuming that the Windows version of nvflash takes the same parameters of the Linux version, but it sounds like it does.
You can probably pull the file from Android. If you have an sdcard, you can copy it from Linux. I've uploaded the image from mine that you can try if you are having trouble pulling the file. This is from Net-Installer 0.6: 2shared.com/file/9wAIoPat/selfbuild.html
Click to expand...
Click to collapse
disregard my last post and this one, I got it working, simply needed a reboot when it was stuck on 'associating...' was able to apt-get the ubuntu software center now, just to run into the next problem: upon running it it says starting then crashes with a crash report, when I try to open up the details it says "icon 'package-install' not present in theme", downloaded synaptics, tried to start it from applications/system tools/administration/synaptic package manager but the system will just show the loading icon for a second then nothing happens... guess I'm off for a great start into the world of linux
just tried to set the encryption of the router to wep and connect, wpa_gui says its connected but I cant ping anything via terminal or sudo apt-get stuff, plus oddly enough while the tf is connected none of my other devices can access the wifi
tried WPS as well both with the push button (gives a waiting or registrar status forever) and a generated pin (router just tells me to start wps on the tf, tf tells me registrar does not yet know pin) - so thats not working either...
disabling encryption entirely and just leaving the network open (this is what worked for me during net-install) won't do anything either, status will just show "associating" forever...
any clues?
xxaconexx said:
disregard my last post and this one, I got it working, simply needed a reboot when it was stuck on 'associating...' was able to apt-get the ubuntu software center now, just to run into the next problem: upon running it it says starting then crashes with a crash report, when I try to open up the details it says "icon 'package-install' not present in theme", downloaded synaptics, tried to start it from applications/system tools/administration/synaptic package manager but the system will just show the loading icon for a second then nothing happens... guess I'm off for a great start into the world of linux
just tried to set the encryption of the router to wep and connect, wpa_gui says its connected but I cant ping anything via terminal or sudo apt-get stuff, plus oddly enough while the tf is connected none of my other devices can access the wifi
tried WPS as well both with the push button (gives a waiting or registrar status forever) and a generated pin (router just tells me to start wps on the tf, tf tells me registrar does not yet know pin) - so thats not working either...
disabling encryption entirely and just leaving the network open (this is what worked for me during net-install) won't do anything either, status will just show "associating" forever...
any clues?
Click to expand...
Click to collapse
Glad to hear you got the kernel working :highfive:
FWIW, I was having problem with WPA2 as well. For now, I've manually modified /etc/wpa_supplicant/wpa_supplicant.conf to get it working. http://forum.xda-developers.com/showthread.php?p=33856819&highlight=wpa2#post33856819 is what I followed to modify the config for my network.
yeah I had tried that first but it wouldn't work, then read a post about how wpa_gui is not always showing the correct status of the wifi, so I connected to my wifi, left it at "associating" and rebooted, after a reboot it showed "connected" :laugh:
got the software center to work as well, installing synaptics did the trick, eventho I can't run synaptics itself, the error I had before with the software center was gone after i installed it.
is usb hotplugging working for you? I know jhintas kernel is not supposed to have it, but NoDiskNoFun stated is was working with his net-install script in the post so I'm curious. rn I have to have the usb device plugged in during boot for it to work.
GdmImpulse said:
Glad to hear you got the kernel working :highfive:
FWIW, I was having problem with WPA2 as well. For now, I've manually modified /etc/wpa_supplicant/wpa_supplicant.conf to get it working. http://forum.xda-developers.com/showthread.php?p=33856819&highlight=wpa2#post33856819 is what I followed to modify the config for my network.
Click to expand...
Click to collapse

[wip] atrix2 webtop ubuntu ICS 4.0.4 OTA

Thanks to jimbridgman, I was able get this far...
I purchased a couple of lapdocks for $50 each to use with my raspberry pi. I needed cables from China to use the rpi on the lapdock, so while waiting for said cables, I bought a used atrix 2 [AT&T branded] to play with. When I got it, it already had the OTA 4.0.4 update on it. I *really* wanted ubuntu to run on this and was sad to learn this wasn't possible.
So I've been fooling around with this thing and here's what i've got so far.
Things you may want to have [or already have!]:
MotorolaDeviceManager_2.3.4
ICS_root(superuser_3.1.3_and_su_binary_3.1.1)_
InlineFlashing_Edison_67.21.125_CFC_P3_APBP.xml.zip
RSD Lite v5.6
webtop_unlock.tar
ADB
Linux box [I have Ubuntu installed in an Oracle based VM]​
If you hose the phone you'll need to put it into fastboot mode [hold power and volume down] and run RSD Lite to restore/reflash it. After the flash completes, root it with the ICS_root(superuser_3.1.3_and_su_binary_3.1.1)'s root.bat. If you aren't aware that this will erase everything on your phone, you may want to get some more reading in.
So the atrix2 4.0.4 AT&T OTA *seems* to store the WebTop/Ubuntu environment on /dev/block/mmcblk1p24; it has a symbolic link called "webtop" in /dev/block.
So what I've tried so far...
pull the webtop image and copy to sdcard
"dd if=/dev/block/mmcblk1p24 of=/sdcard/webtop.img"
The "webtop.img" to your desktop and back it up. AFAICT, this is your WebTop partition and if you hose this file, with no backup, you've permanently hosed WebTop on the phone. This file is 1.3gigs
Copying this file takes about 12 minutes on my computer​
mount the "webtop.img" file in linux using [after creating the folder "wt" in tmp]
sudo mount webtop.img /tmp/wt -o loop​
edit with "sudo nautilus"
browse to /tmp/wt
rename etc/toymoyo to "old-toymoyo"
editing "start-oshwt-1.sh" and "start-oshwt-2.sh" [located in /tmp/wt/usr/local/bin/"]
Here I have progressively commented out every line starting with "sfalv"​ rename "mountsecurityfs.sh" in "etc/init.d" to "mountsecurityfs.old" and create a blank "mountsecurityfs.sh" file
extract the contents of mbm.rar to respective directories​
unmount "webtop.img" with
sudo umount /tmp/wt​
push your edited version to the phone
copy "webtop.img" back to the sdcard [overwrite/replace]. Before you do this, make sure you have a clean copy of "webtop.img" somewhere
adb shell | su | dd if=/sdcard/webtop.img of=/dev/block/mmcblk1p24
Replacing this file/partition takes about 12 minutes on my computer​
Sadly, this has had no effect so far. My WAG is that this version of WebTop/ ICS 4.0.4 does some copying from tmp folders to replace the stuff I've changed. Basically, at this point I'm trying just to crash WebTop.
ill13 said:
I purchased a couple of lapdocks for $50 each to use with my raspberry pi. I needed cables from China to use the rpi on the lapdock, so while waiting for said cables, I bought a used atrix 2 [AT&T branded] to play with. When I got it, it already had the OTA 4.0.4 update on it. I *really* wanted ubuntu to run on this and was sad to learn this wasn't possible.
So I've been fooling around with this thing and here's what i've got so far.
Things you may want to have [or already have!]:
MotorolaDeviceManager_2.3.4
ICS_root(superuser_3.1.3_and_su_binary_3.1.1)_
InlineFlashing_Edison_67.21.125_CFC_P3_APBP.xml.zip
RSD Lite v5.6
webtop_unlock.tar
ADB
Linux box [I have Ubuntu installed in an Oracle based VM]​
If you hose the phone you'll need to put it into fastboot mode [hold power and volume down] and run RSD Lite to restore/reflash it. After the flash completes, root it with the ICS_root(superuser_3.1.3_and_su_binary_3.1.1)'s root.bat. If you aren't aware that this will erase everything on your phone, you may want to get some more reading in.
So the atrix2 4.0.4 AT&T OTA *seems* to store the WebTop/Ubuntu environment on /dev/block/mmcblk1p24; it has a symbolic link called "webtop" in /dev/block.
So what I've tried so far...
pull the webtop image and copy to sdcard
"dd if=/dev/block/mmcblk1p24 of=/sdcard/webtop.img"
The "webtop.img" to your desktop and back it up. AFAICT, this is your WebTop partition and if you hose this file, with no backup, you've permanently hosed WebTop on the phone. This file is 1.3gigs
Copying this file takes about 12 minutes on my computer​
mount the "webtop.img" file in linux using [after creating the folder "wt" in tmp]
sudo mount webtop.img /tmp/wt -o loop​
edit with "sudo nautilus"
browse to /tmp/wt
rename etc/toymoyo to "old-toymoyo"
editing "start-oshwt-1.sh" and "start-oshwt-2.sh" [located in /tmp/wt/usr/local/bin/"]
Here I have progressively commented out every line starting with "sfalv"​ rename "mountsecurityfs.sh" in "etc/init.d" to "mountsecurityfs.old" and create a blank "mountsecurityfs.sh" file
extract the contents of mbm.rar to respective directories​
unmount "webtop.img" with
sudo umount /tmp/wt​
push your edited version to the phone
copy "webtop.img" back to the sdcard [overwrite/replace]. Before you do this, make sure you have a clean copy of "webtop.img" somewhere
adb shell | su | dd if=/sdcard/webtop.img of=/dev/block/mmcblk1p24
Replacing this file/partition takes about 12 minutes on my computer​
Sadly, this has had no effect so far. My WAG is that this version of WebTop/ ICS 4.0.4 does some copying from tmp folders to replace the stuff I've changed. Basically, at this point I'm trying just to crash WebTop.
Click to expand...
Click to collapse
I thought I read somewhere that webtop for ICS was nothing more than an apk. That's the problem of hacking it up, it's not running like it was in GB
Ugh, well, if WebTop is nothing but an apk, then that explains why i cant seem to crash it
So, I've extracted the system image from dev/block and mounted it with
sudo mount -t ext4 system.img /tmp/atrix -o loop​
I'll poke in there...but if this all for naught, I may have to ditch this phone and go for a nexus
ill13 said:
I purchased a couple of lapdocks for $50 each to use with my raspberry pi. I needed cables from China to use the rpi on the lapdock, so while waiting for said cables, I bought a used atrix 2 [AT&T branded] to play with. When I got it, it already had the OTA 4.0.4 update on it. I *really* wanted ubuntu to run on this and was sad to learn this wasn't possible.
So I've been fooling around with this thing and here's what i've got so far.
Things you may want to have [or already have!]:
MotorolaDeviceManager_2.3.4
ICS_root(superuser_3.1.3_and_su_binary_3.1.1)_
InlineFlashing_Edison_67.21.125_CFC_P3_APBP.xml.zip
RSD Lite v5.6
webtop_unlock.tar
ADB
Linux box [I have Ubuntu installed in an Oracle based VM]​
If you hose the phone you'll need to put it into fastboot mode [hold power and volume down] and run RSD Lite to restore/reflash it. After the flash completes, root it with the ICS_root(superuser_3.1.3_and_su_binary_3.1.1)'s root.bat. If you aren't aware that this will erase everything on your phone, you may want to get some more reading in.
So the atrix2 4.0.4 AT&T OTA *seems* to store the WebTop/Ubuntu environment on /dev/block/mmcblk1p24; it has a symbolic link called "webtop" in /dev/block.
So what I've tried so far...
pull the webtop image and copy to sdcard
"dd if=/dev/block/mmcblk1p24 of=/sdcard/webtop.img"
The "webtop.img" to your desktop and back it up. AFAICT, this is your WebTop partition and if you hose this file, with no backup, you've permanently hosed WebTop on the phone. This file is 1.3gigs
Copying this file takes about 12 minutes on my computer​
mount the "webtop.img" file in linux using [after creating the folder "wt" in tmp]
sudo mount webtop.img /tmp/wt -o loop​
edit with "sudo nautilus"
browse to /tmp/wt
rename etc/toymoyo to "old-toymoyo"
editing "start-oshwt-1.sh" and "start-oshwt-2.sh" [located in /tmp/wt/usr/local/bin/"]
Here I have progressively commented out every line starting with "sfalv"​ rename "mountsecurityfs.sh" in "etc/init.d" to "mountsecurityfs.old" and create a blank "mountsecurityfs.sh" file
extract the contents of mbm.rar to respective directories​
unmount "webtop.img" with
sudo umount /tmp/wt​
push your edited version to the phone
copy "webtop.img" back to the sdcard [overwrite/replace]. Before you do this, make sure you have a clean copy of "webtop.img" somewhere
adb shell | su | dd if=/sdcard/webtop.img of=/dev/block/mmcblk1p24
Replacing this file/partition takes about 12 minutes on my computer​
Sadly, this has had no effect so far. My WAG is that this version of WebTop/ ICS 4.0.4 does some copying from tmp folders to replace the stuff I've changed. Basically, at this point I'm trying just to crash WebTop.
Click to expand...
Click to collapse
Fist off this very very familiar, and little credit where credit is due would have been nice in your OP. See my link below.
The real issue is that with moto getting rid of support for webtop and the lapdocks, they took out the important parts of the kernel from the boot.img, so the major parts like the ubuntu.sh that is in / on the android side is not there, and since the bootloader is locked, we cannot make any changes to the / partition to add the unbutu.sh script back. You are more than welcome to try and use my webtop hack script (which I notice you call out my webtop_unlock.tar, without crediting me) to move the image to your sdcard, so that you do not have to use an image file that was dd'd I have a way to copy it and then edit the mount.sh script in /system/bin to mount it on every boot, but again you will need to find a way to get the unbutu.sh script and the kernel modules to work, that is where I had to stop with hacking webtop.
P.S. here is my webtop hack instructions. All my files are linked in there, the script works, and many people have used it. The issue will be getting the unbuntu.sh script and putting it in the right place and getting the dock apk files from GB that call the ubuntu.sh script when docked to work in ICS.
http://forum.xda-developers.com/showthread.php?t=1375042
jimbridgman,
Yeah, I used your instructions to get to where I am! However, since I am stuck on OTA 4.0.4 I don't have a lot of hope...
Currently downloading the InlineFlashing_edison_5.5.175.16_cfc_p3_APBP_CID285.zip to try what you just said about replacing apks and the ubuntu.sh script...
since this phone isn't my daily driver, I suppose I could brick it and not worry too much...Although webtop 3 is usable for me, I'd just rather have a full desktop
Ahhh...on the old roms, "grfs.img" is the ubuntu webtop...
ill13 said:
jimbridgman,
Yeah, I used your instructions to get to where I am! However, since I am stuck on OTA 4.0.4 I don't have a lot of hope...
Currently downloading the InlineFlashing_edison_5.5.175.16_cfc_p3_APBP_CID285.zip to try what you just said about replacing apks and the ubuntu.sh script...
since this phone isn't my daily driver, I suppose I could brick it and not worry too much...Although webtop 3 is usable for me, I'd just rather have a full desktop
Ahhh...on the old roms, "grfs.img" is the ubuntu webtop...
Click to expand...
Click to collapse
Again though, it even states in the forum rules, that you are to give credit, when you use other peoples work, and you did not do that in your post, just remember that next time, because I could go to the MODS and have the thread removed, since your technically you were using my work without permission. Read the rules again just so you know. Others may not be so nice, I have seen people banned for similar things.
added thanks to first post...
This work on Jely Bean too?
Jim, so does this mean that without an unlocked bootloader, Ubuntu webtop won't be possible on ICS? I suppose the only other way to do it would be by loading the modules via 2ND-init?
snowplow said:
Jim, so does this mean that without an unlocked bootloader, Ubuntu webtop won't be possible on ICS? I suppose the only other way to do it would be by loading the modules via 2ND-init?
Click to expand...
Click to collapse
probably not, since the unbuntu.sh was in / on the android side, and that is in the boot image, and unless you have good source for the MB865, then there is a nil chance.
Jim
I've got a build date of Friday August 31, this means that there is no going back to GB?
Sent from my MB865 using XDA Premium HD app
jimbridgman said:
Again though, it even states in the forum rules, that you are to give credit, when you use other peoples work, and you did not do that in your post, just remember that next time, because I could go to the MODS and have the thread removed, since your technically you were using my work without permission. Read the rules again just so you know. Others may not be so nice, I have seen people banned for similar things.
Click to expand...
Click to collapse
Hey Jim, old pal!
How's work on the new ROM going?
Would love to give it a spin with my lapdock.
awe man I wish this was working...
Alperon said:
Hey Jim, old pal!
How's work on the new ROM going?
Would love to give it a spin with my lapdock.
Click to expand...
Click to collapse

[Multiboot][Mountloop][No Pc] Transformazing

Transformazing
This is for tf101 only and i do not take any warranty, means when you destroy your device with that it is your fault !
I did not find this method, nor i developed the kernel, the only thing i did was that i packed the newest jintha kernel into cwm flashable packages and had the idea to install more than
one linux system because i was pretty nerved because i had arch, ubuntu and 13.04 installed and always had to rename one to ubuntu.img. So i put the kernel into 3 (maybe make more)
packages, which look for the files /mnt/sdcard/.linux1, (/dev/mmcblk0p7 rw loop=/media/.linux1.img), .linux2.img and .linux3.img. The point is to hide the files, so you dont see them
for default if you boot to android.
Installation:
Download a armel/armhf image, rename it to .linux1/.linux2,/.linux3 and put it to internal sd(under android /mnt/sdcard or /storage/sdcard0(or 1, roms differ.)(i suggest tubuntu v 1..1, 1.2 has more bugs lol)
Flash the kernel in cwm (linux1 kernel for .linux1, linux2 kernel for .linux2, ... easy, isnt it?
To go back to android flash one of these (http://www.mediafire.com/?labcx60jowrdx), or extract the kernelblob form your rom, or just flashing your kernel should also work(not tested by me).
Any questions?
Changelog:
There is no changelog and there wont be one because i only put the kernels into mountloop packages, but i will try to get a stable 2.6 kernel into a mountloop package(no luck until now)
Advanages of this and other mehods:
Mountloop:More than one Linux os possible
No Pc needed
Easy to remove linux
Easy to give more space to linux/android
Faster to flash
Sl101/tf101g should work too
Option to boot linux from microsd
Olife, tubuntu:Chose os on boot
2.6 kernels and kernels greater than 8 mb possible (only 2.6)
Whats up with these Kernels:
.linux1: 3.1.10: Jintha Kernel, working : Sound, Hw acceleration, Sd, microsd, usb(if a dev is connected at boot), ...
sometimes freezes, use tubuntu v 1.1 and not 1.2
.linux2: 3.1.10: same as above
.linux3: 3.1.10:: dont know which, better touchpad, sound, hw acceleration, sd, microsd, usb(if something is connected at boot), stable, does not work with tubuntu and raring images
.linux4: 2.6.36.4: sound only headphones, no hw acceleration, working with nearly every image
kernelexternal: boots the os installed on micro sd(explained in 2nd post)
Images:
Archlinux and Raring: http://goo.im/devs/x3maniac
Ubuntu 11.10: http://www.ulozto.net/xyFaPBA/ubuntu-img-gz
Tubuntu v1.1(lubuntu 12.10): http://www.novaspirit.com/tubuntu/tubuntu.php
Debian: http://forum.xda-developers.com/showthread.php?t=1476835
Ubuntu 12.04 netinstall: http://forum.xda-developers.com/showthread.php?t=1852702
Lubuntu 12.04. http://www.ulozto.net/xauaj1b/ubuntu-img-gz
If this thread should be in general, pls move it!
The video quality is really bad(really really really bad), so i suggest only watch it if you dont understand it.​
I added the kernels for android 4.2 file system
The .linux .img s have to be placed on /storage/sdcard0 on first user
then flash the packages for your img name (.linux1.img or .linux2.img) and you boot to linux,
flash your kernel (kat, for exmple), to boot back to android
Linux tips and instructions
nstructions for linux:
get flash:
working on both firefox and chromium:
sudo apt-get install gnash gnash-common browser-plugin-gnash
perforance is bad, sound is perfect on youtube many videos can be watched in html5, their performance is way better( full framerate)
Get multitouch working:
On 11.10: sudo apt-get install touchegg and add it to startupapplications
on arch: yaourt -S touchegg (i think xD)
on others: compile touchegg
Put an image to microsd:​(will erase files on sdcard)
dd if=/sdcard/linux.img of=/dev/block/mmcblk1p1
How to get sound(if not working)​sudo usermod -a -G audio yourusername
sudo chmod -R 777 /dev/snd
enable every dacl and dacr
disable dac and adc companding(if sound is choppy)
How to get network-manager working on systems with wpa supplicant installed(arch, raring, netinstall)
look at your modules: is there 3.1.10-g8c2655b-dirty? if not, i suggest downloading it from here
sudo apt-get install netwrok-manager network-manager-gnome
sudo leafpad /etc/NetworkManager/NetworkManager.conf: change false to true
sudo leafpad /etc/network/interfaces should look like this:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
and remove /etc/wpa_supplicant. (sudo pcmanfm or sudo nautilus and then you have a fm with root.)
Mount internal:
sudo mkdir /media/internal
sudo mount /dev/mmcblk0p7 /media/internal
internal is now on /media/internal, you can select any folder.
Get opengl:
install tegra drivers(find a deb, if in 12.10 you ca just enable it through software-sources.)
sudo apt-get install libgl1-mesa-swrast
How to resize img files:
From another linux image or from a linux pc: (i will show it with image called ubuntu.img)
cd /to/the/folder/of/the/image
e2fsck ubuntu.img -f
resize2fs ubuntu.img 3500M (3500M is new size, M means MB, G means GB...)
e2fsck ubuntu.img
How to get touchpad working:
sudo apt-get install xserver-xorg-input-mtrack
and add to xorg.conf this at the end:
Section "InputClass
Identifier "elantech_touchscreen"
Matchproduct "elantech_touchscreen"
MatchDevicePath "/dev/input/event*"
Driver "mtrack"
EndSection
set keyboard layout:
add to startup programs this:
setxkbkmap de/en/fr
mount/chroot into an image from an otherinstall programs to an image with no network manager)
sudo mount /dev/mmcblk0p7 /media/int (mount internal)
sudo mount /media/int/media/.linux123.img /media/int (not linux 123, but .linux1, .linux2...)(now .linux123.img is on /media/int)
(sudo chroot /media/int) (now you are in the image)(internet connection should be there with 2.6 kernel)
Desktop tips:
Lubuntu/lxde:
Pro: The fastest and freakin light
Very customizeable
Beautiful
Easy to use with other components (etc/xdg/lxsession/LXDE(or lubuntu)/autostart)
Con:Cant think of anything bad
Xubuntu/xfce4
Pro: Very fast
Costumizeable
Con:I dont Like it
no hw acceleration
xfwm4 didnt work with touch on an image
ugly?
kubuntu/kde4
Pro:Customizable
Looks good
Con:Slow
e17
Pro: touchoptimiced
fast
con: Ugly(download themes)
Not easy to use with other components
ubuntu
Pro: Looks cool
con: Sloooow
gnome: Doesnt work right on our device
gnome-classic/gnome-session-fallback:
Pro:nearly as fast as lxde
supercool look
good with touch and with keyboard
con: cant think of anything bad
plasma-active/kde-plasma: Not tested
I suggest installing sudo apt-get install gnome-session-fallback, it is very fast, volume buttons are working and you can set brightness.(also install gnome-tweak-tool and gnome-themes-standard)
Use Components from other desktops in lxde/xfce:
(to have a supercool looking fast desktop)
add to startupapplications the stuff you want or just run it:
in lxde: /etc/xdg/lxsession/LXDE/autostart
in lubuntu:/etc/xdg/lxsession/lubuntu/autostart
in xfce/gnome/kde: i think there is a app for that: startup-applications i think
Docks:
Docky: works best(not working on all images)
Cairo-dock:not that smooth
Avant: not tested
unity-2d-launcher: the default unityy launcher you can see on the left in ubuntu-desktop
Panels:
lxpanel: Highly customizeable, fast, light
unity-2d-panel: love it, it is the top panel of ubuntu
xfce4-panel: little better than lxpanel
Use other Windor-managers in different desktops:
Add to startupapplications too or run te comand.
metacity --replace
openbox --replace
xfwm4 --replace
Credits to:
Jintha
Lilstevie
x3maniac
shaola​
Post screenshots please
Sent from my GT-S7562 using xda premium
akshay007dhore said:
Post screenshots please
Sent from my GT-S7562 using xda premium
Click to expand...
Click to collapse
The screenshots are from whatever image you use, you can see them for example in the tubuntu thread, but i will make some of ubuntu 12.10 or arch( the ones i use) and post them
Btw, anyone knows how to add images to a post? xD
I must be missing something fundamental lol, i downloaded the tubuntu.img in your post, extracted and renamed it to .linux1 then flashed the linux1 mount-loop then restarted, and end up at busybox terminal (every single thing ive tried ends there)
i'll to download a different image and see how it goes.
---------- Post added at 08:48 AM ---------- Previous post was at 08:46 AM ----------
bottom line 6th button in from the right in the message box, or the attachments button up and slightly to the left :good:
JoinTheRealms said:
I must be missing something fundamental lol, i downloaded the tubuntu.img in your post, extracted and renamed it to .linux1 then flashed the linux1 mount-loop then restarted, and end up at busybox terminal (every single thing ive tried ends there)
i'll to download a different image and see how it goes.
---------- Post added at 08:48 AM ---------- Previous post was at 08:46 AM ----------
bottom line 6th button in from the right in the message box, or the attachments button up and slightly to the left :good:
Click to expand...
Click to collapse
You are doing it righ, strange...
Is it called .linux1 or .linux1.img? Because right now i am using the linux1 kernel. What happens if you try the linux3 kernel for example?
And: Try to recopy the tubuntu image a second time, maybe it is corrupt(had exactly this problem yesterday xD)
Tell me how it goes
And: what are you talking from left and right?
transformador said:
You are doing it righ, strange...
Is it called .linux1 or .linux1.img? Because right now i am using the linux1 kernel. What happens if you try the linux3 kernel for example?
And: Try to recopy the tubuntu image a second time, maybe it is corrupt(had exactly this problem yesterday xD)
Tell me how it goes
And: what are you talking from left and right?
Click to expand...
Click to collapse
Cool, lol and i was trying to direct you to the "insert image" button
JoinTheRealms said:
Cool, lol and i was trying to direct you to the "insert image" button
Click to expand...
Click to collapse
Oh, thanks )
Is it working now?
transformador said:
Oh, thanks )
Is it working now?
Click to expand...
Click to collapse
Sorry my tf101's power buttons broken, and the tab froze inside of cwm6 so had to angrly disasemble my tf101 just to restart it :crying: lol anyway havn't downloaded a new image yet, whats your recommendation? im mainly intreasted in trying these multitouch gestures but also the 3.1 kernel NEVER worked for me anytime i tried to install it, if this works with hwaccelation ill be stoked(youtube etc work well?)
btw i renamed the image ".linux1" without .img @ the end ...ill add it an try
Heres the output messges i get with both images(tried to make it short to save sometime writing it out, also i took a photo of the output with a terrible camera and couldnt the rest of it so ill retry and update)
tegra_init_mmc memory not recongnised, memory scaling disabled
uipi_phy_power_on: timeout waiting for phy clock to
uipi_phy_power_on: uipi write failed
tegra-echi tegra-echi.1: failed to power on phy
fsi-tegra-udc fsi-tegra-udc: can't get charge...........
...._config_settings
power_supply dock_battery: failed to report
sdhc1-tegra sdhc1-tegra.2:vddio_sd_slot
:vddio_sd_slot regulator.......
tegra.0
:vddio_sd_slot regulator........
tegra protected aperture disabled becouse nvmmc..........
if you have the the distro in an .img folder it will slow down becouse if has to work instie that folder, where if you extract the image in your ubuntu distro folder it would run a bit faster, don't know if ou are doing that or not but it is my 50 cent
Awsome work and thank you, i can use current roms and dual boot without thincking about the nightmare of trying to figure out how to nvflash buckup a rom, back one ub, and then see it update.
Can someone make a video tutorial on this? Would be really grateful
Sent from my Transformer TF101 using Tapatalk HD
Well been trying to get this to work all day, seems the mount loop doesn't work on my tf101 currently (b60 sbk1) i get the same output messages whether then .linux1 image is in /sdcard/ or not. I could be doing something wrong but ive tried soooooo many combinations of things i would have fixed it by mistake lol.
Never mind , its great to see ubuntu getting better and easier for the tf101. Many thanks to transformador and the rest of you guys working on ubuntu:good::good:
JoinTheRealms said:
Heres the output messges i get with both images(tried to make it short to save sometime writing it out, also i took a photo of the output with a terrible camera and couldnt the rest of it so ill retry and update)
tegra_init_mmc memory not recongnised, memory scaling disabled
uipi_phy_power_on: timeout waiting for phy clock to
uipi_phy_power_on: uipi write failed
tegra-echi tegra-echi.1: failed to power on phy
fsi-tegra-udc fsi-tegra-udc: can't get charge...........
...._config_settings
power_supply dock_battery: failed to report
sdhc1-tegra sdhc1-tegra.2:vddio_sd_slot
:vddio_sd_slot regulator.......
tegra.0
:vddio_sd_slot regulator........
tegra protected aperture disabled becouse nvmmc..........
Click to expand...
Click to collapse
Thats exactly the error when i boot it without .linux1.img (yes theres an .img behind it), try to recopy it there.
Suggestions: Delete .linux1.img and copy it there a secound time (do you have it on /sdcard or on another location? has to be /sdcard, it is a symbolic link to /media on mmcblk0p7, but the /media on android is something other)
Try another .img file. Maybe try netinstall? It has an option to enable multitouch , tegra drivers and you can select desktop. (resize it before installing desktop)
Try linux2 kernel and call the image .linux2.img.
If nothing works, i will download the kernel and see what its wrong (would be stupid because i am booting it with EXACTLY the same kernel i uploaded(did not even copy it to another location )
Dont really understand your next post, is it working now or not? XD
alizafar said:
Can someone make a video tutorial on this? Would be really grateful
Sent from my Transformer TF101 using Tapatalk HD
Click to expand...
Click to collapse
If crappy quality is enough, for shure, but i only have a ****ing 320x240 phone camera xD
But if i can borrow my sisters phone, or my dads camera, i will do a video tutorial.
2 other things:
Who rated my thread 1 star? lol
Edit: forget what i wrote before xD
Video is up, but crappy quality...
plasmastrike said:
if you have the the distro in an .img folder it will slow down becouse if has to work instie that folder, where if you extract the image in your ubuntu distro folder it would run a bit faster, don't know if ou are doing that or not but it is my 50 cent
Awsome work and thank you, i can use current roms and dual boot without thincking about the nightmare of trying to figure out how to nvflash buckup a rom, back one ub, and then see it update.
Click to expand...
Click to collapse
The slowdown is minimal, i dont really recognice a speed difference between my mates tubuntu and mymethod.
Tried your suggestions, not working yet although the output messages have changed ill post them up later on. basically tried multiple roms/ recoverys, renamed the .img 1,2,3,4 etc. The last thing i can think of is my partition structures messed up or something from an earlier ubuntu nvflash, ill re-partition and re-try.
JoinTheRealms said:
Tried your suggestions, not working yet although the output messages have changed ill post them up later on. basically tried multiple roms/ recoverys, renamed the .img 1,2,3,4 etc. The last thing i can think of is my partition structures messed up or something from an earlier ubuntu nvflash, ill re-partition and re-try.
Click to expand...
Click to collapse
Does this method work for you? It is looking for ubuntu.img on /sdcard. It is from here:
http://forum.xda-developers.com/showthread.php?t=1537566
http://www.mediafire.com/?7f5fpatmgmg01ha
The kernel posted does NOT work with tubuntu, but it is 3.1
Also: you have it on internal, not external, right? has to be on internal
transformador said:
Does this method work for you? It is looking for ubuntu.img on /sdcard. It is from here:
http://forum.xda-developers.com/showthread.php?t=1537566
http://www.mediafire.com/?7f5fpatmgmg01ha
The kernel posted does NOT work with tubuntu, but it is 3.1
Also: you have it on internal, not external, right? has to be on internal
Click to expand...
Click to collapse
So far ive tried the net installer image and tubuntu(i thought the kernel might be an issue with it) ill try the older tubuntu. Ive tried x3maniac and shaola's versions. x3maniac's didnt do anything(after flashing it just booted into android) and shaola's had simular output messages as yours. And yeah its on /sdcard (internel) although was tempted to try externel but only got a class 4. I appreciate the help mate:good:
JoinTheRealms said:
So far ive tried the net installer image and tubuntu(i thought the kernel might be an issue with it) ill try the older tubuntu. Ive tried x3maniac and shaola's versions. x3maniac's didnt do anything(after flashing it just booted into android) and shaola's had simular output messages as yours. And yeah its on /sdcard (internel) although was tempted to try externel but only got a class 4. I appreciate the help mate:good:
Click to expand...
Click to collapse
I have got the same issue. tried all linux1, 2, 3, 4.zip files. On linux4.zip I get the following error meassage:
/host/media/.linux4.img does not exist
But the file is on /sdcard

[SOLVED] Flashing a kernel without TWRP or Fastboot with only an Android shell

Hey everyone
I am working on a dual boot Ubuntu Touch, Droidian (mobian-hybris) setup without breaking either of the systems. I have figured everything out on how everything should work and modifications that need to be done to the recovery image but there is one question that i do not have an answer for but here is some information but how things work.
So right now Ubuntu Touch uses a customized version of LineageOS recovery to do OTA updates. and is when installed it replaces androids rootfs. Then we have Droidian which uses a rootfs.img file as its rootfs which is mounted at boot as a loop device. (file is placed in /data)
They use different kernels because they have different ramdisks (obviously). My plan is to write a desktop file in both OSes to create a file to let recovery know to flash the right kernel (kernels will be placed under /data aswell no space limitations). I have the recovery and desktop file code mostly ready the only remaining thing is the command to flash a kernel.img/boot.img file to the device (Redmi Note 9S)
I know that LineageOS does not have a terminal all of the flashing tasks will be done by a script which checks which kernel should be flashed.
Is there some documentation on this? Because TWRP can do the same and TWRP is just a GUI on top of the android shell with some added functionality for backups and such.
Any response is appreciated.
FakeShell said:
Hey everyone
I am working on a dual boot Ubuntu Touch, Droidian (mobian-hybris) setup without breaking either of the systems. I have figured everything out on how everything should work and modifications that need to be done to the recovery image but there is one question that i do not have an answer for but here is some information but how things work.
So right now Ubuntu Touch uses a customized version of LineageOS recovery to do OTA updates. and is when installed it replaces androids rootfs. Then we have Droidian which uses a rootfs.img file as its rootfs which is mounted at boot as a loop device. (file is placed in /data)
They use different kernels because they have different ramdisks (obviously). My plan is to write a desktop file in both OSes to create a file to let recovery know to flash the right kernel (kernels will be placed under /data aswell no space limitations). I have the recovery and desktop file code mostly ready the only remaining thing is the command to flash a kernel.img/boot.img file to the device (Redmi Note 9S)
I know that LineageOS does not have a terminal all of the flashing tasks will be done by a script which checks which kernel should be flashed.
Is there some documentation on this? Because TWRP can do the same and TWRP is just a GUI on top of the android shell with some added functionality for backups and such.
Any response is appreciated.
Click to expand...
Click to collapse
Answering my question as the answer was just too dumb but for some reason i could not figure it out.
dd can be used like a regular linux machine
dd if=/data/boot.img of=/dev/block/platform/soc/by-name/boot
Closing down
I kinda had the same issue here: https://forum.xda-developers.com/t/...wrp-openrecoveryscript.4301279/#post-85681605
I remember that I read somewhere / was told actually not to use /dev/block/platform/soc/by-name/boot (which is a symlink) but the actual device path the symlink resolves to with dd.
I'm not sure what the reasoning was though. I'd like to mention this here, maybe someone knows why.

Categories

Resources