Post Reply

linux on htc magician

OP evildarknight

12th August 2011, 09:08 AM   |  #151  
Junior Member
Flag Kaunas
Thanks Meter: 0
 
5 posts
Join Date:Joined: Aug 2011
More
flashing ROM
is it possible to return to Windows (Cotulla or Windows mobile) in case if experiment with Linux fails?
5th November 2012, 02:08 AM   |  #152  
Junior Member
Thanks Meter: 3
 
4 posts
Join Date:Joined: Nov 2012
Working 3.4.0
Quote:
Originally Posted by baal_zebub

if i use startup.txt and kernel provided in this package "Angstrom-x11-image-glibc-ipk-2009.X-stable-magician.rootfs.rar" i just get a white screen:
1. linux starts - console says a few lines - last line is "jumping to kernel"
2. then screen fades to white and stays like this

i had this white-screen with a lot of linux packages already. But i know i don't have this, when i use a older zImage. So i replace the zImage by version r13 "zImage-2.6.21-hh20-r25-magician.bin"

Now it looks different: screen goes also white - but the console returns immediately.
the boot process seems to start. it writes a lot of lines (what hardware found etc.) , then ends with:
VFS: mounted root (ext2 filesystem)
freeing init memory: 84K
kernel panic - not syncing: no init found. try passing init= option to kernel.

Any advice ?

Thanx!

Hello (everybody),
I managed to boot Magician with nearly latest vanilla kernel (~3.4.0). Problem with whitescreen is mostly with power GPIO initialization (working hh-version wasn't long/never in vanilla tree). After some other changes in source code I was able to boot into console (X server intentionally disabled), using usb-client emulation of ethernet, irda (with little success only - bad PC dongle).

I think it would be in small time possible to run full X server, but there is problem with my Magician. In one test it fell disassembled on the floor and LCD connector plastic stripe is damaged (2-3 wires on both sides).

Is Linux on Magician still desired topic so I can try repair LCD stripe and finish vanilla kernel patches? (But even when it is I don't know if I can this stripe successfully repair.)

Quote:
Originally Posted by a1girdas

is it possible to return to Windows (Cotulla or Windows mobile) in case if experiment with Linux fails?

Yes it is, if you boot with haret.exe and not touching internal flash . Just press HW reset button.

P.S. Sorry for bad english.
The Following User Says Thank You to pc2005 For This Useful Post: [ View ]
16th November 2012, 07:16 PM   |  #153  
notime2d8's Avatar
Senior Member
Flag Birmingham
Thanks Meter: 88
 
288 posts
Join Date:Joined: Jul 2007
Donate to Me
More
Quote:
Originally Posted by pc2005

Hello (everybody),
I managed to boot Magician with nearly latest vanilla kernel (~3.4.0). Problem with whitescreen is mostly with power GPIO initialization (working hh-version wasn't long/never in vanilla tree). After some other changes in source code I was able to boot into console (X server intentionally disabled), using usb-client emulation of ethernet, irda (with little success only - bad PC dongle).

I think it would be in small time possible to run full X server, but there is problem with my Magician. In one test it fell disassembled on the floor and LCD connector plastic stripe is damaged (2-3 wires on both sides).

Is Linux on Magician still desired topic so I can try repair LCD stripe and finish vanilla kernel patches? (But even when it is I don't know if I can this stripe successfully repair.)


Yes it is, if you boot with haret.exe and not touching internal flash . Just press HW reset button.

P.S. Sorry for bad english.

Yes, you should continue this project!!! What OS are you going to run once you get the kernel perfect? I know some people are still interested in this but might not visit this forum daily and a lot of people just read the forums and not comment on them.
19th November 2012, 12:59 AM   |  #154  
Junior Member
Thanks Meter: 3
 
4 posts
Join Date:Joined: Nov 2012
Quote:
Originally Posted by notime2d8

Yes, you should continue this project!!! What OS are you going to run once you get the kernel perfect? I know some people are still interested in this but might not visit this forum daily and a lot of people just read the forums and not comment on them.

Wow I actually didn't expect any answer . I got my Magician nearly for free, because of wearing-out of hardware and case, so it is possible that it fall apart before working system (actually i don't even know how to repair LCD without high risk of total destruction).

With this basics I didn't think much about final OS, but my kernel debugging ran with one of OpenMoko distribution (with hh kernel tree) from this forum. Actually userspace is irrelevant for me and it can be even custom distribution (I don't know which or if some applications are without GPL'ed source and if is possible to make calls with OM). Maybe some other GUI programmer can do this .
The Following User Says Thank You to pc2005 For This Useful Post: [ View ]
23rd November 2012, 11:01 AM   |  #155  
Senior Member
Flag Lisbon
Thanks Meter: 16
 
597 posts
Join Date:Joined: Jul 2007
More
Quote:
Originally Posted by pc2005

Wow I actually didn't expect any answer . I got my Magician nearly for free, because of wearing-out of hardware and case, so it is possible that it fall apart before working system (actually i don't even know how to repair LCD without high risk of total destruction).

With this basics I didn't think much about final OS, but my kernel debugging ran with one of OpenMoko distribution (with hh kernel tree) from this forum. Actually userspace is irrelevant for me and it can be even custom distribution (I don't know which or if some applications are without GPL'ed source and if is possible to make calls with OM). Maybe some other GUI programmer can do this .

That would be AMAZING!! I have the phone sitting idle at home, and creating a new kernel would open up a whole world of possibilities
10th November 2013, 08:59 PM   |  #156  
Junior Member
Thanks Meter: 3
 
4 posts
Join Date:Joined: Nov 2012
Done! I managed to boot into my own "distribution". It does not have any useful software, but it works (kind of ).

Bootup sequence:
1) Boot into windows mobile (tested with sdhc card patch).
2) Create two partitions on SD card (FAT for windows mobile and ext2 for linux).
3) Copy haret and kernel image into FAT
4) Copy rootfs into ext2
5) Boot into windows mobile
6) Attach USB between Magician and LINUX (!) machine
7) Run haret from FAT
8) Linux should start booting if not power reset and start from 1) (or maybe you have different revision?, LCD=samsung)
9) REPLUG usb cable (usb GPIO is not implemented, windows sets that)
10) On Linux machine set ethernet over usb: ifconfig usb0 192.168.4.1 up (you can set NAT too)
11) You should be able to login over SSH with user/pass=root/pokus
12) Xorg -noreset -retro & export DISPLAY=:0; xeyes &

Root filesystem is here: ulozto dot net/x6P845U8/to-okias-tar-bz2 . Kernel is 3.7 (patched vanilla) but I heard, some of my patches are not required in 3.11+.

Touchscreen data are a bit unstable (developer's version) I will try to improve them (or update to 3.11).

Are there some hardware hackers, who owns Magician? I need help with certain things (for example data chip (1 wire PIC used as eeprom?) from my battery burned so I cannot use it). Of course if someone willing to send me a spare battery I will not refuse .

I would like to know if touchscreen works for everyone other (if you paint rectangle, does cursor really move in rectangle, etc..)?

If someone wants patches against 3.7 please send me e-mail.
The Following User Says Thank You to pc2005 For This Useful Post: [ View ]
14th November 2013, 07:30 PM   |  #157  
Senior Member
Flag Lisbon
Thanks Meter: 16
 
597 posts
Join Date:Joined: Jul 2007
More
Quote:
Originally Posted by pc2005

Done! I managed to boot into my own "distribution". It does not have any useful software, but it works (kind of ).

Bootup sequence:
1) Boot into windows mobile (tested with sdhc card patch).
2) Create two partitions on SD card (FAT for windows mobile and ext2 for linux).
3) Copy haret and kernel image into FAT
4) Copy rootfs into ext2
5) Boot into windows mobile
6) Attach USB between Magician and LINUX (!) machine
7) Run haret from FAT
8) Linux should start booting if not power reset and start from 1) (or maybe you have different revision?, LCD=samsung)
9) REPLUG usb cable (usb GPIO is not implemented, windows sets that)
10) On Linux machine set ethernet over usb: ifconfig usb0 192.168.4.1 up (you can set NAT too)
11) You should be able to login over SSH with user/pass=root/pokus
12) Xorg -noreset -retro & export DISPLAY=:0; xeyes &

Root filesystem is here: ulozto dot net/x6P845U8/to-okias-tar-bz2 . Kernel is 3.7 (patched vanilla) but I heard, some of my patches are not required in 3.11+.

Touchscreen data are a bit unstable (developer's version) I will try to improve them (or update to 3.11).

Are there some hardware hackers, who owns Magician? I need help with certain things (for example data chip (1 wire PIC used as eeprom?) from my battery burned so I cannot use it). Of course if someone willing to send me a spare battery I will not refuse .

I would like to know if touchscreen works for everyone other (if you paint rectangle, does cursor really move in rectangle, etc..)?

If someone wants patches against 3.7 please send me e-mail.


My phone is dead, and I'm also in the middle of some huge final college year assignments.. will take a while to test this But great work nonetheless!
14th November 2013, 08:26 PM   |  #158  
cest73's Avatar
Senior Member
Thanks Meter: 1
 
117 posts
Join Date:Joined: Mar 2009
More
Prompt
excellent job!
congratulation!
Just make sure to make an HOWTO of the whole process ?
My magician is lurking somewhere around the drawers, need to revive it again...
just keep up man, hang in there!
2nd December 2013, 02:25 AM   |  #159  
Junior Member
Thanks Meter: 3
 
4 posts
Join Date:Joined: Nov 2012
Success, camera has been enabled!

Kernel patches will be released soon along with root filesystem.

For anyone interested in linux kernel hacking: i2c-pxa is not working and i2c gpio must be patched (probably uncompatible start, restart and stop sequentions). Default drivers (soc_camera+pxa_camera+ov9640) are stable just enough to build and are missing some v4l2 functions. I think it even crashes with debug enabled.

If anyone is interested maybe I will need some help, because color matrix in kernel is bad (swapped red and blue channels) and there is not any deep documentation.
5th December 2013, 07:44 PM   |  #160  
cest73's Avatar
Senior Member
Thanks Meter: 1
 
117 posts
Join Date:Joined: Mar 2009
More
Plug look who's been busy lately :D
@pc2005,
I would recommend to post the patches in more than one single place, it is sadly common practice while surfing lately, to find discontinued hosting and code lost to "bit-rot"...

Also I see You are going deep

Keep up with the good stuff (hope someone comes to help soon...)

The Following User Says Thank You to cest73 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes