yashsingh1/xdaforums huggingface dataset:
[JAM, MDA Compact, S100 General] evildarknight:
try to get in touch with phillip zabel he is working on the kernel and can help you on the image there is a working qtopia image floating around you can try to see the config they used for the display and other stuff a booting kernel with an image on sd should be ok for a start ;)

the developers of blueangel also may help i ll try to see who is working on there image

i'm at +5 GMT the main problem is that i have few free time because of exams and real life

my magician is going to Taiwan for repair now so i m left with the hermes right now :mad:

will be happy to help you anyways

in april i'll be more on irc try to keep us update on your work

:)
[JAM, MDA Compact, S100 General] cest73:
roger to that

ok:)

we shall take the time then...

i thought about a ncurses based teminal keyboard emulation controlled with the jog dial...
[JAM, MDA Compact, S100 General] cest73:
continued troubleshooting for magician...

it appears i miss the calibration procedure somehow

As i can't use it as a normal phone under moko yet, i'm limited for how long i'm able to play with it...

:(

I will try again today to get at least something launched over that X...

I somehow like more the QT stack?
[JAM, MDA Compact, S100 General] cest73:
progress report...

My distro is Slackware so i found this:

http://wiki.openmoko.org/wiki/USB_Networking#Slackware_.28tested_with_12.1.29

Does not even work, but the page was useful:

When i connect the Magician while running Linux, i get to a terminal and become root:

# dmesg

there i see that usb0 is now available:

usb0: unregister 'cdc_subset' usb-0000:00:1d.1-2, Linux Device
usb 3-2: new full speed USB device using uhci_hcd and address 19
usb 3-2: configuration #1 chosen from 2 choices
usb0: register 'cdc_subset' at usb-0000:00:1d.1-2, Linux Device, 16:ce:a6:75:bd:58
usb 3-2: New USB device found, idVendor=0525, idProduct=a4a2
usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 3-2: Product: RNDIS/Ethernet Gadget
usb 3-2: Manufacturer: Linux 2.6.21-hh20/pxa27x_udc

so i manually bring up the usb0 from my host:

# ifconfig usb0 192.168.0.200
# ifconfig usb0 up
# ping 192.168.0.202 -c4
PING 192.168.0.202 (192.168.0.202) 56(84) bytes of data.
64 bytes from 192.168.0.202: icmp_seq=1 ttl=64 time=1.25 ms
64 bytes from 192.168.0.202: icmp_seq=2 ttl=64 time=1.96 ms
64 bytes from 192.168.0.202: icmp_seq=3 ttl=64 time=1.76 ms
64 bytes from 192.168.0.202: icmp_seq=4 ttl=64 time=1.56 ms
#

You have to know the rest for the routing to the internet to be successful...

i hope this helps a bit?
[JAM, MDA Compact, S100 General] cest73:
adding the parameter

psplah=false

to the default.txt:

set KERNEL zImage
set CMDLINE "root=/dev/mmcblk0p2 console=tty0 rootdelay=1"
bootlinux

to be:

set KERNEL zImage
set CMDLINE "root=/dev/mmcblk0p2 console=tty0 rootdelay=1 [U]psplah=false[/U]"
bootlinux

disables the nice spalsh screen while boot-up, allowing one to see why the darn thing is hanging...

:-)
[JAM, MDA Compact, S100 General] cest73:
continued

There is another problem pinned down:

DBUS fails to update properly due to a bug in the image:

adduser fails to add users to the /etc/passwd file properly...

as a consequence, after i edit the file by hand ant try to restart the whole system, all depending on dbus (ad it's a lot) fails to load:

the X server for example:

_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/magician:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
[config/hal] couldn't initialise context: (null) ((null))
alias: mc not found
alias: source /usr/share/mc/bin/mc-wrapper.csh not found
[settings daemon] Forking. run with -n to prevent fork

(settings-daemon:10729): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to execute dbus-launch to autolaunch D-Bus session
GConf Error: No D-BUS daemon running
(snip)

(settings-daemon:10729): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to execute dbus-launch to autolaunch D-Bus session

** (settings-daemon:10729): WARNING **: Error getting value for /desktop/poky/peripherals/mouse/double_click: No D-BUS daemon running

(settings-daemon:10729): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to execute dbus-launch to autolaunch D-Bus session

[COLOR="Red"](snip: we already understand we miss DBUS daemon a LOT)
[/COLOR]

(process:10734): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to execute dbus-launch to autolaunch D-Bus session
GConf Error: No D-BUS daemon running

(process:10734): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to execute dbus-launch to autolaunch D-Bus session
GConf Error: No D-BUS daemon running

(process:10734): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to execute dbus-launch to autolaunch D-Bus session
GConf Error: No D-BUS daemon running

(snip)
** (neod:10731): DEBUG: sound init ok. threaded mainloop started
(snip)
(snip)
[JAM, MDA Compact, S100 General] cest73:
a new try

how about i try to piggyback opie2 on the working Angstrom build?

:cool:

i'll report that

And the try to make just busybox updated _before_ all goes highway with adduser?
[JAM, MDA Compact, S100 General] cest73:
udev on slackware/slax

one has to make this on a Slackware12.x or Slax 6.x system to get magician up to net:

/etc/udev/rules.d/91-magician.rules:

SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="0525", ATTRS{idProduct}=="a4a2", RUN+="/sbin/om-usb $env{INTERFACE} start"
SUBSYSTEM=="usb", ACTION=="remove", ENV{INTERFACE}=="usb[0-9]", RUN+="/sbin/om-usb $env{INTERFACE} stop"

and the /sbin/om-usb file:

#!/bin/sh
# from openmoko site
# GPL licence apply

INTERFACE=$1
ACTION=$2

# udev fails silently when the script fails, e.g. due to commands not
# being found
PATH=/usr/sbin:/sbin:/usr/bin:/bin

case $ACTION in
'start')
echo "Moko config going up..." | wall

# Put all your setup here

ifconfig usb0 192.168.0.200
ifconfig usb0 up

#has to forward to a neaby proxy:

echo 1 > /proc/sys/net/ipv4/ip_forward

#firewalled?
iptables -I INPUT 1 -s 192.168.0.202 -j ACCEPT
iptables -I OUTPUT 1 -s 192.168.0.200 -j ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24

;;
'stop')
# Put all your tear down here
echo "Moko config going down..." | wall
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac

Tested and working, free for all to use

(always install Slackware full on a 5+GB partition first time ;-) )

EDIT:

BEWARE- there are few bugs in the code:

I leave it as an exercise to the reader to discover them...
[JAM, MDA Compact, S100 General] cest73:
news flash :-(

the site seems facing trouble?
[JAM, MDA Compact, S100 General] cest73:
on and on...

they seem up again (updated?)
[JAM, MDA Compact, S100 General] MusikMonk:
I just wanted to offer my help if there's anything I can do.

I have some good programming knowledge (never went into OS programming though) and I've been using Linux for a good while (Debian, Ubuntu and currently trying Arch).
[JAM, MDA Compact, S100 General] cest73:
welcome onboard :-)

If You have been in a terminal and can:

1. ssh
2. vi
3. mc

If You have a arm PDA thats supported with Linux,

...and some spare time to contribute, You will be useful and most gladly welcomed around here :-)

I would like it more if You'd run Slackware, for I could better follow Your host-side actions then... but it does not really matter as we are better with a more conglomerate here IMHO ;-)

A. We need to attach to a live/active maintainer tree somewhere as it seems Magician is falling behind the development...

B. We need a agile user base to carry out debugging (download/boot/report)

C. We need few in depth persons to process the reports and pin down the actual bugs and follow them up to mainstream dev-teams

for the beginning do You own a HTC Magician? (fill Your 'User CP' please? :-) )

**and welcome aboard**
[JAM, MDA Compact, S100 General] MusikMonk:
I'm not sure how much spare time I'll have as I'm a university student but I promise to do my best. Ever since I got my hands on this device I wanted to have it run linux.

Only PDA/PPC that I have is a Magician (i-mate Jam to be specific).

Hard resets aren't an issue to me as I have a clone image of it's current state.

I have a 1GB SDCard (getting another is not a problem if necessary).

My laptop is currently dualbooting Vista (I need it for .Net development for university) and Ubuntu 8.10. I've also started downloading Slackware's torrent just in case.

And I can find my way around in a terminal. But even if there's something I don't know I'm a rather fast learner so it shouldn't be an issue. Plus I can always ask my university teachers/doctors for some help since I'm studying Informatics Engineering (time wise I'm in the second semester of my third year, but finished credit wise I'm already a forth year student with a GPA of 3.51/4).
[JAM, MDA Compact, S100 General] cest73:
timescale / plan

Few hours per week would do,

up to ideally couple of hours a day if something smoking hot...

A 128MB SD card is 100% enough in this stage...(maybe to salvage from colleges the ones they discarded ;-) )

even a 64MB would do...

'my way':

1. Backup the whole data one SD card

before

anything else (As You do too)

2. Make sure no really important calls in next few hours ;-), or have a other phone handy...

3. 2nd SD card filled with the 2 partitions (fat16 5MB + ext2 Linux wise) inserted (I would hate to copy all this data back and forth?)

4. file-explorer -> \StorageCard\haret.exe -> [run] (to boot the zImage prescribed in the default.txt)

5. Wait to Linux booted -> if screen pales - don't wait but seek other image ;-)

6. Connect to PC via USB

7. Get a working connection on PC (dmesg shows evenst...)

8. ssh to the Magician

ssh root@192.168.0.202

per vanilla settings...

9. check if internet accessible direct or via proxy

ping www.google.com -c4

ping <my.internet.gateway's.ip> -c4

I have few tricks from my treasure chest regarding this one, but You will probably end up needing a proxy on Your USB host machine - make squid run on Your PC ;-)

10.

ipkg update

to freshen Your distro on the phone (You will have time for a decent coffee break here...)

11.

ipkg install mc

when i have mc i'm like home where ever i go ;-), nano is your friend too, it's far more 'human' than vi...

12. get to feel like home around the phone... (visit: /etc/* /home/* /etc/init.d/* and read the files)

once You in, we will get on further. (one adventure at a time ;) )

Until You get the phone to boot, post issues and we will try and resolve, as we go?

Thus we will know us better and hopefully get more fun out of it - i would hate to spoil the fun by chewing all the spicy/gory details in advance

:-}

best regards,
[JAM, MDA Compact, S100 General] evildarknight:
musikmonk:

the memcard brand is important a sandisk or transend 512 mb will surely work out of the box where as you may get problems with some unknown brand i'll check some cards that are sure to work and make a small list

no worries about being a student me too is one :)

cheers
[JAM, MDA Compact, S100 General] cest73:
:eek:

me too was 3x one, but never got to end ;-)
[JAM, MDA Compact, S100 General] MusikMonk:
I've been out of town the last two days so I'm gonna get a second SD tomorrow.

And I also have Slackaware's DVD ISO on my computer right now, I'll burn it and install it tomorrow during one of the boring lectures I have.

edit: How much space do I need to give to Slackware approximately? I need to figure out how to rearrange my partitions...

Then I'll re-read through this whole thread to see what I can do.

I should go and study a bit now for a quiz that I have tomorrow...

Laters
[JAM, MDA Compact, S100 General] evildarknight:
some docs about android may be usefull somewhwere down the road

http://www.nthcode.com/pubs/porting-android-to-a-new-device.html

:)
[JAM, MDA Compact, S100 General] MusikMonk:
Slackware is being a pain in the ass. The DVD won't boot except on virtual machines. I've tried burning three dvds on slowest speed, works on VM but no on my laptop or desktop. I've also tried booting from other DVDs to make sure it's not the problem and they all worked.

I'm gonna try to work using my existing Ubuntu installation, at least till I figure out what's going on.

Quick question:

Did you try using haret on the new WM6 Magician rom? I'm guessing it wouldn't work since the version we have is made for WM2003SE. Right?

If that's the case the maybe we should look into compiling it again.

http://wiki.xda-developers.com/index.php?pagename=HaRET

http://handhelds.org/cgi-bin/cvsweb.cgi/haret/

Edit: can you please uploade the version of HaRET that works for you? I couldn't find one that works.
[JAM, MDA Compact, S100 General] evildarknight:
whats that laptop make? anyway that 1 gb card you told me about seems to be the best choice
[JAM, MDA Compact, S100 General] MusikMonk:
Asus M51VA-AS024C.
[JAM, MDA Compact, S100 General] cest73:
The forum www.linuxquestions.org can help You regarding Slackware and issues. I have tried Slackware many times, and, as long as I get the download correctly, there where no problems installing it. Ever. I did once have a broken download, i re-loaded with torrent ;-)

Other distros make harder to deal with non-common configurations ('stand in way') compared to Slackware IMHO...

Could try Debian or Fedora?

I hope usb0 event will be easy to add to udev?

One has to be clear with architecture (arm/i386) vs platform (C++/.NET/glibc) requirements...

A bootloader as HaRet here has both dependencies:

His hosting OS stack has to be compliant to the OS he has been called from (Win4.2/5.2 here) and the actuall usefull work has to be architecture wise to be compatibile to the actual machine he is supposed to 'boot' (arm27xx here).

So, i assume if he manages to start (and 5.2 did on my Magician ;-) ) he 'will manage'. I didn't fire a kernel yet, as i struggle to find a decent backup for my current OS (WM6.1) as I moved to the new OS (all or nothing here :o) )

As is tated i doubt we muss, what version did You try?

I used 5.2:
[JAM, MDA Compact, S100 General] MusikMonk:
Tried 0.3.4 (the one listed for Magician over here http://wiki.xda-developers.com/index.php?pagename=HaRETDownloadSite) on WM2003SE. It opens but when I hit run nothing happens.

I've used 5.2 and the device is curently running OpenMoko :) Exiting although it seems really buggy.

I don't have time to do some more experiments at the moment cause I'm meeting with some friends to work on a university project.

I'm going to check linuxquestion for slackware once I have the time. But as for running Debian, I don't see the point as Ubuntu is based on it, and it can pretty much do everything Debian does.

Please keep me posted about WM6.1 and linux. I don't want to make the switch until I can be certain that I won't have any major issues.
[JAM, MDA Compact, S100 General] cest73:
0 problem,

we keep You on track (provided You select automatic notification to this thread)

;-)
[JAM, MDA Compact, S100 General] cest73:
MILESTONES proposal

as PH5 already chewed the hardest bone we have:

Milestone 0 [done (an ongoing effort) by PH5]

Running Linux kernel

Milestone 0.0 [done by Debian/angstrom/OpenMoko]

Running local network and SSH server

Milestone 0.0.0

Running basic drivers (all onboard devices up and controlled)

[this is our 'byte' to chew]

Milestone 1

GUI

Possible only if all hardware is supported and remote control/access is possible: the tweaking/choosing of the distro...

Milestone 2

eye candy + user friendly + ergonomic

etc...

Report:

so far basic drivers have been reported to work only on different snapshots/releases:

On the older snapshot, OPIE2 looked more mature and packed with usefull properties while more responsive...

On the newer snapshot we had the GSM supported, the SIM is out-read and the contacts onboard while lacking maturity of the apps and responsiveness of the GUI (the GTK/matchbox of OpenMoko)

The GTK of open moko fails to comply to 142DPI requirement of Magicians display: font's in apps are tiny while half of the top and bottom bars are off screen... 96DPI in config desn't help either...

while updating the originally working Angstrom/Moko it fails miserably by failing to add users to newly installed packages (hall,dbus,avahi...) adduser command is linked to busybox, and just fails.

The older, originally non working, OPIE image, if provided with hh20 of the 2.6.21 kernel, (both zImage and /lib/modules), shines with the eye-candish Qtopia but says 'no modem'. On said (older) image, the adduser and company are linked against tiny-login? all users are present on this older image.

A one-shot effort of merging both images into one working-well ended in fumes and with no success

:-(
[JAM, MDA Compact, S100 General] PabloPL:
Maybe we should better try to run Android on Magician? Somewhere on this forum we can find thread about Andorid on Asus P525/P535 - it has similar hardware, so we can take it's image. "Only" thing missing is kernel.
[JAM, MDA Compact, S100 General] evildarknight:
afaik there is no gprs data connection in magician kernel i may be mistaken

it would seems from the wiki also that a patch version of gnommucator was used for communication there is source code on this site no sign of the patch

as i said before we should recompile the kernel woth google code of we want android as google has added some customizations i do think that ph5 is ok with the android stuff but it will require more work to make it run taking the image of other pda won't work do not try it

cheers
[JAM, MDA Compact, S100 General] cest73:
Sounds good,

could try it and report?

how could we help?

:-)
[JAM, MDA Compact, S100 General] cest73:
That's why i divided the steps to "milestones", so we can easy step on parallel paths:

0. We need a running kernel for android

0.0. We need to have acces to a system running a running kernel (obviously)

0.0.0. We need make sure the running krenel runs all hardware present

If we meet all this, Andriod is even better, as it has more inertia and will probably fall more close to future mainstream (we aim for IMO)

So Yes,

1. PH5, taylor us a Android's kernel able to USB/SSH , please?

2. piggyback a ipkg/apt/pkgtool

3. give a decent busybox/ash+gnu toolset

And we will fight it up to a runlevel 5, provided we can leech a repository of arm5 arch?

:-(

"If a plan goes too well, it's certainly an ambush"

--USMC manual--
[JAM, MDA Compact, S100 General] evildarknight:
ok cool i ll mail ph5 about the android kernel as i don't think he is actually reading all this :D

sounds like a good plan no ambush :) we are all true warriors :D
[JAM, MDA Compact, S100 General] cest73:
firstly?

I agree, only,...

I would firstly polite ask ("begging") PH5 to make a OPIE image of 2.6.21 hh20 patch level Angstrom before that?

hm?

;-)
[JAM, MDA Compact, S100 General] PabloPL:
Could You ask also about adding support for Magician's Samsung LCD into that OPIE image?? Most of images that i can found over the net won't work (blank screen after "Jumping to kernel...").

PS

Sorry for my english, it's not my native language.
[JAM, MDA Compact, S100 General] cest73:
No kernel needed?

i had the boot with the OPIE (hh17 kernel) and mine got blank too:

1. i pasted the kernel from the Moko image to the opie image

2. I pasted the kernel's /lib/modules/* section over to the opie image

3. i replaced the zImage alongside HaRet in the FAT partition with a renamed zImage of the 2.6.21-hh20 (can use the one in the /boot/ directory too

to do all this You need to go off a Linux system with preparing the steps: NT (windows) OS-es don't provide needed FS (Filesystem) support.

Ask for help if needed?
[JAM, MDA Compact, S100 General] cest73:
BOOTING HaRET from Cotilla's 6.1 WWE on Magician

default.txt

set KERNEL zImage
set CMDLINE "root=/dev/mmcblk0p2 console=tty0 rootdelay=1"
[B][I][COLOR="Red"]set mtype 875[/COLOR][/I][/B]
bootlinux

if a file called

earlyharetlog.txt

is along side HaRET will dump a log besides...

;)
[JAM, MDA Compact, S100 General] PabloPL:
I already know this and wrote http://xdaforums.com/showthread.php?t=454612, but thanks:). I have some problem with connecting my magician to the net and getting updates for packages.Could you wrote how to do this?? I can ping magician, also i can ssh into it but then i can't ping the world.
[JAM, MDA Compact, S100 General] cest73:
sorry to side-track, i was not aware of Your theread :-(

it's a typical routing problem:

i have a machine running squid that sees the internet, it has IP:

172.16.0.1

Then i edit in the image:

/etc/hosts

127.0.0.1 localhost
[I]172.16.0.1 proxy.tld gw[/I]

and the file

/etc/ipkg.cong

[COLOR="Red"]#[/COLOR]http_proxy [COLOR="Red"]something[/COLOR]
[COLOR="Red"]#[/COLOR]ftp_proxy [COLOR="Red"]something[/COLOR]

i just comment out (erase the # in the begining of the line) and save

on the image not booted yet...

You replace the 172.16.0.1 with Your's gateway addres

1. you will get a nice gw for pings towards Your gateway from Your Magician (less typing)

2. ipkg will get packages trough squid

squid is a package and can be found for most linux distros easy

those using slackware should look at

linuxpackages.net

;-)
[JAM, MDA Compact, S100 General] aitsch:
hi,

i follow this threat since some days. i have an old magician which is out of use in the moment. it would be very cool to reactivate this device with a running linux or maybe android.

but i think one problem of these endless threats is that after x-hundred posts no one will look through this. so i would suggest you should open a new post and use the first page(s) for an up-to-date status like all theses rom cookers do. maybe cest73 should do this.

if you have the status of a proper working system you should announce it as an image with the new patched kernel.

i am very curious of your output and wish you much success for this project.

cheers

aitsch
[JAM, MDA Compact, S100 General] cest73:
kind thanks for the consideration, input and well intentions :D

Would You care to contribute trough test-run+reports?

there is the wiki that receives updates (and hopefully a running kernel+build)

At the moment, the Angstrom ^ 'MOKO' is the 'stable' one build a 64MB flash is all it takes (+a hard reset)
[JAM, MDA Compact, S100 General] aitsch:
yes, why not - but not in this forum. send me a pm with you email address.

do You mean this wiki? the last changes on the offered images are made in 2007. the last text change are made by you. does it mean you will report your success in this wiki?

openmoko runs very slow on my device. i've tested it some time ago.

i hope you will reactivate this topic because the magician is still a very nice piece of hardware :)

aitsch
[JAM, MDA Compact, S100 General] cest73:
nice x2

i'll do, what's so bad with this forum?

that was the plan, as i found this wiki after only 30min of initial web inquiry regarding the newly-owned device i had on hand?

it's well linke to the web imo, do you happen to know a better place?

I was so exited and the speed and stability sunk my nose to the dirt?

The Moko suite has quite some miles to go to be a fair match to even 2k3 windows IMO...

OTOH, the OPIE (GPE?) image that initially didn't boot, made my day:

once i replaced the hh17 with the hh20 kernel it actually booted.

and the 'impression' was WOW - the support for hardware lacked (too olo image), but the apps and looks...

and my youngest boy played kasteroids :^)

Now i play to get that OPIE2 in shape...

it's more than that IMO, i will pursue this topic as long as i can ;-)
[JAM, MDA Compact, S100 General] aitsch:
nothing is bad on this forum (it is he best one!!) but if i should support you it is more safe to notice me by mail.

i think the wiki is the best place to report the progress. everyone who ask google for "linux and magician" will arrive to this site.

have a nice weekend.

aitsch
[JAM, MDA Compact, S100 General] zygggg:
hehe.......
[JAM, MDA Compact, S100 General] cest73:
I see, You 'spool' Your mailbox more often than this forum :D

o.k., i 'ring' You as soon as i get news?