Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,737,016 Members 50,395 Now Online
XDA Developers Android and Mobile Development Forum

linux on htc magician

Tip us?
 
a1girdas
Old
#151  
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Aug 2011
Location: Kaunas
Default flashing ROM

is it possible to return to Windows (Cotulla or Windows mobile) in case if experiment with Linux fails?
 
pc2005
Old
#152  
Junior Member
Thanks Meter 3
Posts: 4
Join Date: Nov 2012
Default Working 3.4.0

Quote:
Originally Posted by baal_zebub View Post
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 View Post
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: [ Click to Expand ]
 
notime2d8
Old
#153  
notime2d8's Avatar
Senior Member
Thanks Meter 86
Posts: 285
Join Date: Jul 2007
Location: Birmingham

 
DONATE TO ME
Quote:
Originally Posted by pc2005 View Post
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.
HTC Universal 128MB
Galaxy S Relay
HTC X7510
HTC Rhodium
Much I5
Samsung Galaxy S
 
pc2005
Old
#154  
Junior Member
Thanks Meter 3
Posts: 4
Join Date: Nov 2012
Quote:
Originally Posted by notime2d8 View Post
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: [ Click to Expand ]
 
iRiKi
Old
#155  
Senior Member
Thanks Meter 15
Posts: 594
Join Date: Jul 2007
Location: Lisbon
Quote:
Originally Posted by pc2005 View Post
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
Links:
this is Fujitsu M532 drivers, for Windows 7 and Vista
 
pc2005
Old
#156  
Junior Member
Thanks Meter 3
Posts: 4
Join Date: 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: [ Click to Expand ]
 
iRiKi
Old
#157  
Senior Member
Thanks Meter 15
Posts: 594
Join Date: Jul 2007
Location: Lisbon
Quote:
Originally Posted by pc2005 View Post
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!
Links:
this is Fujitsu M532 drivers, for Windows 7 and Vista
 
cest73
Old
#158  
cest73's Avatar
Senior Member
Thanks Meter 1
Posts: 117
Join Date: Mar 2009
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!
Magician
"Linux or bust"
 
pc2005
Old
#159  
Junior Member
Thanks Meter 3
Posts: 4
Join Date: 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.
 
cest73
Old
#160  
cest73's Avatar
Senior Member
Thanks Meter 1
Posts: 117
Join Date: Mar 2009
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...)
Magician
"Linux or bust"

The Following User Says Thank You to cest73 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes