irclog2html for #htc-blueangel on 20060322

00:01.04aweluxfunny
00:48.30*** join/#htc-blueangel awelux (n=awelux__@dslb-084-058-148-208.pools.arcor-ip.net)
00:48.41aweluxlast findings:
00:49.37aweluxSomehow I'm loading the kernel or zImage to the wrong address. I'm loading to 0x10000 instead of 0x8000
00:50.09aweluxProbably my misstake.
00:53.33aweluxBut it looks as if the problem is back in the c copde building the kernel bundle (I touched that as well).
00:53.40aweluxMore tomorrow
00:53.41aweluxgn8
07:08.24*** join/#htc-blueangel rob_w|mis (n=rob_w@p549B8BC7.dip0.t-ipconnect.de)
08:19.34*** join/#htc-blueangel awelux_ (n=awelux__@dslb-084-058-175-245.pools.arcor-ip.net)
11:00.42*** join/#htc-blueangel pH5 (n=ph5@p54866371.dip.t-dialin.net)
15:09.54*** join/#htc-blueangel philverb (n=philverb@c-24-5-65-9.hsd1.ca.comcast.net)
15:10.14philverbHi.  Anybody in here with an Apache?
15:16.01*** join/#htc-blueangel ekkobelli (n=michi@p54A3DAD2.dip.t-dialin.net)
15:31.24cr2hi philverb
15:31.46cr2no. but there is a lot of common hardware between the htc phones.
16:23.34*** join/#htc-blueangel pH5 (n=ph5@e178213031.adsl.alicedsl.de)
18:36.12*** join/#htc-blueangel rob_w (n=bob@p213.54.202.126.tisdip.tiscali.de)
18:36.12*** mode/#htc-blueangel [+o rob_w] by ChanServ
19:15.09*** part/#htc-blueangel pH5 (n=ph5@e178213031.adsl.alicedsl.de)
19:46.27Funklorddamnit, I accidentally overclocked my BA.. and it hard reset
19:46.33Funklordusing wince
19:47.16Funklordanother reason why the wince ramdisk idea is flawed
20:30.51awelux_hi
20:31.41awelux_Funklord, I understand that it's just a matter of finding out how to initialize the devices.
20:31.47awelux_"just"
20:33.03Funklordhmm?
20:34.00awelux_if you want to flash the pda to boot linux directly there is more work to do than writing the bootloader
20:34.08FunklordI'm using winCE atm, it knows how to init my devices, just that it's such a pile of shit
20:34.25awelux_^^
20:34.33Funklord;P
20:34.40awelux_that's why we do this work ;)
20:37.53Funklordyes, I should do some too.. but haven't had the time.. :(
20:38.16Funklordawelux_: are you working on the oe stuff?
20:38.46awelux_no.
20:38.53awelux_I'm working on the magician basics
20:43.07cr2hi awelux
20:43.45cr2i have finally removed the binary toolhelp.lib from haret, and found a way to generate it in the makefile.
20:43.56cr2i think i will commit the source into CVS.
20:45.54cr2i have also converted the linuxbios logo into an *.ico, so it can be used for the minibootloader.
20:46.53cr2hmm.
20:48.57cr2DLL Name: (null)
20:53.52cr2through studying the dirty windows internals i will become a decent windows programmer :lol:
20:53.58cr2it works now.
21:13.26awelux_nice
21:14.30awelux_I'm searching for a bug why I load the kernel to 0xa0210000 instead of 0xa0208000
21:14.49awelux_It seams that I make a mistake in the C part of haret already
21:21.51*** join/#htc-blueangel lamikr (n=chatzill@aragorn.kortex.jyu.fi)
21:24.15cr2ok. it it committed and even compiles and boots after the checkout.
21:26.14awelux_nice.
21:26.28awelux_Any progress on the 2.6.15 kernel ?
21:26.42awelux_I got my new pda pen's today
21:28.26cr2no. i'm looking after the gpios again.
21:32.40*** join/#htc-blueangel husam (n=kvirc@217.206.111.105)
21:32.50husamhi cr2
21:33.11lamikrhi all
21:33.21awelux_hi
21:34.04husamawelux_ : ... any lock with your boot :)
21:34.06lamikrDid I understood 2 days ago correctly that you can boot to Linux without modifying the bootloader?
21:34.33awelux_husam, not yet. Maybe a little progress. At least something to investigate.
21:34.53husamThats good
21:36.06cr2hi husam
21:36.21cr2there are some regs missing in the acx100 driver.
21:36.21lamikrSomething like putting special filesystem to mmc/sd card could allow the boot to Linux from the mmc card instead of booting to wince...
21:36.26husamhi ...
21:36.37cr20x900
21:36.49cr2vendor/product.
21:37.20husamLet ne have look ... I have header files I got from tiacx group
21:37.20cr2lamikr: is h6300 a htc phone ?
21:37.42husamNo It's i[aq
21:37.45husamipaq
21:37.47lamikrcr2: No, it's HP's omap based ipaq.
21:38.01cr2most ipaqs are from htc.
21:38.04cr2and loox
21:38.07cr2and some others.
21:38.10lamikrBut it has same MDOC with blueangel.
21:38.15husamgood to know
21:38.43cr2most, if not all. that's why i am asking about the bootloader.
21:39.12cr2it's called "outsourcing" ;)
21:39.28husamYah .. alots of compnay do that
21:40.14lamikrThere are actually two new ipaq models 6800 and 6900... One of the them looked exactly like blueangel.
21:40.20cr2lamikr: doc+ ? it is used only by himalaya. the rest uses g3.
21:40.42husamcr2: yes h6300 uses mdoc+
21:48.42cr2i have looked up the register table here: http://195.66.192.167/linux/acx_patches/current/
21:48.43*** join/#htc-blueangel immolo (i=tyactctn@cpc3-cosh1-4-0-cust151.cos2.cable.ntl.com)
21:50.07husamrc2: the header file I have is part of windows driver ... and it list all registers
21:50.20lamikrcr2: I had thought that the "DoC G3 64MiB" mentioned in http://www.handhelds.org/moin/moin.cgi/BlueAngel is same mdoc.
21:50.57husamLamikr: we have G2 not G3
21:52.16cr2is it secret ? :)
21:52.40husamNooo ... givme your email and I will send it to you :)
21:53.50cr2i have enough things to do :) is the 0x900 register there ?
21:54.05husamYes
21:54.09cr2ok.
21:54.49cr2i have seen in your driver that you set the buffer memory pointer to 0.
21:55.22cr2is it possible to find this address from the control area ?
21:55.56cr2i searched on google for the pci logs, and the positioning of this area is quite random.
21:56.20husamAccording to the code you should be able to get the offset from the control register
21:57.02cr2which register should i read ? is the latest hx4700_wlan.c of any use ?
21:57.29husamthe buffer is set to zero becuase I'm using the controller address to refernce
21:58.13cr2i don't want to work with the driver myself, but this address seems to be the key to the whole story.
21:58.23cr2so what is the "actual" address used by h6300 ?
21:58.43cr2i like gathering such statistics in wiki :)
21:59.04husamNo the register returns the offset and then you can use control register to address the memory location
21:59.55cr2http://wiki.xda-developers.com/index.php?pagename=HTC_Partnumbers
21:59.57cr2http://wiki.xda-developers.com/index.php?pagename=HTC_Serial
22:00.03husamIO_ACX_INFO_MAILBOX_OFFS
22:00.25cr2http://wiki.xda-developers.com/index.php?pagename=HTC_DiskOnChip
22:00.28cr2ok.
22:00.42husam:) wow
22:01.48husamand I'm using IO_ACX_SLV_MEM_ADDR, IO_ACX_SLV_MEM_DATA to read
22:02.07husamI never manage to directoly map the memory area
22:02.53cr2it is the right way for the "control" registers, but is it the same for the buffer ?
22:03.07husamcr2: do you know if Himalaya has the new drivers for mdoc+ 32M!!!
22:03.37cr2no. drivers.
22:03.52husamI think so .. let me see I think I have anther driver uses that for the buffer too
22:04.14cr2there is a binary driver for the moto a780. it is for g3, but i think g2 is also supported. not sure though.
22:04.38cr2but only for 2.4
22:05.11husamohh  ... I manage to get the new driver to read partition table ... but not sure if i have the right info
22:06.18cr2cp15 has written a wrapper for the motorola driver, and read some info, but i don't know about his further progress.
22:06.53husamok ... how did you guys manage to boot from mmc/sd !!!
22:06.55lamikrHas cp15 worked also with the himalaya?
22:07.46cr2no. lkcl has written the himalaya stuff.
22:07.50husamcr2: the code I have suggest thet you can use slave mode to with buffer
22:08.15cr2husam: the asic3 sd/mmc driver is used on ipaq hx4700. blueangel and universal use the same chip.
22:08.47husamso I need to find out if h6300 uses teh same one
22:09.17cr2don't think so. omap has a builtin sd ?
22:09.34cr2magician uses the builtin pxa sd/mmc .
22:09.37husamyes thats true ...
22:09.44cr2and all the later zaurus.
22:10.42husamI had look at the bootloader code for h6300 ... so far I can't see MMC/SD card code
22:11.12cr2but if the buffer can be mmaped (like the pci) then it is much more comfortable and probably faster.
22:11.41husamAgree ... but I don't have the right memory layout
22:12.21lamikrcr2: So does the htc bootloader contain method for reading this special MMC/SD chipset during the boot?
22:12.34cr2of course.
22:13.19cr2lamikr: is the bootloader using virtual memory mapping ?
22:13.45husamcr2: yes  bootloader using virtual memory mapping
22:14.05cr2do you know the map ?
22:14.08cr2http://wiki.xda-developers.com/index.php?pagename=UniversalMemoryMap
22:14.13cr2somethig like that.
22:14.13husamyes
22:15.09cr2well, but the there must be a sd/mmc control area there.
22:16.06husamomap uses control register to interface mmc/sd card
22:16.18lamikrcr2: So is the htc bootloader always trying to boot first from the SD/MMC card and if it does not find something that it is looking, then continue the boot by loading wince from the flash?
22:16.58cr2in principle, yes. it is just a bit more complicated.
22:17.33cr2because there are many options. and buttons that can change the boot process.
22:18.37cr2we boot from wince right now, but once the suspend/resume works, wince can be dropped.
22:18.52cr2like on hx4700.
22:18.56husamlucky you :)
22:18.56lamikroh? Just by using the couple of buttons that are available in the htc?
22:19.24lamikrcr2: So is hx4700 booting directly from the MMC/SD?
22:19.39cr2you can press some buttons and get a bootloader command line.
22:19.59cr2hx4700 flashes its own bootloader. SD/mmc is an option.
22:20.16cr2blueangel can do the same.
22:20.18husamI did that .. I manag to get h6300 into stage where it listen to usb connection ...
22:20.30husambut when I connected I got random data
22:20.35cr2universal is more compilated, because everything is on the m-sys g3
22:21.10cr2is it a builtin usb slave ?
22:22.24husamI think so ... omap has built in USB
22:23.03lamikrI have actually newer tested this myself, but everett has put following from the h6300 boot:
22:23.14lamikr<PROTECTED>
22:23.16lamikrYou must reboot the ipaq, and hold down the 'email' and 'contacts' buttons before the tmobile screen appears.  Then insert the ipaq into the cradle, you should then see "BL" in bottom  left hand corner.  When the ipaq is in the cradle you should see "USB" at the bottom.  If your ipaq is not plugged in, you should see "No AC"...  now to configure minicom to work....
22:23.45cr2looks like htc :)
22:23.48cr2http://wiki.xda-developers.com/index.php?pagename=Universal_Technical
22:24.05husamcr2: I'm looking at tiacx100 slavedma.c ... it looks like you can use controller register to write to buffer the same you you do with mailbox
22:26.21cr2the virtual memory map shows 1MB for acx100. so there are only 15 64K options :)
22:27.48husamI guess the first area for contol registers and the other for shared memory area
22:28.10cr2yes. the first is control.
22:28.43cr2the question is which of the rest is the buffer.
22:29.01husamyes :) ...
22:29.54husamthis why I was planinig to use control register ... lazy man approch :)
22:30.01cr2i will look with haret :)
22:31.14husamThats good
22:35.49cr2don't see anything...
22:36.08cr2it's the same pattern all over this megabyte.
22:36.44husamyou the driver does build link list of buffer though
22:37.39cr2maybe the driver is mapping some other area.
22:37.56husammaybe
22:39.28cr2the driver is a monster. disassembling it is not fun.
22:40.00husamI did that with one on my device ... someone did that for me using ida ...
22:40.10husambut still not easy to follow
22:41.13husamDamm ... I been pressing all kind of key combination ... I can only get the one we know :(
22:42.06husamcr2: try an monitor Data control register .. when you send and receive packets .. maybe this whats been used
22:45.40cr2but it is not that easy. i need to write its offset into +4 and then read +8 ?
22:46.09husamOhh I see
23:10.31*** join/#htc-blueangel pandreas21 (n=a@static-np1-203.cytanet.com.cy)
23:11.21pandreas21hello:)
23:12.10cr2hi
23:12.14pandreas21trying to boot linux as per the instructions in http://www.handhelds.org/moin/moin.cgi/BlueAngel
23:12.27cr2do you want to destroy your phone too ? :)
23:12.32pandreas21hehehehe
23:12.42cr2so.
23:12.57pandreas21yesterday i "destroyed" my ipaq 2210 as well
23:13.17cr2poor bill is crying on the way to the bank.
23:13.30pandreas21have an mmc card 1gb
23:13.36cr2should be ok.
23:13.46pandreas21formatted as per the instructions 30Mb fat16 and rest ext3
23:13.56cr2ok.
23:14.09pandreas21mounted fat partition to /mnt/sd0
23:14.15pandreas21and ext3 to /mnt/sd1
23:14.20cr2ok.
23:14.50pandreas21created /mnt/sd0/linux and /mnt/sd0/2577
23:15.32pandreas21copied all files except the rootfs to linux and autorun.exe to 2577
23:15.57pandreas21so far everything according to the guide
23:16.01pandreas21?
23:16.26cr2ok.
23:17.08pandreas21got opie rootfs instead of gpe. is it ok?
23:17.32cr2yes.
23:17.44pandreas21untarred into /mnt/sd1
23:17.54pandreas21and synced
23:18.03cr2will need some tweaks though.
23:18.05cr2ok.
23:18.25pandreas21unmounted and inserted the card in pda2k
23:18.37pandreas21nice tux logo with thermometer
23:18.40cr2ok.
23:18.58pandreas21error reading initrd-2.6.12-hh2.gz
23:19.09pandreas21when thermo almost full
23:19.29cr2hmm. i have already heard something like that.
23:19.47pandreas21yeah i saw it on an irc log in google
23:20.32cr2try to format the fat16 within wince.
23:21.00pandreas21ok, i am not sure about something....
23:21.13cr2another option is to compile the kernel with the sd/mmc driver and mount the linux partition directly.
23:21.23pandreas21formatted first partition with fat16 <32M, maybe this could be the cause?
23:21.45cr2i have a blueangle, but hacking on the universal right now.
23:21.51cr2i think it does not matter.
23:22.00cr2i have 10MB partition.
23:22.37cr2you can even copy this stuff to the wince ramdisk. inconvenient after the reset, but should work.
23:22.52pandreas21aha!
23:23.36pandreas21and the universal is?
23:24.16cr2i use the same opie, and mount it directly.
23:24.26cr2without the ramdisk.
23:24.56pandreas21any docs on that or i should just google it?
23:25.25*** join/#htc-blueangel husam (n=kvirc@217.206.111.105)
23:26.06pandreas21oh jarjar
23:26.08cr2on what ? how to compile the kernel ?
23:27.01cr2here. but it is not yet so functional as the blueangel.
23:27.04cr2http://forum.xda-developers.com/viewtopic.php?t=35972
23:27.26*** join/#htc-blueangel immolo (i=lwhxpf@cpc3-cosh1-4-0-cust151.cos2.cable.ntl.com)
23:27.47pandreas21is the phone working now for blueangel or?
23:30.20cr2blueangel - yes, universal - no.
23:31.41pandreas21another question and i am gone. how on earth do i format the card under ce?
23:32.08cr2format it as ext2, then wince will suggest you to "format" it.
23:32.36cr2but with the fat16 partition flag, so it will see it.
23:32.43pandreas21hahahaahahaha
23:32.54pandreas21thnx cr2
23:33.40cr2universal is fun, after i will finish it, i will do a user-friendly install for the blueangel.
23:34.14pandreas21great
23:34.18pandreas21bye now
23:40.59cr2husam:
23:41.02cr2WLAN: io addr 0x24=0x01030505
23:41.21husamNice
23:41.32cr2WLAN: mem addr 0x0=0x00000000
23:41.42cr2WLAN: mem addr 0x4=0x00010004
23:41.59cr2WLAN: mem addr 0x8=0x00020008
23:42.02cr2and so on.
23:42.17cr2i have adapted the hx4700_wlan debug code.
23:42.38cr2have a look, you know it better :)
23:42.53husamWas that the oofset from the beginig of the memory area
23:43.04cr2ACX_SLV_MEM_ADDR_LO
23:43.13cr2ACX_SLV_MEM_ADDR_HI]
23:43.36cr2<PROTECTED>
23:43.39cr2<PROTECTED>
23:43.40cr2<PROTECTED>
23:43.40cr2<PROTECTED>
23:43.40cr2<PROTECTED>
23:43.41cr2<PROTECTED>
23:43.41cr2<PROTECTED>
23:44.11cr2the driver is from the hh.org CVS.
23:44.27husamis so they did but it there
23:44.54husamI think I had look around last time it wasn't there
23:45.13cr2looking for a link.
23:46.32cr2http://handhelds.org/cgi-bin/cvsweb.cgi/linux/kernel26/arch/arm/mach-pxa/hx4700/hx4700_wlan.c?rev=1.8&content-type=text/x-cvsweb-markup
23:47.09cr2hmm. this is after the soft reset.
23:47.24cr2not on the running wince config.
23:48.14husamI though these register could have different values depend where you reading or writing
23:49.09cr2well, i did what i could, the power init/down/reset code is ok, the chip is detected.
23:49.10husamI think this the device which have very limited number of control registers to access
23:51.36cr2i think eeprom & friends could be dumped too from the control area.
23:52.03cr2i will move to the phone/modem port now :)
23:52.03husamyes and the acx driver has the interface
23:52.12husam:)
23:52.28husamI'm trying to get y-boot to work with h6300
23:52.45cr2blueangel can make calls, and i can't.
23:53.12husamhmm!!! .. do you have builtin phone
23:54.58cr2i have umts. on the second cpu.
23:55.01cr2http://wiki.xda-developers.com/index.php?pagename=HTC_Universal
23:56.16husamOK

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.