IRC log for #htc-linux on 20090524

00:00.11tmztyes, same url
00:00.17tmztI checked, channel names are there
00:01.50tmztok, I will have to upload the htc-hw
00:02.50tmztgsm commands should be standard, any linux gsm howto should have them
00:03.00cr2i can't check right now, because i need to dismantle the nc10 and loose the inet link
00:03.15cr2i have them from nc10
00:03.55tmztthat should work
00:03.55cr2but since it's cdc_acm there, it uses only 1 channel for cmd/data
00:03.58tmztshould be the same commands
00:04.00cr2nc10 runs debian
00:04.15cr2yeds, but still not exactly the same script.
00:04.22tmztpon?
00:04.41cr2pon is more or less direct pppd call
00:04.46tmztwhy not?
00:05.02tmztcheck the chat line in peers
00:05.50tmztthe only difference seems to be the AT commands are on one channel, ppp is on another
00:06.07tmztbut the same commands
00:06.59cr2yes, i hope pppd would have been smart enough to support split channels
00:08.19tmztI'm not getting it
00:09.01tmztppp isn't really involved in AT, it just allows to connect script to use the same tty
00:09.29cr2pon calls 'pppd call $foobar_provider
00:09.56tmztyes, so look in /etc/ppp/peers/
00:10.03cr2and in /etc/ppp/peers/$foobar_provider you can specify only 1 serial port
00:10.05cr2afaik.
00:10.35tmztafter AT echoes I do:
00:10.54tmztpppd /dev/smd1 noauth local
00:11.02tmztthat's all
00:11.04cr2ok.
00:11.26cr2i'll try it tomorrow. it's 2:10 here.
00:11.30cr2good night
00:13.59*** join/#htc-linux StarLite (n=nnscript@swaneng.xs4all.nl)
00:21.24*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
00:25.51*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
00:29.02*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
00:35.03*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
00:39.43*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
00:42.54*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
00:46.35*** join/#htc-linux StarLite` (n=nnscript@swaneng.xs4all.nl)
00:50.46*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
00:54.20*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
00:57.38*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
01:10.48*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
01:20.05*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
01:23.16*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
01:24.06*** join/#htc-linux StarLite (n=nnscript@swaneng.xs4all.nl)
01:28.17*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
01:34.22*** join/#htc-linux onlysoaa (n=onlysoaa@dsl-142-148.aei.ca)
01:36.45onlysoaaHello guys... Any progress reports on Diamond and Raphael? The last commit on git was on April 26th...
01:37.39tmztweel, cr2 is busy on it doing research
01:37.56tmztmadCoder-:
01:38.21tmztmaejrep I mean has been busy with other stuff
01:38.31tmztwhich raph/diam?
01:40.37onlysoaaWell I have a DIAM500 specifically, and I suppose the DIAM100 has a higher priority.
01:40.57onlysoaaAlthough, DIAM100 progress might help with the DIAM500 port as well.
01:41.13tmztdiam500 is cdma?
01:42.16onlysoaaYup it is. I'm guessing CDMA support would take a while, but it'd still be nice to hear about DIAM100 updates.
01:42.23tmztmaejrep has raph800
01:42.37tmztI have raph500
01:42.42tmztboth cdma
01:42.53onlysoaaAh, that's cool. :D
01:43.01tmztnot sure about updates
01:43.12tmztmostly research right now
01:43.18onlysoaaHmm... What's the current roadmap, if any?
01:43.28tmztI do have something to test if you want
01:43.34onlysoaaSure! :D
01:43.41onlysoaaAnything to get this done faster.
01:43.51tmztshould enable calling with no audio
01:44.14tmzttinderbox.dev.gentoo.org
01:44.15onlysoaaOh, on the CDMA network?
01:44.29tmzttinderbox.dev.gentoo.org/embedded/linwizard
01:44.35tmztlatest msm-
01:44.38tmztyes
01:44.45tmztmaybe sms as well
01:45.01onlysoaaIs it source or binary?
01:45.11tmztbinary
01:45.16tmztstage3
01:45.43tmztextract to sd card under root on ext2/3
01:45.51tmztpartition
01:46.03onlysoaaOh, it's not Android?
01:46.11onlysoaaAnd there's no SD card in the DIAM500.
01:46.18tmztI'm going to try to put this in wiki
01:46.34tmztinternal sd, but yeah, won't work
01:46.42tmztneeds loop
01:47.14onlysoaaLoop... Sorry, I'm a bit new to this. I did manage to compile my own kernel and boot Android though.
01:48.48tmztcool
01:48.55tmztloop is loopback fs
01:49.12tmztnot really an fs, it's a block device
01:49.43tmztthat's how android works actually
01:51.27onlysoaaAhh. So your build won't work?
01:52.03tmztnot on diam
01:52.26tmztsince you can't partition the internal sd
01:53.18onlysoaaI see... Thanks for informing me though!
01:53.28onlysoaaDo calls and sms work on your phone?
01:54.26tmztI've only tried making calls
01:54.41tmztthere's something else, hold on
01:54.59onlysoaaKk.
01:57.34*** join/#htc-linux StarLite` (n=nnscript@swaneng.xs4all.nl)
01:57.36*** join/#htc-linux fnord_ (n=fnord@24-151-90-116.static.nwtn.ct.charter.com)
01:57.37tmztroot=/dev/loop
01:58.25*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
02:02.44*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
02:04.42tmztlooproot=/dev/mmcblk0:giz.img
02:04.57tmztok, this should work
02:05.29tmztpeople.openezx.org/tmzt/initfs.img
02:05.58tmztdid you put android in tmp on internal sd?
02:09.09*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
02:11.27tmztonlysoaa: get that?
02:13.10tmztcopy zImage haret and default.txt to a folder giz on internal card
02:13.21tmztfrom android
02:13.47tmztput that initfs.img in that folder
02:14.03tmztchange default.txt
02:14.20tmztset INITRD initfs.img
02:15.30tmztset CMDLINE "root=/dev/loop looproot=/dev/mmcblk0:/giz/giz.img
02:15.44tmztset CMDLINE "root=/dev/loop looproot=/dev/mmcblk0:/giz/giz.img rootdelay=7"
02:16.01tmztuse diam500 MTYPE
02:16.31tmztthen, make a folder on linux pc
02:16.52tmztextract the msm tar.bz2 into it AS ROOT
02:17.02tmzttouch dev/*
02:17.12tmztcd ..
02:17.30tmztdu -hs thefolder
02:18.18tmztdd if=/dev/zero of=giz.img bs=8M count=32
02:18.30tmztmke2fs -j giz.img
02:18.40tmztmkdir mnt
02:18.56tmztmount -o loop giz.img mnt
02:19.12tmztcp -a thefolder/* mnt/
02:19.20tmztas ROOT
02:19.29tmztumount mnt
02:20.00tmztcopy giz.img to internal sd folder giz
02:20.06tmztrun haret
02:20.15tmztboot linux
02:20.29onlysoaaAhh! Sorry, I got distracted. I'll test it out later, since I'm on Windows right now.
02:20.36tmztif that works, just tmzt: ping
02:20.37onlysoaaThanks for the guide. (:
02:20.46onlysoaaAlright.
02:20.53tmztok, log are at irclog.netripper.com
02:21.39tmztyou can test the first part from windows
02:26.17*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
02:29.46*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
02:33.15*** join/#htc-linux AndIrc (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
02:36.44*** join/#htc-linux AndIrc (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
02:41.22*** join/#htc-linux StarLite (n=nnscript@swaneng.xs4all.nl)
02:47.43*** join/#htc-linux AndIrc (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
02:50.54*** join/#htc-linux AndIrc (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
03:02.15*** join/#htc-linux AndIrc (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
03:05.31*** join/#htc-linux AndIrc (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
03:08.57*** join/#htc-linux AndIrc (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
03:09.06*** join/#htc-linux mrmoku|a` (n=mrmoku@ppp-93-104-102-52.dynamic.mnet-online.de)
03:12.24*** join/#htc-linux AndIrc (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
03:19.51*** join/#htc-linux AndIrc (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
03:24.18*** join/#htc-linux AndIrc (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
03:27.49*** join/#htc-linux AndIrc (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
03:32.14*** join/#htc-linux AndIrc (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
03:37.02*** join/#htc-linux StarLite` (n=nnscript@swaneng.xs4all.nl)
04:05.08*** join/#htc-linux Shinto (n=John@f048131111.adsl.alicedsl.de)
04:20.47*** join/#htc-linux StarLite (n=nnscript@swaneng.xs4all.nl)
04:51.54par[12:23] <parano|a> don't talk, don't kill anyone, CENTRAL INTELLIGENCE
04:51.57parahaahahhahha
04:52.09parearned youe name m8
04:58.27*** join/#htc-linux droid0011 (n=mc@p4FDCE2EE.dip.t-dialin.net)
05:04.55*** join/#htc-linux StarLite` (n=nnscript@swaneng.xs4all.nl)
05:31.48*** join/#htc-linux dzo (n=dzo@121-98-128-127.bitstream.orcon.net.nz)
05:42.16*** join/#htc-linux StarLite (n=nnscript@swaneng.xs4all.nl)
06:24.46*** join/#htc-linux goxboxlive (n=goxboxli@211.80-202-134.nextgentel.com)
06:32.58*** join/#htc-linux StarLite` (n=nnscript@swaneng.xs4all.nl)
06:51.13*** join/#htc-linux StarLite (n=nnscript@swaneng.xs4all.nl)
06:52.38*** join/#htc-linux timebomb (n=tb@g224064249.adsl.alicedsl.de)
07:02.56*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
07:12.10*** join/#htc-linux StarLite` (n=nnscript@swaneng.xs4all.nl)
07:34.22*** join/#htc-linux StarLite (n=nnscript@swaneng.xs4all.nl)
07:36.28Josanyone here ever opened his/hers HTC Touch HD ?
07:36.36JosCan't get the hooks apart
07:36.36Joshttp://lithium.flauw.net/foto/uploads/aae84cdd825cdfd0cc6189507ffb813f.png
07:45.08*** join/#htc-linux StarLite` (n=nnscript@swaneng.xs4all.nl)
08:01.08tmzttry #xda-devs
08:03.54*** join/#htc-linux Chicago (n=Chicago@c-98-223-72-235.hsd1.in.comcast.net)
08:06.35*** join/#htc-linux pH5 (n=ph5@p5485FD50.dip.t-dialin.net)
08:33.40*** join/#htc-linux StarLite (n=nnscript@swaneng.xs4all.nl)
08:39.23*** join/#htc-linux StarLite` (n=nnscript@swaneng.xs4all.nl)
08:42.19*** join/#htc-linux kiozen (n=oeichler@rgnb-5d8744aa.pool.einsundeins.de)
08:44.33*** join/#htc-linux AntiXpucT (n=Skim@77.106.108.232)
08:45.04*** join/#htc-linux timebomb (n=tb@g224064249.adsl.alicedsl.de)
09:20.55*** join/#htc-linux exception13 (n=exceptio@testdrive.kgts.ru)
09:24.08*** join/#htc-linux skodde (n=skodde@unaffiliated/skodde)
09:28.45*** join/#htc-linux StarLite (n=nnscript@swaneng.xs4all.nl)
09:32.45*** join/#htc-linux ltxda (n=anon@unaffiliated/ltxda)
09:53.40*** join/#htc-linux StarLite` (n=nnscript@swaneng.xs4all.nl)
09:55.33*** join/#htc-linux BabelO (n=fcr@unaffiliated/babelo)
10:13.39*** join/#htc-linux StarLite (n=nnscript@swaneng.xs4all.nl)
10:15.56*** join/#htc-linux hollo (n=hollo@3e6b7b2c.rev.stofanet.dk)
10:51.57*** join/#htc-linux nebi_ (n=nebi@user-387g3pr.cable.mindspring.com)
11:06.31*** join/#htc-linux nebi- (n=nebi@ip67-152-3-162.z3-152-67.customer.algx.net)
11:10.35*** join/#htc-linux MLM (n=mlvdmeid@meide.xs4all.nl)
11:19.14*** join/#htc-linux StarLite (n=nnscript@swaneng.xs4all.nl)
11:43.59*** join/#htc-linux StarLite` (n=nnscript@swaneng.xs4all.nl)
12:05.56*** join/#htc-linux nebi- (n=nebi@ip67-152-3-162.z3-152-67.customer.algx.net)
12:11.16*** join/#htc-linux zycho (n=zycho@dslb-088-070-062-141.pools.arcor-ip.net)
12:13.46*** join/#htc-linux StarLite (n=nnscript@swaneng.xs4all.nl)
12:27.14*** join/#htc-linux cr2 (n=cr2@ip-77-25-127-161.web.vodafone.de)
12:29.22cr2tmzt: umts works as expected for me with the "stream" patch. don't know why everybody is so lazy just to check it ;)
12:29.35tmztyay
12:29.46tmztwe need to tell mickey|zzZZzz he's in the other channel
12:29.56cr2ping mickey|zzZZzz
12:30.00cr2~ping mickey|zzZZzz
12:30.01aptpong mickey|zzZZzz
12:30.07tmzthe's on a different client
12:30.29cr2ok
12:31.15*** join/#htc-linux mickey|F9N (n=M@p57929CBF.dip.t-dialin.net)
12:31.18mickey|F9Nhi guys
12:31.31cr2hi mickey|F9N
12:32.02mickey|F9Nyo cr2
12:32.07mickey|F9Ntmzt just updated me
12:32.09cr2mickey|F9N: i've just tested umts, and it works. with the kernel patch that declares all smd channels "stream"
12:32.09mickey|F9Ncongrats, man
12:32.14cr2:)
12:32.15mickey|F9Ngreat
12:32.21mickey|F9Ncan't wait to come back home to test
12:32.24mickey|F9N(I'm on a conference)
12:32.27mickey|F9Nplease commit :)
12:32.27cr2ok
12:37.35tmztcr2: I found a OOPS and put it through ksymoops, but I have no idea what to do with it
12:38.00tmztthis is ppp_asynctty_receive and has constantly been braking ppp for me
12:40.48cr2we need maejrep for that
12:40.51*** join/#htc-linux StarLite` (n=nnscript@swaneng.xs4all.nl)
12:41.04tmztah
12:41.11tmztwhat about rpc?
12:41.30cr2the raph[58]00 smd is a bit different
12:41.40cr2which rpc ?
12:41.49tmztaudio
12:42.09tmztI mean did you find how to dump/trace rpc's in that smem.bin?
12:43.02cr2yes, they look very similar to vogue
12:43.35tmztI should paste the htc-hw changes, I'm not sure how to get them out of git though
12:43.37cr2first we need to patch the AMSS version, and compile the qdsp+rpc
12:43.46cr2git diff
12:43.49tmztit's git diff master
12:44.02tmztyeah, I committed them locally to keep some changes seperated
12:44.30cr2i'm not a git expert :)
12:44.47*** join/#htc-linux marmotta (n=skodde@unaffiliated/skodde)
12:44.47tmztI think I can just use the two sha1's
12:45.17cr2that's why i prefer when somebody else will commit the patches
12:45.17tmztyes, that worked
12:49.02tmztcr2: people.openezx.org/tmzt/git-diff-htchw-1.diff
12:49.47tmztcr2: people.openezx.org/tmzt/git-diff-audioparams-1.diff
12:50.00tmztthe top one is current
12:50.20tmztyou also need AudioParams.c which is for raph500/800
12:50.29tmztor you have to convert your own
12:51.03cr2http://people.openezx.org/tmzt/git-diff-htchw-1.diff
12:51.19tmztyes
12:51.33tmztthe other one I posted before but I forgot
12:52.21cr2did you check if the params match with the wince values ?
12:52.24tmztit uses the same values as dzo's vogue-hw but different sysfs directory
12:52.30tmztwhich?
12:52.38cr2i guess we will need if if booted standalone
12:52.57tmztthe AudioParams.c has the values from AudioPara3.csv
12:52.59cr2otherwise they are already there.
12:53.29cr2i think the best solution will be to have it as a firmware loader.
12:53.37cr2it's more or less firmware after all
12:53.50cr2we have the same problem with tiacx
12:56.04cr2i was not be able to trigger the UPDATE_AUDIO dex
12:56.17cr2only seen it in the wavedev.dll
12:56.55cr2http://people.openezx.org/tmzt/git-diff-audioparams-1.diff
12:57.06cr2sometimes i hate firefox
12:58.19cr2ok, you don't deal with the rpc side
13:07.26cr2tmzt: wtf is HTC 4G ?
13:10.09tmzta version of HD I think
13:10.20cr2ok
13:10.41tmztnot sure if it's wimax or something else, but it's for one isp in one country I think
13:11.44cr2ok
13:20.11*** part/#htc-linux exception13 (n=exceptio@testdrive.kgts.ru)
13:22.29*** join/#htc-linux exception13 (n=exceptio@testdrive.kgts.ru)
13:23.07cr2tmzt: btw, do we know how to create diag.nbh for raph ?
13:23.33tmztmaybe, we were working on that in #xda-devs
13:23.39tmztwith hspl it's not signed
13:23.53cr2haretless boot is a nice to have.
13:24.02tmztand linux kernel with a small prefix should work in place of xip.bin
13:24.32cr2yes, that's the idea. tags+zimage like on haret
13:24.54tmztcan you look at the asm on my account?
13:24.59tmztI think it's bad
13:25.25cr2which asm ?
13:25.29tmztbut that's what it's supposed to be, set mtype and atags
13:25.35tmzt.S file?
13:25.53tmzttestbooter.S
13:26.07cr2write in C like haret, dump and copypaste it.
13:26.18tmztwhat?
13:26.28cr2i've already added nand partition tags this way.
13:26.35tmztwell, I'm trying to learn the asm too
13:26.40cr2ok
13:27.03cr2now i've realized that i'm the only one who sees the nand partitions ;)
13:27.07tmztI have tested it with qemu and it sets r1 or r7
13:27.13tmztyeah
13:27.26tmztbut I'm happy to boot from sd card partition
13:27.53tmztpeople.openezx.org/tmzt/testbooter.S
13:28.01cr2ok, but having a linux rom is nice too.
13:28.15tmztyeah, once things work
13:28.16cr2http://people.openezx.org/tmzt/testbooter.S
13:28.22tmztyes
13:28.48tmztI use a trick from linux kernel to make a ram arm binary from it
13:28.53tmztraw
13:29.02cr2compare it with the linload.exe hexdump
13:29.10tmztwhere is that?
13:29.34cr2haret source
13:30.05tmztI've looked at haret, I thought linload was haret.exe with an embedded zImage/initrd
13:30.07cr2i think it's more complex than your asm
13:30.25cr2yes, but the tags are embedded too
13:30.29tmztthe idea is to have a prefix, data, then kernel
13:30.38cr2so it's tags+zimage+initrd
13:30.46tmztdata will be machtype+tags
13:31.00cr2ok
13:32.10cr2i think .globl is a label/address, not just a forward declaration
13:32.23tmztyeah, it's not neccessary I think
13:32.36tmztbut I strip everything anyway with objcopy
13:32.41cr2well, i prefer raw asm :)
13:32.51cr2i see.
13:33.01tmzthow do you assemble that?
13:33.06cr2probably the assembler lets you to write more readable code.
13:33.36cr2with 'as' to create .o
13:33.53tmztyes, but that's not raw is it?
13:33.53cr2and then you need to use 'ld' directly.
13:34.31cr2hmm. with right ldscript it may be raw.
13:34.53tmztI use something like objcopy -O binary -o testbooter.bin -R _start -R data -R machtype -R cmdline -R linux
13:35.01tmztthat creates a raw binary file
13:35.03cr2did too much disassembling recently
13:35.12cr2yes, that looks good.
13:35.15tmztyeah, but I didn't learn ldscript syntax
13:35.29cr2ok
13:35.53tmztthis works, objdump -b binary gives the same code back
13:36.06tmztbut I don't know the asm instructions to do what I want to do :)
13:36.32tmztto setup the atags list etc.
13:37.49tmztI have to look up ATAG_CORE and ATAG_MEM
13:38.11tmztI see there's a fixup in the raph kernel, I guess we don't need ATAG_MEM?
13:42.59tmztI just noticed something, I want the machtype in r1 but the address of the atags list in r2
13:43.07tmztit can't be the same instruction for both
13:43.45cr2check the haret .asm
13:43.57tmztok, where is that?
13:43.59cr2sorry, .S now
13:44.35cr2src/wince/asmstuff.S
13:46.22cr2and src/wince/kernelfiles.S
13:46.55cr2wow, .incbin
13:47.20tmztwhere is haret source now?
13:48.01*** join/#htc-linux zycho (n=zycho@dslb-088-070-062-141.pools.arcor-ip.net)
13:48.14cr2hh.org CVS
13:48.25cr2and git.linuxtogo.org
13:48.40tmztfound it
13:51.04tmztlinboot.cpp
14:00.45*** join/#htc-linux BabelO (n=fcr@unaffiliated/babelo)
14:01.14tmztwell, that didn't help me much
14:01.24tmztwhat did you want me to look at?
14:03.18*** join/#htc-linux wdslbr (n=asa@dslb-088-069-204-014.pools.arcor-ip.net)
14:05.04cr2mmu_trampoline
14:05.40tmztyeah, but it just jumps to the preloader which is already loaded
14:06.09cr2preloader is written in C
14:06.15tmztwhere?
14:06.23cr2linboot.cpp
14:07.01tmztyeah, I don't see where it's defined/declared
14:07.10cr2setup_linux_params
14:07.54tmztyes, which is passed the location to put the tags
14:08.24tmztI can see how to do it that way but I would need an ld script to get the _start to be 0 not 0800 or whatever it is
14:14.15cr2prepare for blowing nand
14:15.05tmzt?
14:15.27tmztI can give you my partition table if that will help
14:15.38cr2msm_nand_read_oob: unsupported ops->len, 512
14:15.39tmztnot right now, but when the two devices are back in windows
14:15.55*** join/#htc-linux pleemans (n=toi@d54C2AAB7.access.telenet.be)
14:16.03cr2does it want 2048 ?
14:16.18tmztno idea
14:16.30tmztI guess it's not even though
14:16.41tmztor the data blocks themselves are short
14:16.45tmztyou mean erase block?
14:16.51tmztcan you probe cfi?
14:17.00cr2lol
14:17.16cr2dd if=/dev/mtd0 bs=2048 | less
14:17.29cr2�C@�@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ECEC��D���
14:17.39cr2looks good :)
14:17.45tmzt??
14:17.52tmztoh, cool
14:17.58tmztwhat's the data?
14:18.03cr2Raphael SPL EVT@Shipped
14:18.05tmztwhat's mtd0
14:18.18cr2it's the spl
14:18.20cr2:)
14:18.30tmztmaybe no oob there
14:18.40cr2hehe
14:18.44cr2RUUNBH@@Upgrade ROM code error
14:18.48tmzttfat?
14:19.00cr2no, it's raw spl partition
14:19.11cr2fat should be windows ?
14:19.18cr2mtd4 ?
14:19.24tmztyeah, I mean were you going to say you got the tfat partition
14:19.35tmztI think there's imgfs is windows, tfat is data
14:19.37cr2<PROTECTED>
14:19.55tmztlinux won't mount it readwrite, the two fats are different from each other
14:19.59cr2MSFLSH50
14:20.02cr2on mtd5
14:20.02tmztit might work in msdos or readonly
14:20.04tmztimgfs
14:20.26cr2i don't know where is fat
14:20.27tmztwhat we should replace with yaffs :)
14:20.58cr2what to do with oob ?
14:21.08tmztwrite a driver for it
14:21.14cr2[  342.050585] msm_nand_read_oob 2832800 d4a05800 800 00000000 0
14:21.15cr2[  342.050921] status: c03030 ffff0008 c02030 ffff0008 c01030 ffff0008 c00030 ffff0008
14:21.15tmztI don't think it's important for ro though
14:21.17cr2[  342.050982] msm_nand_read_oob 2832800 800 0 failed -74, corrected 0
14:21.18cr2[  393.229998] MTD_close
14:21.25tmztexcept to skip bad blocks
14:21.39cr2is it different from g1/g2 ??
14:21.45tmztthat's probably android version
14:21.47tmztdon't know
14:21.53tmztmust be though
14:21.54cr2well, we want rw of course.
14:22.12cr2there is some bug #ifdef in the g1 code
14:22.15tmztsure, but we want to use yaffs2 or jffs2 with it's own bbt
14:22.16cr2looking for it.
14:22.28cr2it's hw ecc
14:22.39cr2g1 uses yaffs2
14:22.40tmztso it's the same
14:22.56tmztmaybe it's only part of the oob then
14:23.01cr2i need to check for the bug
14:23.04tmzthow much is there?
14:23.12cr2512 blocks size needs to be fixed somewhere too
14:23.22tmztwhat's the erase block?
14:23.37tmztand what's the total block size with oob
14:26.42cr2i'm looking for it
14:32.40cr2hmm. where is it in the git...
14:34.52cr2found
14:35.07cr2tmzt:  #if SUPPORT_WRONG_ECC_CONFIG
14:35.20cr2<PROTECTED>
14:35.47cr265 /**
14:35.48cr266  * msm_nand_oob_64 - oob info for large (2KB) page
14:35.49cr267  */
14:36.36cr268 static struct nand_ecclayout msm_nand_oob_64 = {
14:36.38cr269         .eccbytes       = 40,
14:36.39cr270         .eccpos         = {
14:36.41cr271                 0,  1,  2,  3,  4,  5,  6,  7,  8,  9,
14:36.42cr272                 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
14:36.44cr273                 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
14:36.45cr274                 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,
14:36.46cr275                 },
14:36.48cr276         .oobavail       = 16,
14:36.50cr277         .oobfree        = {
14:36.51cr278                 {30, 16},
14:36.53cr279         }
14:36.54cr280 };
14:36.56cr2how can i verify it ?
14:37.31cr2but first i'd like to know why it used 512byte block, and not 2K
14:37.36*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
14:39.20tmztI think windows will use the 512byte block, with a 2048 erase block (for writing) and then oob for the erase block and each of the subblocks
14:40.32cr2tmzt: it's g1 nand driver that complains about 512
14:41.20cr2i'm rebooting to check the dmesg again
14:41.33tmztI guess linux driver is very generic
14:41.47tmztI don't understand that pdata
14:43.27*** join/#htc-linux timebomb (n=tb@80.187.147.37)
14:45.55cr2<PROTECTED>
14:46.10cr2[    6.841021] Creating 6 MTD partitions on "msm_nand":
14:46.11cr2[    6.841235] 0x02400000-0x02480000 : "SPL"
14:46.13cr2[    6.841418] mtd: Giving out device 0 to SPL
14:46.14cr2[    6.841601] msm_nand_read_oob: unsupported ops->len, 68
14:46.52tmzt56?
14:47.07cr2[    6.984576] hsusb: IDLE -> ONLINE
14:47.09cr2[    6.991107] pc_clk_enable: FIXME! enabling a clock that doesn't have an ena
14:47.10cr2bit or ns-only offset: 37
14:47.54cr2[    7.451708] input: kionix-kxsd9 as /class/input/input3
14:48.15cr2[    7.532885] pc_clk_enable: FIXME! enabling a clock that doesn't have an ena
14:48.17cr2bit or ns-only offset: 22
14:49.17cr2[   10.423846] msm_nand_read_oob: unsupported ops->len, 512
14:49.18cr2[   10.437976] end_request: I/O error, dev mtdblock0, sector 0
14:50.46cr2358         if (ops->datbuf != NULL && (ops->len % mtd->writesize) != 0) {
14:50.47cr2359                 /* when ops->datbuf is NULL, ops->len may refer to ooblen */
14:50.49cr2360                 pr_err("%s: unsupported ops->len, %d\n",
14:50.50cr2361                        __func__, ops->len);
14:50.52cr2362                 return -EINVAL;
14:51.19tmztah
14:51.32tmzt'/* when ops->datbuf is NULL, ops->len may  refer to ooblen */
14:51.41tmztotherwise it doesn't?
14:52.16cr2ask google ;)
14:52.20cr2388         pr_info("msm_nand_read_oob %llx %p %x %p %x\n",
14:52.21cr2389                 from, ops->datbuf, ops->len, ops->oobbuf, ops->ooblen);
14:52.36tmztgoogle?
14:52.41tmztas in San?
14:52.56cr2[16:21] <cr2> [  342.050585] msm_nand_read_oob 2832800 d4a05800 800 00000000 0
14:52.58cr2[16:21] <cr2> [  342.050921] status: c03030 ffff0008 c02030 ffff0008 c01030 ffff0008 c00030 ffff0008
14:52.59cr2[16:21] <cr2> [  342.050982] msm_nand_read_oob 2832800 800 0 failed -74, corrected 0
14:53.01cr2[16:21] <cr2> [  393.229998] MTD_close
14:53.17cr2hehe. no author in the header
14:53.28cr23  * Copyright (C) 2007 Google, Inc.
14:53.32tmztwho could it be?
14:54.07cr2swetland ?
14:54.25tmztpossibly, I thought the stuff from then had names on it though
14:55.04tmztare some of the developers at qualcomm now, the aurora thing?
14:55.14cr2i can check the qcom tree
14:56.27cr2yeah, it has a different driver ;)
14:57.23cr2much more generic, and with onenand support
14:57.57cr2[    6.819140] nandid: 5501bcec maker ec device bc
14:58.12tmztonenand is sd though isn't it?
14:59.00cr2<PROTECTED>
14:59.13cr2maybe, i'm not sure.
14:59.29cr2but unlikely, since there is a special driver for it
15:03.57cr21170         mtd->erasesize = mtd->writesize << 6; /* TODO: check */
15:04.40tmzthow many blocks is that then?
15:04.49cr21167         mtd->writesize = 2048;
15:05.17cr2(ops->len % mtd->writesize) != 0
15:05.28cr2does it make sense ??
15:05.51tmztif it's not a multiple?
15:05.56cr2yes
15:05.59tmztseems big though, I get 131072
15:06.15cr2i mean ops->len
15:06.18tmztbut this works on g1?
15:06.23tmztyean
15:06.26cr2i think so
15:06.29tmztI meant the other thing
15:06.49tmzt128k?
15:06.58cr2yes.
15:07.02tmztthat could be right
15:07.03tmztok
15:07.47tmztso we need to know how much of the block is data
15:07.55cr2<PROTECTED>
15:08.06cr2<PROTECTED>
15:08.15cr2but it's not exactly my chip
15:08.27tmztis it in spl?
15:09.24cr2qcom
15:10.14cr2<PROTECTED>
15:10.52tmztI mean your chip
15:10.57cr2<PROTECTED>
15:11.03cr2this is mine
15:11.52tmztwhat are the fileds there?
15:11.53cr264 is 0x40
15:12.05cr2i'm not 100% sure
15:12.20tmztwhere is this from? url?
15:12.33cr2http://wiki.xda-developers.com/index.php?pagename=MSM_NANDID
15:13.08tmztblksiz = 0x800?
15:13.25tmzt2048
15:13.26tmztok
15:13.51tmzt0x840 is plus oob?
15:13.58tmztso 64 oob
15:14.27cr2mtd->oobsize = msm_nand_oob_64.eccbytes + msm_nand_oob_64.oobavail;
15:14.48tmztthat makes sense, is the first field erase block?\
15:15.05tmzt4096?
15:15.10tmztthat's only two blocks
15:15.10cr276         .oobavail       = 16,
15:15.20tmztwhich is hwecc?
15:15.26cr269         .eccbytes       = 40,
15:15.39tmztyeah, 56
15:15.50cr2wtf ?
15:16.02tmztwhat do you mean?
15:16.18tmztecc is fixed in the hardware
15:16.41cr2ok, it's the same in qcom driver
15:17.26tmztso there's 8 bytes which I think are used by the ftl or attributes or something
15:17.47cr264bits ?
15:18.07tmzt64=56
15:18.13tmzt64-56
15:18.19tmzt64-(40+16)
15:19.47cr2ok
15:23.05tmztthose 8 bytes might be used for bbt, but I can't find which version is used on msm yet
15:23.48cr2msm_nand_read(struct mtd_info *mtd, loff_t from, size_t len,
15:23.49cr2<PROTECTED>
15:23.56tmztfile?
15:23.56cr2<PROTECTED>
15:24.05cr2<PROTECTED>
15:24.31cr2why should i always read in multiples of 2048 ??
15:24.51tmztit's a block device?
15:24.57tmztserial
15:25.33cr2yes, it's a block device.
15:25.51cr2i don't understand how 68 & 512 come through.
15:26.04tmztwhere?
15:26.11tmztwhere are the msm_ nand functions?
15:26.30cr2[16:21] <cr2> [  342.050982] msm_nand_read_oob 2832800 800 0 failed -74, corrected 0
15:26.36cr20x800 here.
15:26.58cr2ok, it was from dd if=/dev/mtd0 bs=2048
15:27.34*** join/#htc-linux StarLite (n=nnscript@s55916ca6.adsl.wanadoo.nl)
15:27.53cr2<PROTECTED>
15:30.02cr2so how does this happen
15:30.05cr2<PROTECTED>
15:30.38cr2<PROTECTED>
15:30.54tmzt21:03 < cr2>         ops.len = len;
15:30.55tmzt21:03 < cr2>  ret =  msm_nand_read_oob(mtd, from, &ops);
15:30.57cr2it must be some partiton reading code
15:31.14tmztI think the 512 should be thought of as virtual blocks
15:31.26cr2yeah, but the len must be in blocks for a block device
15:31.39tmzttry bs=512
15:31.55cr2i can try bs=1
15:32.32cr2[ 2956.492541] msm_nand_read_oob: unsupported ops->len, 1
15:32.38tmztwhat len?
15:33.05tmztbs=blksize count=number of blocks
15:33.21cr2dd if=/dev/mtd0 bs=1
15:33.40cr2it should read 1 block, and pick the 1 byte from it
15:33.52cr2so i can understand the block device :)
15:33.55tmztnot with mtdblock device I think
15:34.02tmztonly mtdchar
15:34.04cr2it's not that you can just read 1 byte
15:34.33tmztthis is for mounting a block fs, but only one that supports mtd I think
15:34.50cr2ok, but why does it happen in the reading partition info ?
15:35.27cr2[ 3120.688983] msm_nand_read_oob: unsupported ops->len, 512
15:35.28cr2[ 3120.689837] end_request: I/O error, dev mtdblock0, sector 0
15:35.30cr2[ 3120.689929] __ratelimit: 20 callbacks suppressed
15:35.31cr2[
15:35.37cr2the same problem on mtdblock
15:36.34tmztwe're at the wrong level
15:36.46tmztoob is out-of-band, it's extra data/metadata
15:37.26cr2msm_nand_read calls msm_nand_read_oob
15:37.57tmztyes
15:41.50cr2<PROTECTED>
15:43.08tmztoh, why isn't ops->len set in msm_nand_read?
15:43.15tmztiti is
15:43.20tmztbut to the block size?
15:45.41tmztsectordatasize
15:45.46cr2679         ops.mode = MTD_OOB_PLACE;
15:45.48tmztsectoroobsize
15:45.48cr2680         ops.len = len;
15:46.06tmztcan we find out what MTD_OOB_PLACE means?
15:46.40tmztit should be ignoring ops->len and using ooblen
15:47.05tmztwhat was your error?
15:47.16tmztmsm_nand_read_oob: unsupported ops->len, 512
15:48.04cr2yes, and 68
15:48.20cr2in the partition code somewhere
15:48.55tmztI guess it's a sanity check, it's not really trying to read that much oob
15:49.07tmztis your writesize 2048?
15:49.20cr2i don't use write yet
15:49.38cr2why doesn't it happen on g1 ??
15:49.40tmztI'm in the wrong function
15:49.46cr2do we have a g1 dmesg ?
15:49.54tmztI did
15:50.01cr2hehe. it maybe because g1 is androed only ;)
15:50.20cr2you need a debian running on g1
15:53.07cr2i'm looking at mDOC code
15:54.05tmztI had that and proc/config.gz, still looking
15:54.15tmztwhat lines do you need?
15:54.35*** join/#htc-linux BabelO (n=fcr@unaffiliated/babelo)
15:54.54*** join/#htc-linux lupine_85 (n=lupine@forest.lupine.me.uk)
15:55.10cr2tmzt: do you have such ops->len error messages there ?
15:55.34tmzthaven't found it yet
15:55.41tmztI was going to have someone grep
15:58.58tmztfound it
15:59.04tmztnothing ops->len
15:59.08tmztnand registers partitions
15:59.13tmztno oob messages at all
15:59.45*** join/#htc-linux timebomb (n=tb@p548EDE36.dip.t-dialin.net)
15:59.55cr2can somebody with g1 try 'dd if=/dev/mtd0 bs=1 count=1' ?
16:05.45cr2<PROTECTED>
16:05.47cr2<PROTECTED>
16:05.48cr2<PROTECTED>
16:05.50cr2<PROTECTED>
16:06.55tmztSan is sick, no help from him I guess
16:07.14tmzthttp://www.infradead.org/pipermail/linux-mtd/2007-February/017412.html
16:07.44tmzthttp://markmail.org/message/4sbgyxoxokq2sccg
16:09.48tmztooboffs
16:10.54cr2root@htcraphael:~# nanddump
16:10.56cr2Usage: nanddump [OPTIONS] MTD-device
16:10.57cr2Dumps the contents of a nand mtd partition.
16:12.05cr2lol
16:12.10cr2root@htcraphael:~# nanddump -p /dev/mtd0
16:12.11cr2Unknown flash (not normal NAND)
16:17.15cr2ok, i gave up for now.
16:17.17tmztdid you see the urls?
16:19.42cr2yes
16:21.35tmztwe'll have to come back to it
16:21.47cr2ok
16:22.27cr2dd if=/dev/mtd0 bs=1 count=1 on g1 may be interesting.
16:22.42tmztnobody has responded yet
16:25.15cr2ok
16:26.14tmztthe htc-hw driver I posted is just based on dzo's, I haven't made changes really for raph yet
16:26.19tmztsince I don't know the rpc commands
16:30.13cr2i will put rpc commands into wiki
16:30.25tmztcool
16:30.27cr2the code by dzo has rpc
16:30.43tmztbut it would be helpful if you can tell me how to use them properly
16:30.50cr2i'm trying to finish the bt power and reset now.
16:30.54tmztyeah, that's what currently gives me static
16:30.57tmztoh, ok
16:31.06tmztis that vreg?
16:35.42cr2i need to check.
16:41.53*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
16:44.31*** join/#htc-linux pleemans (n=toi@d54C2AAB7.access.telenet.be)
16:52.21*** join/#htc-linux MLM_ (n=mlvdmeid@meide.xs4all.nl)
16:58.02cr2hmm. i don't understand what maejrep has written
17:01.53cr2tmzt: look for  msm_rpc_call(SND_PROG, 1, &msg, sizeof(msg),15*HZ);
17:02.16tmztwhere?
17:02.40cr2vogue-hw.c
17:02.53cr2i didn't see any dex calls
17:03.07cr2and you need to do some adsp changes as well
17:03.16tmztI didn't see that
17:08.10cr2int msm_rpc_call(struct msm_rpc_endpoint *ept, uint32_t proc,
17:08.12cr2892                  void *_request, int request_size,
17:08.13cr2893                  long timeout)
17:08.40cr2how did dzo drop *ept ?
17:09.10tmztwhat do you mean?
17:09.13cr2looks like a different api
17:09.53cr2<PROTECTED>
17:10.03cr2<PROTECTED>
17:10.22cr2struct msm_rpc_endpoint *ept, uint32_t proc,
17:10.32cr2SND_PROG, 1
17:10.33cr2?
17:15.03*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
17:19.40tmztendpoint is on the arm11 side?
17:19.50tmztproc is the index of the dsp module?
17:25.40*** join/#htc-linux zycho_ (n=zycho@dslb-088-070-062-141.pools.arcor-ip.net)
17:27.02cr2<PROTECTED>
17:27.15cr2i think maejrep overstretched it a bit :)
17:28.28tmztit seems to support all the gpio settings
17:29.00tmztdo you think dvrstr is related to clock frequency?
17:29.16cr2no
17:29.33cr2it's a completely different api
17:29.40cr2and has nothing to do with DEX
17:30.05cr2googel just tried to obfuscate the gpio setup ;)
17:35.18cr2hciattach /dev/ttyHS1 texas
17:36.11cr2[   61.210345] clock-wince: set_mdns_host_clock: 35, freq=7372800
17:36.13cr2[   61.210620] msm_dmov_enqueue_cmd(11), error datamover stalled, status 0
17:36.14cr2[   61.210681] clock-wince: pc_clk_set_rate: id=35 rate=7372800
17:36.15cr2[   61.210711] clock-wince: set mdns: 35, 7372800; bitidx=26, offset=dc, ns=0
17:36.17cr2[   61.210772] BUG: scheduling while atomic: hciattach/1040/0x00000002
17:36.19cr2hmm. power not applied
17:37.22cr2and reboot does not work.
17:40.00cr2tmzt: who is calling rfkill ?
17:41.57*** join/#htc-linux pH5 (n=ph5@p5485FD50.dip.t-dialin.net)
17:45.56cr2must be some compile bug
17:49.09*** join/#htc-linux _GrndMstrUslss (n=android@c-76-121-157-180.hsd1.wa.comcast.net)
17:53.00*** join/#htc-linux _GrndMstrUslss (n=android@32.156.172.3)
17:54.21*** join/#htc-linux zycho (n=zycho@dslb-088-070-062-141.pools.arcor-ip.net)
17:55.47tmztcr2: hci code?
17:59.04*** join/#htc-linux _GrndMstrUslss (n=android@32.156.172.3)
18:01.05cr2ok
18:04.06*** join/#htc-linux wdslbr (n=asa@dslb-088-069-204-014.pools.arcor-ip.net)
18:07.19*** join/#htc-linux AndIrc (n=android@32.156.172.3)
18:09.15*** join/#htc-linux pleemans (n=toi@d54C2AAB7.access.telenet.be)
18:10.23cr2tmzt: what is the nand size on raph ?
18:12.37*** join/#htc-linux swc|666 (n=infidel2@unaffiliated/swc666/x-4934821)
18:17.35tmzthow would I find that?
18:17.47tmztoh
18:17.56tmztcan't check right now
18:18.58*** join/#htc-linux kiozen (n=oeichler@rgnb-5d8744aa.pool.einsundeins.de)
18:24.16*** join/#htc-linux _chab7_3 (n=kvirc@fibhost-67-206-132.fibernet.bacs-net.hu)
18:24.47*** join/#htc-linux _GrndMstrUslss (n=android@32.159.89.162)
18:29.06cr2stty -F /dev/ttyHS1 speed 115200
18:29.12*** join/#htc-linux _GrndMstrUslss (n=android@32.159.89.162)
18:29.12cr2oops on that
18:29.25*** join/#htc-linux wdslbr (n=asa@dslb-088-069-204-014.pools.arcor-ip.net)
18:29.26tmztOOPS?
18:30.04cr2the port gpios are not configured
18:30.25cr2[  120.376330] clock-wince: pc_clk_set_rate: id=35 rate=7372800
18:30.27cr2[  120.376422] clock-wince: set mdns: 35, 7372800; bitidx=26, offset=dc, ns=0
18:30.28cr2[  120.390307] clock-wince: set_mdns_host_clock: 35, freq=7372800
18:30.30cr2[  120.390582] msm_dmov_enqueue_cmd(11), error datamover stalled, status 0
18:30.31cr2[  120.390643] clock-wince: pc_clk_set_rate: id=35 rate=7372800
18:30.33cr2[  120.390673] clock-wince: set mdns: 35, 7372800; bitidx=26, offset=dc, ns=0
18:30.34cr2[  120.390734] BUG: scheduling while atomic: stty/1047/0x00000002
18:30.46cr2rfkill for powering bt does not look very smart
18:31.39cr2clk_set_rate+0x180/0x244)
18:31.40cr2[  120.391162] [<c002cd74>] (clk_set_rate+0x0/0x244) from [<c015185c>] (msm_hs_set_termios+0x298/0x444)
18:31.42cr2[  120.391253] [<c01515c4>] (msm_hs_set_termios+0x0/0x444) from [<c014cc54>] (uart_change_speed+0x88/0x8c)
18:31.43cr2[  120.391284] [<c014cbcc>] (uart_change_speed+0x0/0x8c) from [<c014fb5c>] (uart_open+0x420/0x4d8)
18:31.46cr2[  120.391345]  r4:c0c16000
18:31.46cr2[  120.391345] [<c014f73c>] (uart_open+0x0/0x4d8) from [<c013a10c>] (tty_open+0x198/0x30c)
18:31.47cr2[  120.391406] [<c0139f74>] (tty_open+0x0/0x30c) from [<c0094564>] (chrdev_open+0x1dc/0x1fc)
18:31.49cr2[  120.391467] [<c0094388>] (chrdev_open+0x0/0x1fc) from [<c008f31c>] (__dentry_open+0x188/0x2a0)
18:32.28tmztrfkill isn't powering bt, it's supposed to disable it
18:32.45cr2used for both here
18:33.07tmztthis seems to be the hs driver though, not bt itself
18:34.09cr2i'll boot with bt on, then the alt gpios will be configured
18:34.42tmztor are you powering up bt when the hs dev is opened?
18:35.08cr2no, the software is written in such a way that i can't control it
18:35.23tmztwhat software?
18:35.27tmztwhat are you using?
18:35.31cr2it was a problem already on pxa
18:35.36cr2g1 kernel code
18:35.53cr2to power the btuart et al.
18:35.58tmzthsserial?
18:36.34cr2yes, how do i powerup the hsserial ?
18:37.01cr2i need to apply power to brf6350 and reset it before doing anything.
18:37.03tmztI think it's seperate from the bt chip
18:37.23tmztit appears you can't even set the speed on hsuart though
18:37.27tmztwith stty
18:37.33cr2hmm.
18:37.55cr2yeah, braindead design
18:38.05cr2pH5: are you here ?
18:38.14tmztit's what hciattach and stty have in common, both set the speed with an ioctl
18:38.48cr2no, it's a design problem.
18:39.29cr2it was solved for 2.6.21-hhX with extending the pxa_uart struct
18:40.15tmztwhat was?
18:40.36cr2.power
18:41.12tmztwhy is brf power related to the uart?
18:41.30tmztare you saying uart will panic without the chip powered up?
18:41.39tmztotherwise we can use sysfs
18:41.42pH5cr2: here
18:42.06pH5uart shouldn't be bothered if the chip on the other end is dead
18:44.38tmztthis is cool: http://lists.openmoko.org/pipermail/devel/2009-May/005489.html
18:44.50tmztif we can adapt it to msm either mdp or gpu
18:45.11tmztit appears the pmem driver can be used to source things to blit, even if their off screen
18:45.24tmztbut this is only supported on g1 with the gpu closed library
18:45.55tmztit might also give us extra ram by making offscreen buffers dynamic
18:55.54cr2tmzt: sysfs is a good idea.
18:56.09cr2don't know why hsuart oopses on stty
19:34.06*** join/#htc-linux MLM (n=mlvdmeid@5ED0BCBD.cable.ziggo.nl)
19:57.31*** join/#htc-linux MethoS (n=clemens@host-091-097-242-057.ewe-ip-backbone.de)
20:41.48*** join/#htc-linux punkass (i=punkass@unaffiliated/punkass)
20:44.03*** part/#htc-linux exception13 (n=exceptio@testdrive.kgts.ru)
20:49.23*** join/#htc-linux AndIrc (n=android@32.159.179.12)
21:22.34*** join/#htc-linux AndIrc (n=android@32.159.179.12)
21:30.44*** join/#htc-linux nebi_ (n=nebi@ip67-152-3-162.z3-152-67.customer.algx.net)
21:31.44*** join/#htc-linux marcin (n=marcin@chello089078134143.chello.pl)
21:32.52*** join/#htc-linux nebi_ (n=nebi@user-387g3pr.cable.mindspring.com)
21:36.42*** join/#htc-linux AndIrc (n=android@32.159.179.12)
21:38.54cr2everybody is quiet now
21:39.22Dunedaneverybody is crying, because of the end of the weekend ;-)
21:40.29cr2hehe
21:40.51cr2i was hacking the whole weekend, so it does not matter anyway.
21:56.29tcccpThis is the end of the world as we know it
21:56.30tcccp;-)
21:59.44*** join/#htc-linux pH5 (n=ph5@e178213068.adsl.alicedsl.de)
22:01.07cr2tcccp: once pH5 will have the asic3mmc driver, we can hack on sable. it's much more relaxing ;)
22:01.55tcccpcr2: I have slightly different problems atm
22:02.16tcccpneeds a job
22:02.27*** join/#htc-linux AndIrc (n=android@32.159.114.75)
22:02.39tcccphmhm
22:03.00pH5cr2: http://git.linuxtogo.org/?p=ph5/kernel.git;a=shortlog;h=refs/heads/asic3/ugly-dev
22:03.17pH5HEAD~1 is working, but it will take a while until I'm happy.
22:04.56cr2pH5: nice :) i need to check it
22:05.12pH5I promise this will be cleaned up eventually ;)
22:06.53cr2pH5: sd_ctrl and sd_config is asic3-only
22:08.29*** join/#htc-linux AndIrc (n=android@32.159.114.75)
22:10.14pH5cr2: tmio has it, too.
22:10.17pH5it seems to be only w228x that doesn't have sd_config?
22:11.07pH5is there anything else in the w228x wince driver to power down mmc when not in use?
22:12.40*** join/#htc-linux syn-fin (n=alien@m6b0e36d0.tmodns.net)
22:13.57cr2pH5: the irq and some clock bits are in the "main" area. 2 registers i think
22:14.19cr2together with other soc irqs, like on w100
22:14.45cr2but sd and sdio share all the registers.
22:15.23cr2since it's mini/microSD i would not put too much value into sdio, actually.
22:24.01*** join/#htc-linux AndIrc (n=android@32.159.114.75)
22:25.02pH5aye, for now I can't do anything about sdio anyway.
22:28.11cr2ok
22:28.26cr2hwinit2_irqsafe
22:28.44cr2i'm only wondering if this one is really needed
22:30.13*** join/#htc-linux AndIrc (n=android@32.159.114.75)
22:31.06pH5maybe not all of it
22:31.07pH5but at least on asic3 the SD_CONFIG setup to select the correct CTRL register bank (SD or SDIO) and the reset seem to be needed.
22:31.50pH5this is one of the parts where all my small changes yield lockups.
22:32.42cr2hmm.
22:33.16pH5and there seem to be some differences in the power handling
22:34.15cr2ok
22:34.41cr2the fmin/fmax should be in the pdev probably. but it's minor thing
22:34.52pH5I'm not exactly sure what Power1/2/3 are for, and tmio fiddles with different ones than asic3
22:35.07pH5yup, fmin/fmax should be derived from the incoming clock frequency.
22:35.22pH5we can push that through via pdata on the mfd_cell.
22:35.31cr2asic3_mmc does what wince does, at least in the sd part
22:35.37cr2ok
22:36.28cr2i'm thinking about atiw, where the base clock is not 24576, but 80000
22:36.52cr2with a prescaler 2
22:37.46cr2you have 24000 now, but i think asic3 clock is 24576 in real life. at least it has such clock.
22:41.33pH5Probably. Does seem to work though. It's only a few percent fast, is there a margin in the spec?
22:42.05cr225
22:42.29cr2and 50MHz for sd2.0
22:42.38cr2where atiw uses 40MHz
22:43.36cr2i mean you think that it's 24000kHz while it's 24576kHz when you enable it
22:44.32cr22.5%
22:45.33cr2but it's a guesswork
22:45.45cr2on atiw it's 100% sure
22:46.38cr2about top =40MHz and the divisors
22:47.52pH5I'll make the base clock configurable and probably split the ctl (SD_CTRL/SDIO_CTRL) resource into sd/sdio parts.
22:48.29pH5then atiw could just set both resources to point to the same iomem space, would that work?
22:49.36cr2yes
22:50.06cr2you use 16bit data access now ?
22:50.39cr2on atiw it's 32bit, but i've seen "unaligned" 16bit and 8bit options in the driver.
22:50.50cr2and i've actually seen 16bit accesses.
22:52.42pH5in mmc_data_transfer?
22:53.27pH5that one is still unfixed, but it'll use the bus_shift parameter to align to 32bit if needed
22:53.43pH5or do you have true 32-bit data transfer somewhere?
22:54.44cr2yes, it's the normal case
22:55.10cr2only if the data buffer is not 32bit aligned then something happens.
22:56.03cr2i mean the data itself, not the register offsets
22:56.24pH5hmmm, I see. I was confused because ASIC3_MMC_REG used in atiw_mmc still has the (volatile u16 *) cast.
22:57.00cr2<PROTECTED>
22:57.01cr2228         if(data->flags & MMC_DATA_READ) {
22:57.11cr2*buf = sd_ctrl_read16(host, CTL_SD_DATA_PORT);
22:57.16cr2<PROTECTED>
23:03.01pH5cr2: where is it configured for 8/16/32bit read/writes on DataPort?
23:05.19pH5also, do you happen to have an idea what this CLOCK_FOR_SD bit in the SD_CTRL_CardClockCtl register is all about in asic3_mmc?
23:08.15cr2about DataPort : need to look at the traces. but for a block write (like 512) it's always 32bit
23:08.37cr2don't remember now about CLOCK_FOR_SD
23:10.13pH5ok, we'll see. I'll ping you when I have something testworthy.
23:10.16pH5good night
23:21.06parcr2: were you working on getting bluetooth operational earlier?
23:21.44pari don't know if dzo has that working at all under vogue
23:22.15pari'm hoping some day i will work and will support interfacing a gsm device over bt
23:22.24parby vogue model doesn't have gps
23:22.33*** join/#htc-linux MrKeuner (n=This@unaffiliated/mrkeuner)
23:28.53parwell on the P3050 is the manual says it has a gps chip
23:29.24paralong with an antenna
23:30.01parbut i think that its not active .. that its also only a-gps
23:31.11parbut no carrier support for a-gps means its just going to stay off an unused
23:43.37parhonestly, i'd say trying to add gps support for vogue's native chip isn't worth it because assited gps isn't going to be support by the carrier...
23:43.54parbut, gps over bt support is definitely worth doing
23:51.29parif anyone knows i'm wrong plz to tell me kthx
23:54.29*** join/#htc-linux timebomb (n=tb@dslb-092-078-122-247.pools.arcor-ip.net)

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