PDA

View Full Version : Linux on Trinity


renatostore
29th December 2006, 10:51 PM
Who are interested to see Linux also on this device?

The process should be very similar to Hermes implementation, so we can follow their steps.

greatsokol
29th December 2006, 10:59 PM
Interesting

kimusan
2nd January 2007, 06:58 PM
is it possible to do dual boot ? how will phone functionality etc work?

kimusan
2nd January 2007, 07:39 PM
is it possible to do dual boot ? how will phone functionality etc work?

answering myself: yes it is, which means that I am in! I would love to help with the investigation for getting linux on this device. Looks like the new haret (01/01/2007) works well on trinity. I have successfully telnetted to it and executed several different commands.

cr2
2nd January 2007, 09:04 PM
Looks like the new haret (01/01/2007) works well on trinity. I have successfully telnetted to it and executed several different commands.
Register a machine number for it.
Are the trinity internals known as good as the Hermes ?

kimusan
2nd January 2007, 09:12 PM
Register a machine number for it.
Are the trinity internals known as good as the Hermes ?


What do you mean by Register a machine number? where do I do this? As far as I know, the internals are pretty well known. We have pictures that identifies all the relevant chips, and schematics for a lot of the chipset.

cr2
2nd January 2007, 09:43 PM
What do you mean by Register a machine number? where do I do this?

http://www.arm.linux.org.uk/developer/machines/


As far as I know, the internals are pretty well known. We have pictures that identifies all the relevant chips, and schematics for a lot of the chipset.
Do you have a link ?

kimusan
2nd January 2007, 09:47 PM
http://www.arm.linux.org.uk/developer/machines/


Do you have a link ?

It is in one (or more) of the threads in the trinity forum here at xdadevelopers. I do not have the direct links here, but have seen them recently. it is most likely in oone of the "GPS or not GPS" threads.

kimusan
2nd January 2007, 09:58 PM
I have now registered the HTC Trinity/P3600

saminegm
3rd January 2007, 06:45 AM
interesting

pof
3rd January 2007, 10:57 AM
Do you have a link ?

http://forum.xda-developers.com/showthread.php?t=285090

See first attachment, Mainboard.zip contains front and back pictures of Trinity's mainboard, with all chipsets.

renatostore
3rd January 2007, 11:46 AM
Look here for the schemes:

http://www.solopalmari.com/content/view/2471/38/

page 2 and 3.

renatostore
30th May 2007, 10:21 PM
How is the state of art in porting linux on this device?

And on Hermes? Does the kernel boot?

With wm6 do you have to hard reset every time you try to boot the kernel?

Maybe Pof can answer these questions.

Thanks

pof
2nd June 2007, 03:29 PM
@renatostore: cr2 and Kevin2 are the guys working on it, come into #htc-linux at freenode irc network.

On hermes the kernel boots, and we can load a minimal initrd using haret. On trinity i haven't checked lastly.

You don't need to hard reset afer booting linux, that was only on WM2003 :)

lollo82
24th January 2008, 04:12 PM
Hi
How about linux on trinity? i've been on the irc channel but didn't get any answer... a few months passed... i'm in hope! :)

ww2250
25th January 2008, 08:32 PM
I don't have high hope on that. Heard it's very difficult to debug stuff in Linux due to the lack of a hardware kb....

earl00
25th January 2008, 08:34 PM
why do you want linux on this phone? you are not going to be able to cross-compile apps over and I don't see a useful app in linux that wm6 doesn't have already for a phone.

bkortleven
28th January 2008, 11:37 PM
Hi...
Still interested...
Had someexperience with h36xx and h38xx/h39xx series HP/Compaq PDA's and familiar linux, and it would be very cool to have some of this running on the HTC hardware too...

Anyone already had a ROM cooked up with kernel/basic apps?
Any idea what will/does work and what won't/doesn't? like phone, camera, wifi, gprs, bluetooth, ...

Thanks!

cr2
29th January 2008, 02:23 PM
Any idea what will/does work and what won't/doesn't? like phone, camera, wifi, gprs, bluetooth, ...


Check the hermes wiki.
trinity is the hermes without keyboard, minor differences are unimportant :)

Lost_in_translation
8th February 2008, 08:18 AM
The future of Linux on PDAs is Andromeda. Don't expect this to be implemented on existing devices - Andromeda will be a means to deliver new devices to the market.

While you will most likely need a new phone for Andromeda, you will gain a complete platform with stylish and working applications, so you will be able to actually use the device right from the start.

Have fun!

dominique2222
8th February 2008, 09:20 PM
oh yeah very interesting! and more again if dualboot and aircrack incorpored...

have a look about ALP (Acces Linux Platform) :here (http://alp.access-company.com/)

http://www.intomobile.com/wp-content/uploads/2007/08/12.jpg http://www.intomobile.com/wp-content/uploads/2007/08/21.jpg

http://www.intomobile.com/wp-content/uploads/2007/08/31.jpg http://www.intomobile.com/wp-content/uploads/2007/08/41.jpg

andreadj
1st March 2008, 05:25 PM
Hi!

I have an HTC trinity since a year now and I've been waiting for a linux port since then.... I swear, if I was a coder I would start a project yesterday... but I'm just a sysadmin and the only code i can piss is script.
Windows mobile is an insult to such a nice device (flashing to WM6 is nearly useless.... and sometimes worst) so to me it would be great to just have a better OS on it.
To be straight, when I bought it I was certain that someone would have been able to port Linux to it.

Of course i'll be happy to help in any way if someone sees a role for my "resources" :D

saminegm
1st March 2008, 06:41 PM
Hi!

I have an HTC trinity since a year now and I've been waiting for a linux port since then.... I swear, if I was a coder I would start a project yesterday... but I'm just a sysadmin and the only code i can piss is script.
Windows mobile is an insult to such a nice device (flashing to WM6 is nearly useless.... and sometimes worst) so to me it would be great to just have a better OS on it.


There could be a greater catastrophy: iPhone OS.

bkortleven
2nd March 2008, 11:23 AM
Flashing to WM6 through the uDK rom I found here on the board somewhere, did the trick for me, although I'd indeed rather see it run a REAL OS, not just a phony upgrade of a used-to-be-embedded software package used for dumb terminals in the early '90s...
The Rom lets me run Tomtom with WE maps on it without having to reset the device every two times I quit from TomTom... And have it do a reset every 5 calls answered or dialed...
It runs very nicely I must say...
But that's my opninion...

As far as I've heard and read, the hardware is still not known enough even to have it load a kernel through Haret or another bootloader-system...
So patience is the word, I think.

I'm running OPIE-II on a Universal, and it looks veeeeery promising I must say... On a bright and sunny day, there will be support for the chipset/cpu in the trinity too, and we'll have the same options on that nice little piece of technology too...
Until then, I'll stick to the uDK rom I loaded onto my trinity, and be patient with having a 'locked-down software' phone...

Lost_in_translation
2nd March 2008, 09:43 PM
After reading through the infopages on the state of various projects, I wouldn't expect Linux for the P3600 to arrive in a timely fashion. There is obviously a lack of manpower, funding and documentation, resulting in an extremely slow progress.

The development will need the ressources of the manufacturers - HTC is part of the consortium which develops Andromeda, so expect them to offer some Linuxdevices with Andromeda in the not-so-distant future.

Have fun!

Campo
3rd March 2008, 12:58 AM
...The development will need the ressources of the manufacturers - HTC is part of the consortium which develops Andromeda, so expect them to offer some Linuxdevices with Andromeda in the not-so-distant future...

When you say Andromeda you mean Android?

andreadj
5th March 2008, 01:51 PM
lol! I hope so....I don't need no database application programming stuff on my phone :D:D:cool:

tuksedra
6th March 2008, 04:02 AM
i can do the testing, even i dont even know programming.. but did haret work on wm6.1?.. i ve tried last week, (herm-linux-20070930) it just freez on "jumping to kernel"

bkortleven
6th March 2008, 10:08 AM
If there's any beta (or even alpha) kernel/file system release for trinity anybody needs testers for: let me know! I'd be happy to try and test stuff, and at least report errors and such. i'm not a programmer, but I know my way around linux pretty much, and have played with Universal on linux, and several OPIE and GPE based roms for IPAQ's 3xxx series before...

Let me know if anything like that exists :)

andreadj
8th March 2008, 01:30 PM
Cool, we are lots of tester... now we need some coding skills.... anybody knows where to start ? :P

dominique2222
22nd March 2008, 06:20 PM
we must start on thing: patience ;)

cr2
22nd March 2008, 07:52 PM
now we need some coding skills.... anybody knows where to start ? :P
You don't really need coding skills right now.
Please download the S3C2442 CPU manual and read about the registers controlling the
serial ports. Then you can check the values used by wince.
Differences between hermes amd trinity are marginal, but they are there.

jasnick
30th March 2008, 02:47 PM
I wanna try too. Would anyone can upload the linux rom on internet?

renatostore
2nd April 2008, 08:47 PM
Hi all,

have we an haret version for this device?

i'm also interested in porting.

evlas
23rd April 2008, 04:03 PM
Hi all,
I don't find more info about porting of linux on trinity.
There is a forum dedicated to this porting?

edkmho
26th April 2008, 11:01 AM
Guys,

I am no expert in programming/coding.

I am willing to help in anyway to get linux working on Trinity. By the way, there is a ported kernel specifically for ARM920T cpu on this website "http://mojo.handhelds.org/", source is available too.

Please check it out.

Thanks.

Tolt
30th April 2008, 01:11 PM
we must start on thing: patience ;)

thread subscribed.

cr2
1st May 2008, 11:38 PM
I am no expert in programming/coding.


CPU support is not a problem. The missing ATI SD driver is the problem.

Zorflieg
10th August 2008, 12:38 PM
hey maybe we could email this guy

http://www.linuxdevices.com/articles/AT7937511405.html

all "help me obiwan kenobi" stylez.

he said he wrote an sd card driver for the himalaya so maybe it's the same or something.

or we could all donate $20 and put an ad on rent a coder or one of those indian rent a team mobs...

by now you may get the impression i too badly want a linux. a native android build would do nicely.

dominique2222
31st August 2008, 03:23 PM
Yes you're right.

But the BIG great point with Linux for PDAs is the capability of make working native linux desktop softwares command lines such as Aircrack-ng :D

tuksedra
17th December 2008, 06:49 AM
i'm using hermes kernel, haret 5.2

RAMDISK: Couldn't find valid ram disk image starting at 0.
List of all partitions:
No filesystem could mount root, tried: ext2 vfat
Kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(1,0)

what i did wrong?.. anyone?

tuksedra
17th December 2008, 04:32 PM
tried experimental kernel zImage-2.6.23-hh20-ssc, vogue initrd, ...
booted,:
...
...
s3c2410-rtc s3c2410-rtc: setting the system clock to 2028-12-17 23:22:27 (1860708147)
Freeing init memory: 88k
_ <---- keep blingking...

anyone?
sorry i can test but cannot do kernel hacking...

tuksedra
3rd October 2009, 03:08 PM
huh.. not trin kernel but i manage to boot.. i realize some people have come to this..
but you got to see this.. manage to get to login but no key works.. trying to telnet.. no luck..
http://www.youtube.com/watch?v=QhyZ9NgqwZU

tuksedra
3rd October 2009, 03:08 PM
huh.. not trin kernel but i manage to boot.. i realize some people have come to this..
but you got to see this.. manage to get to login but no key works.. trying to telnet.. no luck..
http://www.youtube.com/watch?v=QhyZ9NgqwZU

yaz00us
14th November 2009, 12:23 PM
Hello,
Did you boot haret? If so, which version?
Can you post a default.txt or better all the files that you are using to boot?
When I try to boot haret for kaiser i only get garbage on screen.

Thanks.

L.E.

I managed to make Haret work. For trinity we have to use the following values:
MTYPE 1225
RAMSIZE 0x04000000
RAMADDR 0x30000000

Unfortunately I wasn't able to compile a linux kernel that will boot under haret.
What linux kernel are you using tuksedra?

yaz00us
10th December 2009, 04:06 PM
Tuksedra was kind to share with us a kernel that is booting on our p3600's. Here (http://bote.ro/ok.7z) you can download it.

It's not advisable to try it if you don't know some linux because all you'll get is a linux console (black screen with some white words on it :) ).

For the moment on my trinity all I get is a kernel panic due to the fact that krenel is not able to mount a root fs. I'll try to find the correct parameters to pass to the kernel.

tuksedra
11th December 2009, 04:12 AM
my default.txt

set MTYPE 1213
set KERNEL zImage
set initrd initrd.gz
boot

zmuda
11th December 2009, 07:09 PM
http://www.arm.linux.org.uk/developer/machines/

Sorry ,
but Why do we register to the site?

Thanks.

nacho-g
12th December 2009, 07:38 AM
Hi.
I could boot linux in my Trinity, then I telneted and could connect. I can't login because i don't know the user and pass.
I config usb0 192.168.9.100
My Trinity has IP 192.168.9.1
Someone knows the user to login?
Thanks

nacho-g
12th December 2009, 08:45 AM
I could get login with user "default" via telnet. I could run some commands, it is very very slow, but is is working!

zmuda
12th December 2009, 10:55 AM
I could get login with user "default" via telnet. I could run some commands, it is very very slow, but is is working!

Hi , can you help?

Can you explain step by step how it works?
Thanks

tuksedra
13th December 2009, 10:32 AM
http://antionline.com/archive/index.php/t-240413.html just wanna check it out when got home (now at work!!)

nacho-g
13th December 2009, 10:58 PM
what I did.
Copyed haret, zImage, initrd and default.txt to the root of the SD card. I used all the files shared by Tuksedra in post #46.
Then run haret from the ppc and linux boots up. Y plugged the usb cable and linux in PC creates a vap called usb0.

set the IP for usb0
ifconfig usb0 up 192.168.9.100

connect via telnet
telnet 192.168.9.1

then it asks for an user, I only could get logged in whit "default" user. It doesn't ask for a pass.

Then you are connected with your Trinity and can run busybox commands via telnet. If you type help it will show busybox commands you can run but there are more basic linux commands in other folders.

I knew the IP was 192.168.9.1 because I looked it up in the file initrd.img.
Now I'm trying to make a virtual keyboard work, but it is too much difficult and i'm just starting.

tuksedra
14th December 2009, 05:54 AM
anyone know what is that "bad eraseblock ***" there?

zmuda
17th December 2009, 08:28 AM
what I did.
Copyed haret, zImage, initrd and default.txt to the root of the SD card. I used all the files shared by Tuksedra in post #46.
Then run haret from the ppc and linux boots up. Y plugged the usb cable and linux in PC creates a vap called usb0.

set the IP for usb0
ifconfig usb0 up 192.168.9.100

connect via telnet
telnet 192.168.9.1

then it asks for an user, I only could get logged in whit "default" user. It doesn't ask for a pass.

Then you are connected with your Trinity and can run busybox commands via telnet. If you type help it will show busybox commands you can run but there are more basic linux commands in other folders.

I knew the IP was 192.168.9.1 because I looked it up in the file initrd.img.
Now I'm trying to make a virtual keyboard work, but it is too much difficult and i'm just starting.

sorry, but I can not set configuration:
can be more detailed explanations?

Thanks for you help and cooperation.

bruno r
18th December 2009, 01:47 AM
loking forwar for it

nacho-g
18th December 2009, 02:35 AM
sorry, but I can not set configuration:
can be more detailed explanations?

Thanks for you help and cooperation.

I forget to say I had to modify default.txt, uncomment the 3rd line like this.

set MTYPE 1213
set KERNEL zImage
set initrd initrd.img
boot

you can't set the usb0 IP? Are you running linux? Does usb0 appear if you type ifconfig -a? I don' know what is what you can't do.

zmuda
20th December 2009, 12:28 PM
Sorry ,
one question :

- in my computer
before to connect my Htc P3600,
in necessary Windows or Linux ?
Thanks.

nacho-g
21st December 2009, 01:16 AM
Sorry ,
one question :

- in my computer
before to connect my Htc P3600,
in necessary Windows or Linux ?
Thanks.

As you prefer, i first used linux, then tried in windows and works much faster.

boot linux in your Trinity, plug the usb cable

in linux (PC) type

ifconfig usb0 up 192.168.9.100
telnet 192.168.9.1

and you get connected.

If you prefer windows you must configure the connection, in TCP/IP option set the IP to 192.168.9.100

then run telnet 192.168.9.1

you should get connected.

zmuda
21st December 2009, 06:02 PM
As you prefer, i first used linux, then tried in windows and works much faster.

boot linux in your Trinity, plug the usb cable

in linux (PC) type

ifconfig usb0 up 192.168.9.100
telnet 192.168.9.1

and you get connected.

If you prefer windows you must configure the connection, in TCP/IP option set the IP to 192.168.9.100

then run telnet 192.168.9.1

you should get connected.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Hi ,
i work with windows xp Sp2.
I have a router NetGear with address 192.168.0.1.
I set TCP / IP 192.168.9.100
but on my PC don't work.
Is impossible to connecto to internet .
Why ??
Thanks for your patience !!

nacho-g
22nd December 2009, 07:39 AM
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Hi ,
i work with windows xp Sp2.
I have a router NetGear with address 192.168.0.1.
I set TCP / IP 192.168.9.100
but on my PC don't work.
Is impossible to connecto to internet .
Why ??
Thanks for your patience !!

You changed the wrong interface's IP. Don't change your net card IP, the IP you have to change is for the RNDIS interface, the interface that is created once you boot linux in your Trinity and then plug the USB cable. You also may have been asked for the driver, have you? RNDIS gadget?

zmuda
24th December 2009, 05:38 PM
Hi ,
my htc connects with the PC with ActiveSync, but I do not know how to make the connection with telnet.
CMD Should I go on?
How do I do?

I have used file by Tuksedra in post #46.
If start Haret on my htc ,
booting linux , but stopped when
"Jumping to kernel"
and remains locked.
After i reset.

I do not know what to do

Thanks and Merry Christmas ....

nacho-g
26th December 2009, 07:47 AM
Hi ,
my htc connects with the PC with ActiveSync, but I do not know how to make the connection with telnet.
CMD Should I go on?
How do I do?

I have used file by Tuksedra in post #46.
If start Haret on my htc ,
booting linux , but stopped when
"Jumping to kernel"
and remains locked.
After i reset.

I do not know what to do

Thanks and Merry Christmas ....

To run telnet: Start>run> telnet 192.168.9.1
or Start>run> cmd and then in the command prompt type telnet 192.168.9.1
If the kernel doesn't boot (jumping to kernel) you can't do anything. Perhaps you are using the wrong kernel or the default.txt file is passing a bad agument. That kernel is for Hermes, and the mtype=1213. If you don't have that line haret passes mtype=1225, that is Trinity's machine type, it will not boot.

default.txt

set MTYPE 1213
set KERNEL zImage
set initrd initrd.img
boot

I have compiled my own kernel for Trinity, it is booting ok, loading all drivers, mounting the ramfs and showing the command prompt, I have some problems with the usb gadget, I can't login via telnet, it is working but when I connect the connection resets. Working with it.

zmuda
26th December 2009, 12:16 PM
Yhanks for your reply.

I will try,
but where can I find the file kernell for my p3600?

Thanks again for your patience !!

I wait your info. Bye......:):)

alecuba16
7th January 2010, 12:08 PM
Finally i have one question.

The linux can run on ARM V4 trinity, ok!

But we can install some package to run the touch screen?
We can install some interface like OGE or XFCE?

The GSM works?

zmuda
8th January 2010, 01:26 PM
Sorry ,

but which files you used ?
Thanks......

nacho-g
9th January 2010, 07:27 AM
Finally i have one question.

The linux can run on ARM V4 trinity, ok!

But we can install some package to run the touch screen?
We can install some interface like OGE or XFCE?

The GSM works?

Hi. You could "try" cross_compile an interface to run on Trinity, maybe it would run. Actually the touchscreen has no driver, so yow can't input anything.

I would like to say yes, but GSM is nos working either. In fact you can't do nothing in linux, just login via telnet with a pc and run some commands. I hope we can make it fully functional, but there is a lot of work, that is what we have to do, work a lot.

nacho-g
9th January 2010, 07:35 AM
anyone know what is that "bad eraseblock ***" there?

those BAD ERASE BLOCK is the NAND complaining

Anyone has compiled a Kernel for Trinity? Could someone get login via Telnet.
Mines is booting but finishes connection when logged in, Ma!Madera! dijo el Carpi.

tuksedra
12th January 2010, 09:11 AM
dear nacho-g,

im'glad u've compiled kernel for trinity!! could you post the kernel + initrd here? did u build the initrd?

nacho-g
15th January 2010, 08:53 AM
Here is the kernel and the initrd. It is booting ok, but there is some problem with my toolchain.

nacho-g
16th January 2010, 08:27 AM
This is working better. I created another initrd and now the toolchain seems to compile OK. I added dropbear but it is not running. The boot proccess goes ok, the fs is mounted ok and everything is running, exept for those who are called from /etc/init.d/rCS, don't know why. I can't get logged in via telnet.

# ifconfig usb0 up 192.168.9.100
# telnet 192.168.9.1
Trying 192.168.9.1...
Connected to 192.168.9.1.
Escape character is '^]'.
Trinity login: default
Connection closed by foreign host.

I also upload the default.txt file I'm using.

Did someone test this kernel?

eisbaer82
16th January 2010, 01:03 PM
I would like to compile a kernel on my own. What toolchain do you use? Can you give some build configs?

zmuda
16th January 2010, 06:34 PM
hi ,

I tried to upload the new files but now hangs in the position:

- Welcome
Trinity login:

Why ?? There is a solution ?

Thanks again .

nacho-g
18th January 2010, 01:49 PM
I fixed the kernel, now I can telnet. It works fine. I have some problems with busybox, so I upload a modified initrd. I'm still working in mines.
Don't soft reset to quit, type reboot and then turn on your trinity.
Can't make dropbear work, ma!

20100118.zip:
Upload of file failed.
try to upload later...
-finally here are the files, the only thing I'm not compiling ok is the library-

here's the ps running

# ps
PID Uid VmSize Stat Command
1 root 320 S init
2 root SW< [kthreadd]
3 root SW< [ksoftirqd/0]
4 root SW< [watchdog/0]
5 root SW< [events/0]
6 root SW< [khelper]
52 root SW< [kblockd/0]
55 root SW< [cqueue/0]
61 root SW< [kseriod]
86 root SW [pdflush]
87 root SW [pdflush]
88 root SW< [kswapd0]
89 root SW< [aio/0]
705 root SW< [mtdblockd]
710 root SW< [s3c2410-spi.0]
731 root SW< [kmmcd]
803 root 220 S /bin/telnetd
806 root 308 S /sbin/getty 38400 tty1
807 root 308 S /sbin/getty 38400 tty2
808 root 304 S /sbin/syslogd -n -m 0
809 root 300 S /sbin/klogd -n
814 default 380 S -sh
818 root 428 S -sh
845 root 304 R ps

eisbaer82
18th January 2010, 03:03 PM
nacho-g: Can you share your build configuration/environment?

nacho-g
19th January 2010, 02:51 AM
Of course I can share.
I use buildroot. Here are some config files I'm using and a list of what I had to unpackage to get it work. If I have some time then I'll prepare the diff to the kernel 2.6.23-hh20.

eisbaer82
20th January 2010, 09:52 AM
Of course I can share.
I use buildroot. Here are some config files I'm using and a list of what I had to unpackage to get it work. If I have some time then I'll prepare the diff to the kernel 2.6.23-hh20.

Maybe I'm to stupid to use google and the search function... I cannot find the 2.6.23-hh20 kernel nor the hh20 patch for the offical kernel version..

nacho-g
22nd January 2010, 06:24 AM
Ok, I made it work. The uClibc (0.9.31) library wasn't working because of some in linuxthreads...
Now it is fully working.

copy the unziped file to the SD, replace the name in default.txt or simply rename the file to initrd.img. Run haret.

Telnetd is listening on Trinity's 192.168.9.1:23 port, so telnet there and get connected. Use user='default'
If you want to redirect output directly to the lcd then run login>/dev/tty0.
Wat's next... firs fix some with IRQ, then create the touchscreen driver, MA!. I have started porting it from kaiser's, it is not easy.

nacho-g
22nd January 2010, 06:28 AM
Maybe I'm to stupid to use google and the search function... I cannot find the 2.6.23-hh20 kernel nor the hh20 patch for the offical kernel version..

Ja! I remember it was very difficult to find for me because that is not the filename, wen I remember where the original is I'll post it.
The patch... oficial? Doesn't exist.
What i said is the diff from linux-2.6.23-hh20 to the one I have now in my PC. I added some lines of code.

eisbaer82
22nd January 2010, 01:07 PM
Ja! I remember it was very difficult to find for me because that is not the filename, wen I remember where the original is I'll post it.
The patch... oficial? Doesn't exist.
What i said is the diff from linux-2.6.23-hh20 to the one I have now in my PC. I added some lines of code.

I understood this :)

I thought that linux-2.6.23-hh20 is based on the official 2.6.23 and the diff between the official and the hh20 for me is a patch. ;)

I want to play with the kernel in my small sparetime, but at first I need the sources...

nacho-g
22nd January 2010, 04:47 PM
I understood this :)

I thought that linux-2.6.23-hh20 is based on the official 2.6.23 and the diff between the official and the hh20 for me is a patch. ;)

I want to play with the kernel in my small sparetime, but at first I need the sources...

I remember I started from here (http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=commit;h=b5e8c8af0641beb9b6c95292cf45 5ed0f73354b0)

Also I aplied the patch (modified, of coarse) from the hermes page. Look for "experimental.zip" I think.

Until you get the 2.6.23-hh20 you will learn a lot whith this one.

nacho-g
25th January 2010, 03:15 AM
The touchscreen is fully working, calibration included.
I added some apps to the fs. TinyX Xserver and Matchbox. They work fine.

http://img63.imageshack.us/img63/5940/dump0.png http://img41.imageshack.us/img41/7619/dump1.png http://img64.imageshack.us/img64/649/dump2x.png http://img716.imageshack.us/img716/1508/dump3.png http://img97.imageshack.us/img97/8398/dump4.png

tuksedra
25th January 2010, 07:21 AM
bravo man.. can u post it here?.. i'm a little bz this month looks like u got there first!! congratz!!

btw.. what did u use for graphic driver?

destruct0r
25th January 2010, 07:13 PM
+1! nacho-g, you make great work! upload it plz... Want to run this stuff on my pda :)

nacho-g
27th January 2010, 04:20 AM
Thanks!
The graphic driver is just the vsfb.
I could read first bytes from the NAND ok, but have some problems mounting it. I'm working with the SD but there are many things I don't understand.

The rfs is here http://rapidshare.com/files/341670045/rootfs.arm.cpio.gz.html
Sorry, but is is > 8MB.

To bring up matchbox: (havn't write the script yet)

ifconfig usb0 up 192.168.9.100
telnet 192.168.9.1
Trying 192.168.9.1...
Connected to 192.168.9.1.
Escape character is '^]'.

Trinity login: default
Using fallback suid method


BusyBox v1.15.2 (2010-01-26 03:13:09 GMT) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Using fallback suid method
Using fallback suid method
Using fallback suid method
su
Using fallback suid method


BusyBox v1.15.2 (2010-01-26 03:13:09 GMT) built-in shell (ash)
Enter 'help' for a list of built-in commands.

export DISPLAY=:0.0
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CALIBFILE=/etc/pointercl
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts
export LD_LIBRARY_PATH=/usr/lib
Xfbdev -br -kb -screen 240x320 -mouse tslib,,device=/dev/input/event0 &
(ctrl+c)
matchbox-session

to get out of there just (ctrl+c)

tuksedra
27th January 2010, 05:32 AM
its fast!! very responsive, even there's mo to do but it is a good motivator... thanks nacho-g!!

destruct0r
28th January 2010, 10:06 AM
Great! More fast than WinMobile, but needs more programs,GSMmodule,etc ;). Thanks nacho-g!!!

zmuda
1st February 2010, 07:33 PM
Sorry ,

but when you see the word "Trinity login" how do I write?

Thanks to all for cooperation.

tuksedra
2nd February 2010, 01:04 AM
zmuda --> post 85,
its not the full working os yet, currently linux is loaded on ram: still need access to sd card. touch screen , graphic, is working.. good luck!!

mondy
10th February 2010, 12:06 PM
I can't get the matchbox up...
Do I need the file that should be available at the rapidshare link at post 85.

The file isn't available anymore.

Please help.
Thank you

demitov
11th February 2010, 08:33 AM
Please upload rootfs.arm.cpio.gz from post #85 again really want

Thank you

destruct0r
11th February 2010, 10:13 PM
demitov, hxxp://rapidshare.com/files/349321889/rootfs.arm.cpio.gz

demitov
11th February 2010, 11:26 PM
thanks, very fast )))

Auwia
15th February 2010, 02:23 PM
Hi,
where can I find ethernet gadget driver for windows XP or VISTA?

Goodbye,
congratulation for great work....

tuksedra
16th February 2010, 01:48 AM
u can try live linux so u dont have to install it to your pc.. try slitaz (google it). small fast, can boot from cd or usb
to put slitaz on usb u can use unetbootin (google it)... or u can read pendrive linux -->
h00p://www.pendrivelinux.com/install-slitaz-to-usb-from-windows/


list of linux distribution - distrowatch.com/

Krad213
16th February 2010, 08:12 PM
Great work guys ! Any chances to launch android on trinity ?

tuksedra
18th February 2010, 01:20 AM
no chance!! for now... did anyone try maemo?

nacho-g
20th February 2010, 01:09 AM
I recompiled the kernel with the RNDIS option, for those who want to connect with XP. The driver is included in the zip.

I've found the front keypad uses cpld chip. When a key is pressed it occurs the EINT1 interrupt (cpld). It is different from Hermes that uses the EINT3 interrupt and GPIO C 11 and 12 for SCL and SDA lines (if it is correct in the Hermes wiki). So, bbkeys don't work on Trinity as there aren't SCL and SDA pins. GPIO C12 is used for the keypad backlight. Could anyone please confirm this with HaRET?

CPLD
E pin (GPIOC0 at pin C may be the ACK)
*GPIOE2* 4 FKP Windows
*GPIOE3* 8 FKP OK
*GPIOE4* 10 FKP END
*GPIOE5* 20 FKP SEND
*GPIOE6* 40 FKP LSK
*GPIOE7* 80 FKP RSK
F pin (GPIOC6*at pin C may be the ACK)
*GPIOF0* 1 FKP Joystick UP
*GPIOF1* 2 FKP Joystick Down
*GPIOF2* 4 FKP Joystick RIGHT
*GPIOF3* 8 FKP Joystick LEFT
GPIOF4* 10 FKP Joystick CENTER

This is not working yet in my kernel, yes all side keys, but in this compilation, as i'm trying to get all keys working, they are not, ma!
I've been "trying" to understand how the SD comunicates with the SDIO chip, but haven't make progress. Couldn't read a bit. The bit 1 of pin C, at clpd is related to the SD reads/writes, also with the nand, but i don't know how to use it.
I get some dmesg inserting and removing the SD, but always there is a TIMEOUT error. Im using the ATI W228x experimental driver.

IzaacJ
22nd February 2010, 06:11 PM
Hey :) Nice work :)

What I don't get is, which files is required to test it? (#82 (http://forum.xda-developers.com/showpost.php?p=5447881&postcount=82))
I'm excited to try what-ever there is to get tried to get this fully working as a replacement of WM :P
//
Izaac

nacho-g
23rd February 2010, 02:22 AM
Hi.
To boot linux and get connected you need to copy haret.exe, default.txt, zImage and rootfs.arm.cpio.gz to the SD card. Then, with the USB cable connected, execute Haret and click on run. That will boot linux on Trinity.
Then you can connect to Trinity via telnet. configure your interface with IP 192.168.9.100 and then telnet to 192.168.9.1.
The user is "default"

To reboot, type:
su
reboot

I attached haret.exe and default.txt if you don't have them. Other files are in previous posts.

I've found why I can't get the front keypad working, it is because I can't get and IRQ for the CPLD, because there are some missing functions related to gpios. I think I'll get it working this week. This is very important because this interrupt is related to SD, NAND, front keypad and scroll wheel's interrupts.

IzaacJ
23rd February 2010, 11:49 AM
Thanks :)
Going to try it out now :)
Hopefully I'll get it working :P

EDIT: I've tried to find a RNDIS driver, but there doesn't seem to be one =/ Because thats where it all stalls... Any ideas?
EDITEDIT: Running Windows 7 64-bit Home Premium, if that helps

EDITEDITEDIT: Got it running with this driver for Vistax64 (attatched).

I really like this :) I hope that everything will get working as I would prefer linux than WinMo on my sweet Trinity ;)

EDIT (again): Does anybody know what cygwin packages is required/recommended to install to be able to work on this?

Auwia
24th February 2010, 11:12 AM
After that I connect to the trinity with telnet, How can I enter in the touchscreen mode?

IzaacJ
24th February 2010, 11:20 AM
Hey.

You get into the basic gui by entering this (copy and paste-friendly)

export DISPLAY=:0.0
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CALIBFILE=/etc/pointercl
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts
export LD_LIBRARY_PATH=/usr/lib
Xfbdev -br -kb -screen 240x320 -mouse tslib,,device=/dev/input/event0 & matchbox-session

Auwia
24th February 2010, 12:21 PM
I have resolved with:

export DISPLAY=192.168.9.1:0

and from / path:

./startx

Thanks you for replace, I have another question:

For Your, is there a possibility to install Opie distribution on trinity?

IzaacJ
24th February 2010, 12:52 PM
As far as I know there is no Opie distro that you can install...
There is a lot of drivers that still need to be developed.

If you find something about this, please post it here for us to know ;)

IzaacJ
25th February 2010, 09:20 PM
Sorry for double post, but any news on this? :)

Guybrush.d
27th February 2010, 01:13 AM
Hi guys,
i own a wonderful trinity since 2 two years, and of course with windows mobile,
o know it's true u have the tom tom windows games etc. but i love linux
i have installed it to everybody's pc i knew and after the intial struggling now
they are happy because they don't have any virus or blue screens of death anymore!!!:D
Now, sorry for the intro, i'm looking for long time for this i'm a sysadmin and a little programmer too (not c++ :( ) but i know for sure, that one of the best linux properties is
the networking!!! So if anyone can try (at the moment i have just a phone), you can use the LFS project uuu.linuxfromscratch.org
I configured and installed linux machine through telnet often, so why don't a pda?
i googled around and there is opie or qtopia for the interface, and we have also wine,
that runs well on my ibook 300mhz, i know we will miss the tom tom but that will be one
of the last problem!!!:D
Ask me if i can help in some way i'm very available to everybody who wants linux on trinity!!!:D

PS.: I also found this if can help uuu.linuxtogo.org/~htcpxa/htcblueangel

CIAO!

Guybrush.d
27th February 2010, 01:43 AM
Hi again,
just googling around (again), i found also this

uuu.a1kstyle.com/ptopic17052.html

i know it's in italian but you can use google translator ;)
it explains how to install opie and more on a qtek 9090 with haret from
a sd card, give it a look!
ciao

IzaacJ
27th February 2010, 04:09 PM
Hey!

Looked trhough the links you posted and it seems like it could be of some use, at least I think so. Don't know what the people working on this thinks, but its atleast some probably usefull information :)

Qamarzamsyawal
28th February 2010, 04:45 AM
good.Trinity is worth a try!!

tuksedra
1st March 2010, 01:44 AM
that italian site shows that the files can be installed in sd card, but we still did'n have sd card driver.

is there anyone can help on this?..

nacho-g
3rd March 2010, 11:19 AM
SD seem to be alive. This is just a byte, but the first i was able to get from the SD. Wish to make some progress on this.

[ 197.090000] atiw_mmc: Response: 00000000 00000000 00000000 00000000
[ 197.095000] mmc0: req done (CMD0): 0: 00000000 00000000 00000000 00000000
[ 197.100000] mmc0: clock 312500Hz busmode 1 powermode 2 cs 0 Vdd 20 width 0 timing 0
[ 197.105000] atiw_mmc: requested clock 312500Hz busmode 1 powermode 2 Vdd 20
[ 197.160000] mmc0: starting CMD8 arg 000001aa flags 00000075
[ 197.165000] atiw_mmc: Opcode: 8, base: c4808000 reg_base: c480a000
[ 210.635000] atiw_mmc: ATI W228x cmd->flags= 117 MMC_RSP_PRESENT= 1 cmd->flags= 117 MMC_RSP_136= 2
[ 210.640000] atiw_mmc: Response: 00000900 00000000 00000000 00000000
[ 210.650000] mmc0: req done (CMD8): 1: 00000900 00000000 00000000 00000000
[ 210.655000] mmc0: starting CMD55 arg 00000000 flags 00000075
[ 210.660000] atiw_mmc: Opcode: 55, base: c4808000 reg_base: c480a000
[ 319.095000] atiw_mmc: ATI W228x cmd->flags= 117 MMC_RSP_PRESENT= 1 cmd->flags= 117 MMC_RSP_136= 2
[ 319.100000] atiw_mmc: Response: 00000120 00000000 00000000 00000000
[ 319.105000] mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
[ 319.110000] mmc0: starting CMD41 arg 00000000 flags 00000061
[ 319.115000] atiw_mmc: Opcode: 41, base: c4808000 reg_base: c480a000

Auwia
3rd March 2010, 03:39 PM
very very very good necho-g!!!

How can we help you?

IzaacJ
4th March 2010, 12:17 AM
A step in the right direction obviously :D
Hopefully more of them are coming :D

I'll be glad to help you guy's out in any possible way :D

nacho-g
4th March 2010, 12:03 PM
Yes, at least it was the first response I got from the SD.
I'm very bussy this days, so I don't know when I can continue with this.

I would apreciate help but I don't know what anyone could do, as I'm learning averything. I have my Trinity since last december!
I'm learning how to use HaRET, IDA decompiler, how drivers work on linux...

I'm planning to make a good cleanup to the whole source I'm using and share it here, also all compiling tools (or how te get them), so, everyone can compile on his own, make tests, contribute. It will take me much time, be patient.

It would be interesting also to have some place like Hermes Wiki (http://wiki.xda-developers.com/index.php?pagename=Hermes_Linux) in order to have all what is known up to date there, as there are some differences to Hermes, if I'm not wrong.

Its a very hard work, and the most time is spent in learning and trying, but I want linux on my Trinity.

eisbaer82
4th March 2010, 03:13 PM
Yes, at least it was the first response I got from the SD.
I'm very bussy this days, so I don't know when I can continue with this.

I would apreciate help but I don't know what anyone could do, as I'm learning averything. I have my Trinity since last december!
I'm learning how to use HaRET, IDA decompiler, how drivers work on linux...

I'm planning to make a good cleanup to the whole source I'm using and share it here, also all compiling tools (or how te get them), so, everyone can compile on his own, make tests, contribute. It will take me much time, be patient.

It would be interesting also to have some place like Hermes Wiki (http://wiki.xda-developers.com/index.php?pagename=Hermes_Linux) in order to have all what is known up to date there, as there are some differences to Hermes, if I'm not wrong.

Its a very hard work, and the most time is spent in learning and trying, but I want linux on my Trinity.

I would like to help, but I also want to avoid doing all the work you've done yet ;o) I'm waiting for you sharing the code and maybe we can put it then into an svn repo or something. Unfortunately my free-time is small (I'm a windows app. developer slave *lol*), so my progress will be very slow, but I always wanted to do some lowlevel stuff.

Neo2SHYAlien
9th March 2010, 11:14 PM
I run on my hermes whit match-box great work boys the only one bug is inverted movement of my stilys

bayumahendra24
10th March 2010, 07:13 AM
desperately wanted to run linux on my trinity......:(

nacho-g
12th March 2010, 02:22 AM
I run on my hermes whit match-box great work boys the only one bug is inverted movement of my stilys

Try running ts_calibrate and see if it works ok, it should. Maybe you didn't set the env variables ok.
Should be like this:

export DISPLAY=':0.0'
export TSLIB_CONSOLEDEVICE='none'
export TSLIB_FBDEVICE='/dev/fb0'
export TSLIB_TSDEVICE='/dev/input/event0'
export TSLIB_CALIBFILE='/etc/pointercl'
export TSLIB_CONFFILE='/etc/ts.conf'
export TSLIB_PLUGINDIR='/usr/lib/ts'
export LD_LIBRARY_PATH='/usr/lib'

bayumahendra24
12th March 2010, 09:19 AM
just for another references....
h**p://ww*.1800pocketpc.com/2010/03/09/install-linux-ubuntu-on-htc-touch-pro2.html
h**p://opie.handhelds.org/cgi-bin/moin.cgi/Hardware
h**p://opie.handhelds.org/cgi-bin/moin.cgi/Applications
h**p://familiar.handhelds.org/

alch
12th March 2010, 09:45 AM
just for another references....
hxxp://familiar.handhelds.org/
It is only for HP iPAQ and Siemens Simpad devices :(

bayumahendra24
12th March 2010, 10:55 AM
ww*.handhelds.org/moin/moin.cgi/SupportedHandheldSummary

please check....lots PocketPC brand eist, including trinity (although the status still at "initial start") :(

Neo2SHYAlien
12th March 2010, 12:11 PM
Try running ts_calibrate and see if it works ok,
yeap i forgot a calibrate my device :D after calibration everything is ok. When i move ts return debug this error

slib: Unknown event type 0

ENVIR
12th March 2010, 05:49 PM
anyone please help me...

i always failed to boot linux, i don't know why.. i try all but always failed..

i use win xp

ask: to boot linux always connect to internet?

please help me

i wanna try linux

sorry for my english (i'm indonesian)

destruct0r
13th March 2010, 01:36 AM
anyone please help me...

i always failed to boot linux, i don't know why.. i try all but always failed..

i use win xp

ask: to boot linux always connect to internet?

please help me

i wanna try linux

sorry for my english (i'm indonesian)

Internet connection is not needed for booting linux, but connecting cable to your trinity is important( do it before running haret.exe), and running linux is descripted(???) in post #85
Sorry for my english too, i'm from Belarus ;)

ENVIR
13th March 2010, 11:16 AM
Internet connection is not needed for booting linux, but connecting cable to your trinity is important( do it before running haret.exe), and running linux is descripted(???) in post #85
Sorry for my english too, i'm from Belarus ;)

i always try many initrd, zimage,rootfs.arm.cpio.gz, n default.txt

when i run haret.exe i always failed..
ever try to combine many files got from this post but always failed..
in the end process like this:
welcome to trinity login:_
i confused

please give me files to boot linux n successfully.. also tutorial:)

i use windows xp sp 3
to boot linux also needed Active sync?

please help me..
thx 4 all:)

destruct0r
13th March 2010, 10:13 PM
i always try many initrd, zimage,rootfs.arm.cpio.gz, n default.txt

when i run haret.exe i always failed..
ever try to combine many files got from this post but always failed..
in the end process like this:
welcome to trinity login:_
i confused

please give me files to boot linux n successfully.. also tutorial:)

i use windows xp sp 3
to boot linux also needed Active sync?

please help me..
thx 4 all:)

files to run linux is available in this thread, just search it ;)
I hope that little instruction helps you

1. Establish active sync connection with trinity
2. Run haret.exe
3. When appears login: reinsert usb cable to pda
4. Install driver for RNDIS Ethernet gadget
5. Configure your computer IP address with 192.168.9.100
6. telnet from computer to 192.168.9.1
7. Login with name "default" without password
refer to post #85 how to run X window system
Good luck ;)

2 nacho-g: Any progress? ;)

ENVIR
13th March 2010, 10:44 PM
files to run linux is available in this thread, just search it ;)
I hope that little instruction helps you

1. Establish active sync connection with trinity
2. Run haret.exe
3. When appears login: reinsert usb cable to pda
4. Install driver for RNDIS Ethernet gadget
5. Configure your computer IP address with 192.168.9.100
6. telnet from computer to 192.168.9.1
7. Login with name "default" without password
refer to post #85 how to run X window system
Good luck ;)

2 nacho-g: Any progress? ;)

very good tutorial

but some problems:
1. what is RNDIS Ethernet gadget? n where i get this? i don't have this
2. to boot linux in my trinity, must use linux on my pc?(mean: change win xp to linux)
3. what is telnet?
4. after login with default, will automatically Configure IP address and telnet?
5. sorry for my english:) i hope you can understand:)
6. sorry many question cause newbie...
7. thanks most of all 4 u..

destruct0r
13th March 2010, 11:07 PM
very good tutorial

but some problems:
1. what is RNDIS Ethernet gadget? n where i get this? i don't have this
2. to boot linux in my trinity, must use linux on my pc?(mean: change win xp to linux)
3. what is telnet?
4. after login with default, will automatically Configure IP address and telnet?
5. sorry for my english:) i hope you can understand:)
6. sorry many question cause newbie...
7. thanks most of all 4 u..

1. It's device(your pda with linux running). It needed driver(unzip linux.zip in attach)
2. no, it working under WinXP
3. It's command-line tool(Start - run - telnet 192.168.9.1)
4. I am configuring Ip address by hands
5. ;) My English is very poor too..
Hope i'm help you

ENVIR
14th March 2010, 06:31 AM
1. It's device(your pda with linux running). It needed driver(unzip linux.zip in attach)
2. no, it working under WinXP
3. It's command-line tool(Start - run - telnet 192.168.9.1)
4. I am configuring Ip address by hands
5. ;) My English is very poor too..
Hope i'm help you

I understand,,
I can't change configuration my IP,, can U tell me?

Neo2SHYAlien
14th March 2010, 06:59 PM
nacho-g to compile hh image is a realy pain in the ass respect :) too mach errors :confused:
tonight i make 2 zImages but when boot hariet freez on Jumping to kernel... I compile laster vanila image from kernel.org and lastest update from git groups/mobile-linux. Any body have ideas or direction why hariet don't boot. For now I make it just for fun and i want test the new frame buffer drivers

ps. sorry for my bad english

nacho-g
15th March 2010, 11:48 PM
nacho-g to compile hh image is a realy pain in the ass respect :) too mach errors :confused:
tonight i make 2 zImages but when boot hariet freez on Jumping to kernel... I compile laster vanila image from kernel.org and lastest update from git groups/mobile-linux. Any body have ideas or direction why hariet don't boot. For now I make it just for fun and i want test the new frame buffer drivers

ps. sorry for my bad english

yes, if you try to compile without applying any patch there are lots of warnings. There are many reasons that may cause hang at boot, or maybe it has booted but you don't see anything on lcd. in this case you should be able to telnet. some time ago i posted the configuration files i was using, if you want you can compare with yours. look up "eabi", if you configured that options different it will not boot. later i'll post my actual cfg file so you can use it, now i'm at work.
i'm very busy, too much work, so, i couldn't work on kernel. i'm waiting to have some time to prepare the code and patches and post here. don't know when, but i want to do it so anyone can contribute without making all the work i have done yet.

tuksedra
16th March 2010, 09:05 AM
mm.. i tried compiling few times but still no luck.. now i just moved into new house, need sometimes to get register internet, keep yr spirit up guys.

nacho-g did youget sd card work?.. i need some new patch for that..

Neo2SHYAlien
16th March 2010, 09:32 AM
yes, if you try to compile without applying any patch there are lots of warnings. There are many reasons that may cause hang at boot, or maybe it has booted but you don't see anything on lcd. in this case you should be able to telnet. some time ago i posted the configuration files i was using, if you want you can compare with yours. look up "eabi", if you configured that options different it will not boot. later i'll post my actual cfg file so you can use it, now i'm at work.
i'm very busy, too much work, so, i couldn't work on kernel. i'm waiting to have some time to prepare the code and patches and post here. don't know when, but i want to do it so anyone can contribute without making all the work i have done yet.

yeap every one my compilation start with your .config from tools archive. When you have a time i will be thankful for your patches and last config. Have a nice day :)

nacho-g
17th March 2010, 04:48 PM
no, the sd driver is not working. I have to learn many thing before i can make it work. It is not simple and some days ago i knew nothing, just learning for now.

Here are some files, the .config i'm actually using and /mach-s3c2442/htctrinity/*

Neo2SHYAlien
17th March 2010, 09:17 PM
thanks a lot man :)

alch
18th March 2010, 11:04 AM
Thanks for config!
I'll try to get assistance about SD and compile it too...

Neo2SHYAlien
31st March 2010, 11:07 AM
last night i have few hours for work under my hermes and the problem with freeze hariet still. compile 2.6.21.20hh zImage and last kernel from kernel from kernel.org and result is same . maybe i do something wrong. after starting hariet on screen freeze this rows
Haret boot
Shutting down hardware
Turning off MMU
In preloader
PSR=600000df
Tags relocated
Kernel relocated
Initrd relocated
jumping to the kernel
For compilation i use arm-linux-gnueabi- . Last night change 2008 version with last from my debian pool and result was same. Only size of image was little smaller :)

nacho-g
10th April 2010, 05:58 AM
Hi.

In the attached file there is a link to a folder where you can find and download the whole kernel source I'm using. It's zipped in order to span the .tar.gz file, I'm busy, I apologize, I wanted to upload it fast, bla, bla, bla...

As I said, I'm busy, so the code is "as it is", it needs a good cleaning, but I prefer uploading as it is now so you don't have to wait too much.

When I have some time I will upload uClibc, Busybox, the cross-compiler, etc...
The whole "thing" is about 2GB.
I think this will be usefull for someone. I've spent many hours learning how to make it work.

Let me know if you can compile it.

Auwia
21st June 2010, 12:46 AM
Hi nacho-g,
I compile your kernel with your kernel.config but with other buildbox and busybox .config.

My kernel boot, but I can't do telnet on it, How can I see my phone IP? Where is the error?

I used your IPs for ifconfig and for telnet.

Thanks,
Bye.

nacho-g
21st June 2010, 02:35 AM
Hi.
I don't remember exactly where the iface is set up. It showld be an init script with a line like this:
ifconfig eth0 up 192.168.2.1
Check the init scripts folder in /etc.
Now I'm on another PC, I'll check it at home an post here.

It was on /etc/inittab

::sysinit:/sbin/ifconfig usb0 192.168.9.1 netmask 255.255.255.0 broadcast 192.168.9.255 up

Auwia
21st June 2010, 09:34 PM
Hello,
my file does not contain that information, so I copied from your file.
I also recompiled busybox with your configuration file: busybox.config.
Now when I telnet I get connection refused.
Any suggestions?

Thanks,
Hello.

nacho-g
23rd June 2010, 05:37 AM
Is telnetd running?
in /etc/inittab it should be a line, after calling the init scripts, like this:

::sysinit:/usr/sbin/telnetd

Auwia
24th June 2010, 01:35 AM
Now I have a problem that you had in post #71:

# ifconfig usb0 up 192.168.9.100
# telnet 192.168.9.1
Trying 192.168.9.1...
Connected to 192.168.9.1.
Escape character is '^]'.
Trinity login: default
Connection closed by foreign host.

How do you risolve this other problem?

Thanks a lot for your patience.
Bye

nacho-g
28th June 2010, 06:43 PM
Did you compile telnetd with the stand alone option?
You may also try to use a different initrd, so you can be sure the kernel you compiled is working ok. If you don't have one i can post it.

Auwia
29th June 2010, 01:22 AM
Hi, this is my configuration for telnet:

CONFIG_TELNET=y
CONFIG_FEATURE_TELNET_TTYPE=y
CONFIG_FEATURE_TELNET_AUTOLOGIN=y
CONFIG_TELNETD=y
CONFIG_FEATURE_TELNETD_STANDALONE=y

I recompiled kernel and now I have:

Trying 192.168.9.1...
Connected to 192.168.9.1.
Escape character is '^]'.
Trinity login: default
Using fallback suid method
Connection closed by foreign host.

Connection is close very fast! grrrr.

Any ideas?

I make some initrd and all are compiled without errors...

bye.

tuksedra
6th July 2010, 11:09 AM
tried cat /proc/devices
$ cat /proc/devices
Character devices:
1 mem
2 pty
3 ttyp
4 /dev/vc/0
4 tty
5 /dev/tty
5 /dev/console
5 /dev/ptmx
7 vcs
10 misc
13 input
29 fb
89 i2c
108 ppp
128 ptm
136 pts
153 spi
204 s3c2410_serial
254 rtc

Block devices:
1 ramdisk
7 loop
179 mmc

is that the right mmc
but
$ cat /proc/partitions
major minor #blocks name

and
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 31244 36 31208 0% /tmp
$
mmc not appear here..???

nacho-g
8th July 2010, 07:10 AM
Hi.
I'm working with NAND.
I can mount a partition, but it seems to be empty, maybe jffs2 is the wrong filesystem. Anybody knows?

If I read directly from /dev/mtd6 i works ok with no errors.

Any idea?

$ mount -t jffs2 -o ro /dev/mtdblock6 /mnt
$ mount
rootfs on / type rootfs (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw)
tmpfs on /tmp type tmpfs (rw)
sysfs on /sys type sysfs (rw)
/dev/mtdblock6 on /mnt type jffs2 (ro)
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 31144 124 31020 0% /tmp
/dev/mtdblock6 10240 6656 3584 65% /mnt
$ ls /mnt
$ cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00020000 "IPL"
mtd1: 00040000 00020000 "SPL"
mtd2: 00040000 00020000 "WLe"
mtd3: 00040000 00020000 "mSplash"
mtd4: 00040000 00020000 "sSplash"
mtd5: 04000000 00020000 "OS"
mtd6: 00a00000 00020000 "ExtROM"
$ hexdump -C -n 400 /dev/mtd6
00000000 00 00 00 00 00 00 01 00 09 04 00 00 d8 02 00 00 |................|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 |................|
00000020 09 04 00 00 e8 02 00 00 50 1a 00 00 02 00 00 00 |........P.......|
00000030 00 00 00 00 00 00 00 00 40 13 00 00 fc 02 00 00 |........@.......|
00000040 00 00 00 00 00 00 00 00 40 16 00 00 2e 00 00 00 |........@.......|
00000050 00 00 00 00 00 00 00 00 a0 16 00 00 28 00 00 00 |............(...|
00000060 00 00 00 00 00 00 00 00 88 16 00 00 14 00 00 00 |................|
00000070 00 00 00 00 00 00 00 00 70 16 00 00 18 00 00 00 |........p.......|
00000080 00 00 00 00 00 00 00 00 c8 16 00 00 46 01 00 00 |............F...|
00000090 00 00 00 00 00 00 00 00 10 17 00 00 9a 00 00 00 |................|
000000a0 00 00 00 00 00 00 00 00 00 19 00 00 4e 01 00 00 |............N...|
000000b0 00 00 00 00 00 00 00 00 b0 17 00 00 4e 01 00 00 |............N...|
000000c0 00 00 00 00 00 00 00 00 c8 1c 00 00 8e 00 00 00 |................|
000000d0 00 00 00 00 00 00 00 00 58 1d 00 00 24 00 00 00 |........X...$...|
000000e0 00 00 00 00 00 00 00 00 58 1a 00 00 70 02 00 00 |........X...p...|
000000f0 00 00 00 00 00 00 00 00 04 00 43 00 45 00 55 00 |..........C.E.U.|
00000100 58 00 0c 00 48 00 49 00 5f 00 52 00 45 00 53 00 |X...H.I._.R.E.S.|
00000110 5f 00 41 00 57 00 41 00 52 00 45 00 0f 00 56 00 |_.A.W.A.R.E...V.|
00000120 53 00 5f 00 56 00 45 00 52 00 53 00 49 00 4f 00 |S._.V.E.R.S.I.O.|
00000130 4e 00 5f 00 49 00 4e 00 46 00 4f 00 00 00 00 00 |N._.I.N.F.O.....|
00000140 00 00 00 00 00 00 0b 01 20 00 00 00 90 00 4d 00 |........ .....M.|
00000150 65 00 6e 00 fa 00 00 00 00 00 c8 00 42 00 75 00 |e.n.........B.u.|
00000160 73 00 63 00 61 00 72 00 00 00 00 00 c9 00 43 00 |s.c.a.r.......C.|
00000170 f3 00 6d 00 6f 00 20 00 6c 00 6c 00 65 00 67 00 |..m.o. .l.l.e.g.|
00000180 61 00 72 00 00 00 00 00 cf 00 4d 00 69 00 20 00 |a.r.......M.i. .|
00000190

honof11
12th July 2010, 03:02 PM
news for android and p3600 ?
how can I install ?

Neo2SHYAlien
13th July 2010, 04:03 PM
hi last night compile kernel and boot from him. tonight i will try start root fs from openmoko, i know without drivers it's isnt so useful but i thing it is not bad base for testing. nacho-g thanks for kernel in my kernels missing too many options.

Auwia
14th July 2010, 10:16 AM
Hi Neo2SHYAlien,
can you telnet on trinity?

Neo2SHYAlien
14th July 2010, 11:59 AM
Hi Neo2SHYAlien,
can you telnet on trinity?

yeap with natch-g rootfs :) my phone is Hermes ;) but it's not so important

nacho-g
17th July 2010, 07:12 AM
hi last night compile kernel and boot from him. tonight i will try start root fs from openmoko, i know without drivers it's isnt so useful but i thing it is not bad base for testing. nacho-g thanks for kernel in my kernels missing too many options.

Hi. Is openmoko running on Trinity?
If you are using Hermes maybe you could add the keyboard driver. Look in the hermes.c file, i think it was there.

I'm working on SD driver. I found something wrong in the kernel I posted, the bufferctrl register is working wrong, but I don't know how to correct it. I'm working on the CPLD driver too, IRQs doesn't work ok. NAND: working ok but readonly.
I made a new rootfs with matchbox-desktop. You can run a terminal and use a virtual keyboard. It works very very well.
I added a bluetooth driver but didn't test it, it seems to have no errors. I will test it in a few days.

niklas809
20th July 2010, 05:15 AM
Interesting

Neo2SHYAlien
20th July 2010, 12:16 PM
Hi. Is openmoko running on Trinity?
If you are using Hermes maybe you could add the keyboard driver. Look in the hermes.c file, i think it was there.

I'm working on SD driver. I found something wrong in the kernel I posted, the bufferctrl register is working wrong, but I don't know how to correct it. I'm working on the CPLD driver too, IRQs doesn't work ok. NAND: working ok but readonly.
I made a new rootfs with matchbox-desktop. You can run a terminal and use a virtual keyboard. It works very very well.
I added a bluetooth driver but didn't test it, it seems to have no errors. I will test it in a few days.
Sorry for my delayed response but i have too much problems into my life :( Openmoko cant run but i cant remember errors :confused: I will try again to run it and will write the result but i thing the main problem is mounting of sd card. Nacho-g do u compile kernel with hermes support because when i try it, compiler return mi too many errors in hermes C files, after correcting of files compilation die generally.

nacho-g
21st July 2010, 07:09 AM
I didn't compile with the hermes option enabled. If you are using the kernel I uploaded, hermes.c isn't patched.
I attach a file, downloaded from the Hermes forum, uploaded by Schoolbert, It has a patch you can apply.
There will still be errors since after applying the same patch, for htctrinity.c I changed many things.
The best you could do is to port the trinity code to hermes and then add the keyboard driver, I think it is in the actual hermes.c file. It should work.

Neo2SHYAlien
21st July 2010, 09:55 AM
I will be grateful for clean hemes.c. I read you C files and see very differences between our files. Maybe your idea is best option for now. I reading code and i see u are pach everything and see many changes after patchset.

Auwia
21st July 2010, 02:56 PM
Hi.
I don't remember exactly where the iface is set up. It showld be an init script with a line like this:
ifconfig eth0 up 192.168.2.1
Check the init scripts folder in /etc.
Now I'm on another PC, I'll check it at home an post here.

It was on /etc/inittab

::sysinit:/sbin/ifconfig usb0 192.168.9.1 netmask 255.255.255.0 broadcast 192.168.9.255 up
Hi necho,
I see in your inittab file but I don't see this configuration, where is your telnetd configuration?

I don't telnet on my trinity!!! :( :(

Neo2SHYAlien
22nd July 2010, 12:06 AM
just try to add nacho-g line in /etc/inittab before compilation and test for telnet connection ;)

Auwia
22nd July 2010, 09:56 AM
just try to add nacho-g line in /etc/inittab before compilation and test for telnet connection ;)
I do it, but result is the same! :(

nacho-g
22nd July 2010, 04:26 PM
I do it, but result is the same! :(

in the inittab file you should have this lines

null::sysinit:/sbin/ifconfig lo 127.0.0.1 up
null::sysinit:/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
null::sysinit:/sbin/ifconfig usb0 192.168.9.1 netmask 255.255.255.0 broadcast 192.168.9.255 up

# remote login
::sysinit:/usr/sbin/telnetd

check if /usr/sbin/telnetd exists.
When you compile busybox, you need this:

CONFIG_TELNETD=y
CONFIG_FEATURE_TELNETD_STANDALONE=y

nacho-g
27th July 2010, 12:01 AM
hi.
I'm working with the wifi driver. It seems to work OK, but i can't upload the firmware. Any ideas?
Tried different locations for the firmware image but don't know how to provide it. Wifi is turning on OK.

[ 11.385000] htctrinity_wlan_init: acx-mem platform_device_register
[ 15.005000] acx: this driver is still EXPERIMENTAL
[ 15.005000] acx: reading README file and/or Craig's HOWTO is recommended, visit http://acx100.sf.net in case of further questions/discussion
[ 15.005000] acx: compiled to use 32bit I/O access. I/O timing issues might occur, such as non-working firmware upload. Report them
[ 15.060000] acx: found ACX100-based wireless network card
[ 75.100000] acx: firmware image 'WLANGEN.BIN' was not provided. Check your hotplug scripts
[ 75.105000] acx: reset_dev() FAILED
[ 75.110000] acx-mem: probe of acx-mem.0 failed with error -5

Neo2SHYAlien
27th July 2010, 06:24 PM
Great news nacho. If u wanna make your account in http://www.4shared.com/ or if u want something more diferent I will up ftp on my server. I have personal server how if 24/7 online :)

bemme
29th July 2010, 11:09 AM
Hello nacho,
i want download to try linux on my htc p3600
but the rapidshare link is broken.
rapidshare. com/files/341670045/ rootfs.arm.cpio.gz.html
Can you uploada new files
thanks for all :)

destruct0r
29th July 2010, 11:47 AM
http://nofs.by/rootfs.arm.cpio.gz

bemme
29th July 2010, 12:48 PM
thanks destruct0r
now i try

bemme
29th July 2010, 02:52 PM
i have a problem,

if i run harnet.exe with default.txt initrd.img zImage
with default.txt
set cmdline "debug root=/dev/ram0 rw"
set KERNEL zImage
set initrd initrd.img
boot

i have a shell login

but if i use istruction #85 using default.txt zImage and rootfs.arm.cpio.gz
where default.txt zImage are unzip from kernel.zip post #85
with default.txt
set cmdline "debug root=/dev/ram0 rw"
set KERNEL zImage
set initrd rootfs.arm.cpio.gz
#set initrd initrd.img
#set initrd initrd.gz
boot

i have this error result

No filesystem could mount root, tried: ext2 vfat
kernel panic - Unable to mount root fs on unknowb-block(1,0)

bemme
29th July 2010, 04:37 PM
problem resolved with new download of rootfs.arm.cpio.gz

now i have the shell trinity login:
:) thanks

nacho-g
30th July 2010, 04:33 AM
Sorry for being late. Here (http://www.4shared.com/file/u54MlU7D/rootfscpio.html) you can download my latest fs. I also attach my latest kernel. You will find lots of dmesg outputs, maybe annoying. There are the ATI registers values for debugging the SD driver. It is NOT working.
When booting, matchbox should start automatically.

Enjoy and tell me how it works.

destruct0r
30th July 2010, 09:20 AM
It really works! fast, simple, with console&linux utils. Thanks - waiting for continue ;)


HW keys are doesn't working :(

Touchscreen at right side gives incorrect response - how to calibrate screen? ts_calibrate doesn't work correctly

nacho-g
30th July 2010, 04:37 PM
It really works! fast, simple, with console&linux utils. Thanks - waiting for continue ;)


HW keys are doesn't working :(

Touchscreen at right side gives incorrect response - how to calibrate screen? ts_calibrate doesn't work correctly

You have to kill Xfbdev and then run ts_calibrate, but changes to /etc/tsconf wil be volatile. You should save the file and then update in the rootfs.cpio.gz file.
Side keys work, but i don't know how to use them in matchbox. If someone knows or has an idea I will update it.

cat /dev/input/event1

The front keypad is not working because something isn't working on the cpld driver, i'm working there. IRQ EINT1 isn't working.

destruct0r
30th July 2010, 11:20 PM
Thanks - much better!

tuksedra
1st August 2010, 09:44 AM
found that eten use sd checkout default-sdcard.txt on here

http://www.handhelds.org/moin/moin.cgi/EtenG500Downloads

on nacho' kernel i tried cat /proc/devices gives mmc 179

maybe anyone can look at this?..
http://www.handhelds.org/moin/moin.cgi/EtenG500Status

nacho-g
2nd August 2010, 02:19 AM
found that eten use sd checkout default-sdcard.txt on here

http://www.handhelds.org/moin/moin.cgi/EtenG500Downloads

on nacho' kernel i tried cat /proc/devices gives mmc 179

maybe anyone can look at this?..
http://www.handhelds.org/moin/moin.cgi/EtenG500Status

eten uses the mci driver for the SD. The SD is connected to SDIO. On Trinity, SDIO is used by the wi-fi chip, SD is driven by ATIW driver.

You can check it on haret.

first, clear the mmutrace var.
clearvar mmutrace

for SD
addlist mmutrace 0x4c000000 3*1024*1 # PHYS=0x100000
wir 60

for Wi-fi
addlist mmutrace 0xb6a00000 0x1000
wir 60

you will get something like this:
002.540 039e0f08: e19330b1(ldrh) # 4c202044==00000300 IntMaskBuffer

if you use haret function to see wich dll is at 0x039e0f08, you will find it is the SD.

tuksedra
3rd August 2010, 05:20 PM
uuuu.. looks like its gonna break my head... but at least you had it figured..

kingshan
4th August 2010, 04:41 PM
hi master....

looking forward, for your success....
coz im just a trinity user...
I also do not have any experience like all of you in developing and researching this...

I will watch...

Neo2SHYAlien
4th August 2010, 06:24 PM
nacho do u have any of this errors before http://pastebin.com/nMeU63t1 it's is from try to compile zImage with hermes support. Most strange errors are in rows 75-114. I see error is in pins initializer but we have very similar code http://pastebin.com/U6ZEPeEE . Any ideas :confused:
ps My prioblem isn't in hermes.c file, i find diferent hermes.c from hh kernel and the problem repeat again.

nacho-g
5th August 2010, 09:39 PM
No, I didn't.
I think some header file is missing, like htc-egpio.h, or it is another version.
Do you have this line in tour htchermes.c file?

#include <linux/mfd/htc-egpio.h>

Check when you compile if some .h file isn't being included.

The clue is HTC_EGPIO_TYPE_OUTPUT, declared in /include/linux/mfd/htc-egpio.h
The original file can be founded here (http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=blob_plain;f=include/linux/mfd/htc-egpio.h;hb=work).

Respect the ATIW problem you should have something like this in a header file included in htchermes.c

#define IRQ_NR_HTCHERMES_ATIW_IRQ IRQ_EINT5

But again, there is another include missing/wrong because the other errors, like if #include <linux/mfd/w228x_base.h> was missing too.
As refference I attach all includes from htctrinity.c so you can compare.
If you can't make it work post again and I will help. I think you will make it work ok.

Neo2SHYAlien
7th August 2010, 11:09 AM
thanks for advise nacho :) main problem was in me :P i download again clеan 2.6.23.hh20 kernel apply patches again and compilation finish fine :) boot finish fine and device work normal

tuksedra
6th September 2010, 06:31 AM
is it the problem still sd c ard driver nach? sure its not my thing to make device driver but anyway i wan to wish all muslims happy lailatul qadr happy eid and happy holiday!!!

crashnet
19th September 2010, 11:29 AM
Interesting

bally3
24th September 2010, 03:24 PM
Interesting

wow!

So much progress from a project that seemed dead in the water a while back.. I've still got my hermes so if you can let me know whats needed I'll see what can be done to get people to help. :)

emwu88
10th October 2010, 02:50 PM
hi,
how i can run X?
i try many options, but i always get this error:

"
$ ./startx
Using fallback suid method
Using fallback suid method
matchbox-panel: failed to open displaymatchbox-desktop: unable to open display !
matchbox: can't open display! check your DISPLAY variable.
$
Fatal server error:
LinuxInit: Server must be suid root
"

destruct0r
12th October 2010, 06:54 AM
hxxp://forum.xda-developers.com/showpost.php?p=5467184&postcount=85

emwu88
12th October 2010, 02:18 PM
thx,
i found this 'magic' command :)

login:default
$su
$cd /
$./startx

Is any tutorial to make own kernel image, and rootfs? or something like a 'kitchen' in windows mobile??

destruct0r
12th October 2010, 09:44 PM
None. Edit rootfs manually, make your own kernel by hands. U must read all thread for "howto"

mageta90
26th December 2010, 06:30 AM
hi!!!

happy Xmas to you all!! =)

can anyone make the point of situation?? thanks!!

N'Rique
2nd January 2011, 12:17 AM
... as a 2nd boot option?

Greetings.

Jelmertjuhh
20th March 2011, 05:38 PM
Hello,

I found this site about porting android for the mini2440 device.
The samsung processor in this device (S3C2410 - 400MHz) is almost the same as the CPU of the Trinity (S3C2442A - 400MHz).
Also the RAM of this device is 64MB, and the mini2440 can run android.
Maybe someone can take a look and get this work for the Trinity?

Here is the link: https://sites.google.com/site/belina76/android-booting

Sorry for my bad English, i'm dutch.

Jelmer.

nacho-g
14th April 2011, 08:26 AM
Hi.
I was able to boot Trinity with kernel 2.6.38.2. I ported all from my old kernel. I did this because in 2.6.38.2 there is support for the TIWLAN1251 using the SDIO interface, so I'm working on this.
I was able to get the SDIO interface working, located at 0x5a000000, then I passed vendor information to the driver and the wlan driver recognized the chip. I have working the power up and down for wireless and the driver loads the firmware and calibration file ok, I had to compile it in the kernel because i don't knoy how to load it, but it works. The problem is that after loading the calibration file I get SDIO write errors -123 and -22, if someone know what they mean please tell me. Another thing is the CPLD driver, it works fine excepts for IRQS, I can't get them working.

nacho@bt:~$ telnet 192.168.9.1
Trying 192.168.9.1...
Connected to 192.168.9.1.
Escape character is '^]'.

Trinity login: default
$ su
$ dmesg
[ 0.000000] Linux version 2.6.38.2+ (root@bt) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #339 Thu Apr 14 02:55:16 ART 2011
[ 0.000000] CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: HTC Trinity
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] CPU S3C2442 (id 0x32440aaa)
[ 0.000000] S3C24XX Clocks, Copyright 2004 Simtec Electronics
[ 0.000000] S3C244X: core 399.642 MHz, memory 99.910 MHz, peripheral 49.955 MHz
[ 0.000000] CLOCK: Slow mode (2.116 MHz), fast, MPLL on, UPLL on
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] free_area_init_node: node 0, pgdat c0836628, node_mem_map c0855000
[ 0.000000] Normal zone: 128 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16256 pages, LIFO batch:3
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: root=/dev/ram0 init=/init noinitrd
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 64MB = 64MB total
[ 0.000000] Memory: 56404k/56404k available, 9132k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xc4800000 - 0xf6000000 ( 792 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .init : 0xc0008000 - 0xc0479000 (4548 kB)
[ 0.000000] .text : 0xc0479000 - 0xc0819404 (3714 kB)
[ 0.000000] .data : 0xc081a000 - 0xc0836ce0 ( 116 kB)
[ 0.000000] NR_IRQS:100
[ 0.000000] irq: clearing pending ext status 00002000
[ 0.000000] irq: clearing pending status 00004000
[ 0.000000] irq: clearing pending status 00000100
[ 0.000000] irq: clearing pending status 00000020
[ 0.000000] irq: clearing subpending status 00000092
[ 0.000000] timer tcon=00510109, tcnt a29c, tcfg 00000203,00001030, usec 00001ebf
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty0] enabled
[ 0.005000] Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
[ 0.100000] pid_max: default: 32768 minimum: 301
[ 0.100000] Mount-cache hash table entries: 512
[ 0.100000] CPU: Testing write buffer coherency: ok
[ 0.105000] NET: Registered protocol family 16
[ 0.110000] htctrinity-gpio: Unable to claim irq 85; error -22
[ 0.110000] S3C2442: Initialising architecture
[ 0.110000] S3C24XX DMA Driver, Copyright 2003-2006 Simtec Electronics
[ 0.110000] DMA channel 0 at c4808000, irq 33
[ 0.110000] DMA channel 1 at c4808040, irq 34
[ 0.110000] DMA channel 2 at c4808080, irq 35
[ 0.110000] DMA channel 3 at c48080c0, irq 36
[ 0.110000] S3C244X: Clock Support, DVS off
[ 0.110000] s3c-adc s3c24xx-adc: attached adc driver
[ 0.120000] bio: create slab <bio-0> at 0
[ 0.120000] NET: Registered protocol family 23
[ 0.125000] Bluetooth: Core ver 2.15
[ 0.125000] NET: Registered protocol family 31
[ 0.125000] Bluetooth: HCI device and connection manager initialized
[ 0.125000] Bluetooth: HCI socket layer initialized
[ 0.125000] cfg80211: Calling CRDA to update world regulatory domain
[ 0.145000] NET: Registered protocol family 2
[ 0.145000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.150000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.150000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.150000] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.150000] TCP reno registered
[ 0.150000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.150000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.150000] NET: Registered protocol family 1
[ 0.420000] vsfb: framebuffer at 0x10800000, mapped to 0xc4840000, size 150k
[ 0.425000] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.425000] JFS: nTxBlock = 440, nTxLock = 3525
[ 0.425000] msgmni has been set to 110
[ 0.430000] io scheduler noop registered
[ 0.430000] io scheduler deadline registered
[ 0.430000] io scheduler cfq registered (default)
[ 0.430000] Console: switching to colour frame buffer device 60x53
[ 1.085000] s3c2440-uart.0: ttySAC0 at MMIO 0x50000000 (irq = 70) is a S3C2440
[ 1.090000] s3c2440-uart.1: ttySAC1 at MMIO 0x50004000 (irq = 73) is a S3C2440
[ 1.090000] s3c2440-uart.2: ttySAC2 at MMIO 0x50008000 (irq = 76) is a S3C2440
[ 1.110000] brd: module loaded
[ 1.115000] loop: module loaded
[ 1.115000] S3C24XX NAND Driver, (c) 2004 Simtec Electronics
[ 1.120000] s3c2410_nand_probe(c0822000)
[ 1.120000] s3c24xx-nand s3c2440-nand: mapped registers at c4c00000
[ 1.120000] result 0 from 99910, 0
[ 1.120000] result 3 from 99910, 25
[ 1.120000] result 5 from 99910, 50
[ 1.120000] s3c24xx-nand s3c2440-nand: Tacls=1, 10ns Twrph0=3 30ns, Twrph1=5 50ns
[ 1.120000] s3c24xx-nand s3c2440-nand: NF_CONF is 0x824c
[ 1.120000] initialising set 0 (c3878400, info c33c2620)
[ 1.120000] s3c24xx-nand s3c2440-nand: NAND soft ECC
[ 1.120000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xa1 (Samsung NAND 128MiB 1,8V 8-bit)
[ 1.120000] s3c24xx-nand s3c2440-nand: chip c3878580 => page shift 11
[ 1.170000] initialised ok
[ 1.170000] PPP generic driver version 2.4.2
[ 1.175000] PPP Deflate Compression module registered
[ 1.185000] PPP BSD Compression module registered
[ 1.190000] s3c2410_udc: debugfs dir creation failed -19
[ 1.205000] s3c2440-usbgadget s3c2440-usbgadget: S3C2440: increasing FIFO to 128 bytes
[ 1.210000] USB cmd connect
[ 1.215000] g_ether gadget: using random self ethernet address
[ 1.220000] g_ether gadget: using random host ethernet address
[ 1.225000] usb0: MAC 36:a9:45:fa:aa:77
[ 1.230000] usb0: HOST MAC 82:11:fb:9c:71:ff
[ 1.235000] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[ 1.240000] g_ether gadget: g_ether ready
[ 1.245000] USB cmd disconnect
[ 1.250000] mousedev: PS/2 mouse device common for all mice
[ 1.255000] input: gpio-keys as /devices/platform/gpio-keys.0/input/input0
[ 1.265000] samsung-ts s3c2440-ts: driver attached, registering input device
[ 1.270000] input: S3C24XX TouchScreen as /devices/virtual/input/input1
[ 1.280000] S3C24XX RTC, (c) 2004,2006 Simtec Electronics
[ 1.285000] s3c-rtc s3c2410-rtc: rtc disabled, re-enabling
[ 1.295000] s3c-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
[ 1.810000] s3c-sdi s3c2440-sdi: powered down.
[ 1.815000] s3c-sdi s3c2440-sdi: mmc0 - using pio, sw SDIO IRQ
[ 1.820000] Registered led device: trinity::vibra
[ 1.820000] Registered led device: trinity::phone_bl
[ 1.820000] oprofile: hardware counters not available
[ 1.825000] oprofile: using timer interrupt.
[ 1.830000] TCP cubic registered
[ 1.835000] NET: Registered protocol family 17
[ 1.840000] IrCOMM protocol (Dag Brattli)
[ 1.945000] s3c-rtc s3c2410-rtc: setting system clock to 2031-04-14 02:56:27 UTC (1933901787)
[ 1.950000] Freeing init memory: 4548K
[ 2.595000] s3c-sdi s3c2440-sdi: running at 0kHz (requested: 0kHz).
[ 3.175000] s3c-sdi s3c2440-sdi: running at 399kHz (requested: 400kHz).
[ 3.755000] s3c-sdi s3c2440-sdi: running at 399kHz (requested: 400kHz).
[ 4.325000] s3c-sdi s3c2440-sdi: running at 399kHz (requested: 400kHz).
[ 4.335000] mmc0: card claims to support voltages below the defined range. These will be ignored.
[ 4.900000] s3c-sdi s3c2440-sdi: running at 399kHz (requested: 400kHz).
[ 4.905000] SDIO WLAN TI1251 T R I N I T Y
[ 5.470000] s3c-sdi s3c2440-sdi: running at 399kHz (requested: 400kHz).
[ 6.035000] s3c-sdi s3c2440-sdi: running at 399kHz (requested: 400kHz).
[ 6.040000] mmc0: new SDIO card at address 0001
[ 6.050000] wl1251: using SDIO interrupt
[ 6.075000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 6.080000] wl1251: loaded
[ 6.085000] wl1251: initialized
[ 6.845000] g_ether gadget: full speed config #1: CDC Ethernet (ECM)
$ cat /proc/iomem
08000000-08001000 : htc-egpio
10800000-108257ff : vsfb
30000000-33ffffff : System RAM
30479000-30819403 : Kernel text
3081a000-30854aeb : Kernel data
49000000-490000ff : s3c2410-ohci
4e000000-4e100000 : s3c2440-nand
4e000000-4e100000 : s3c2440-nand
50000000-50003fff : s3c2440-uart.0
50000000-500000ff : s3c2440-uart
50004000-50007fff : s3c2440-uart.1
50004000-500040ff : s3c2440-uart
50008000-5000bfff : s3c2440-uart.2
50008000-500080ff : s3c2440-uart
52000000-520fffff : s3c2440-usbgadget
52000000-520fffff : s3c2410_udc
54000000-54000fff : s3c2440-i2c
55000000-550fffff : s3c24xx-iis
57000000-570000ff : s3c2410-rtc
57000000-570000ff : s3c2410-rtc
58000000-580fffff : s3c2440-ts
58000000-580fffff : s3c24xx-adc
59000000-5900001f : s3c2410-spi.0
59000020-5900003f : s3c2410-spi.1
5a000000-5a0fffff : s3c2440-sdi
5a000000-5a0fffff : s3c2440-sdi

Jelmertjuhh
17th April 2011, 08:42 PM
Hi.
I was able to boot Trinity with kernel 2.6.38.2. I ported all from my old kernel. I did this because in 2.6.38.2 there is support for the TIWLAN1251 using the SDIO interface, so I'm working on this.
I was able to get the SDIO interface working, located at 0x5a000000, then I passed vendor information to the driver and the wlan driver recognized the chip. I have working the power up and down for wireless and the driver loads the firmware and calibration file ok, I had to compile it in the kernel because i don't knoy how to load it, but it works. The problem is that after loading the calibration file I get SDIO write errors -123 and -22, if someone know what they mean please tell me. Another thing is the CPLD driver, it works fine excepts for IRQS, I can't get them working.

Looks good!

Auwia
18th April 2011, 12:44 PM
Hi.
I was able to boot Trinity with kernel 2.6.38.2. I ported all from my old kernel. I did this because in 2.6.38.2 there is support for the TIWLAN1251 using the SDIO interface, so I'm working on this.
I was able to get the SDIO interface working, located at 0x5a000000, then I passed vendor information to the driver and the wlan driver recognized the chip. I have working the power up and down for wireless and the driver loads the firmware and calibration file ok, I had to compile it in the kernel because i don't knoy how to load it, but it works. The problem is that after loading the calibration file I get SDIO write errors -123 and -22, if someone know what they mean please tell me. Another thing is the CPLD driver, it works fine excepts for IRQS, I can't get them working.

nacho@bt:~$ telnet 192.168.9.1
Trying 192.168.9.1...
Connected to 192.168.9.1.
Escape character is '^]'.

Trinity login: default
$ su
$ dmesg
[ 0.000000] Linux version 2.6.38.2+ (root@bt) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #339 Thu Apr 14 02:55:16 ART 2011
[ 0.000000] CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: HTC Trinity
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] CPU S3C2442 (id 0x32440aaa)
[ 0.000000] S3C24XX Clocks, Copyright 2004 Simtec Electronics
[ 0.000000] S3C244X: core 399.642 MHz, memory 99.910 MHz, peripheral 49.955 MHz
[ 0.000000] CLOCK: Slow mode (2.116 MHz), fast, MPLL on, UPLL on
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] free_area_init_node: node 0, pgdat c0836628, node_mem_map c0855000
[ 0.000000] Normal zone: 128 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16256 pages, LIFO batch:3
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: root=/dev/ram0 init=/init noinitrd
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 64MB = 64MB total
[ 0.000000] Memory: 56404k/56404k available, 9132k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xc4800000 - 0xf6000000 ( 792 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .init : 0xc0008000 - 0xc0479000 (4548 kB)
[ 0.000000] .text : 0xc0479000 - 0xc0819404 (3714 kB)
[ 0.000000] .data : 0xc081a000 - 0xc0836ce0 ( 116 kB)
[ 0.000000] NR_IRQS:100
[ 0.000000] irq: clearing pending ext status 00002000
[ 0.000000] irq: clearing pending status 00004000
[ 0.000000] irq: clearing pending status 00000100
[ 0.000000] irq: clearing pending status 00000020
[ 0.000000] irq: clearing subpending status 00000092
[ 0.000000] timer tcon=00510109, tcnt a29c, tcfg 00000203,00001030, usec 00001ebf
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty0] enabled
[ 0.005000] Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
[ 0.100000] pid_max: default: 32768 minimum: 301
[ 0.100000] Mount-cache hash table entries: 512
[ 0.100000] CPU: Testing write buffer coherency: ok
[ 0.105000] NET: Registered protocol family 16
[ 0.110000] htctrinity-gpio: Unable to claim irq 85; error -22
[ 0.110000] S3C2442: Initialising architecture
[ 0.110000] S3C24XX DMA Driver, Copyright 2003-2006 Simtec Electronics
[ 0.110000] DMA channel 0 at c4808000, irq 33
[ 0.110000] DMA channel 1 at c4808040, irq 34
[ 0.110000] DMA channel 2 at c4808080, irq 35
[ 0.110000] DMA channel 3 at c48080c0, irq 36
[ 0.110000] S3C244X: Clock Support, DVS off
[ 0.110000] s3c-adc s3c24xx-adc: attached adc driver
[ 0.120000] bio: create slab <bio-0> at 0
[ 0.120000] NET: Registered protocol family 23
[ 0.125000] Bluetooth: Core ver 2.15
[ 0.125000] NET: Registered protocol family 31
[ 0.125000] Bluetooth: HCI device and connection manager initialized
[ 0.125000] Bluetooth: HCI socket layer initialized
[ 0.125000] cfg80211: Calling CRDA to update world regulatory domain
[ 0.145000] NET: Registered protocol family 2
[ 0.145000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.150000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.150000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.150000] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.150000] TCP reno registered
[ 0.150000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.150000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.150000] NET: Registered protocol family 1
[ 0.420000] vsfb: framebuffer at 0x10800000, mapped to 0xc4840000, size 150k
[ 0.425000] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.425000] JFS: nTxBlock = 440, nTxLock = 3525
[ 0.425000] msgmni has been set to 110
[ 0.430000] io scheduler noop registered
[ 0.430000] io scheduler deadline registered
[ 0.430000] io scheduler cfq registered (default)
[ 0.430000] Console: switching to colour frame buffer device 60x53
[ 1.085000] s3c2440-uart.0: ttySAC0 at MMIO 0x50000000 (irq = 70) is a S3C2440
[ 1.090000] s3c2440-uart.1: ttySAC1 at MMIO 0x50004000 (irq = 73) is a S3C2440
[ 1.090000] s3c2440-uart.2: ttySAC2 at MMIO 0x50008000 (irq = 76) is a S3C2440
[ 1.110000] brd: module loaded
[ 1.115000] loop: module loaded
[ 1.115000] S3C24XX NAND Driver, (c) 2004 Simtec Electronics
[ 1.120000] s3c2410_nand_probe(c0822000)
[ 1.120000] s3c24xx-nand s3c2440-nand: mapped registers at c4c00000
[ 1.120000] result 0 from 99910, 0
[ 1.120000] result 3 from 99910, 25
[ 1.120000] result 5 from 99910, 50
[ 1.120000] s3c24xx-nand s3c2440-nand: Tacls=1, 10ns Twrph0=3 30ns, Twrph1=5 50ns
[ 1.120000] s3c24xx-nand s3c2440-nand: NF_CONF is 0x824c
[ 1.120000] initialising set 0 (c3878400, info c33c2620)
[ 1.120000] s3c24xx-nand s3c2440-nand: NAND soft ECC
[ 1.120000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xa1 (Samsung NAND 128MiB 1,8V 8-bit)
[ 1.120000] s3c24xx-nand s3c2440-nand: chip c3878580 => page shift 11
[ 1.170000] initialised ok
[ 1.170000] PPP generic driver version 2.4.2
[ 1.175000] PPP Deflate Compression module registered
[ 1.185000] PPP BSD Compression module registered
[ 1.190000] s3c2410_udc: debugfs dir creation failed -19
[ 1.205000] s3c2440-usbgadget s3c2440-usbgadget: S3C2440: increasing FIFO to 128 bytes
[ 1.210000] USB cmd connect
[ 1.215000] g_ether gadget: using random self ethernet address
[ 1.220000] g_ether gadget: using random host ethernet address
[ 1.225000] usb0: MAC 36:a9:45:fa:aa:77
[ 1.230000] usb0: HOST MAC 82:11:fb:9c:71:ff
[ 1.235000] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[ 1.240000] g_ether gadget: g_ether ready
[ 1.245000] USB cmd disconnect
[ 1.250000] mousedev: PS/2 mouse device common for all mice
[ 1.255000] input: gpio-keys as /devices/platform/gpio-keys.0/input/input0
[ 1.265000] samsung-ts s3c2440-ts: driver attached, registering input device
[ 1.270000] input: S3C24XX TouchScreen as /devices/virtual/input/input1
[ 1.280000] S3C24XX RTC, (c) 2004,2006 Simtec Electronics
[ 1.285000] s3c-rtc s3c2410-rtc: rtc disabled, re-enabling
[ 1.295000] s3c-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
[ 1.810000] s3c-sdi s3c2440-sdi: powered down.
[ 1.815000] s3c-sdi s3c2440-sdi: mmc0 - using pio, sw SDIO IRQ
[ 1.820000] Registered led device: trinity::vibra
[ 1.820000] Registered led device: trinity::phone_bl
[ 1.820000] oprofile: hardware counters not available
[ 1.825000] oprofile: using timer interrupt.
[ 1.830000] TCP cubic registered
[ 1.835000] NET: Registered protocol family 17
[ 1.840000] IrCOMM protocol (Dag Brattli)
[ 1.945000] s3c-rtc s3c2410-rtc: setting system clock to 2031-04-14 02:56:27 UTC (1933901787)
[ 1.950000] Freeing init memory: 4548K
[ 2.595000] s3c-sdi s3c2440-sdi: running at 0kHz (requested: 0kHz).
[ 3.175000] s3c-sdi s3c2440-sdi: running at 399kHz (requested: 400kHz).
[ 3.755000] s3c-sdi s3c2440-sdi: running at 399kHz (requested: 400kHz).
[ 4.325000] s3c-sdi s3c2440-sdi: running at 399kHz (requested: 400kHz).
[ 4.335000] mmc0: card claims to support voltages below the defined range. These will be ignored.
[ 4.900000] s3c-sdi s3c2440-sdi: running at 399kHz (requested: 400kHz).
[ 4.905000] SDIO WLAN TI1251 T R I N I T Y
[ 5.470000] s3c-sdi s3c2440-sdi: running at 399kHz (requested: 400kHz).
[ 6.035000] s3c-sdi s3c2440-sdi: running at 399kHz (requested: 400kHz).
[ 6.040000] mmc0: new SDIO card at address 0001
[ 6.050000] wl1251: using SDIO interrupt
[ 6.075000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 6.080000] wl1251: loaded
[ 6.085000] wl1251: initialized
[ 6.845000] g_ether gadget: full speed config #1: CDC Ethernet (ECM)
$ cat /proc/iomem
08000000-08001000 : htc-egpio
10800000-108257ff : vsfb
30000000-33ffffff : System RAM
30479000-30819403 : Kernel text
3081a000-30854aeb : Kernel data
49000000-490000ff : s3c2410-ohci
4e000000-4e100000 : s3c2440-nand
4e000000-4e100000 : s3c2440-nand
50000000-50003fff : s3c2440-uart.0
50000000-500000ff : s3c2440-uart
50004000-50007fff : s3c2440-uart.1
50004000-500040ff : s3c2440-uart
50008000-5000bfff : s3c2440-uart.2
50008000-500080ff : s3c2440-uart
52000000-520fffff : s3c2440-usbgadget
52000000-520fffff : s3c2410_udc
54000000-54000fff : s3c2440-i2c
55000000-550fffff : s3c24xx-iis
57000000-570000ff : s3c2410-rtc
57000000-570000ff : s3c2410-rtc
58000000-580fffff : s3c2440-ts
58000000-580fffff : s3c24xx-adc
59000000-5900001f : s3c2410-spi.0
59000020-5900003f : s3c2410-spi.1
5a000000-5a0fffff : s3c2440-sdi
5a000000-5a0fffff : s3c2440-sdi
Hi nacho-g,
I see MMC is ready now, can yuo post all source? - kernel too.

Tnx,
bye.

Swoze
18th April 2011, 10:36 PM
With this is there any chance of android on trinity?

nacho-g
19th April 2011, 01:09 AM
Hi nacho-g,
I see MMC is ready now, can yuo post all source? - kernel too.

Tnx,
bye.

MMC isn't working, you see mmc0 but it is the wlan chip using the SDIO interface, mmc uses ATI.

destruct0r
20th April 2011, 07:47 PM
Hi nacho-g. Please upload the compiled kernel and rootfs for the test. If it needs, i am reupload this to my site

steliosthem
25th April 2011, 12:57 AM
Keep up the good work guys! I can understand only a few of what you are doing but I want to encourage you to move on so we can finally see that old trusted device running android or at least another distribution of linux.

nacho-g
29th April 2011, 03:33 AM
Hi nacho-g. Please upload the compiled kernel and rootfs for the test. If it needs, i am reupload this to my site

For now I can't upload it, because the kernel is compiled with the firmware for wlan in, and it has copyright. Once I manage to provide the firmware and calibration file by the filesystem I will uploade it.
I think SD will not work until we make CPLD interrupts work with the EGPIO driver. SD uses the third interrupt line.
The problem is that 0 interrupts are generated, I can't understand how they work.

Maybe this (http://lkml.indiana.edu/hypermail/linux/kernel/0906.0/02150.html)will help once we have the SD interrupt working.

nacho-g
29th April 2011, 04:48 PM
I've got 4 CPLD interrupts working.

Jog wheel UP
Jog wheel Down
Front keypad (Shared by soft keys, send, end, win and ok)
Joystik (Shared by up, down, right, left and center)

This work like this

IRQS IRQ SRCPND : CPLD-IRQ(1)=1
IRQS IRQ INTPND : CPLD-IRQ(129)=1
IRQS GPFDAT: GPF1(449)=0
80053e78: e1d320b4(ldrh) # cpldC==00000810
80053f44: 11c320b4(strh) # cpldC =00000810
IRQS IRQ SRCPND : CPLD-IRQ(1)=0
IRQS IRQ INTMSK (65)=297f3e46
IRQS IRQ INTPND : CPLD-IRQ(129)=0
IRQS GPFDAT: GPF1(449)=1
80053f44: 11c320b4(strh) # cpldC =00000801
80053f44: 11c320b4(strh) # cpldC =00000840

I modified the htc-egpio driver to write 0x801 and 0x840 and made EINT1 trigg again. I also modified ir to use both rising and falling edges.

The SD interrupt is the second bit at 0x08000004 (CPLD REG 2), but it works different.
If someone has an idea how it works I try.
Here's what i obtained using haret.

010.350 IRQS IRQ SRCPND : CPLD-IRQ(1)=1
010.350 IRQS IRQ INTPND : CPLD-IRQ(129)=1
010.350 IRQS GPFDAT: GPF1(449)=0 GPF3(451)=0
010.350 80053e78: e1d320b4(ldrh) # cpldC==00000802
010.350 80053e78: e1d320b4(ldrh) # cpldC==00009802
010.350 80053e78: e1d320b4(ldrh) # cpldC==00000802
010.350 80053e78: e1d320b4(ldrh) # cpldC==00000802
010.350 80053e78: e1d320b4(ldrh) # cpldC==00000802
010.350 80053f44: 11c320b4(strh) # cpldC =00000802

010.350 IRQS IRQ INTMSK (65)=297f3e4e
010.350 IRQS IRQ INTPND : CPLD-IRQ(129)=0
010.350 IRQS GPFDAT: GPF1(449)=1 GPF3(451)=1
010.350 IRQS IRQ INTMSK (65)=297f3e4c
010.350 IRQS IRQ INTPND : CPLD-IRQ(129)=1
010.350 80053e78: e1d320b4(ldrh) # cpldC==00000800
010.350 80053e78: e1d320b4(ldrh) # cpldC==00000800
010.350 80053e78: e1d320b4(ldrh) # cpldC==00000800
010.350 80053e78: e1d320b4(ldrh) # cpldC==00000800
010.350 80053e78: e1d320b4(ldrh) # cpldC==00000800
010.350 80053e78: e1d320b4(ldrh) # cpldC==00000800
010.350 80053f44: 11c320b4(strh) # cpldC =00000801
010.350 80053f44: 11c320b4(strh) # cpldC =00000802
010.350 80053f44: 11c320b4(strh) # cpldC =00000808
010.350 80053f44: 11c320b4(strh) # cpldC =00000810
010.350 80053f44: 11c320b4(strh) # cpldC =00000820
010.350 80053f44: 11c320b4(strh) # cpldC =00000840
010.350 80053f44: 11c320b4(strh) # cpldC =00000880
010.350 IRQS GPFDAT: GPF1(449)=0 GPF3(451)=0
010.350 80053e78: e1d320b4(ldrh) # cpldC==00000802
010.350 80053e78: e1d320b4(ldrh) # cpldC==00000802
010.350 80053e78: e1d320b4(ldrh) # cpldC==00000802
010.350 80053e78: e1d320b4(ldrh) # cpldC==00000802
010.350 80053e78: e1d320b4(ldrh) # cpldC==00000802
010.350 80053f44: 11c320b4(strh) # cpldC =00000802
010.350 IRQS IRQ INTMSK (65)=297f3e4e
010.350 IRQS IRQ INTPND : CPLD-IRQ(129)=0
010.350 IRQS GPFDAT: GPF1(449)=1 GPF3(451)=1
010.350 IRQS IRQ INTMSK (65)=297f3e4c

nacho-g
30th April 2011, 07:30 AM
Here I upload some files ftoz needs. They are for ati experimental driver.

nacho-g
4th May 2011, 05:27 AM
Hi.
Maybe someone can help me to understand how this interrup (cpld REG C bit 1) works with the memory card. On linux I get only one interrupt for SD and I can't clear it.
Thanks

Swoze
24th May 2011, 12:57 AM
so any chance of trinity on p3600 with this ? :s im a bit sick of WM :x lol

shinekwt
5th June 2011, 06:03 PM
i'm also waiting for this release :(

Jelmertjuhh
15th June 2011, 01:32 PM
Maybe we can try to port SHR for the trinity.
I think the trinity don't have the hardware requirements to run Android.
But SHR runs on the HTC Artemis with 64MB Ram.

You can take a look at the project here: http://trac.shr-project.org/trac/wiki
And the installation guide for the HTC Artemis can be found here: http://trac.shr-project.org/trac/wiki/Devices/HTCArtemis/InstallGuide

Jelmer.

TheGame2500
31st October 2011, 01:26 AM
Can anyone update all the files needed to run linux? The thread is full of dead links and I'd like to resume developing the OS... Unfortunately from all the files I picked up in this thread all I could get from HaRET is "Jumping to kernel..." and idk how to solve this, thanks for any help you might give!