IRC log for #htc-linux on 20071103

00:00.22cr2what do you think these offsets mean ?
00:01.35BabelOknl for kernel, rfl ...
00:01.45mxktmdudecr2, what kind of cpu docs are needed? im not a kernel whiz or anything mostly just plain old apps etc
00:02.04BabelOcr2: nnd for nand sdr for sram
00:02.56BabelOcr2: something like that nnd =sdr = nand
00:04.07cr2mxktmdude: the CPU manual describing subsystems and registers. or maybe the linux kernel source for it :)
00:04.52mxktmdudesomething similar to this: http://www.cdmatech.com/products/msm7500_chipset_solution.jsp
00:05.41mxktmdudei guess that doesnt list registers though hehe oops
00:09.38cr2mxktmdude: something like that http://pxa-linux.sourceforge.net/documentation.htm
00:09.39BabelOcr2: rfl tell me something
00:10.18cr2hehe. links are dead now.
00:11.21mxktmdudehehe yeah, i have the intel processor books here so i know what you mean
00:11.29cr2mxktmdude: http://balloonboard.org/hardware/300/ds/PXA270-dev-manual.pdf
01:37.54*** join/#htc-linux ltxda2 (n=ltxda@70.255.136.7)
02:53.16*** join/#htc-linux Keizer (n=keizer@c-69-139-42-47.hsd1.fl.comcast.net)
03:59.52regulatesup
03:59.57regulateanyone awake to talk about hermes?
05:55.22*** join/#htc-linux GPFerror (n=GPF@cpe-76-187-41-132.tx.res.rr.com)
07:20.49*** join/#htc-linux goxboxlive (n=goxboxli@139.80-202-160.nextgentel.com)
07:21.13*** join/#htc-linux the_sys0p` (i=nroberts@117.121.94.229)
07:32.07*** join/#htc-linux sladen_ (i=paul@starsky.19inch.net)
07:34.14*** join/#htc-linux keizer1 (n=keizer@c-69-139-42-47.hsd1.fl.comcast.net)
08:02.12*** join/#htc-linux _dion_ (n=dion@inhex.net)
08:46.28*** join/#htc-linux rmoravcik (n=rmoravci@adsl-d127.84-47-44.t-com.sk)
09:10.02*** join/#htc-linux pleemans (n=peter@d51A5E76A.access.telenet.be)
09:12.38*** join/#htc-linux pleemans (n=peter@d51A5E76A.access.telenet.be)
09:17.01*** join/#htc-linux Marex-notebook (n=marex@gwfm10-3-250.802.cz)
09:53.31*** join/#htc-linux pH5 (n=ph5@e178219091.adsl.alicedsl.de)
10:08.38*** join/#htc-linux BabelO (n=Fabrice@lun34-2-82-238-28-28.fbx.proxad.net)
10:09.10pH5good morning BabelO
10:09.17BabelOhi pH5
10:36.52*** join/#htc-linux rob_w (n=bob@X16f9.x.pppool.de)
11:13.01*** join/#htc-linux ivucica (n=ivucica@217.14.216.214)
11:21.34*** join/#htc-linux AC_Mast (i=s@gateway/tor/x-439bacb2407e3a2c)
11:21.39ivucicawhere can i check what kind of bluetooth device does my ipaq 3870 have? i'm trying to recompile kernel and i'm confused by:
11:21.55ivucica"Networking->Bluetooth subsystem support->Bluetooth device drivers"
11:27.20*** join/#htc-linux pleemans (n=peter@d51A5E76A.access.telenet.be)
11:31.26ivucicanevermind, i think i found info
11:40.59ivucicamkay, now i have another problem ;)
11:41.09ivucicaperhaps cr2 can help
11:41.27ivucicai'm using 2.6 kernel from handhelds.org
11:41.43ivucicai'm using h3800_static_defconfig
11:41.53ivucicawhen punching in "make" i get
11:41.54ivucicacc1: invalid option `abi=aapcs-linux'
11:41.54ivucicamake[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
12:41.04*** join/#htc-linux rob_w (n=bob@X0fbe.x.pppool.de)
12:53.00*** join/#htc-linux TeringTuby (n=maarten@162-117-dyn.ipact.nl)
13:23.39*** join/#htc-linux sladen (i=paul@starsky.19inch.net)
14:52.53BabelOcr2: i understand now how osm works ;) i just read the full wiki
14:56.05cr2BabelO: i dislike the way how they do it, but like the result.
14:56.20BabelO:)
14:56.44cr2ivucica: you need to disable the EABI if you care using the older toolchain.
14:56.47BabelOwhat you dislike in their method ?
14:57.02ivucicacr2: ok, i disabled it
14:57.46ivucicacr2: just a quick one; i have arm-linux-gcc-3.3 installed yet kernel build process complains that it's an unsupported compiler
14:58.03cr2BabelO: web2.0_java_xml_solve_all_problems_GIS_ignorance_is_strength
14:58.12ivucicawill setting CC be enough to switch it to arm-linux-gcc-3.3?
14:58.52BabelOcr2: ok i m agree with you, they don't use GIS then ? it is a big lack, need a converter ;)
14:59.12cr2BabelO: they are wasting all kind of resources to no end, and reinventing the wheel every day.
14:59.39cr2BabelO: they provide you with a 15GB XML file, and you are free to parse it yourself.
14:59.59cr2that what i call 'GIS ignorance'
15:00.14BabelOok
15:01.16cr2and all the tools for parsing it are either perl of java. do i need to tell you they all do OOM ? :)
15:01.36cr2or need 2 weeks to finish.
15:01.53cr2there is one exception, though.
15:02.00cr2the osm2pgsql
15:02.06cr2written in c :)
15:02.10BabelOlol
15:02.57cr2and that's the program that makes the google-map style tiles at openstreetmap.org
15:03.39cr2you import this xml into postgis DB, and then the renderer code uses it.
15:04.06cr2another funny thing about osm is that the whole thing runs on mysql
15:04.43cr2but then they create the 15GB xml file out of mysql DB tables
15:04.49BabelOcr2: it is a good database mysql ;)
15:04.52cr2only to import it into postgis later.
15:05.09cr2this is web2.0 for me :)
15:05.20cr2i have nothing against mysql.
15:05.44cr2just the mysql -> xml dump -> postgis seems irrational for me.
15:06.17BabelOcr2: i ve a customer at work who say that database below 500Mb is for mySql and up is for Oracle ;)
15:30.57cr2BabelO: i've looked at the ba bl, and it looks like that wdata is supported too.
15:31.27BabelOgood, so i can have luck to try pH5 tools
15:31.29cr2you may try to compile the htc-utils by pH5
15:31.36BabelO:)
15:31.54cr2i guess we need to add more saferguards there too.
15:32.01cr2and full command logging
15:32.38cr2i can't test it right now because of the 64bit.
15:33.04cr2i'll try to add the ba initialization gpio settings to wiki.
15:33.25cr2i guess we will unleash a lot of init bugs in this way.
15:33.37cr2universal is already hit by such bugs ;)
15:33.39BabelOok, i try this tool later in the evening
15:33.44cr2ok.
15:34.05cr2and we also can try to create the 'diagnostic' SD
15:34.27cr2i have no other option on universal, because it's net-locked.
15:34.59cr2btw, i guess i must buy an msm7x00 based phone as a true htc fan :)
15:35.26cr2what do you think is the cheapest one ?
15:36.23BabelOthe one without gpd ;)
15:37.09cr2HTC S640 (HTC Iris 100) ?
15:37.46BabelOmy next phone will be with gps and dvb-t receiver ;)
15:37.49cr2its with kbd.
15:38.12cr2i have a dvb-t usb stick.
15:38.33cr2but since i hate tv, i need to write the linux driver for it i guess
15:38.34BabelOcr2: so you can use it as host on athena soon ;)
15:38.55cr2and find out how to extract the firmware and upload it.
15:39.06cr2yes, but it may be difficult.
15:39.19cr2my SD cardreader does not work with athena.
15:39.29cr2it wants too much current i guess.
15:39.51cr2and shitty wince doesn't even create a popup saying that ;)
15:39.51BabelOMSM7500 based phone are Titan , libra, vogue, iris
15:40.00cr2titan is CDMA
15:40.24cr2iris has kbd, so it may be more expensive than iris
15:40.37cr2somebody with libra was already here.
15:41.19cr2libra also has the kbd.
15:41.25cr2looks like hermes
15:41.38cr2so i guess iris is the best choice.
15:41.50BabelOMSM72000 phone are Omni , Nike, sedna, erato, ultimate from i mate
15:42.51cr2hmm.
15:42.56cr2you are right.
15:43.12*** join/#htc-linux TimRiker (n=timr@rikers.org)
15:43.17cr2omni costs like athena i guess.
15:44.20BabelO800x480pixe
15:45.17cr2s420 is CPU: Samsung SC32442, 400 MHz
15:45.19cr2i have hermes for that.
15:46.23BabelOthere is htc sirius too
16:04.13ivucicacr2, BabelO: is this a valid way to force 2.6's compiling process to use gcc 3.3?
16:04.15ivucicaivucica@khaoticone:/opt/kernel/linux-2.6.x-hh$ export CC=arm-linux-gnu-gcc-3.3
16:04.15ivucicaivucica@khaoticone:/opt/kernel/linux-2.6.x-hh$ export CXX=arm-linux-gnu-g++-3.3
16:04.40ivucicaand is there a way to get #error to print out a macro's value? e.g. value of __GNUC__
16:22.32ivucicacr2 ?
16:48.13*** join/#htc-linux ImCoKeMaN (n=me@rrcs-67-78-122-67.sw.biz.rr.com)
17:04.43*** join/#htc-linux Marex-notebook (n=marex@gwfm10-3-250.802.cz)
17:08.52ivucicacr2: ever experienced this kind of error during compilation of kernel?
17:08.55ivucica--> /tmp/ccY3Llm1.s:3753: Error: .err encountered
17:09.07ivucicait happens on mm/page_alloc.c
17:18.14*** join/#htc-linux scorpio16v (n=scorpio1@f050216157.adsl.alicedsl.de)
17:35.05ImCoKeMaNwow this is kinda funny, someone made a new login ID on xda for linux on mogul
17:35.06ImCoKeMaNhttp://forum.xda-developers.com/showthread.php?t=341903
17:35.41ImCoKeMaNthey basically got nowhere, and are just askig for help, but they say they are l33t
17:37.08*** join/#htc-linux Zoolooc (n=fredsiba@p54950378.dip0.t-ipconnect.de)
17:42.50ivucicaImCoKeMaN: too bad there are not more self-pitiful people like me who directly say they are dumb and are asking for help without saying they're 1337 ;)
17:47.00ImCoKeMaNand myself
17:47.22ImCoKeMaNi've been in here a lot learning about it and definitely enough to realize that what they tried wasn't anyhting detailed
17:48.16ImCoKeMaNwhen Cr2 and Kevin both say it's a long way off i'm not gonna go and just take a 6700 image and then ask for generic help when it doesn't work
17:51.36ivucicahehe
17:51.58ivucicaim trying to recompile the kernel so i can get built-in mmc support for my 3800 ;)
17:52.12ivucicanow i'm getting some odd error that perhaps suggests a broken compiler
17:52.25ivucica/tmp/ccY3Llm1.s:3753: Error: .err encountered
17:52.25ivucicamake[1]: *** [mm/page_alloc.o] Error 1
17:54.01*** part/#htc-linux scorpio16v (n=scorpio1@f050216157.adsl.alicedsl.de)
18:00.41cr2ivucica: in which directory do you have the crosscompiler ?
18:01.05ivucicain /usr/bin i believe
18:01.08ivucicawherever emdebian placed it ;)
18:01.46cr2ImCoKeMaN: IMO it's possible to hack some kernel image and boot on msm7x00, so you'll see the penguin on LCD. but is it really worth it ?
18:02.08ImCoKeMaNright
18:02.30ImCoKeMaNkinda putting the cart before the horse
18:02.51ivucicacr2: of course it's worth it
18:02.56ivucicapenguins everywhere
18:02.57ivucica=]
18:03.12ImCoKeMaNhow bout i make you a jpg instead?
18:03.35cr2ivucica: then it may end like linux on xda1 aka wallaby
18:03.52ivucicaeff
18:04.14cr2ivucica: what is the path to arm-linux-gnu-gcc-3.3 ?
18:04.15ivucicaregarding my issue, cr2, do you have any idea what's causing it?
18:04.19ivucicasec
18:04.29cr2this -3.3 makes everything very complicated.
18:04.40ivucica--> /usr/bin/arm-linux-gnu-gcc-3.3
18:04.46ivucicathere's no problem with that
18:04.49cr2can't you just download the toolchain from codesourcery ?
18:04.56ivucicahmm
18:05.11cr2but i'm not sure if something will not break in the kernel.
18:05.12ivucicai hate installing non-debian stuff, tbh
18:05.26pH5good evening, btw.
18:05.26ivucicasee, i can replace 3.3 with some other things
18:05.37cr2well, but then the kernel needs to be fixed.
18:05.49ivucicapH5: hopefully you're not referring to me? ;)
18:06.04ivucicai meant i can put 4.2
18:06.20ivucicai tried 3.4 but it appears that neil (the emdebian guy) has messed something up
18:06.28cr2ivucica: i don't know why some distro package authors like to name gcc gcc-3.3, moc moc-qt4 and so on.
18:06.34ivucicahehe
18:06.44ivucicawell, actually i run /usr/bin/arm-linux-gnu-gcc
18:06.50ivucicathat looks like a symlink
18:06.57ivucicai'll check if it is
18:07.03cr2that'll be better.
18:07.22ivucicacr2:  /usr/bin/arm-linux-gnu-gcc -> /etc/alternatives/arm-linux-gnu-gcc
18:07.34cr2ivucica: i use PATH=~/stuff/tmp/cross/bin/:$PATH CROSS_COMPILE=arm-angstrom-linux-gnueabi- make
18:07.48ivucicaand /etc/alt....blah that is a symlink
18:07.52cr2that's how the kernel Makefile expect it.
18:08.09ivucicahmmm
18:08.25cr2that the toolchain is in 1 directory, and all gnu tools are prefixed by CROSS_COMPILE
18:08.27ivucicai'll go and fetch the toolchain, then ...
18:10.31ivucicababelo@machine:~$ wine /usr/bin/start cooking
18:10.33ivucica=]
18:11.25cr2pH5: i'm sick of wince2003 reboots on ba :(
18:11.40cr2need to flash something better :)
18:11.52pH5ivucica: lol, way no. of course I meant the l33tsomething guy :)
18:12.28ivucicahehe ;)
18:12.40pH5cr2: I really, deeply understand that sentiment.
18:12.42ivucicacr2: ever had wince2002?
18:13.05ivucicai am absolutely disgousted with their startup "tutorial"
18:13.15ivucicai understand the calibration, ok, i get that ...
18:13.29ivucica.. but WHY THE HECK THE CUT'N'PASTE TUTORIAL!?
18:13.32ivucica=]
18:13.38pH5ivucica: it's the same on wm2003se
18:13.54ivucicamicrosoft never changes, i suppose
18:14.01pH5you get mad when you have to reboot many times due to initial kernel instabilities.
18:14.38ivucica...or during your own knowledge (or lack of) during initial missteps in installation, haret-method? ;)
18:16.09BabelOcr2: that's why i flash wm5, but then you lose the nice widcomm bluetooth stack
18:16.36pH5cr2: I have found and started to analyze the I2C code in herald's SPL. at least i2c_init seems quite similar to the i2c-omap driver in linux.
18:17.58ivucicaBabelO: i find widcomm's stack on h3800 not-so-good
18:18.02ivucicano SCO support :(
18:18.09ivucicaand more than that ... no HID support!
18:18.22ivucicahow the hell am i supposed to play tetris on my ppc using my cellphone?!
18:18.30cr2BabelO: i don't give a fsck about the bt stack, i use it as a linux dev platform ;)
18:18.57cr2pH5: why should it be different ? it uses the omap-i2c port ...
18:19.02BabelOivucica: o did not see the ms bt stack in wm5  is like the one in win xp , so bad , you can do nothing
18:19.05ivucicacr2: fsck.ext2 or fsck.vfat?
18:19.38cr2ivucica: fsck.ms
18:19.47ivucicacr2: that will pass, too
18:19.50ivucica=]
18:20.03cr2BabelO: i think i'll flash wince5. where can i get it ?
18:20.07pH5cr2: there is some gpio setting going on, maybe that is a reset line for the CPLD.
18:21.01cr2pH5: i didn't look for gpio in the herald spl. can you compare the 'triples' with artemis data ?
18:21.04pH5also, I wasn't not sure if there are slight differences between omap850's i2c and generic omap i2c (besides the 32 vs 16bit registers).
18:21.18pH5s/n't not/n't/
18:21.37cr2pH5: may be, but it's unlikely.
18:21.58pH5which is good. I still have to find out why modprobing i2c-omap hangs the device though.
18:22.10cr2i'm wondering about wizard,prophet and touch.
18:22.34cr2if they are closer to artemis or herald.
18:22.59ivucicacr2: http://www.codesourcery.com/gnu_toolchains/arm
18:23.02ivucicais that it?
18:23.09cr2BabelO said herald is the latest omap850 device ?
18:23.46pH5hm. isn't touch the latest?
18:23.48cr2ivucica: http://www.codesourcery.com/gnu_toolchains/arm/download.html
18:23.57ivucicayep, t
18:23.58ivucicaty *
18:24.09cr2pH5: maybe.
18:24.16BabelOcr2: pH5 yes touch is the latest
18:24.28ivucicawoah 91mb!
18:24.29ivucicacool.
18:25.02BabelOcr2: i got my wince5 from xda, but can't acces to wiki actually
18:28.10pH5cr2: what triples in artemis data are you talking about?
18:28.13ivucica2002 is the latest one for SA, right?
18:29.43cr2pH5: the cpld calls have 3 parameters
18:29.50cr2in both spls
18:30.04pH5hm. linux i2c-omap doesn't seem to touch the OMAP_I2C_OA_REG register at all.
18:30.27pH5cr2: in herald, first parameter is the i2c cpld's register number, second and third are bits to enable/disable.
18:30.37cr2pH5: what is wince doing ?
18:30.45cr2i guess it's the same on artemis.
18:30.55pH5cr2: but artemis has it's cpld memory mapped?
18:31.04pH5s/it's/its/
18:31.06cr2pH5: is it possible to flash magician with htc-tools ?
18:31.39cr2yes, they are mmaped, but it does not matter for the higher level code
18:31.48pH5cr2: sure, that is what I wrote it for.
18:31.54cr2set_cpld(r0,r1,r2)
18:32.01pH5I do not know how the cpld is handled in nk.exe
18:32.36cr2pH5: i probably need to fix the 64bit issues in htc-tools first
18:36.22pH5cr2: s/unsigned long/u_int32_t/ ?
18:36.43pH5I never had a 64bit arch CPU, so no experience with that.
18:39.01cr2pH5: amd64 is not that expensive.
18:41.18*** join/#htc-linux rmoravcik (n=rmoravci@adsl-d127.84-47-44.t-com.sk)
18:42.39ivucicacr2: that codesourcery toolchain -- is it gcc 4.2?
18:44.05BabelOcr2: nice, but no gps icon :( http://www.iconlet.com
18:47.12cr2BabelO: i've cloned the a780 icon, but didn't manage to clean it up yet.
18:47.30cr2ivucica: 4.2.1 i think
18:47.54cr2BabelO: which fm radio chip has artemis ?
18:48.00ivucicacr2: in that case, i found exactly what i need ;)
18:48.10ivucicaan emdebian package exists
18:50.12BabelOcr2: that s the big question i hope it is one of chipset supported by kernel
18:53.41pH5cr2: git clone http://linuxtogo.org/~ph5/htc-tools/.git
18:54.05pH5could you check if it is ok 64bit?
18:54.16pH5*with 64bit
18:59.56cr2pH5: yes, i'll do it right now. even my old notebook is 64bit :)
19:02.35pH5I can't be bothered to buy a new laptop until my old one falls apart and there are cheap ones with < 15" WUXGA screens, so I'm stuck with my olde P4 for now.
19:05.03cr2i have acer aspire1501, it was the first 64bit laptop. very heavy, needs the power supply 20V 6A ;)
19:05.50cr2btw, i can check htc-tools on linuxppc
19:06.09ivucicai can't recommend getting cheaper Dell models
19:06.28ivucicaone i have is constantly on verge of dying
19:06.35pH5oye, that's a lot of energy. mine only takes 4.5A at 20V max.
19:07.07ivucicaand from what I've heard from some friends, HP is evil, a lot: they have started supporting only the greatest of all evils, exclusively
19:07.19ivucicaXP drivers are not available anymore
19:07.38ivucicai'd rather use even (pfui) XP than Vista
19:08.03ivucicaand so would almost everyone i know (i've so far met only two people who i failed to convince that vista is flawed, evil, and not to be trusted in any case)
19:08.28ivucicabut HP forces people to use it by not only not publishing new drivers, but also by removing old ones off
19:09.36*** join/#htc-linux rob_w (n=bob@Ma25d.m.pppool.de)
19:13.19cr2pH5: compiled with -Wall
19:13.33pH5good, thanks.
19:18.06cr2using zimage from http://linuxtogo.org/~htcpxa/htcblueangel/O.P.I.E-II/
19:19.15cr2error opening tags.raw: No such file or directory
19:21.38cr2pH5: 3 longs in setup.h
19:22.14cr2do i need tags.raw ?
19:22.34*** join/#htc-linux goxboxlive (n=goxboxli@139.80-202-160.nextgentel.com)
19:23.21cr2<PROTECTED>
19:23.29cr2unknown machine: "BLUEANGEL       "
19:25.00ivucicait would appear that kernel is now being compiled successfully with arm-linux-gnueabi-gcc version 4.2 ;)
19:25.10ivucicaWITH option CONFIG_EABI turned on ;)
19:25.57cr2ivucica: great.
19:26.07ivucicacr2:  indeed ;)
19:26.12ivucicaweee!
19:26.26goxboxlivehi
19:26.30cr2pH5: if i connect 2 phones :
19:26.33cr2/tmp/htc-boot -l
19:26.34cr2ECHO error: 'B'
19:26.34cr2unknown machine: "UNIVERSAL       "
19:26.45cr2hi goxboxlive
19:26.54cr2a flashing craze has begone.
19:27.15goxboxlivecr2: what?
19:27.39goxboxliveahh you are going to test usb boot as pH5 made?
19:27.56goxboxlivedoes it also work on universal?
19:28.23cr2pH5: htc-boot -l works only one time. then everything is messed.
19:28.59cr2goxboxlive: trying it, but mine is locked. try it too.
19:29.14cr2goxboxlive: don't forget to look for cplinux :)
19:29.34cr2unknown machine: "UNIVERSAL       "
19:30.11goxboxliveI have used it on magician, but never universal
19:30.53cr2goxboxlive: i think it should work on universal too.
19:30.57goxboxlivecr2: whay do you want cplinux so much, is your broken?
19:33.04pH5cr2: ok, this program is obviously still much too stupid.
19:34.05cr2goxboxlive: it's autogenerated. but i'd like to compare.
19:34.31cr2pH5: i'll add the uni and ba to the table. does the bl version play any role ?
19:34.41pH5but anyway, usb boot won't work on anything but magician until somebody writes the ph5test.S code (it's magician specific right now)
19:35.40pH5also the part where it writes 0x92000000 to 0x90032bf4 is highly magician specific.
19:35.42ivucicacr2, pH5: does 2.6 build process have a makefile target for creating an initrd image with all the modules?
19:36.03pH5we have to look at the other machine's bootloaders to find the command tables and properly modify them depending on machine type.
19:36.09cr2pH5: i'm more interested in the communication with bl now. and dumping the data.
19:36.34cr2ivucica: initramfs, but you need to sort out the details.
19:36.56ivucicacr2: make: *** No rule to make target `initramfs'.  Stop.
19:36.56pH5cr2: good point, that is a prerequisite.
19:36.56ivucica:(
19:38.42ivucicaok, i'll try without initrd
19:38.59ivucicai think i built in mmc and stuff ....
19:39.08ivucicanow, a backup ...
19:39.18ivucicaplugging in bluetooth in my laptop -- and uploading zImage ;)
19:57.17cr2pH5: hangs on athena
19:57.20cr2/tmp/htc-boot -V -l
19:57.21cr2Tx: "info 0"
19:57.34cr2cu -l /dev/ttyUSB0
19:57.34cr2Connected.
19:57.34cr2Cmd>
19:57.52cr2Cmd>info 0
19:57.53cr2Cmd>
19:58.17cr2hm. looks like echo off
19:58.44pH5hm, should be possible to switch echo anyway. also, it has Cmd> instead of USB> or SER>
19:59.40cr2yes.
19:59.51cr2how do i switch echo on ?
20:00.30cr2stty -F /dev/ttyUSB0
20:00.30cr2speed 115200 baud; line = 0;
20:00.30cr2min = 1; time = 0;
20:00.30cr2-brkint -icrnl -imaxbel
20:00.31cr2-opost
20:00.31cr2-isig -icanon -iexten -echo
20:04.53cr2pH5: Cmd> is the only option
20:05.27cr2there is a 'getdevinfo' command
20:05.45pH5cr2: right, herald has that, too
20:06.15cr2checksum, wdata, rmbc, lnbs, info
20:06.16pH5I'm not sure what to do about the echo, htc-boot should enable echo on the tty.
20:06.34cr2how ?
20:07.02cr2erase, ls
20:07.08cr2what is ls ?
20:07.32cr2gpsf, gpsn
20:07.39pH5cfmakeraw(struct termios *t) defaults to echo enabled I think
20:08.49pH5hm, no. it _disables_ echo. so it has to be the bootloader that is sending the echo characters on magician and hx4700.
20:10.41ivucicacr2: can you check correct path for mmc card?
20:10.52ivucica_ /dev/mmc/ ...? what next?
20:11.05ivucicai need second partition
20:12.01cr2<PROTECTED>
20:12.09ivucicaworks not
20:14.02pH5cr2: I added Cmd> support, for the echo maybe I have to make the error checking less strict and/or add a buffer dump on echo errors.
20:14.19pH5I think there is some possibility to change echo behaviour of the bootloader with the 'set' command..
20:14.50*** join/#htc-linux anYc (i=mario@hadince17.hadiko.uni-karlsruhe.de)
20:15.19cr2pH5: updating
20:16.10ivucicacr2: is there any possibility that it's using some other device name?
20:17.06cr2ivucica: angstrom ?
20:17.18ivucicacustom hh.org kernel
20:17.39ivucicafetched from hh.org, made MMC built-in, and changed few other options
20:17.57pH5ivucica: current 2.6? and do you have something like rootdelay=1 in your kernel commandline?
20:18.05ivucicain fact i have rootdelay=10
20:18.08ivucicathought it might help
20:18.48pH5ok, this is enough to make sure that this is not a race between rootfs mount and mmc init.
20:19.18ivucicai didnt bother plugging in the cradle and getting console onto serial port
20:19.33ivucicado you wnat me to set it up? it will take a minute or two
20:19.59ivucica(not at home -- i have dialup at home and that would annoy me greatly with files such as eabi toolchain sized 93mb)
20:20.19cr2pH5:
20:20.19cr2write(1, "Tx: \"info 0\"\n", 13Tx: "info 0"
20:20.19cr2)        = 13
20:20.37cr2read(3, "\r", 1)                        = 1
20:20.37cr2poll([{fd=3, events=POLLOUT, revents=POLLOUT}], 1, 500) = 1
20:20.38cr2read(3, "\r\nCmd>", 17)                 = 6
20:20.38cr2poll([{fd=3, events=POLLOUT, revents=POLLOUT}], 1, 500) = 1
20:21.58pH5so athena can't be detected by "info 0" anymore. do I have to use getdevinfo?
20:22.12pH5(and what is its output)
20:22.19ivucicacr2, pH5: any last thoughts?
20:22.25ivucicai'll be going now -- i'm getting hungry ;)
20:22.48cr2pH5: does it need 'ocrnl' ?
20:23.10pH5ivucica: I'd say setting up serial is a necessity as soon as you have kernel messages scrolling off the screen.
20:23.27pH5I'd do that and recompile the kernel with mmc debug enabled.
20:23.35ivucicaack
20:23.37pH5cr2: never seen that.
20:23.37ivucicawill do
20:24.19ivucicaodd
20:24.27ivucicai just turned on mmc debugging and now i get:
20:24.31ivucicaarch/arm/mach-sa1100/usb/usb-char.c:61:27: error: asm/proc/page.h: No such file or directory
20:24.48cr2pH5: stty -F /dev/ttyUSB0 nl
20:24.56ivucicaeven odder: make clean results in:
20:24.56ivucicascripts/Makefile.clean:17: /opt/kernel/linux-2.6.x-hh/arch/arm/fastfpe/Makefile: No such file or directory
20:26.08cr2pH5:
20:26.11cr2GetDevInfo: Get CID OK
20:26.11cr2HTCSATHE1000TMB0HTCE
20:26.11cr2Cmd>
20:26.43cr2TMB0 looks like the crc32 ;)
20:26.48pH5cr2: ok. no, it doesn't. It expects CR chars in the bootloader output.
20:27.17cr2pH5: ok, but cu feels better with nl
20:27.31cr2info 0 is empty.
20:28.22pH5cr2: do you have getdevinfo on universal, too?
20:28.32pH5magician and hx4700 don't have it yet.
20:30.30cr2pH5: where did you get 'info 0' ?
20:30.41cr2seems to be a very old command.
20:30.49pH5well, hx4700 and magician are very old devices.
20:30.52cr2there is no getdevinfo on uni
20:30.56cr2ok :)
20:31.09cr2here is the good list
20:31.12cr2http://wiki.xda-developers.com/index.php?pagename=Hermes_BootLoader
20:31.52cr2info 2 work
20:32.09cr2info 3 works
20:32.36cr2pH5: you probably really want 'info 3' output.
20:33.03cr2lol
20:33.07pH5cr2: info 3 is used for password authentication
20:33.10cr2info 3 on athena says ...
20:33.13cr2UNIVERSAL       1.06.0000
20:33.20pH5hehe
20:33.37cr2after HTCSATHE10000T-MOB101 and hex.
20:34.13cr2pH5: but ATHE1000 is a reliable data.
20:34.30cr2info 4 works
20:34.56pH5ok, so let's check whether we can get machine type info from "info 3" on all devices.
20:35.09cr2info 5 empty
20:35.20pH5info 4 on magician is only the vendor image version ("O2___102")
20:35.37cr2info 6 works.
20:35.51cr2ok, compare it with hermflasher
20:35.56pH5info 6 just returns true or false here
20:36.05cr2i may check hermes too.
20:36.22cr2info 7 empty
20:36.37cr2info 8 empty
20:36.55cr27 and 8 work on hermes
20:37.36cr2it seems htc worked hard to make them all incompatible.
20:37.51cr2Cmd>wdata
20:37.51cr2Invalid parameter number!
20:38.52pH5arrgh, info 3 on hx4700 of course doesn't return any machine specific info at all
20:39.49cr2ok, checking uni and ba.
20:40.13pH5set 0 1
20:40.14pH5set 0 0
20:40.18pH5should turn echo on and off
20:40.26pH5echo on seems to be default on mag and hx
20:41.54cr2ba has info0,1,2,3,4
20:42.47cr2BLUEANGEL       2.05
20:43.25ivucicacr2, pH5: nothing is printed out on serial
20:43.55pH5cr2: and athena does only \r\n\r on info 0?
20:44.08cr2UNIVERSAL       1.00
20:44.11cr2and
20:44.14cr2UNIVERSAL       1.06
20:44.16pH5what happens on hermes?
20:44.17cr2on athena
20:44.24cr2pH5: wait :)
20:44.35cr2there is sable too.
20:44.59cr2pH5: yes, athena does \r on info 0
20:45.09cr2i used strace
20:45.22ivucicaum, guys?
20:45.41pH5ok, so I can issue "info 0" first, and when I get '\r' as first char, try echo 3 or getdevinfo or something like that.
20:46.22pH5ivucica: kernel parameter console=ttySx <-- which one is the serial port on your device?
20:46.24cr2ok.
20:46.35ivucicait worked with 0 in the past
20:46.40ivucicaon "other"  kernels
20:46.52ivucicattyS0 and (iirc) ttySA0
20:47.04ivucicathe first worked on a 2.6 kernel, the second on a 2.4 kernel (iirc)
20:47.52cr2pH5: hermes data is here UNIVERSAL       1.00
20:47.57cr2ah.
20:47.59pH5hm.
20:48.05cr2sorry, bad paste.
20:49.15ivucicais there a kernel option i have to turn on?
20:50.12cr2pH5: info 3 on hermes
20:50.15cr2HTCSHERM200VODAP001
20:50.21cr2then hex junk.
20:50.33cr2info 0 is empty
20:50.58cr2USB>getdevinfo
20:50.58cr2Command error !!!
20:51.17pH5ok. same on magician, only info 0 is still there. and on hx4700 I only have info 0, and info 3 only contains hex junk.
20:51.25ivucicaummmm.... yes.
20:51.51ivucicathis has nothing to do with "serial i/o" right?
20:51.59ivucica(that's found under "input device support")
20:52.22ivucicaah!
20:52.34ivucicai think i found it and it's turned on
20:52.38pH5oh wait, hx4700 has the "ROADSTER        1.01" in info 3, too. only it's inbetween the hex junk
20:52.39ivucicabut it seems to suggest ttySA0
20:52.44cr2pH5: so hermes hangs too.
20:53.10cr2ivucica: ttySA0 is old.
20:53.17pH5cr2: does it still hang when you do "set 0 1" in cu before starting htc-boot?
20:53.44ivucicacr2: so, do you have any suggestion?
20:54.12ivucicaEven if you say Y here, the currently visible virtual console
20:54.12ivucica(/dev/tty0) will still be used as the system console by default, but
20:54.12ivucicayou can alter that using a kernel command line option such as
20:54.12ivucica"console=ttySA0". (Try "man bootparam" or see the documentation of
20:54.12ivucicayour boot loader (lilo or loadlin) about how to pass options to the
20:54.13ivucicakernel at boot time.)
20:54.41cr2pH5: trying
20:55.22cr2pH5: i mean htc-boot hangs.
20:55.25ivucicaindeed, documentation also suggests ttySA0
20:55.33ivucicabut again, it's from 2000
20:55.57ivucicaso what next?
20:56.19cr2pH5: \r comes from echo.
20:56.43cr2pH5:
20:56.43cr2poll([{fd=3, events=POLLOUT, revents=POLLOUT}], 1, 500) = 1
20:56.43cr2read(3, "\nUSB>", 17)                   = 5
20:56.43cr2poll([{fd=3, events=POLLOUT, revents=POLLOUT}], 1, 500) = 1
20:56.47ivucicagiving several arguments for console is also valid, right?
20:57.03cr2ivucica: yes, but only the last will be used.
20:57.05ivucicameaning console=tty0 console=ttyS0,115200n1
20:57.06ivucicaah
20:57.12ivucicaevil :/
20:57.23pH5cr2: really?
20:57.45pH5I think I have both enabled on hx4700, and it gives messages to both the screen and serial port.
20:58.11ivucicacr2: if a device eg ttyS0 does not exists, it falls back to tty0?
20:59.04cr2pH5: http://pastebin.ca/760224
20:59.22cr2ivucica: ttyS0 always exist on sa11x0
20:59.44ivucicacr2: so, do you have any idea why do i not receive any traffic? :S
21:00.31pH5cr2: argh, now you have echo enabled on both sides.
21:00.55pH5I don't get it. whenever I run htc-boot, the tty is set to -echo afterwards.
21:01.08pH5so here it disables local echo like it should.
21:03.00ivucicaguys ... what could be the problem? or have you never experienced anything like this?
21:03.23ivucicathe tty0 (correctly) receives no data
21:03.30ivucicabut ttyS0 also does not receive anything
21:04.19*** join/#htc-linux elysion (n=elysion@cd-a11.lkier.tontut.fi)
21:07.44pH5ivucica: not even the uncompressor's output?
21:08.13ivucicapH5: not haret's output, not kernel's output, nothing
21:09.36ivucicai do get wince output
21:10.00pH5as far as I can see, the uncompressor uses the first enabled uart (in the order 3, 1, 2)
21:10.38ivucicai really can't tell which one is that; i can only presume that's serial
21:11.18pH5maybe the uncompressor output goes into the wrong uart because when booting from haret all uarts are enabled.
21:11.37pH5I don't understand why there is nothing from the console though if it boots and you have console=ttyS0 set.
21:14.00ivucicaand i'm certain that with one of the kernels i had it worked
21:14.14ivucicai've just tried with angstrom's kernel -- no luck
21:38.04pH5cr2: updated htc-tools to use 'info 3' for identification. I hope all machines have device/version at 0x210 and 0x230 of the info 3 buffer.
21:41.15cr2/tmp/htc-boot -V -l
21:41.15cr2Tx: "info 3"
21:41.15cr2Rx: "HTCS"
21:41.15cr2Rx: "HTCE"
21:41.15cr2Rx: "\r"
21:41.15cr2unknown machine: "BLUEANGEL       "
21:44.08cr2/tmp/htc-boot -V -l
21:44.08cr2Tx: "info 3"
21:44.08cr2Rx: "HTCS"
21:44.08cr2Rx: "HTCE"
21:44.08cr2Rx: "\r"
21:44.08cr2unknown machine: "UNIVERSAL       "
21:44.38pH5oh, sorry. I forgot to increase the array size in the for loop.
21:45.13cr2i < 2
21:45.17cr2sizeof()
21:46.17cr25 is probably redundant too.
21:52.53ivucicai will try this tomorrow
21:53.01ivucicagot an entire day doing nothing ;)
21:53.03ivucicagood night folks
21:53.11pH5night ivucica
21:53.50pH5two bug fixes in the last two commits for two bugs in the previous two commits
21:54.04pH5--> good night :)
21:56.02cr2<PROTECTED>
21:56.02cr2<PROTECTED>
21:56.02cr2<PROTECTED>
21:56.02cr2<PROTECTED>
21:56.17cr2/tmp/htc-boot -V -l
21:56.21cr2Tx: "info 3"
21:56.21cr2Rx: "HTCS"
21:56.21cr2Rx: "HTCE"
21:56.21cr2Rx: "\r"
21:56.21cr2detected machine: HTC Universal
21:56.21cr2unknown machine: "UNIVERSAL       "
21:56.58cr2/tmp/htc-boot -V -l
21:57.02cr2Tx: "info 3"
21:57.06cr2Rx: "HTCS"
21:57.10cr2Rx: "HTCE"
21:57.14cr2Rx: "\r"
21:57.14cr2detected machine: HTC Blueangel
21:57.14cr2Tx: "password 0~~U~~~0~~l|t000"
21:57.14cr2Rx: "HTCS"
21:57.14cr2Rx: "HTCE"
21:57.15cr2<PROTECTED>
21:59.24cr2pH5: still here ?
22:00.02BabelOlol, cr2 does it work now ?
22:01.02cr2BabelO: in this part yes.
22:01.13pH5cr2: hardly.
22:01.37pH5any more stupid mistakes to fix quickly?
22:02.41cr2pH5: don't see yet :)
22:02.55cr2pH5: do i really need these asm blobs ?
22:03.22cr2i'm looking at the SP and FB areas, so i can upload the zimage at some sane place.
22:04.14cr2pH5: cool.
22:04.18cr2/tmp/htc-boot -V -l
22:04.22pH5cr2: only ph5test.S (trampoline code similar to what haret uses).
22:04.22cr2Tx: "info 3"
22:04.26cr2Rx: "HTCS"
22:04.30cr2Rx: "HTCE"
22:04.34cr2Rx: "\r"
22:04.34cr2detected machine: HTC Universal
22:04.34cr2Tx: "password ~;eg~0s~~]~\]000"
22:04.34cr2Rx: "HTCS"
22:04.35cr2Rx: "HTCE"
22:04.35cr2<PROTECTED>
22:05.08cr2pH5: i though the bl disables mmu before executing the uploaded code ?
22:05.35pH5cr2: hehe, not this way.
22:06.04pH5I'm just modifying the bootloader's command table to jump to a given memory location when a certain command is entered.
22:06.22pH5That's why the htc-boot part is still highly magician 1.02 specific.
22:07.27cr2pH5: looks like a wild hack :)
22:07.32cr2/tmp/htc-boot -V -l
22:07.36cr2Tx: "info 3"
22:07.36cr2Rx: "HTCS"
22:07.36cr2Rx: "HTCE"
22:07.36cr2Rx: "\r"
22:07.36cr2\r\ndetected machine: HTC Universal
22:07.36cr2unknown bootloader version: "1.06.0000       "
22:07.42pH5and that is exactly what it is :)
22:07.42cr2got that on athena
22:08.08cr2pH5: but there is some standard way to exec from ram.
22:08.16cr2or is it SD-only ?
22:09.15pH5cr2: if you help me to find it, I'd be more than happy to try it. maybe it is SD only, but maybe (with another wild hack) we can jump into the code there somehow. In any case, booting from bootloader command line will be highly bl specific.
22:09.47cr2yes, i'm trying to remember how i wanted to boot off SD.
22:10.54pH5great. good night for real now. I'll fix athena detection tomorrow.
22:23.45Kevin2Hi
22:24.41cr2hi Kevin2
22:25.40Kevin2What's new?
22:26.59cr2many interesting developments, but nothing to present yet.
22:30.43cr2Kevin2: i have some data for ATIDBG, so it should be possible to trace its power functions.
22:31.10cr2then i've found some code for working with ossvcs.dll
22:31.32cr2to enable/disable the bt/wifi/radio
22:33.17Kevin2Sounds cool.
22:35.50cr2here ->
22:35.53cr2http://www.pocketpcdn.com/forum/viewtopic.php?p=27362&sid=b4738ab5d948cd0c197165912af628b8
23:00.31cr2BabelO: already sleeping ?
23:01.42BabelOno, looking at QTabWidget ;)
23:02.16cr2:)
23:05.39BabelOcr2: any luck with bootloader for ba ?
23:07.21BabelOlol this is my new friend "Segmentation fault", it is same as blue screen a t work ;)
23:08.20cr2i was tired of asm, so looking at g3.c now.
23:08.29cr2need to mmap /deV/mem
23:09.03BabelOok, i ve found a nice tux for my app welcome ;) tux viking

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.