Linux on BlueAngel (MDA3) - Windows Mobile Development and Hacking General

Hi guys,
after having some trouble with the haret-0.3.2 from
the xanadux site, i've managed to
find the framebuffer address, 'dump mmu',
watch the e/gpio lines and dump ms-registry
over wireless.
The hardware looks very similar to Himalaya,
but there are some minor differences.
The himalaya kernel doesn't boot, but that
can be a haret fault.
If somebody wants to help/advise/supply me
with the patches/wiring for the serial console,
i'd like to hear from you !

I would like to help any way that I can.
I'm awaiting a Sprint PPC-6600 Blue Angel and want to be able to use a Linux distribution for it.
I'm not experienced with much beyond compiling x86 kernels and drivers while following a recipe, though.
Anything I can do to help?

Re: I would like to help any way that I can.
philverb said:
I'm not experienced with much beyond compiling x86 kernels and drivers while following a recipe, though.
Anything I can do to help?
Click to expand...
Click to collapse
I think there are two areas where useful things can
be done right now: to patch the bugs in haret
(some lowlevel wince knowledge required), and to
describe the hardware details in wiki.
To support the basic CPU/USB/framebuffer& ramdisk is
not really difficult, since we have Himalaya code in the handhelds CVS.
The next crucial and complex step will be to understand how ATI Imageon supports the SDIO.
The next important thing is to port a driver for
the ACX100 wifi chip. The guys working on
HPAQ hx4700 (also designed by HTC) have it too
and made some progress.

Related

Are there NO news on the Linux developement ?

I follow the Wiki very well since months, but there seems to be no news on Linux-Porting efforts!?
Is the project stopped, or where have I to look for the current state, news and problems?
I am willing to help, - but I am a linux newby.
Is there some Kind of Mailing Archive for the developement? The one in Sourceforge seems not to be used since a year!!
Where can I follow the current status ?
Best Info I found, and I am refering therefore is http://forum.xda-developers.com/viewtopic.php?p=30148#30148
JuNuKN said:
Where can I follow the current status ?
Click to expand...
Click to collapse
The Himalaya code is merged into the handhelds.org CVS. The main problem
is the missing SD driver, which should be
reverse engineered from the wince code.
So at the current stage linux on the HTC
PDAs (HP ipaq hx4700 included) is not for
newbees
so basically, do you mean that those smart Linux Developper are not able to code that SD driver and will steal into Microsoft OS?
No wonder Microsoft is calling that stealing intellectual property!
well unless the hardware sdchip maker or the software dll maker let people in on the interface there really is no way to make a new interface without reverse eng the existing stuff
unlockMe said:
so basically, do you mean that those smart Linux Developper are not able to code that SD driver and will steal into Microsoft OS?
Click to expand...
Click to collapse
The Linux developers don't have the hardware datasheet for ATI Imageon chip
that describes how the SD interface works.
If you have followed the Linux driver development, the majority of drivers are
reverse engineered, because many
hardware companies think that
hadrware description is
"intellectual property".
unlockMe said:
No wonder Microsoft is calling that stealing intellectual property!
Click to expand...
Click to collapse
Who cares what microsoft says ?
Reverse engineering for interoperability
is legal
even in the "Land of the Free".
Isn't it going on (elsewhere) ?
It seems, that the developement is going on (elsewhere) ....
http://www.handhelds.org/moin/moin.cgi/HTCWallaby
NEWS 2005/4/4
*
Added support for flash and gsm-(bootloader) uarts.
*
New binary distribution v0.2.
greetings all. i'm new here, so forgive me if this has all been asked before.
i've got one of these BlueAngels (mine's branded i-Mate) and small annoyances with wince drove me to look into running linux on my PDA. i think that i can be of help on this project and would like to talk to others who have made some progress already.
my main question in this: how similar are the wallaby, himalaya and blueangel? should I be able to get as far as previous developers have with those other devices? I cannot find much information on the blueangel in the wiki here and information on HTC devices at handhelds.org is scarce. do i just need to keep digging?
sjs said:
how similar are the wallaby, himalaya and blueangel?
Click to expand...
Click to collapse
himalaya and blueangel are similar,
wallaby is different.
sjs said:
I cannot find much information on the blueangel in the wiki here and information on HTC devices at handhelds.org is scarce.
Click to expand...
Click to collapse
Take the himalaya wiki as a basis and
change the things that differ, for example,
MMU 1st level descriptor table is at A01D0000.
WiFi is ACX100-based.
Find out if ASIC3 SDIO (driver exists) or ATI3220 SDIO (???) is used.
Read on handhelds.org about the HP hx4000 and hx4700 ipaqs - they are also by made HTC.
Isn't it possible to use Qtopia or Movista on these HTC devices?
cr2 said:
himalaya and blueangel are similar,
wallaby is different.
Click to expand...
Click to collapse
ok, this is what i suspected. i've been reading more on the himalaya as that is what is supported by the current hh.org kernel. i'm hoping to have success running one of those kernels on my device as soon as i get it to compile. since they both have a pxa263 i think it should work. (famous last words)
cr2 said:
Take the himalaya wiki as a basis and
change the things that differ, for example,
MMU 1st level descriptor table is at A01D0000.
WiFi is ACX100-based.
Find out if ASIC3 SDIO (driver exists) or ATI3220 SDIO (???) is used.
Read on handhelds.org about the HP hx4000 and hx4700 ipaqs - they are also by made HTC.
Click to expand...
Click to collapse
thank you for this info. i will have to start reading a lot. i'm currently reading the intel dev manual for the pxa processors... unfortunately between school and work there's not a lot of time for this but as they say, Rome wasn't built in a day. 8)
Jainoxi said:
Isn't it possible to use Qtopia or Movista on these HTC devices?
Click to expand...
Click to collapse
Qtopia works off the raw framebuffer.
If you have the working framebuffer driver,
then yes.
sjs said:
Rome wasn't built in a day. 8)
Click to expand...
Click to collapse
Here is some more info.
thank you again. i think once i grasp how the kernel boots this device (first time hacking on a kernel) and familiarize myself with the dev manual i'm going to attempt to get a console on the device. i still have to see how far the lcd and keyboard drivers are.
have you had any success booting a kernel on this device? i have gotten as far as haret showing me a fully red thermometer and the penguin's eyes changing but then it freezes, every time. the only kernel i have attempted so far is the 2.6.3 one for the himalaya on the wiki. i would be happy to even see a kernel panic. i haven't used linexec yet, but i don't think haret is the problem here.
there is lots that can be done with haret but i'd rather start debugging the current code to get a feel for it before i jump in and write my first kernel code.
sjs said:
have you had any success booting a kernel on this device?
Click to expand...
Click to collapse
No. Buggy haret freezes during boot.
sjs said:
i have gotten as far as haret showing me a fully red thermometer and the penguin's eyes changing but then it freezes, every time.
...
i haven't used linexec yet, but i don't think haret is the problem here.
Click to expand...
Click to collapse
Don't waste your time on linexec, because haret is its derivative.
Haret is a nice piece of software, but it has some major problems in linboot.cpp
that should be fixed first.
The booting fails for me here:
preloader = (uint8 *)((mem + 0xfff) & ~0xfff);
preloaderPA = memVirtToPhys ((uint32)preloader);
Output (L"TMP Preloader physical/virtual address: %08x %08x", preloaderPA, preloader);
so i have replaced memVirtToPhys (returning -1) with LockPages, get the "real" physical addresses, but it still doesn't boot.
I don't really get it WTF is this garbage collector stuff doing there. Maybe we
can rewrite it completely, but i don't have
time right now
hi there,
this stuff is really interesting...
may I join you somehow?
buzz
cr2 said:
Here is some more info.
Click to expand...
Click to collapse
From atihwtbl0.txt
[USB] //USB
"HostClk"=dword:0x1 // enable function clock if there is a host port
"Port0Mode"=dword:0x2 // 0 disable, 1 host, 2 function, 3 OTG
ATI integrates TransDimension's USB On-The-Go OTG Core into new Imageon display co-processor for handheld devices.
http://www.us.design-reuse.com/news/news4636.html
There are a lot of datasheets on interfacing to PXA* here
http://www.transdimension.com/downloads/index.html
buzz_lightyear said:
may I join you somehow?
Click to expand...
Click to collapse
You can start a blueangel hardware wiki
sjs said:
I cannot find much information on the blueangel in the wiki here and information on HTC devices at handhelds.org is scarce.
Click to expand...
Click to collapse
ATI Imageon has hardware 2D acceleration,
MPEG decoder (betaplayer
source code shows how to use it),
USB OTG (as i have mentioned it is enabled in the "function" mode), video capture port
(also can be used), SDIO port (not yet clear if it is used). If we will trust the atihwtbl0.txt
there is an I^2C port (unused) and some
GPIO lines (unused).
cr2 said:
Find out if ATI3220 SDIO (???) is used.
Click to expand...
Click to collapse
The SDIO and VIDCAP sections are missing in the atihwtbl0.txt file.
The video capture is working...
[SDIO]
SDIOEnable
CardDetectEnable
ControllerEnable
InvertSDClock
[VIDCAP]
DeviceConnected
ITUFormat
buzz_lightyear said:
may I join you somehow?
Click to expand...
Click to collapse
of course! i myself am still getting my feet wet here. currently i'm reading the following intel documents:
(this is roughly the list over at http://zap.eltrast.ru/en/haret.html )
http://www.intel.com/design/pca/applicationsprocessors/manuals/278638.htm
http://www.intel.com/design/pca/applicationsprocessors/manuals/278639.htm
http://www.intel.com/design/pca/applicationsprocessors/manuals/278641.htm
http://www.intel.com/design/intelxscale/273473.htm
http://www.intel.com/design/pca/applicationsprocessors/applnots/278786.htm
These are somewhat in order of decreasing importance (according to HaRET's author). I'm just past pg. 100 of the first one listed, PXA26x developer's manual.
As cr2 said, a page for the Blue Angel's hardware on the wiki here would be useful.
I haven't found any sites with anything really useful apart from on www.handhelds.org and this website here (obviously excluding intel's documentation), but perhaps someone else knows of some other fruitful sources.

Linux running on HTC Magician

Hallo
Possibly my question is silly, but I read several posts in this forum and did not find an answer.
Perhaps someone who know's what he's talking about can give me some lines on this:
Is it possible to get LINUX installed on the HTC Magician, somehow?
And: What would this be like? I only know Linux running (on) desktop machines, and I can hardly imagine Linux on a handheld/pocket pc. Are there distributions? Can SSH connection be done? Do I have the usual directory tree and kernel configuration?
It would be nice to give me some kind of crash-course like information.
Thanks,
Frank
There are two answers to your question..
The theoretical one:
Linux can run on almost anything that has a processor and some storage..
Linux can certainly run on any HTC device.
SSH would be possible and you will have the usual tree..
The real one:
No, there is no Linux for any HTC device that WORKS..
There are no distros, no SSH and no trees..
It is highly unlikely that we will ever see a Linux distro for the HTC devices.
Development takes too long, and the devices are incompatible with each other.
So distrodevelopment takes longer than HTC model development.
And nobodo wan't to continue working on an ANCIENT model.
There is a project that has started testing linux on the Wallaby..
You can read more about that in the Wiki..
I hope this answered your questions.
Bonzo said:
It is highly unlikely that we will ever see a Linux distro for the HTC devices.
Click to expand...
Click to collapse
You have certainly have not seen these
pages
http://wiki.xda-developers.com/index.php?pagename=BlueangelResearch
http://handhelds.org/moin/moin.cgi/BlueAngel
and i can confirm that it is not made up.
With some small changes you can do the same
on Himalaya.
Fronk said:
Is it possible to get LINUX installed on the HTC Magician, somehow?
Click to expand...
Click to collapse
Not right now. There is some information
about this device in wiki. You can provide more
info by running haret from
http://sdgsystems.com/pub/ipaq/hx4700/starterkit/20050611
cr2 said:
You have certainly have not seen these
pages
http://wiki.xda-developers.com/index.php?pagename=BlueangelResearch
http://handhelds.org/moin/moin.cgi/BlueAngel
and i can confirm that it is not made up.
With some small changes you can do the same
on Himalaya.
Click to expand...
Click to collapse
You are absolutely correct!
I've only read the Himalaya part, and I have not seen any activity regarding Linux on the boards..
That's why I made my statement..
Good that you could correct me!

Linux under virtualization?

Ok, so I'm not anywhere near the kind of programmer to be able to do this, since I pretty much just know basic, and a tiny bit of ANSI C, but I'm a Wallaby user, and would love to run Linux on my phone as my primary OS, but, as you all know, its far from usable on the Wallaby...
If the ARM processor supports virtualization, couldn't someone who's a much better coder than me write a virtual machine to run Linux on some more of these unsupported phones? I know its a bit on the "ugly hack" side, but it would give more people more freedom of choice.
It seems to me that it should be possible to emulate some already-known versions of the parts in the phone (such as lcd, gsm, usb, sd/mmc, etc) and just control the real thing through the windows api.
Correct me if I'm wrong, but it seems to me that this could be an excellent way to make Linux work reliably on MOST windows mobile phones, at least until real compatibility is achieved. I know that it would be slower than the real thing, but hey, its better than nothing!
Under powered by far!
Virtual machines are highly inefficent methods of running code, especially for what you are proposing.
Think how slow the Java VM is for running even the most basic of Apps.
Now, you may point out that Xen and the like run virtual machines inside Linux - however these have to be specifically compiled for the hardware... which brings us write back to the problem we started with - Linux wont compile properly for the smart phone hardware.
Perhaps a more attractive solution is to look at porting Cygwin and all the Xcygwin tools to windows mobile. Again I have no real idea of how practical this is!
jummama said:
I'm a Wallaby user, and would love to run Linux on my phone as my primary OS, but, as you all know, its far from usable on the Wallaby...
Click to expand...
Click to collapse
Wallaby is full of custom ASICs. Given the limited number of developers it's simply not worth investing time.
Otherwise, there is not techinical reason why Linux will not tun on Wallaby.
Ah well, just thought I'd throw it out there.. see what you all think of it. I just figured that it could be done at a reasonable speed, after seeing what virtual pc and vmware do on the pc, but maybe not. But yeah, what about the porting of cygwin to windows mobile? That seems to me like it would be quite a reasonable solution for a lot of phones.

LINUX for pocket pc

Hello all. I've just started a project to build a linux version that can be install in a pocket ppc architecture. So i'm looking for coders, designers, etc...
If you are interested, answer to this post or contact me in personal message. I'll manage a website for that project. There is no needs to say that this project will be completly FREE.
Embedded Linux Forum
For those who are interested, I've opened a forum about embedded Linux.
The forum is very new and it is waiting for peoples
you mean linux for wizard?
ok, i just want to wish you luck.. i seen 1-2 projects - no conclusion, or stable relz so far...
i set instant email notification ON for that post..
g'luck..
http://linwizard.sourceforge.net/wiki/index.php/Main_Page
good luck, and I can't wait!
After a lots of researchs, i've found there is already a big amount embedded linux distributions (commercial and free). But these distribution are a little complex for newbies, so i decided to make the forum to furnish tutorials and documentation and help for peoples who are interesting in putting Linux on there pocket pc.
I need your participation to the forum !! Questions , tutorials , etc...
I added some informations in the forul but I Still need people. There is a lot of questions asked whithout answers. For example in the project list, there is a project of a LiveSD Linux which you have certainly understood is a LiveCd of linux on a SD. I need programmer, especially for memory's allocation, coders, etc. I want to lead this forum at the first place to help all people who want to build there own embedded linux. The Forum
Interested, too...
At what point do you stay with any developement? Well, i am interested in Linux on my Vario, too.
And what is planned? Full featured Phone-Application, or only a stand-alone Linux?
Regards
Thomas
Both are possible but the better thing you can do is to post your idea or your questions is the FORUM
REGARDS
tommix1968 said:
i am interested in Linux on my Vario
Click to expand...
Click to collapse
Vario is HTC Wizard ? The main problem are the CPLD gpios accessed over i2c. For some reason it does not work as expected
cr2 said:
Vario is HTC Wizard ? The main problem are the CPLD gpios accessed over i2c. For some reason it does not work as expected
Click to expand...
Click to collapse
That where not so good news... But WM is only a Software, too.
Hmmm... about Linux in OMAP based devices... Just browsed on TI webpage and found this:
http://focus.ti.com/general/docs/wt...emplatedata/cm/general/data/wtbmiddl/sw/linux
http://focus.ti.com/general/docs/wtbu/wtbusplashcontent.tsp?templateId=6123&contentId=4750
I think it may be helpfull... or not...
mendoza said:
Hmmm... about Linux in OMAP based devices... Just browsed on TI webpage and found this:
http://focus.ti.com/general/docs/wt...emplatedata/cm/general/data/wtbmiddl/sw/linux
http://focus.ti.com/general/docs/wtbu/wtbusplashcontent.tsp?templateId=6123&contentId=4750
I think it may be helpfull... or not...
Click to expand...
Click to collapse
very nice discovery, i might look into that once i get another phone to play with.

Running Android on Hermes

Hi guys,
I saw some forum topics about running succesfully running google's android on the kaiser and the vogue!
http://forum.xda-developers.com/showthread.php?t=383695 (Kaiser)
and
http://forum.xda-developers.com/showthread.php?t=382265 (Vogue)
The source for all those things is this page,
http://it029000.massey.ac.nz/vogue/
see here for an video on the kaiser...
http://echofloripa.blogspot.com/2008/04/android-in-kaiser-t-mobile-mda-vario.html
Do you think some linux experts are capable of running it on the hermes(tytn)?
I am not an expert on this, but i tried the Kaiser files on the hermes, but it didtn load the kernel right..
You dont have to flash your hermes for this, only running an exe on the hermes....!
TripleQ said:
I am not an expert on this, but i tried the Kaiser files on the hermes, but it didtn load the kernel right..
Click to expand...
Click to collapse
If you will compile the kernel for Hermes, you can probably start the android runtime.
this will be cool....
keep us informed
cr2 said:
If you will compile the kernel for Hermes, you can probably start the android runtime.
Click to expand...
Click to collapse
i'm a newbie in linux but i'll try to search about it. i think that in POF's web are a hermes linux kernel...
Yeah the idea off running android on the Hermes is very cool!
I dont have the knowledge to get this working...but the guys from the kaiser and the voguage(touch) forums where capable enough let it work..
Is anybody here smart enough for this?
ilion said:
i'm a newbie in linux but i'll try to search about it. i think that in POF's web are a hermes linux kernel...
Click to expand...
Click to collapse
Interesting...here's POF's Linux thread started in 2006 and still active!
http://forum.xda-developers.com/showthread.php?t=273579
Any news?
I have seen compiled versions of the kernel for the Kaiser and the Vogue, but if anyone has a compiled kernel for the Hermes I willl test it out (I have three at home )
And the wait continues . Now with the Android developer challange closing Im despirate to get Android on my Hermes before it finally dies after being dropped for the 200th time.
The major boos tint his will be when the memcard drivers are written - the Hermes is low on RAM as far as I understand, and thus has problems. Once everything can be run from the card, it will be pretty trivial for someone who know what they are doing to recompile the kernel.
Doesn't seem to be much recent progress though!
Seemingly I can't spell.
It doesn't look like it is going to be easy getting this working as the controller for the mem card on the Hermes is apparently causing some trouble!
Hi there,
nikc0069 said:
It doesn't look like it is going to be easy getting this working as the controller for the mem card on the Hermes is apparently causing some trouble!
Click to expand...
Click to collapse
That's not all!
There are some information that all the android stuff is compiled for ARMV5.
So no chance to drive the hermes with the packages provided.
HTC Kaiser also uses some newer instruction set.
If you got enough spare time, try to compile some of the android packages for ARMV4. That's what hermes is running.
Anyway, there's a lot work to get a suitable linux on hermes.
There had been some breaktrough on universal. Check that out!
Full debian EABI running on this platform!
It was console based first, but there had been a lot of development in the last few month and it has grown to a very useable linux
Hopefully there would be some usable linux on hermes platform too!
There's so much information so far...
...and it is similar to the openmoko stuff.
Maybe we should not waste the time to focus on android.
Regards,
scholbert
Any news?
I want Android for my Hermes
hmm
what?? hmm ... drools
I had just been browsing the web and thought I better keep an eye out for this ... looks awesome.
Looks like a lot of guys have been working to get Android on the TyTN II and just yesterday they were able to make/recieve calls. Im sure once a lot of the bugs are worked out, it can be ported over to the Hermes.
......mmm
Hi,
AdamNimrod said:
Looks like a lot of guys have been working to get Android on the TyTN II and just yesterday they were able to make/recieve calls. Im sure once a lot of the bugs are worked out, it can be ported over to the Hermes.
Click to expand...
Click to collapse
that's the theory so far.
TYTN II is equipped with a newer ARM11 with a V5 instruction set (MSM7500) for system OS. Android has been designed to run on these new processors.
Fantastic work had been done by those guys to make it run!!!
TyTN uses older instruction set... i wrote this before.
Anyway, if there'll be some mods in the source code it perhaps will do some day.
Another complex part is all that GUI stuff. There's nothing to be found about the ATI 2282, the hermes is using for graphics.
Due to this fact there's only a very simple framebuffer in the current linux port for hermes, no ATI specific code for the GUI.
Maybe some of the masterminds out there will solve this issue some day .
At least i'm very interested in some source code for the ATI Imageon 2282 !
Anyone???
scholbert
scholbert said:
Another complex part is all that GUI stuff. There's nothing to be found about the ATI 2282, the hermes is using for graphics.
Due to this fact there's only a very simple framebuffer in the current linux port for hermes, no ATI specific code for the GUI.
Maybe some of the masterminds out there will solve this issue some day .
At least i'm very interested in some source code for the ATI Imageon 2282 !
Anyone???
scholbert
Click to expand...
Click to collapse
http://www.umpcportal.com/products/product.php?id=55
if that is correct info athena has this same ati chip. And when I looked at the Athena/Android project, someone has allready made something with graphics. Look at this post:
http://forum.xda-developers.com/showthread.php?t=393389
it says graphics done!
Hope this helps in any way.
Hi sniveri,
thanks for the links.
...if that is correct info athena has this same ati chip. And when I looked at the Athena/Android project, someone has allready made something with graphics. Look at this post:
http://forum.xda-developers.com/showthread.php?t=393389
it says graphics done!
Click to expand...
Click to collapse
HTC Athena uses ATI W2284. Maybe this part is very similar to W2282 on hermes.
Anyway, if you have a look in the patch, they also use vsfb (very simple framebuffer) driver for graphics.
This is the same like hermes, maybe it's O.K. for testing.
There's not much ATI specific code inside.
Still would enjoy to have a look on some ATI imageon driver code
Regards,
scholbert
I have unpacked two initrd-images and tried to found out what those contains. First one that works on hermes has init-file that is straigth link to /bin/busybox. After starting busybox it continues to inittab script to set environment settings or so I think.
Second initrd-image, that is made for kaiser or vogue, has someway compiled init file or something that I can not edit with any program..? It would be nice to know what scripts or commands this file contains.
Wow,it is cool.
I hope some expert can make Android run on our phone.

Categories

Resources