yashsingh1/xdaforums huggingface dataset:
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
Dude, that is awesome, that actually works almost perfectly.

The autologin is OK already, tslib picks up the variable, and calibration works too, BUT

in my original .xinitrc there was already an exec startlxde command, so I just put your two commands above it. Now what happens is: it calibrates the screen OK, but after that X doesn't starts up, but it says (right after the calibration data): Waiting for X server to shut down....

And that's it, it returns to the command line.

So if you can figure out something for that, and also give me an idea how to start X after the autologin I would be really grateful. You did a wonderful job so far, keep it up, thank you.

DOMy
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
mod:

Added Twitter link to #1 ( http://twitter.com/kaiserbuntu )
[Tilt, TyTN II, MDA Vario III Android Development] dcordes:
I voted no in the poll because think it doesn't make much sense to use gnome on a QVGA device.
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
Makes sense, but do you have any better idea? IceWM perhaps?

I will search for something.

DOMy
[Tilt, TyTN II, MDA Vario III Android Development] jmcbrother:
Take a look at openbox as well... used it with ubuntu some time ago in an old notebook and it ran pretty light. I guess it's worth a try!
[Tilt, TyTN II, MDA Vario III Android Development] mnjm9b:
for a lighter weight I would say e17 or icewm maybe even xfce.

or for a more featured I would say maybe Ubuntu Netbook Remix.
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
Wow, e16 looks freaking awesome! And it needs only a 200 MHz ARM core, and some RAM...maan, this is exactly what we needed!

I will work on it ASAP, and then release a 1.1 rootfs with autologin and auto-startx.

Thank you again,

DOMy
[Tilt, TyTN II, MDA Vario III Android Development] robuser007:
Can we have multile window managers if possible (like suse)?
[Tilt, TyTN II, MDA Vario III Android Development] Stickman89:
Agreed that does look awsome, I'm going to try and get enlightenment DR17 and efl to run on the kaiser, it looks amazing...
[Tilt, TyTN II, MDA Vario III Android Development] zenity:
You can have multiple window managers on just about any Linux distro, my own desktop has a Slackware based lightweight distro on it just now, running Gnome, KDE, xfce, or E.17, ( E.17 being the queen of the eyecandy Window Managers, it's not as light as it looks though ;) ).

E.17 on my Kaiser would completely rock my world, please make it so :D
[Tilt, TyTN II, MDA Vario III Android Development] hawks-SOAD:
Heys guyz nice work domy tried it on my kaiser worked really well

i know my way around ubuntu really well if you need me to test compile something just ask :)

thanks again for the effort put into this
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
Thank you, I really need your help now, could you clean this script up according to my comments?

http://xdaforums.com/showpost.php?p=6080445&postcount=71

Thank you,

DOMy
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
Follow Twitter and you will get the latest news...okay I don't tease you anymore: I already made a rootfs with e16, will test it later :)

BTW e16 supports OpenGL Hardware Acceleration, so it is possible that we will be able to have some eye-candy stuff on the Kaiser ;)
[Tilt, TyTN II, MDA Vario III Android Development] mnjm9b:
How hard would it be to get this working without flashing back to winmo?

I would rather keep android on nand and maybe install this to a partition.

would it be possible to use the android installer to setup the ubuntu partition?

as it is... I use polymod eclair on nand

when I want to try another build out, I install it to either img's or partitions.

and then I can switch between them by:

1. re-entering the installer at boot

2. switch selections for the system and for the data.

3. quit

the system then boots whatever I selected in the installer.

this way I can still use the phone as a phone (using android)

and then play with my kaiser as a mini-laptop (using this)

via dual boot...

...BTW are you going to give this project a name???
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
I think it is possible to do it, but right now I can't work on this since I need to get WiFi working.

I am pretty sure only some lines has to be added to the init script in the initrd.gz.

The project has a name already (but if you come up with something better I would be happy to change it): Kaiser-Buntu

If you mean I should change the topic's name then my answer is yes, I will change it ASAP :D
[Tilt, TyTN II, MDA Vario III Android Development] mnjm9b:
yea, I was attempting to work on that myself but everything I came up with got me deeper into trouble.

...not sure how I missed 'kaiser-buntu' I guess that will work.

although I am assuming it will work for more than just kaisers???
[Tilt, TyTN II, MDA Vario III Android Development] hawks-SOAD:
yep im going out now but when i get back i will clean up the script and test it

anything else you need just let me know
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
Awesome, thanks.
[Tilt, TyTN II, MDA Vario III Android Development] hawks-SOAD:
i was looking around and came to titchylinux which is a full debian arm distro will the phone packages work from there?

http://www.neilandtheresa.co.uk/Blog/Titchy Linux/

guess thats another thing i can try when i get home
[Tilt, TyTN II, MDA Vario III Android Development] hoatienii:
link i upload to mediafire :D

http://www.mediafire.com/?uvytadoykyy
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
TitchyLinux is AFAIK works only with the HTC Universal..it has its own packages designed to work with the universal only...I remember I tried it once, but it didn't boot on my Kaiser.

Anyway, thanks for the input,

DOMy
[Tilt, TyTN II, MDA Vario III Android Development] hawks-SOAD:
ok i have finished the script i do not know if it works i am going to test it when i wake up my stupid memory card corrupted and i'm recovering the bad sectors if all goes well i will upload after test :)
[Tilt, TyTN II, MDA Vario III Android Development] hawks-SOAD:
well i tested my startup script it auto logs in and calibrates and changes tslib but does not start xserver im getting the same as domy

xserver is shutting down any ideas?
[Tilt, TyTN II, MDA Vario III Android Development] hawks-SOAD:
hey domy still working on the script while it is copying to my card i found this

Kernel for QCT MSM7xxx (non-A) based devices

linuxtogo.org

vogue, titan, kaiser, nike, polaris, other msm7xxx

git://git.linuxtogo.org/home/groups/mobile-linux/kernel.git branch htc-vogue (old code: htc-msm)

gitweb: http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=shortlog;h=refs/heads/htc-vogue

which apparently has the wifi driver we need

hope it helps :)
[Tilt, TyTN II, MDA Vario III Android Development] rzk333:
we exactly using this kernel (with little config change to start X), problem is, that wifi driver is designed to use with android.
[Tilt, TyTN II, MDA Vario III Android Development] hawks-SOAD:
oh ok haha ok then anyone got any info on the start-up sript problem
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
What I was thinking about is put some sleep between exec lxde and ts_calibrate...

Anyway I will test the new e16 rootfs soon, and will see if need anything else.

Thank you for your work!

All right folks, just to make it clear about the WiFi:

We have two drivers, one is the official TexasInstruments WLAN driver, which is used in Android too. This driver uses its own wireless stack, and somehow works ONLY in Android. I have no idea why, perhaps when I will have time I will reverse engineer it and see what does Android have what our Ubuntu does not?

The second driver is an opensource driver, originally made by a Nokia worker, Kalle. This is called wl12xx, and uses the official Linux kernel wireless stack. However we worked hard with phh (from the #htc-linux channel) and succeeded in compiling this driver against our 2.6.25 kernel (originally it was made only for 2.6.29 and above) it doesn't load: Unknown symbol -1 for every module.

So we have to options: having luck, and start working hard to port a newer kernel to the Kaiser, let's say 2.6.27 or even 29 and have the wl12xx driver working (it works flawlessly on the Diamond/TouchPro - because they have the newer kernel -->watch out for the architectures, we have msm or msm7XXX, the Diamond/TouchPro and Xperia development is in the msm7XXA branch) or try to reverse engineer the official driver. I would like to do the first option, because the wl12xx driver looks better for my goals (having a WLAN pentesting phone) and we only have to move from 2.6.25 to .27 which is not a big jump (I hope so).

Will talk to you later guys,

DOMy

ps.: any kernel developers interested in doing this port PM me! Thanks!
[Tilt, TyTN II, MDA Vario III Android Development] zenity:
Actually the drivers are linux, android is really only a gui in many respects, so the driver should work with that kernel.
[Tilt, TyTN II, MDA Vario III Android Development] hawks-SOAD:
with the start up script it won't start with the error

"waiting for X server to shut down FreeFontPath: FPE "builts-ins" refcount is 2, should be 1; fixing.

then it goes back to the command line i just don't know what is causing the error if anyone can shed some light on it i can fix it :)
[Tilt, TyTN II, MDA Vario III Android Development] hawks-SOAD:
i read this somewhere in the forums

"Need to create a folder in you system image package called /etc/wifi and copy tiwlan.ini, wpa_supplicant.conf and fw1251r1c.bin.

Need to copy the wlan.ko to /lib/modules in the system image (create the dir if required).

Create the new system image and boot Android. Start the dev console and type:

Code:

cp /system/etc/wifi/wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf

insmod /system/lib/modules/wlan.ko

wlan_loader -f /system/etc/wifi/Fw1251r1c.bin -e /proc/calibration -i /system/etc/wifi/tiwlan.ini

cd /data/local/tmp

wpa_supplicant -f -Dtiwlan0 -itiwlan0 -c/data/misc/wifi/wpa_supplicant.conf &

ifconfig tiwlan0 192.168.1.100 netmask 255.255.255.0

ifconfig tiwlan0 up

if it helps good luck with the wifi :)
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
I did exactly the same, but the highlighted command fails, even with a statically compiled wlan_loader binary file.
[Tilt, TyTN II, MDA Vario III Android Development] hawks-SOAD:
wow thats weird its a linux driver but it doesnt work with anything but andriod is the android kernel higher than ours ? maybe

can't wait to try out the new rootfs :) keep up the good work

btw what errors did it spit out at you when running the highlighted command
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
wlan_loader: error sending init command (DRIVER_INIT_PARAM) to driver

ERROR - IPC_STA_Private_Send - error sending Wext private IOCTL to STA driver (ioctl_cmd=8000000, res -1, errno = 19)

Android kernel is not higher, they still use 2.6.25, the higher kernel is needed for the other driver (wl12xx).
[Tilt, TyTN II, MDA Vario III Android Development] hawks-SOAD:
grats on your e17 rootfs booting did you use https://wiki.ubuntu.com/ARM/RootfsFromScratch

To create an armel rootfs tarball of, for instance, xubuntu-desktop:

sudo rootstock \

--fqdn myhostname \

--login ubuntu \ <<<<<<<< maybe you forgot to change these

--password temppwd \

--imagesize 2G \

--seed xubuntu-desktop
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
That's what I did...(I changed the login, apssword values, I searched back in the bash history and find the exact command I used)

so now: trying to fix to login issue...it is so stupid that I have a working rootfs but I can't log in.

Later.

DOMy
[Tilt, TyTN II, MDA Vario III Android Development] Bombenbach:
Hi domi007,

maybe you could also try fatsal's way to activate WiFI (Xperia has wl1251 too).

In this sense his Xperia Ubuntu rc.local is quite interesting

insmod /lib/modules/2.6.27/kernel/net/rfkill/rfkill_backport.ko
insmod /lib/modules/2.6.27/kernel/net/wireless/cfg80211.ko
insmod /lib/modules/2.6.27/kernel/net/mac80211/mac80211.ko
insmod /lib/modules/2.6.27/kernel/drivers/net/wireless/wl1251.ko
insmod /lib/modules/2.6.27/kernel/drivers/net/wireless/wl1251_sdio.ko

echo 1 > /dbgfs/htcraphaelmmc_dbg/wifi_cd
sleep 5
echo 0 > /dbgfs/htcraphaelmmc_dbg/wifi_cd
echo 1 > /dbgfs/htcraphaelmmc_dbg/wifi_cd
sleep 5
ifconfig tiwlan0 up
sleep 5
echo 0 > /dbgfs/htcraphaelmmc_dbg/wifi_cd
echo 1 > /dbgfs/htcraphaelmmc_dbg/wifi_cd
sleep 5
ifconfig tiwlan0 up
sleep 5
echo 1 > /dbgfs/htcraphaelmmc_dbg/wifi_pwr

macchanger --mac=00:1f:df:b1:23:30 wlan0
ifconfig wlan0 up

Don't know what that echoing debugfs is for, but at least he got WiFI working on his Xperia, so maybe that could help you somehow.
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
Nope...he uses the wl12xx driver which works only for kernel version 2.6.27<

Our kernel is still 2.6.25, and it looks like no one will ever update it. :(:(

DOMy
[Tilt, TyTN II, MDA Vario III Android Development] robuser007:
Can't you just post the rootfs with autologin, please ?
[Tilt, TyTN II, MDA Vario III Android Development] Bombenbach:
You can also take Rhobuntu's rootfs (Ubuntu.img). It has autologin and a quite clever calibration algorithm (taken from XAndroid). You only have to replace Rohbuntu's zImage by the Kaiser's zImage and make the STARTUP.txt similar to Kaiser's.
[Tilt, TyTN II, MDA Vario III Android Development] robuser007:
Thanks! looks promising!
[Tilt, TyTN II, MDA Vario III Android Development] robuser007:
Are there options from the startup.txt that I can/must also use for the kaiser when I use Rubuntu?

edit: touchscreen isn't working, don't understand all options (I give up, tried a lot).

Can you post an working startup.txt?
[Tilt, TyTN II, MDA Vario III Android Development] Bombenbach:
If you can boot it (even without working touchscreen), then startup.txt should be fine already. After having a look at domi007's wiki I think that there are two places in Ubuntu.img which should be edited to make touchscreen work. I don't know if and how much you're Linux experienced, but the simplest way (if you're using Linux) would be to mount Ubuntu.img via

sudo mount Ubuntu.img /mnt -o loop

Then you should edit

/mnt/etc/X11/xinit/xserverrc

replacing

exec /usr/bin/X11/Xfbdev -nolisten tcp -br -mouse tslib,,device="$TSLIB_TSDEVICE"

by

exec /usr/bin/X11/Xfbdev -nolisten tcp -br

and

/mnt/root/.bashrc

replacing

TSLIB_TSDEVICE="$(cat /etc/tsdevice)"

by

TSLIB_TSDEVICE=/dev/input/event0

after that

sudo umount /dev/loop0

to unmount Ubuntu.img
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
Thank you Bombenbach for contributing, I really appreciate it.

And I am also glad that my wiki seems to be useful :)

If I will have some time perhaps I will try to tackle the WiFi problem again.

DOMy
[Tilt, TyTN II, MDA Vario III Android Development] h4xxel:
Hi!

I am new here on xda-developers (i actually registred to be able to post in this thread) :P

This project seems very intresting, i have myself tried to get linux running on the kaiser, but the touchscreen in X didn't work well (even though I used tslib too, and it worked well with ts_calibrate and ts_test)

well well, i might try to compile a newer kernel with the wifi-driver. It would be good if you could provide the .config for your kernel so I don't have to start from scratch. Also, what cross compiler did you use?

And by the way, did you use any tool to build the rootfs? (The way i did it was to compile busybox with built-in dpkg and then install packages from debian, which isn't really optimal... )
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
I would really appreciate if you could read the wiki next time, but whatever:

http://code.google.com/p/kaiser-buntu/wiki/CompileYourOwnKernel

About the rootfs:

Using RootStock confirmed to work (with 9.04 Jaunty, because that's the last Ubuntu supporting our CPU), but couldn't start X, so I use pre-made rootfs (Rhobuntu, Zubuntu).

https://wiki.ubuntu.com/ARM/RootfsFromScratch

About wifi:

The official TI Linux driver heavily relies on Android, which doesn't mean it can't work with Ubuntu, but I couldn't figure it out myself.

The opensource wl12xx needs kernel version 2.6.27 or above and our kernel is still 2.6.25, so that one is pretty much hopeless too.

Anyway, if you figure out something/make some progress PM/email me.

Thanks for posting,

DOMy
[Tilt, TyTN II, MDA Vario III Android Development] Bombenbach:
There are mainly two possibilities to get X working on a HTC (or in general an ARM) device: Kdrive or Xorg.

Kdrive is nice because it's light, supports rotation and works well. At the same time it always uses framebuffer, which is kind of slow. The main problem about Rootstock Jaunty's Kdrive is that it apparently doesn't support tslib i.e. it was compiled without the tslib support. No tslib -> no touchscreen. To fix that in my builds, I simply replaced the Kdrive binary (/usr/bin/Xfbdev) in Jaunty by the Kdrive from ZUbuntu 2.0 which does have tslib support. There are some more files to be edited, but that way it works. You can find all the necessary steps+explainations in my Complete Build Guide for the first clean 10.04.2010 Rhobuntu Build

http://rhobuntu.googlecode.com/files/Jaunty 10_04_2010 Build Guide.txt

X.Org is a bit more tricky. It has more settings, supports more stuff and allows (in theory) to use drivers other than framebuffer. At the same time X.Org with framebuffer doesn't support rotation and is not that easy to get running. We did it on Rhodium, because there is an accelerated video driver which might work on Rhodium, although we still didn't even compile it.

http://xdaforums.com/showpost.php?p=6215773&postcount=796

http://xdaforums.com/showpost.php?p=6220023&postcount=808

Basically you should remove xserver-xorg-input-synaptics

via apt-get, install xserver-xorg-input-tslib via apt-get and use the right xorg.conf. But if there are no special video drivers for the kaiser, you should be fine with Kdrive.
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
I am really grateful for all your info, appreciate it a lot.

When I will have a little bit more time will start working through my way.

However my two biggest problems couldn't be solved: old kernel and QVGA screen.

Because of QVGA I am thinking about e16, but that probably needs Xorg and cross-compiling (->lot of time :S)

DOMy
[Tilt, TyTN II, MDA Vario III Android Development] Bombenbach:
I in no way intent to urge you into spending you time on the Kaiser Linux Port. In fact, at the moment I don't have much time for Rhobuntu myself.

So I'm only sharing information that might be useful :rolleyes:

There seems to be an ARM repo for E17 already

http://talk.maemo.org/showpost.php?p=268210&postcount=96

Linux MER = remastered Ubuntu Jaunty for ARM

But you don't need Xorg to use a Window/Desktop manager other than LXDE.

It's something you configure via /etc/X11/xinit/xinitrc. At the moment Rhobuntu's xinitrc looks like this

#!/bin/bash
xrandr -o right
xbindkeys &
exec startlxde

to use E17 you'll just have to replace exec startlxde by exec enlightenment_start
[Tilt, TyTN II, MDA Vario III Android Development] h4xxel:
Hi again!

Just a small update,

using the compat-wireless it should be possible to get the wl12xx driver working in this old kernel.

compat-wireless cross compiles nicely with the htc-kernel source tree, however when trying to load the compat.ko module i get "unknown symbol __msm_ioremap" even though __msm_ioremap exists in kernel source (arch/arm/mach-msm/io.c)

i will be looking into what might cause this soon.

Some links:

My wireless module build:

solidfiles.com/d/WbRO

compat-wireless:

wireless.kernel.org/en/users/Download

htc-linux wiki article:

htc-linux.org/wiki/index.php?title=WL1251

sorry, but I may not post links yet..
[Tilt, TyTN II, MDA Vario III Android Development] zenity:
E17, on my Kaiser, Oh My Gawd, this would rock, lol.

Been following this thread for a while, and the progress is looking promising, keep it up guys, because this, for me, is what XDA-Developers is all about. :D
[Tilt, TyTN II, MDA Vario III Android Development] Vytelo:
This project is very promising. Android is too slow on Kaiser. Actually, Ubuntu + e17 (I'd recommend Arch Linux or Linux From Scratch + e17) should be a lot faster than Android :) I have some knowledge in Xorg configuration, packages compilations and so on (because I'm using Arch Linux and I always face all these interesting things :D), so probably later I'll be able to help to write documentation, to translate system or to test packages compatibility on my Kaiser :rolleyes:
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
I will definitely work on it once I have some time.

Thanks,

DOMy
[Tilt, TyTN II, MDA Vario III Android Development] nooor7772000:
hi guys. congratulate me i manged now to have rhobuntu 9.10 with touch screen boot and work very gooood thanks so so much for that great event,,,,,

but i have something bother me

that when i open some windows i can not reach its end and press or choose any of its component so how can i make any windows opend in my tutn2 fit to the screen????????
[Tilt, TyTN II, MDA Vario III Android Development] qkall:
um i haven't tried this or really read the thread... but i was wondering if anyone tried using maximus from netbook remix (or whatever its called now)? it automatically maximizes all windows... was kind of buggy but i played around with it on a netbook like two years ago... I suspect its much more usuable now.
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
see #1 to modify the default.txt (or startup.txt whichever you use).
[Tilt, TyTN II, MDA Vario III Android Development] nooor7772000:
thanks so much man,but please how can i make and recive calls and how to use grps to broswe internet?
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
Well, as you can see in #1 these things don't work yet in Kaiser-Buntu...all I got is an idea that maybe gsm-libs could work for calls and SMS....that's it.

DOMy
[Tilt, TyTN II, MDA Vario III Android Development] nooor7772000:
ok thanks a lot man for your help
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
Ever heard the term "READ THE #1 POST, THE LINKS AND THEN ASK A QUESTION!!!!!"?
[Tilt, TyTN II, MDA Vario III Android Development] dcordes:
You are violating the

GNU General Public License

Refer to the following in the first post as well as in your google code website as the source code for the kernel image you are providing for download. Also provide your patches. Alternatively upload the full patched source code.

git://git.linuxtogo.org/home/groups/mobile-linux/kernel.git branch htc-vogue

http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=shortlog;h=refs/heads/htc-vogue

thanks.
[Tilt, TyTN II, MDA Vario III Android Development] mfoster978:
Will partner up!!!

Hello,

My name is Mike Foster I am currently the owner of modedit. I am interested in partnering up with you to help with further solutions. I may be your best help with the wifi situation since I know alot of information on linux and phones. Send me an e-mail at support @ modedit . com and let me know if your interested. I will not charge you I just want to partner up with you. I also posted a message on your twitter account.

Thanks,

Mike Foster

My Storage Pro - Administrator

http : // modedit . com

E-Mail: support @ modedit . com

THIS IS NOT A SCAM!!! I AM GETTING SICK OF SPAMMERS!!!:mad: