IRC log for #htc-linux on 20091030

01:04.21*** join/#htc-linux Funnyface (n=user734@245.89-11-146.nextgentel.com)
01:32.17*** part/#htc-linux Funnyface (n=user734@245.89-11-146.nextgentel.com)
01:48.35flybackhttp://www.facebook.com/photo.php?pid=30354253&id=1419593893 <--- omg the horror, oh wait that's me
01:49.12flybacknm url won't work
02:01.39*** join/#htc-linux x29a_ (n=x29a@f053225170.adsl.alicedsl.de)
02:29.46*** join/#htc-linux swc|666 (n=infidel2@unaffiliated/swc666/x-4934821)
02:31.13*** join/#htc-linux BHSPitMonkey (n=stephen@unaffiliated/bhspitmonkey)
02:49.47*** join/#htc-linux kam187 (n=kam187@87.194.204.58)
02:49.55kam187hey guys
02:50.53kam187i'm trying to figure out the memory map for the MSM7200A
02:56.41kam187also what memory is ADSP, MDP, GPU, CAMERA etc allocated from?  changing its sizes in the kernel doesnt seem to affect memory available to the system
03:10.51*** join/#htc-linux Tulga (n=chatzill@203.91.113.10)
03:11.28*** join/#htc-linux nate2 (n=nate@cpe-76-168-200-146.socal.res.rr.com)
03:11.51Tulgasomeone knows s3c2442 processor?
03:25.28*** join/#htc-linux g55 (n=g55@rgnb-5d8747f4.pool.mediaWays.net)
03:35.59tmztkam187: wiki.htc-linux.org
03:36.05*** join/#htc-linux bagpuss_thecat (n=bagpuss_@2001:41c8:1:5253:0:0:0:2)
03:36.05*** join/#htc-linux alphaone|gone (n=alphaone@2001:638:602:af01:0:0:0:1)
03:36.05*** join/#htc-linux jos (i=Jos@2a02:348:33:584a:0:0:0:1) [NETSPLIT VICTIM]
03:36.40tmzttoa: ifconfig wlan1 up
03:37.57tmzttoi: what is diam500 bank layout?
03:56.12*** join/#htc-linux Tulga (n=chatzill@203.91.113.10)
04:02.00Tulgatmzt: are you there?
04:41.16*** join/#htc-linux thedicemaster2 (n=thedicem@j89051.upc-j.chello.nl)
04:53.51*** join/#htc-linux docc_ (n=docc@static.88-198-83-83.clients.your-server.de)
04:53.51*** join/#htc-linux tuples_ (n=Tuple@tuple.xen.prgmr.com)
04:53.54*** join/#htc-linux pigeon_ (n=pigeon@eth5284.nsw.adsl.internode.on.net)
05:02.02*** join/#htc-linux goxboxlive (n=jrs@mail2.hjellnesconsult.no)
05:12.06*** join/#htc-linux droid0011 (n=g1@p4FDCF393.dip.t-dialin.net)
05:29.44F22cr2: MSVCR90.dll is part of Microsoft's Visual C++ 2008 redistributable runtime library.  It has dependencies so just dropping in the file by itself isn't enough.  You can download the package directly from Microsoft.  http://www.microsoft.com/downloadS/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en
05:36.09kam187tmzt: i dont see any memory maps there
05:36.22kam187Can i assume the lower 32mb of SMI is the baseband?
05:56.16*** join/#htc-linux bagpuss_thecat (n=bagpuss_@2001:41c8:1:5253:0:0:0:2)
05:56.17*** join/#htc-linux alphaone|gone (n=alphaone@2001:638:602:af01:0:0:0:1)
05:56.17*** join/#htc-linux jos (i=Jos@2a02:348:33:584a:0:0:0:1) [NETSPLIT VICTIM]
06:28.38kam187what is 'stacked memory' ?
06:33.28kam187do they mean PoP? i.e physically stacked?
06:38.46*** join/#htc-linux leobaillard (n=leobaill@leobaillard.org) [NETSPLIT VICTIM]
06:39.05*** join/#htc-linux alphaone|gone (n=alphaone@2001:638:602:af01:0:0:0:1)
06:39.58*** join/#htc-linux dilinger (n=dilinger@LUNGE.MIT.EDU)
06:40.28*** join/#htc-linux tmzt (n=tmzt@adsl-99-51-211-69.dsl.akrnoh.sbcglobal.net)
06:42.54*** join/#htc-linux thedicemaster (n=thedicem@j89051.upc-j.chello.nl) [NETSPLIT VICTIM]
06:43.00*** join/#htc-linux Foxdie (n=foxdie@mendoza.bhm.mmnet.co.uk) [NETSPLIT VICTIM]
06:45.30*** join/#htc-linux BHSPitLappy (n=BHSPitLa@unaffiliated/bhspitmonkey)
06:46.31*** join/#htc-linux Weiss (n=taw27@zazu.bitwiz.org.uk)
06:46.32*** join/#htc-linux bagpuss_thecat (n=bagpuss_@2001:41c8:1:5253:0:0:0:2)
06:47.20*** join/#htc-linux Jos (i=Jos@Lithium.Jossie90.info) [NETSPLIT VICTIM]
06:54.44*** join/#htc-linux kiozen (n=kiozen@rgnb-5d87d838.pool.mediaWays.net)
06:59.03*** join/#htc-linux zack84a2 (n=zack84a@74.7.181.194)
07:17.52*** join/#htc-linux Ekips (i=spike@d51A460C9.access.telenet.be)
07:18.14*** join/#htc-linux nate2 (n=nate@cpe-76-168-200-146.socal.res.rr.com)
07:26.23*** join/#htc-linux stamppot (i=d4cb1b12@gateway/web/freenode/x-rpblucivsbgkqpql)
07:41.05*** join/#htc-linux Tulga (n=chatzill@203.91.113.10)
07:44.16*** join/#htc-linux BabelO (n=fcr@lun34-2-82-238-28-28.fbx.proxad.net)
07:55.16*** join/#htc-linux itchy8me (n=itchy8me@ip80-116-211-87.adsl2.static.versatel.nl)
07:59.07kam187hmm confused
08:23.13*** join/#htc-linux timebomb (n=tb@e177136209.adsl.alicedsl.de)
08:25.21Epsylon3=)
08:28.46kam187what gets loaded in the lower 7mb of EBI/linux memory, i can see the kernel accounts for about 5.6 mb, but what about the rest
08:34.53*** join/#htc-linux Squarc (n=Squarc@82-217-32-29.cable.quicknet.nl)
08:39.01*** join/#htc-linux MethoS- (n=clemens@134.102.106.250)
08:44.28*** join/#htc-linux luc_ (i=c3441fe7@gateway/web/freenode/x-gkvcwaxtijoowcjf)
08:46.11*** join/#htc-linux itchy8me_ (i=57d37450@gateway/web/freenode/x-hlxpsxdfslxxivcj)
08:48.16Epsylon3sorry, i need to go...
08:50.11*** join/#htc-linux kiozen (n=oeichler@p5492142F.dip0.t-ipconnect.de)
08:54.07*** join/#htc-linux itchy8me (n=itchy8me@ip80-116-211-87.adsl2.static.versatel.nl)
09:07.08*** join/#htc-linux FR^2 (i=frr@frquadrat.de)
09:11.19*** join/#htc-linux kvaster (n=kvaster@93.84.112.80)
09:24.41*** join/#htc-linux tjs_bsd (n=tjs@mail.CDPA.cc)
09:27.22*** join/#htc-linux tjs_bsd (n=tjs@mail.CDPA.cc)
09:34.13*** join/#htc-linux AstainHellbring (n=AstainHe@unaffiliated/astainhellbring)
09:43.17phhkam187: "stacked memory' is SMI
09:43.41phhSMI is just a fast memory, you can put whatever you want in it, but AMSS takes 21MB in it
09:44.02phhdon't know for the lower 7MB
09:44.37phh(amss=radio=arm9)
09:47.32kam187ahhh
09:47.51kam187i think the lower 7 is just the kernel i guess
09:48.21kam187so on this phone i see..
09:48.51kam187SMI64 (Internal RAM, 64Mb)
09:48.51kam18700000000->02000000 FREE?  (32 Mb)
09:48.51kam18702000000->02800000 MDP    ( 8 Mb)
09:48.51kam18702800000->03500000 ADSP   (13 Mb)
09:48.51kam18703500000->04000000 CAMERA (11 Mb)
09:48.57kam187what's in the lower 32mb of SMI64?
09:49.29phhwhich board ?
09:49.40kam187its a samsung galaxy android phone, MSM7200
09:49.43phh(i like having source code :D)
09:49.46*** join/#htc-linux Squarc (n=Squarc@82-217-32-29.cable.quicknet.nl)
09:49.51kam187so i'm looking at the source code
09:49.56phhkam187: samsung galaxy = I7500 ?
09:49.59kam187yeah
09:50.13phhok i already have its source code :D
09:50.20kam187hehe
09:50.33kam187i see that all MSM chips leave 32mb of SMI free
09:50.54kam187if its a SMI32 chip, all the other stuff (camera etc) gets allocated in EBI
09:50.55phh"we" use only 21MB
09:51.03phhfor raph/diam
09:51.20phhfor AMSS
09:51.31kam187ok so, is there any way to check how much is used?  is it = AMSS file size?
09:51.44phhyour amss file size is 32MB actually
09:52.04phhour*
09:52.27phhdon't know how to now that
09:52.28kam187ok, but if i check the samsung one, and check where the baseband ends i can calculate how much is free? or not?
09:53.17kam187ok so baseband uses upto 32mb then :) we dont know how much!
09:53.22kam187next question :)
09:53.34phhyou can try to reduce it a little bit if you need to
09:53.44kam187if android only see's 109mb, what happened to the 128-109 = 19mb ?
09:53.54phhkam187: MDP/ADSP/CAMERA
09:54.11kam187but thats in SMI (upper 32mb)
09:54.17phhoh.
09:54.29phhit's supposed to be in source code anyway
09:54.37kam187yeah i see it
09:54.53kam187but the max available is always only 109mb
09:55.24phhwhere is the memory layout defined in the source code ?
09:55.34kam187board-init.c
09:55.35phhoh board-comet.c
09:55.38phhhu ?
09:55.51phhok both.
09:55.58phhis "comet" the name of your board ?
09:56.03kam187samsung uses board-init.c
09:56.08phhok comet is snapdragon
09:56.11kam187samsung's source is just stupid!
09:56.19kam187they 'hacked' what was there :p
09:56.38phhi don't know where they got snapdragon's source code ...
09:56.42kam187EBI (External RAM)
09:56.42kam18710000000->10028000 ??
09:56.42kam18710028000->1040ffff : Kernel text
09:56.42kam18710410000->105611fb : Kernel data
09:56.42kam187105611fb->10700000 ??
09:56.43kam18710700000->10F00000 GPU1 (8 Mb)
09:56.45kam18710F00000->11000000 FB   (1 Mb)
09:56.47kam18711000000->16D00000 FREE
09:56.49kam187and
09:56.52kam187SMI64 (Internal RAM, 64Mb)
09:56.53kam18700000000->02000000 FREE?  (32 Mb)
09:56.55kam18702000000->02800000 MDP    ( 8 Mb)
09:56.57kam18702800000->03500000 ADSP   (13 Mb)
09:56.59kam18703500000->04000000 CAMERA (11 Mb)
09:57.12kam187so i can move GPU1 and FB into SMI64 (the upper 32mb) by reducing the other stuff
09:57.32phhi already tried moving GPU1 to SMI, it just won't work
09:57.40phhdon't know why
09:57.51phhbut you can move FB yes
09:57.54*** join/#htc-linux JoshuaL (n=JoshuaL@unaffiliated/joshual)
09:57.59kam187it works fine here :)
09:58.05phhbtw GPU0 is in SMI
09:58.11kam187yeah
09:58.14kam187i saw that
09:58.19kam187that's stacked
09:58.28kam187CONFIG_MSM_STACKED_MEMORY: ¦
09:58.30kam187This option is used to indicate the presence of on-die stacked memory. When present this memory bank is used for  a high speed shared memory interface. When not present regular RAM is used.
09:59.50phhsmi base is 0x100000 ?!?
10:00.05kam187its a different bank
10:01.10phhanyway some EBI is taken too by AMSS
10:01.22kam187ahhh
10:01.26kam187that makes sense
10:01.40phhbut not that much
10:02.00kam187well there's 19mb missing from EBI
10:02.10phhwe have 12MB
10:02.34kam187so android see's 116mb?
10:02.51phhno, GPU1 is in 8MB in the end of ebi :p
10:03.18kam187ok so u see 116 - 8 = 108mb?
10:03.23kam187with GPU1 in EBI
10:03.32phhyes
10:03.38kam187but android would still see 116mb at boot i guess
10:03.44phhno
10:04.05kam187on the samsung it see's 109mb, then allocates GPU1 and FB from that
10:04.10kam187dmesg | grep allocate
10:04.15phhnot here
10:04.50phhthe memory bank defined (so where the kernel takes memory) is :
10:04.52phh#define MSM_LINUX_BASE          MSM_EBI_BASE
10:04.52phh#define MSM_LINUX_SIZE          0x6b00000
10:05.04phhwhich is 107MB
10:05.14kam187ahh
10:05.30phhand GPU1 is taken after these 107MB
10:05.38kam187hmm interesting
10:05.47kam187on the samsung its not :-/
10:06.21phhlet me check i'm quite sure it is
10:06.30phhoh, they did it cleaner than we did
10:10.14phhkam187: what is the physical address of FB memory ?
10:11.24phh>= 0x16D00000 ?
10:11.28phh(in dmesg)
10:12.29kam1872 secs
10:13.44kam18710700000->10F00000 GPU1 (8 Mb)
10:13.45kam18710F00000->11000000 FB   (1 Mb)
10:13.52phhok so they are wrong
10:13.54kam187so that's in the EBI range
10:14.11kam187it doesn't use the base, it just asks to allocate a region, page aligned (for GPU1)
10:14.55phhline 1664, set addr to MSM_EBI_BASE+MSM_EBI_ADDR and line 1671 to MSM_EBI_BASE+MSM_EBI_ADDR+MSM_GPU1_SIZE
10:15.45phhit seems their memory layout hasn't been well checked
10:16.05phhi still can't be sure
10:18.27kam187hmm i'll try that after the current test :)
10:18.37kam187we're trying to put the FB in the lower 32mb
10:18.42kam187our AMSS seems to be 19.73mb
10:31.17kam187is AMSS compressed?
10:43.36phhdon't know
10:44.30kam187its not :) just checked it
11:02.10kam187so the AMSS is actually just under 18mb
11:02.17kam187and gets loaded at the top of EBI
11:02.26kam187and also in the bottom 32mb of SMI64
11:02.38phhit uses 18MB of EBI ?
11:02.44kam187the last mb of the bottom 32mb (31 -> 32mb) is shared SRAM between ARM9/11
11:02.56kam187yeah i dunno wtf its loaded to both
11:03.07kam187i can see the load address in the EBI file
11:03.13kam1870x16E00000
11:17.33kam187crazy wastage of 19mb in EBI and/or 32mb in SMI
11:18.38kam187what a stupid architecture :-/
11:19.41phhyou'd prefer 42 memory chips ?
11:19.59kam187no i mean wtf do u need AMSS in SMI and EBI
11:20.16kam187there's no real difference between them, except one is on an external bus and one internal
11:29.55*** join/#htc-linux dzo (n=dzo@mail.marginz.co.nz)
11:39.03kam187hmm
11:39.18kam187i think the SMI holds 'shared memory' and the top of EBI has the Baseband
11:39.58phh18MB of shared memory is a lot
11:40.04phherr 32 ?
11:40.34kam187i thought so too, but it makes more sense than having two basebands!
11:40.36kam187i see this
11:40.48kam187<PROTECTED>
11:40.48kam187<PROTECTED>
11:40.48kam187int msm_shared_ram_phys = 0x00100000;
11:40.56kam187which is 1mb
11:41.01kam187but then in the board-init i see this
11:41.10kam187msm_shared_ram_phys = 0x01F00000;
11:41.13kam187which is 31mb
11:41.26kam187and the last mb is shared between the arm 9 and 11 aparently
11:42.23kam187or maybe thats the address of the shared memory
11:43.31*** join/#htc-linux balans (n=BRPOLDB@212-123-149-239.ip.telfort.nl)
11:51.58*** join/#htc-linux dzo_ (n=dzo@mail.marginz.co.nz)
12:05.33*** join/#htc-linux Spacy213 (n=casper@a80-101-159-228.adsl.xs4all.nl)
12:13.59*** join/#htc-linux dzo_ (n=dzo@mail.marginz.co.nz)
12:33.55*** join/#htc-linux marex (n=marex@vasut.kolej.mff.cuni.cz)
12:37.25*** join/#htc-linux dzo (n=dzo@mail.marginz.co.nz)
12:37.38*** join/#htc-linux yoyey (n=yoann@bro69-3-82-237-160-83.fbx.proxad.net)
12:46.54*** part/#htc-linux yoyey (n=yoann@bro69-3-82-237-160-83.fbx.proxad.net)
12:50.50*** join/#htc-linux swc|666 (n=infidel2@unaffiliated/swc666/x-4934821)
12:58.30*** join/#htc-linux dzo_ (n=dzo@mail.marginz.co.nz)
13:22.04*** join/#htc-linux dzo (n=dzo@mail.marginz.co.nz)
13:24.24*** join/#htc-linux Zinbolic (n=zinbolic@84.238.80.215)
13:39.42phhmdrobnak: cellid is coded in current git
13:39.53phhin requestRegistrationState
13:41.46*** join/#htc-linux kvaster (n=kvaster@93.84.112.80)
13:43.59*** join/#htc-linux dzo (n=dzo@mail.marginz.co.nz)
13:46.28kam187hmm very odd
13:46.36phhkam187: ?
13:46.41kam187I can use parts of lower SMI, but not other parts
13:46.46kam187it seems totally random
13:46.52phhhehe
13:46.58phhraph have same problem for EBI2
13:47.10kam187there is only one EB1 tho
13:47.20kam187*EBI
13:48.03phhnoone actually tried using EBI2 for diam anyway
13:48.06phh(ok i tried just once
13:48.06phh)
13:53.19*** join/#htc-linux xixx (n=xixx@cpmsq.epam.com)
14:03.45*** join/#htc-linux leobaillard2 (n=leobaill@leobaillard.org)
14:25.53*** join/#htc-linux dzo (n=dzo@mail.marginz.co.nz)
14:28.01*** join/#htc-linux sdt555 (n=titus@147.145.40.44)
14:29.14*** join/#htc-linux kvaster (n=kvaster@93.84.112.80)
14:44.37*** part/#htc-linux sdt555 (n=titus@147.145.40.44)
14:48.01*** join/#htc-linux x29a (n=x29a@unaffiliated/x29a)
14:54.33*** join/#htc-linux kvaster (n=kvaster@93.84.112.80)
15:01.49*** join/#htc-linux dzo_ (n=dzo@mail.marginz.co.nz)
15:02.52*** join/#htc-linux kvaster (n=kvaster@93.84.112.80)
15:15.08kam187got a datasheet :p
15:15.08kam187not much help tho
15:15.10kam187its all about hardware reg's et
15:15.11kam187c
15:15.22phhwhich datasheet ?
15:16.19kam1877200 one
15:16.42phhit can be of some help actually
15:16.51phhit just need some time to understand and use it :p
15:17.43kam187what i thought about the SMI, EBI etc seem correct
15:17.46kam187but i dont get why there are two copies of everything
15:18.35*** join/#htc-linux pH5 (n=ph5@e178208003.adsl.alicedsl.de)
15:32.04*** join/#htc-linux dzo (n=dzo@mail.marginz.co.nz)
15:32.10*** join/#htc-linux makikvues (n=a@makikvues.sh.cvut.cz)
15:32.19makikvueshi
15:32.38makikvuesare there some arm linux developers :) ?
15:32.55makikvuesor somebody who can help me with haret ?
15:33.21phhmaybe just ask
15:34.31makikvueshow can i get GPIO numbers for correct ipaq functions ( i mean eg. wifi, bluetooth ) ?
15:34.58phhit's written in the wiki ...
15:35.09makikvuesyeah i know but
15:35.53makikvuesit would be usefull if i had some example on concrete function/GPIO
15:36.15makikvuesand i haven't found this on wiki
15:36.25*** join/#htc-linux swc|666 (n=infidel2@unaffiliated/swc666/x-4934821)
15:36.54phhhttp://handhelds.org/moin/moin.cgi/HaRET_20Documentation
15:36.56phhisn't that enough ?
15:37.04phhthe "polling gpios" part
15:39.01makikvueshmm ok i'll try harder...
15:39.31phhwhat would you need more than that ?
15:40.49makikvuesok it just need a better look at this maybe
15:42.51makikvuesdo you have some experience with porting linux to ipaq 614?
15:43.13makikvuesi'm new to this
15:44.10phhyour question is stupid ... either someone has already ported linux to it and you won't have anything to do, or noone did, and the answer is obvious ...
15:45.13makikvuesdo you want to argue or what?
15:45.32makikvuesso do you have some porting experience?
15:45.41phhyes
15:45.48phhfor linux to ipaq 614 no
15:45.53makikvuesok
15:47.10kam187hmm is there any easy way to read from /dev/mem in android?
15:47.12kam187any tools?
15:47.29phhkam187: /dev/mem driver is currently broken afaik anyway
15:47.45kam187this is a real android phone tho
15:47.59phhbut busybox has a devmem tool
15:48.45kam187oh?
15:49.06phhbut you'll have to build it
15:49.18kam187got it :)
15:49.28kam187cant i use dd
15:49.47phhmmm
15:49.59phhi'd say you can, but if there is such tools maybe you can't
15:51.06kam187yup failed
15:51.26phhmost likely because /dev/mem is broken, but i can't say for sure
15:51.46kam187works ok
15:51.54kam187but only 1 word at a time
15:52.13phhOo
15:53.15kam187# devmem
15:53.15kam187devmem
15:53.15kam187BusyBox v1.15.1 (2009-09-24 15:48:43 CEST) multi-call binary
15:53.16kam187Usage: devmem ADDRESS [WIDTH [VALUE]]
15:53.16kam187Read/write from physical address
15:53.16kam187<PROTECTED>
15:53.18kam187<PROTECTED>
15:53.20kam187<PROTECTED>
15:53.22kam187# devmem 0
15:53.24kam187devmem 0
15:53.26kam1870xEA000006
15:53.28kam187#
15:58.49*** join/#htc-linux yoyey (n=yoann@bro69-3-82-237-160-83.fbx.proxad.net)
15:59.02kam187interesting
15:59.24phhkam187: ?
15:59.27kam187i can only read SMI (8mb), linux memory and the upper bank of SMI64
15:59.46phhyes amss part is protected
16:00.11kam187thats why i cant allocate anything into its space!
16:00.35kam187that sucks
16:00.39phhhum upper bank of SMI64 is strange
16:00.47phhoh not sorry
16:01.00phhno*
16:01.49*** join/#htc-linux nate2 (n=nate@cpe-76-168-200-146.socal.res.rr.com)
16:01.58kam187so really there's no way to write into the AMSS section
16:03.04phhaccording to cr2 there is
16:03.13kam187cr2?
16:03.15phhkam187: you have the datasheet you might check :p
16:03.39kam187there isnt much in there about it
16:03.50phhyou alread read everything ?
16:04.00kam187i skimmed it
16:04.05kam187i read datasheets all day!
16:08.02kam187#define AMSS_FLASH_BASE(A9BOOT_FLASH_BASE + A9BOOT_FLASH_LEN)
16:08.03kam187#define AMSS_BLOCK_NUM165
16:08.03kam187#define AMSS_FLASH_LENBLOCK_SIZE * AMSS_BLOCK_NUM
16:08.03kam187#define AMSS_START_BLOCKAMSS_FLASH_BASE / BLOCK_SIZE
16:08.04kam187:]
16:39.12kam187hmm yeah AMSS seems to be protected
16:40.45tmztflash or ram?
16:40.53phhboth
16:40.59*** join/#htc-linux thedicemaster (n=thedicem@j89051.upc-j.chello.nl)
16:41.00kam187ram
16:41.13kam187i'm trying to move some stuff into the low 32mb of SMI
16:41.17tmztyou have mpu?
16:41.27kam187mpu?
16:41.28tmztyou know how to disable it in haret?
16:41.41phhkam187: this one is in the datasheet :p
16:41.42kam187oh, no this is a samsung galaxy :)
16:41.55kam187phh: page?
16:42.02phhouch
16:42.18phh108
16:42.31tmztgalaxy?
16:42.36tmzthow are you booting?
16:43.13kam187i'm compiling a kernel and creating a boot.img
16:43.19kam187its a MSM7200 android device
16:43.52kam187i know its not really HTC-Linux, but you guys seem to understand the low level hardware :)
16:44.10tmztit's similar
16:44.23tmztare you dumping an image or something?
16:44.25kam187i see all the alocation on upper 32mb of SMI
16:44.28tmztmsm7200a?
16:44.33kam187yeah MSM7200A
16:44.41tmztok
16:44.50tmzt7200 is older, like vogue/kaiser
16:44.59kam187EBI (External RAM)
16:44.59kam18710000000->10028000 ??
16:44.59kam18710028000->1040ffff : Kernel text
16:44.59kam18710410000->105611fb : Kernel data
16:44.59kam187105611fb->10700000 ??
16:44.59kam18710700000->10F00000 GPU1 (8 Mb)
16:45.01kam18710F00000->11000000 FB   (1 Mb)
16:45.03kam18711000000->16D00000 FREE
16:45.05kam18716D00000->16E00000 [missing 1mb]
16:45.07kam18716E00000->18000000 AMSS ?(18mb)
16:45.09kam187that's EBI
16:45.16kam187SMI64 (Internal RAM, 64Mb)
16:45.17kam18700000000->02000000 FREE?  (32 Mb)
16:45.17kam18702000000->02800000 MDP    ( 8 Mb)
16:45.17kam18702800000->03500000 ADSP   (13 Mb)
16:45.19kam18703500000->04000000 CAMERA (11 Mb)
16:45.20tmzttext sounds the same as everything but hero
16:45.21kam187thats SMI
16:45.32tmztwhat are you dumping?
16:45.42kam187so i assume the top  18mb of EBI is the AMSS
16:46.04kam187i actually want to find any extra ram in the lower 32mb of SMI to free up more for android OS
16:46.21phhkam187: by the way, to they use ramzswap ?
16:46.35phhs/to/do/
16:46.40kam187no, but we have compiled a kernel etc with compcache
16:46.41tmztofficial?
16:46.46tmztdon't think so
16:46.57phhkam187: ok
16:47.03tmzthow do you flash galaxy?
16:47.11phhkam187: if you have any success please report, diamonds have the same memory layout :)
16:47.14kam187its not security locked, so u just create an image and flash it
16:47.44tmztnice
16:47.49kam187yeah :)
16:47.52tmztdo you know the format?
16:48.13kam187its just a yaffs image i think.  I havnt actually made a boot.img myself
16:48.35kam187i got another guy Drakaz working with me, he's doing all that - i'm lazy to set it up :P
16:48.51kam187knows very little about android itself
16:49.02tmztwell that's not an android thing
16:49.21tmztthe difference is the other devices were htc and we already know how to flash them
16:49.32*** join/#htc-linux Gnutoo (n=gnutoo@host25-145-dynamic.51-79-r.retail.telecomitalia.it)
16:49.33tmztwe being #htc-linux #xda-devs etc
16:49.36kam187i'm trying to get my head around how the memory works here tho
16:49.46tmztboot.img is kernel+initrd
16:49.56kam187yeah i figured that  :)
16:49.57tmztso you flash loose files or zip them?
16:50.24kam187u make a kernel etc, then pack them into a boot.img, then use odin to flash them
16:50.33kam187its a tool that tools to the low level bootloader of the phone
16:50.41kam187*talks
16:51.05tmztright
16:51.07tmztok
16:51.11kam187anyway
16:51.21tmztand the yaffs and the rest of the image?
16:51.35tmztdzo pasted something to disable ram mpu from haret
16:51.51kam187from what i understand here we have SMI (8mb) which is some fast stacked RAM which GPU0 is allocated to
16:51.52tmztif you have lowlevel monitor stuff in the bootloader you could try that
16:51.55*** part/#htc-linux yoyey (n=yoann@bro69-3-82-237-160-83.fbx.proxad.net)
16:51.58tmztyes
16:52.00kam187we dont :(
16:52.12kam187then there's SMI64, which is the 64mb internal RAM
16:52.25tmztwell you could trick memory hotplug to let you enable a bank
16:52.25kam187and the upper 32mb are allocated in the board-init.c/.h files
16:52.41kam187ok
16:52.49tmztor make a kernel mmap driver for the region and use it as swap if that doesn't work
16:52.55tmztright
16:53.11kam187then the lower 32mb is a mystery, but i assume it holds the AMSS
16:53.17tmztbut you would have to disable mpu from early kernel which is really hard to debug
16:53.28tmztwithout at least serial
16:53.40kam187doh
16:53.58tmztyou could try a prebootloader
16:54.00tmztsimple
16:54.10tmztsetup r0 as mtype
16:54.18tmztsetup atags
16:54.22tmztsetup atagsp to kernel
16:54.31tmztlook up arm bootloader protocol
16:54.38tmztor www.arm.linux.org.uk
16:54.44kam187ok
16:54.47tmztboot to kernel
16:54.51kam187i'm a tad confused now :p
16:55.06tmztyou can also test it and see if you can panic bootloader
16:55.20tmztpeople.openezx.org/tmzt/green7.S
16:55.35kam187so wait what i dont get is
16:56.02kam187if the lower 32mb holds the AMMS, and the radio bootloader etc - similar to the diamond etc
16:56.16kam187then why is the max addressible part of EBI only 109mb
16:56.32kam187GPU1 and FB arent in EBI anymore
16:56.48kam187so where's the top 19mb
16:57.52phhhave you tried running up to 115 ?
16:58.04kam187yeah, the kernel doesnt boot
16:58.16kam187even one byte over 109 and it wont have it
16:58.56kam187so 109mb = 01 6D 00 00
16:59.10kam187i can see at the end of the AMSS file 01 6E 00 00
16:59.15kam187so i assume its being loaded there
17:00.19kam187but why have AMSS in EBI and low 32mb SMI?!
17:00.32kam187or if its in EBI, whats in low SMI 32mb then?
17:01.20kam187also busybox's devmem can read 00000000 -> 000800000 which is the stacked SMI (8mb)
17:01.41kam187it can read 02000000 -> 04000000 which is top 32mb of SMI
17:02.09kam187but it cant read the bottom of SMI32, or EBI above the 109mb (> 016D0000)
17:02.34AstainHellbringhow goes it?
17:05.58kam187bad :p
17:08.26AstainHellbringorry to hear that kam187 what device you fighting?
17:08.39kam187samsung galaxy (android phone)
17:15.50*** join/#htc-linux kiozen_ (n=kiozen@rgnb-5d87d838.pool.mediaWays.net)
17:27.51*** join/#htc-linux marex (n=marex@vasut.kolej.mff.cuni.cz)
17:28.08kam187what is preventing me reading above the 109m boundry?
17:28.17kam187is it AMSS protection or protection in the mem driver?
17:36.14AstainHellbringcool kam187
17:45.39*** join/#htc-linux ali1234 (n=al@robotfuzz.co.uk)
17:46.06*** part/#htc-linux ali1234 (n=al@robotfuzz.co.uk)
17:46.25*** join/#htc-linux BHSPitMonkey (n=stephen@unaffiliated/bhspitmonkey)
17:53.43*** join/#htc-linux kvaster (n=kvaster@live.bn.by)
18:00.47*** join/#htc-linux stickboy (n=anonymou@128.153.179.191)
18:06.18tmztsamsung kernel doesn't have /dev/mem disabled?
18:06.40tmztsorry, I meant panic arm9
18:06.44tmztnot bootloader
18:07.21tmztkam187: could be either, you need to fix the drivers in the android kernel
18:07.27*** join/#htc-linux mufumbo (n=mufumbo@71-6-82-200.static-ip.telepacific.net)
18:07.29kam187ah
18:08.03tmztsaerch the logs for mpu diable haret
18:08.07tmztdisable
18:08.11kam187cool
18:08.21tmztsite:irclog.netripper.com
18:09.16*** join/#htc-linux onen|openBmap (n=quassel@vbo91-1-89-87-201-85.dsl.club-internet.fr)
18:15.28*** join/#htc-linux BHSPitMonkey (n=stephen@unaffiliated/bhspitmonkey)
18:28.47*** join/#htc-linux timebomb (n=tb@85.183.24.211)
18:34.31*** join/#htc-linux Reactor16 (n=Reactor1@41.105.62.94)
18:35.03*** join/#htc-linux cr2 (n=cr2@ip-109-85-113-54.web.vodafone.de)
18:39.00*** join/#htc-linux Reactor16 (i=Reactor1@93.182.132.110)
18:39.15cr2kam187: do you have the samsung amss binary ?
18:41.06*** join/#htc-linux kvaster (n=kvaster@live.bn.by)
18:58.19*** join/#htc-linux FR^2 (i=frr@frquadrat.de)
18:59.48*** join/#htc-linux luc_ (n=luc@89-115-128-35.cl.ipv4ilink.net)
19:02.30*** join/#htc-linux itchy8me (n=itchy8me@ip80-116-211-87.adsl2.static.versatel.nl)
19:03.55*** join/#htc-linux furtardo (n=mks@nat/yahoo/x-lpjaddxxcflveauz)
19:21.38*** part/#htc-linux FR^2 (i=frr@frquadrat.de)
19:24.35*** join/#htc-linux luc_ (n=luc@89-115-128-35.cl.ipv4ilink.net)
19:30.10itchy8meheya
19:30.13Reactor16Any one help to unlock htc S710
19:34.00itchy8mei'm trying to build busybox for the blackstone.. using "make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi", however when booting the kernel and trying to start busybox shell through init script it tells me it cannot find /init.
19:34.42itchy8mewhen i replace the busybox binary that i compiled with one that was built buy you guys it goes into the shell
19:34.52itchy8meam i building the binary incorrectly?
19:35.16itchy8mebuy=by*
19:48.51Gnutoowow:
19:49.16Gnutoohttp://pastebin.com/m302b131a
19:49.16GnutooI think I'm on the good road
19:49.54Gnutooalso: Starting playback... \n A:   0.0 (00.0) of 206.0 (03:26.0) ??,?%
19:51.56phhgreat job
19:52.05Gnutoono it still doesn't work
19:52.16Gnutoobut...
19:52.28phhit still a progress
19:52.29phhi gues
19:52.29GnutooI'm a lot more advanced than before
19:52.30Gnutooyes
19:52.33Gnutooa lot of progress
19:52.49Gnutoobasically I hardcoded that to test:
19:53.08Gnutoo4800 as len
19:53.26Gnutooand 0 as frame->used after
19:53.39Gnutooand commented frame = prtd->out + prtd->out_tail;
19:53.42GnutooI'll pastebin code
19:53.51Gnutooand of course mplayer passes the ioctl
19:53.56Gnutooand sleep
19:54.16Gnutoos
19:54.22Gnutoo*sleeps
19:55.11Gnutoohttp://pastebin.com/m223c9a95
19:56.23Gnutoothe problems occurs between
19:56.48Gnutooline 444 and line 447
19:56.56Gnutoothat's why I tried that
19:57.04Gnutooso if I find the good thing it could work
20:17.31*** join/#htc-linux itchy8me (n=itchy8me@ip80-116-211-87.adsl2.static.versatel.nl)
20:19.38*** join/#htc-linux gehzumteufel (n=gehzumte@174-127-18-210.static-ip.telepacific.net)
20:19.48gehzumteufel'ello
20:20.17itchy8meoi
20:20.32*** join/#htc-linux dream_kill (n=nospam@92.56.53.50)
20:21.03itchy8mehow do i build busybox for the blackstone?
20:21.28itchy8mei'm doing "make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi"
20:21.46itchy8mebut when booting it says "cannot execute /init"
20:23.03itchy8mewhile if i replace the bicnary i built for a precompiled binary built for my device it bots all the way into the busybox shell
20:25.14phhdo you have the libc busybox is linked with ?
20:25.19phhor built static ?
20:26.17itchy8meummm.. :-/
20:26.42itchy8mei downloaded the sources and am trying to build it in it's directory
20:26.53itchy8mestatic?
20:27.07phh...
20:29.36*** join/#htc-linux yoyey (n=yoann@lns-bzn-49f-81-56-185-87.adsl.proxad.net)
20:29.56itchy8meldd ./busybox
20:29.58itchy8menot a dynamic executable
20:32.15itchy8mephh: whats the difference between the two?
20:33.14phhstatic is selfsufficient
20:33.54*** join/#htc-linux xperia2 (n=chatzill@zux182-249.adsl.green.ch)
20:36.59itchy8mehow do i know if i'm building it statically or not?
20:37.20phhit's in the make menuconfig
20:41.01itchy8medoh!.. thanks phh
20:41.43*** join/#htc-linux ali1234 (n=al@robotfuzz.co.uk)
20:43.37cr2phh: hi. 460800 works ?
20:43.41phhcr2: yup
20:45.59cr2ok.
20:46.02*** join/#htc-linux CoKeSero (n=imcokema@pool-96-240-154-40.hrbgpa.fios.verizon.net)
20:46.06cr2then 921600 is the next
20:46.11phhyes
20:46.28phhi guess 921600 will be fixed at the same time as 4M
20:47.18cr2yes
20:47.41cr2i've looked at the hcitool source today
20:48.27cr2the 'len' is not needed, and the rest will be read in with strtol()
20:48.45cr2so it's
20:49.10cr2hcitool cmd ogf ocf *data
20:50.47*** join/#htc-linux rsanches_ (n=mufumbo@71-6-82-200.static-ip.telepacific.net)
20:58.40*** join/#htc-linux SOG (n=SOG@n058152148054.netvigator.com)
21:09.14cr2phh: do you have windows ?
21:09.20phhno
21:10.44cr2i'm still fighting with wine
21:11.15phhto do what ?
21:11.24cr2imgfs2dump
21:12.31cr2wine vcredist_x86.exe
21:12.37cr2err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x455383
21:12.47phhouch
21:12.51phhcan't help on that one
21:13.43cr2gehzumteufel: ping
21:15.45cr2phh: have you tried this one ?
21:15.48cr2<PROTECTED>
21:16.02gehzumteufelsorry
21:16.16cr2phh: must be between these ->
21:16.20gehzumteufelGot a few friends that have called me via Skype so been distracted
21:16.20cr2<PROTECTED>
21:16.21cr2<PROTECTED>
21:17.50*** join/#htc-linux stickboy (n=anonymou@128.153.210.116)
21:18.21*** join/#htc-linux g55 (n=g55@rgnb-5d87c5b3.pool.mediaWays.net)
21:18.25phhi already have this one
21:18.30cr2phh: sorry.
21:18.36cr2should be
21:18.38cr2<PROTECTED>
21:29.58phhcr2: doesn't work, timeout as usual
21:35.02phhcr2: anyhow, i'd prefer you work on gps or camera :D
21:35.47phhor FM doc who knows.
21:39.55cr2:)
21:40.13cr2for FM there are 3 commands
21:40.19cr2and many registers
21:40.41cr2what were the fm AT commands ?
21:41.11cr2we also can test the read BT addr command
21:43.46*** join/#htc-linux rosseaux (i=znc@129-167-19-84.nbiserv.com)
21:44.41*** join/#htc-linux Squarc (n=Squarc@82-217-32-29.cable.quicknet.nl)
21:48.13tmzthey cr2
21:48.38tmztcr2: try cabextract?
21:48.47tmztor unshield/orange
21:49.24tmztitchy8me: it is
21:49.46tmztitchy8me: you have the wrong toolchain, just strings PIPE grep lib
21:53.30yoyeyDo you know the g-sensor chipset name on the blackstone ?
21:53.44cr2err:module:attach_process_dlls "MSVCR90.dll" failed to initialize, aborting
21:54.01cr2yoyey: mmutrace the i2c
21:54.19cr2tmzt: does it work for you ?
21:54.29tmztwhat?
21:54.33cr2tmzt: on topa/rhod rom ?
21:54.43cr2ImgfsToDump_3.3_beta2
21:54.43tmzton vcredist.exe
21:54.45yoyeycr2:thanks
21:54.49tmztin wine
21:54.50tmztyes
21:54.55cr2weird
21:54.55tmzt3.3beta?
21:54.59cr2yes
21:55.11cr2the older ones were working. also LRK
21:55.22tmztit doesn't build the symbols
21:55.28tmztbut it does dump xip
21:55.31tmztand imgfs
21:55.47cr2btw, 7za can unpack .wim archives, may be adapted for msflsh50 ?
21:56.05cr2i need some files from imgfs
21:59.22cr2gehzumteufel: can you try the latest topa-linload and paste the log ?
21:59.31gehzumteufelYeah will do
22:01.03townkatanyone worked on making this things a rom ? i am thinking at any kind of initial progres, not a final version, i know there is still alot of work to be done on image itself,, ehh ?
22:05.10gehzumteufelcr2 what do I need to put in the startup.txt?
22:05.38cr2gehzumteufel: nothing
22:05.56gehzumteufelThere was no log that spat out when I ran haret
22:06.13gehzumteufelBut it crashed at a seemingly similar point
22:09.25cr2gehzumteufel: ram_console log after the linload hangs
22:09.54cr2pwf ramconsole 0x0e0000 0x20000
22:10.07cr2hmm. afair it did not work on rhod ;)
22:15.06gehzumteufelYeah I don't think it does
22:16.50itchy8metmzt: the static build option wasn't set in menuconfig (busybox-1.14.1, it's working now :)
22:17.10itchy8memay i say..
22:17.14itchy8meyou guys rock
22:19.09cr230000089
22:19.10cr2hmm
22:25.41gehzumteufelcr2: http://dl.getdropbox.com/u/1979320/ramconsole
22:27.28cr2gehzumteufel: yeah, it's something else
22:27.51*** join/#htc-linux marex (n=marex@vasut.kolej.mff.cuni.cz)
22:32.55*** join/#htc-linux rzk_ (n=rzk@daemonet.ru)
22:38.29cr2gehzumteufel: can you dump the rhod nk.exe ?
22:38.50cr2phh: i suggest a bruteforce BT fm trace approach
22:38.58phhbruteforce ?!?
22:39.12cr2phh: do you have your nand dump ?
22:39.27cr2yes
22:39.31phhsomewhere yes.
22:39.40gehzumteufelI don't know how
22:39.46cr2can you extract FMS.dll ?
22:40.13phhi think i already did before mmm
22:40.14cr2gehzumteufel: pwf rhodnk 0x10000000 0x300000
22:40.38phhcr2: http://husson.hd.free.fr/FMS.dll
22:40.40cr2phh: then we need to find the HCI send buffer there ;)
22:40.41phhyou already asked for it before :p
22:40.47phhouch
22:41.02cr2i'll look
22:41.20cr2find where it is mapped, and mmutrace it
22:41.41cr2wince writes there, before it goes into HCI transmit
22:42.23cr2phh: lsmod for FMS.dll ?
22:42.30phhlsmod .. ?
22:42.36cr2phh: in haret
22:42.43phhblah
22:42.47cr2You don't have permission to access the requested object. It is either read-protected or not readable by the server.
22:42.51phhoops.
22:42.58phhbetter ? :)
22:43.05phhgroumpf i have to reboot to wince
22:43.22cr2yes
22:44.42cr2send_fm_event_af_jump: oldFreq=0x%d, newFreq=0x%d
22:45.29cr20xb reg ?
22:45.34*** join/#htc-linux swc|666 (n=infidel2@unaffiliated/swc666/x-4934821)
22:46.00*** join/#htc-linux F22 (n=pcm@c-68-82-52-241.hsd1.nj.comcast.net)
22:46.12itchy8metmz: what would i have been looking for if i had used "strings <file> | grep lib"? dependecies?
22:46.36phhitchy8me: if you built it static, this is useless
22:47.06cr2Send HCI opcode(%x)---
22:47.07cr2Send HCI opcode(%x)+++
22:47.47phh1076 fl=00000000 mid=867bf76c pid=00000000 gusg=001 pusg=004 base=78690000 size=00012000 hmod=867BF76C mod=fms.dll exe=^M
22:48.04itchy8mephh: and if i had built it with libc links?
22:48.28phhitchy8me: you'll have to copy every lib it is linked to
22:48.32phh(including ld-linux.so.2)
22:48.49cr2phh: ok, maybe we should trace the whole .data segment ?
22:49.01gehzumteufelcr2 http://dl.getdropbox.com/u/1979320/rhodnk
22:49.06gehzumteufelit isn't finished yet
22:49.17phhcr2: that might be a lot of data no ?
22:49.46cr2phh: mmutrace will look only for changes
22:49.53cr2.data of FMS.dll
22:49.54phhyes but even that
22:50.03phhanyway, what's the address ?
22:50.15cr2not so easy ;)
22:50.24cr2FM_GetMoSt
22:50.26phhok i'll let you do the maths :p
22:50.31cr2btw, what is MoSt ?
22:50.45phhdon't know.
22:50.52phhMobileStation ?
22:51.12cr2?
22:51.20phhseems stupid ok.
22:52.33cr2[K] DEX_RTC_ALARM
22:52.35cr2[K] DEX_VBUS
22:52.36cr2[K] DEX_BATT
22:52.38cr2[K] DEX_USBID
22:52.47cr2i think we don't demux these ;)
22:53.38cr2GSENSOR_MOT
22:54.09phhoh that make me think that i have to code some gyroscope android driver
22:54.29phhoh well, most games don't use it anyway.
22:57.43phhcr2: so anything i should trace ?
23:00.38cr2phh: vd around 0x78690000 ?
23:01.18phherror while reading address
23:01.23phhexception*
23:01.33cr2look at dump mmu
23:01.58cr2which pages are mapped after (virt)0x78690000
23:03.46cr2SetAUDIOLOOPBACK
23:03.53cr2SetAUDIO(3)
23:04.06*** join/#htc-linux kvaster (n=kvaster@live.bn.by)
23:05.14phhi should look for AT commands ?
23:06.50phhcr2: ?
23:07.51cr2set Mo/St
23:07.58cr2Mono Stereo i guess
23:08.59cr2do you have the 'dump mmu' output ?
23:09.42phhwhat am i supposed to do with it ?
23:09.49phhsearch what''s next to 0x78690000 ?
23:10.45cr2yes
23:10.49cr2<PROTECTED>
23:10.51cr2SEND_COMMAND: ogf=0x3f ocf=0x137 1 ->
23:10.52cr2ACTION_SEND_COMMAND: 0x01 0x37 0xfd 0x01 0x01
23:11.01cr2should be easy with hcitool
23:11.21phhhcitool cmd 0x3f 0x137 0x01 0x37 0xfd 0x01 0x01 ?
23:11.26cr2no
23:11.39cr2hcitool cmd 0x3f 0x137 0x1
23:11.47phhwe need to upload FM firmware no ?
23:12.01cr2i think yes
23:12.14cr2or we write a separate app
23:12.56cr2the callbacks are most important
23:17.05*** join/#htc-linux timebomb (n=tb@e177136209.adsl.alicedsl.de)
23:18.10cr2# FM ON
23:18.11cr2SEND_COMMAND: ogf=0x3f ocf=0x137 1 ->
23:18.12cr2ACTION_SEND_COMMAND: 0x01 0x37 0xfd 0x01 -> payload -> 0x01
23:18.19cr2looks better now.
23:21.08phhtime to sleep
23:22.52*** part/#htc-linux yoyey (n=yoann@lns-bzn-49f-81-56-185-87.adsl.proxad.net)
23:37.30*** join/#htc-linux kvaster_ (n=kvaster@live.bn.by)
23:56.08*** join/#htc-linux Squarc (n=Squarc@82-217-32-29.cable.quicknet.nl)

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