IRC log for #htc-linux on 20130210

00:17.06*** part/#htc-linux Cotulla (~myfakemai@109.205.253.11)
01:07.15*** join/#htc-linux rajkosto (~rajkosto@wan.rajkonet.info)
02:06.13jonprycrud
03:24.22*** join/#htc-linux simonsimons34 (~simonsimo@50.2.8.96)
03:24.49*** join/#htc-linux simonsimons34 (~simonsimo@unaffiliated/simonsimons34)
04:11.27*** join/#htc-linux rajkosto (~rajkosto@wan.rajkonet.info)
04:30.30*** join/#htc-linux GPFerror (~GPF@75-171-45-229.phnx.qwest.net)
04:30.48*** part/#htc-linux GPFerror (~GPF@75-171-45-229.phnx.qwest.net)
04:44.03*** join/#htc-linux detule (~detule@unaffiliated/d3tul3)
05:05.59jonpryhey detule
05:08.20detulehey jonpry
05:08.54detulegot the kernel to compile?
05:08.57jonpryi've almost got this thing to build a V4 image
05:09.26jonpryit built for V2 anyways
05:10.00detulenice how are you building it
05:10.08detuleplan is to load it via pil right?
05:10.21jonpryyeah
05:10.26jonpryi patched up head.S
05:10.42jonpryso all it does is write a bunch of memory 0xbbbbaaaa
05:11.23jonprypil is blowing my mind
05:11.40jonpryi'm tempted to try and load it via /dev/mem
05:11.51jonprymaybe use pil to launch it
05:11.56detulehow do you jump to it
05:11.57detuleoh
05:12.32jonprythe linker script is still all messed up. so only one of the elf sections can actually be loaded
05:14.00detuledev mem could work...you can write one word at a time via that devmem binary in busybox
05:14.20jonpryno dd?
05:14.48detuleer....don't think you can dd though i could be wrong
05:15.54jonprysomething has to be done to pil anyways
05:16.40detulewhat config are you using for this, this comet stuff?
05:16.59jonpryi'm about to push a new one
05:17.45detulewhy V2 image?
05:18.13jonpryi just pushed v4 stuff
05:18.23jonprystupid kconfig wouldn't build for v4
05:18.54jonprycompiling for v4 is way slower for some reason
05:19.02jonpryand this doesn't look good
05:19.03jonpry-rwxr-xr-x 1 jon jon 37568357 Feb 10 00:16 vmlinux
05:19.38detuledamn i guess explains the slower
05:23.01detulethis . = ALIGN(_PAGE_SIZE); is not needed?
05:23.25detuleor it doesn't matter at c*
05:23.44jonprythat address has 1GB alignment
05:29.47jonpryhmm
05:29.53jonpryV2 isn't any smaller
05:31.11detuledo we need any kind of compression in config
05:32.06jonpryi don't think so
05:32.25jonprystill need all this memory to be able to run it
05:32.52detulewrite a decompression in pil :)
05:33.56detuleperhaps it's a toolchain issue
05:34.02jonpryah
05:34.03detulesome strip flag
05:34.06jonprygotta run strip on it
05:34.08jonpry3MB
05:34.47detuleso you'll feed this zImage or whatever it is to PIL?
05:34.52detuleand hope for the best?
05:35.25jonpryi think it requires a program
05:35.39jonpryto open up the elf, find the .init.text segment
05:35.48jonpryload to 0x8da0
05:36.03jonprythen touch some pil thing
05:36.20jonpryand then hope for the best
05:38.07jonprybuild is like make ARCH=hexagon v4_defconfig
05:38.10jonprymake ARCH=hexagon CROSS_COMPILE=/opt/gnu/bin/hexagon-
05:38.26jonprythen hexagon-strip vmlinux
05:39.09detulegreat thanks
05:39.34jonpryi'll be amazed if it ever jumps into head.S
05:40.07jonprybetween the fake compilers and the ports to virtual machines
05:42.27detulepil_q6v4_init_image looks like what we need just to program start_addr
05:42.41detulethen pil_q6v4_reset
05:43.00jonpryyeah some sort of interface to that code would work
05:43.02detuleprograms boot address from start_addr, and powers up
05:43.10detuleby bringing regulators online
05:48.11jonprypil_q6v4_reset seems to do most of it
05:48.52detulethat n4 is running 3.4 right
05:49.05jonpryyeah
05:49.56jonpryi disabled SND_SOC in config and it appears that android never tries to operate the PIL or anything
05:51.09jonprymight be a whole different animal on 8960 though
05:51.26jonprywith q6v4 based modem and apps dsp
05:54.38jonprygotta sleep. cya
05:54.54detulelater
06:09.39detulejonpry, we should be able to use load_image from peripheral-loader.c it loads from userspace (just need a matching firmware name to device name in /lib/firmware/) unpacks elf header, calls init_image, writes to physical memory and calls reset
07:37.36*** join/#htc-linux Funklord (~cow@84-55-99-121.customers.ownit.se)
07:49.49*** join/#htc-linux rajkosto (~rajkosto@wan.rajkonet.info)
08:32.14*** join/#htc-linux paulk-desktop (~paulk@lib33-1-82-233-88-171.fbx.proxad.net)
08:51.37*** join/#htc-linux eR^zeRa` (~zzeratul@ip-84-42-202-42.net.upcbroadband.cz)
09:14.31*** join/#htc-linux Rajko (~rajkosto@wan.rajkonet.info)
09:17.07*** join/#htc-linux helicopter88 (~helicopte@host167-115-dynamic.23-79-r.retail.telecomitalia.it)
10:28.08*** join/#htc-linux arif-ali (~arif-ali@94-192-24-56.zone6.bethere.co.uk)
10:44.01*** join/#htc-linux BabelO (~fcr@unaffiliated/babelo)
10:49.44*** join/#htc-linux arif-ali (~arif-ali@81.144.163.60)
11:51.47*** join/#htc-linux Ondalf (~ondalf@cable-roi-50ddf8-39.dhcp.inet.fi)
12:24.51*** join/#htc-linux Cotulla (~myfakemai@109.205.253.11)
12:26.18*** join/#htc-linux Ondalf (~ondalf@cable-roi-50ddf8-39.dhcp.inet.fi)
12:34.41Cotullahello
12:41.22Cotullajonpry ping
12:55.45*** join/#htc-linux paulk-desktop (~paulk@lib33-1-82-233-88-171.fbx.proxad.net)
13:08.10jonpryCotulla, pong
13:09.11Cotullahow is it?
13:09.13Cotullagot it working?
13:09.22jonpryi got it to build
13:09.40Cotullagood
13:09.47Cotullarun?
13:10.03jonprygotta mess with the PIL
13:11.02Cotullahehe
13:11.06CotullaI got it working
13:11.12CotullaqMAGLDR runs with SW MMU
13:11.14jonpryor i could overwrite stuff in /lib/firmware
13:11.18jonpryorly
13:11.22Cotullayes
13:11.32CotullaI used same format like in HVM
13:11.42Cotullabut assumed that L2 is always 4096 bytes aligned however
13:11.58Cotullait's with 6 standalone pagetables, no kernel one yet
13:12.36jonpry4MB per table?
13:12.45Cotullayes
13:12.59Cotulla4K table
13:13.06Cotulladescribes 4M
13:13.31jonprythe hole on 8x60 isn't big enough for the page tables
13:13.42Cotullawhy
13:13.47Cotullaprimary is 4K
13:15.26jonpryisn't l2 1024 pages?
13:16.20Cotullait can describe 1024 pages
13:16.24Cotullabut size is 1024 * 4
13:16.27Cotulla4K too
13:16.38Cotullaeach L2 table can describe 4M virtual space
13:16.48jonpry4GB of VA
13:17.05jonpry<PROTECTED>
13:17.16jonpry= 4MB per thread
13:17.21jonpry= 24MB
13:17.48Cotullawell
13:17.55Cotullawhere do u see 4GB VA used? :D
13:18.07jonpryi don't
13:18.11Cotullaso it's much more smaller
13:18.18Cotullait's common, how ARM system works too
13:18.24jonpryhmm
13:18.33jonpryi thought the pagetables were complete
13:18.36Cotullano
13:18.42Cotullawhen u need a new entry
13:18.46Cotullau just allocate L2 page table
13:18.55jonpryso access is just like PA = PTE[VA/SZ_4K]
13:18.56Cotullaand fill pointer inside L1 table
13:19.25Cotullait's not necessary to have all L2 page entries filled
13:19.29jonpryic
13:19.30Cotulla*L1
13:19.40Cotullathey actually added when u need mapping
13:20.24jonprygood work
13:20.53jonpryi guess hexagon linux is getting close
13:20.58jonpry*closer
13:21.03Cotullayea
13:21.07Cotullamaybe will run today
13:21.10Cotullawho knows haha
13:21.31jonpryi think we need a bootloader of sorts
13:21.38jonprymaybe built into head.S
13:21.48Cotullasorts?
13:22.04jonprylike .text has to be linked at 0xc000 0000
13:22.16jonprybut loaded at totally different address
13:22.24CotullaVA is 0xC0000000
13:22.29jonpryyeah
13:22.35CotullaPA øû different
13:22.37CotullaPA is different
13:22.51jonprythe thing with a real bootloader is that it loads the kernel at the wrong address
13:23.06jonpryand then uses atags or something similar to tell head.S what happened
13:23.21Cotullahm
13:23.23Cotullaatags
13:23.29Cotullawait
13:23.32Cotullawhy address is wrong?
13:23.36jonpryPA
13:23.44Cotullathis kernel just is not designed to be run by native
13:23.45jonpryno mmu on load
13:23.47Cotullaonly inside HVM
13:23.54Cotullawait
13:23.57Cotullahead.S
13:24.01Cotullaadds a special mapping
13:24.04Cotullato switch mode
13:24.24jonprythe head.S is easier
13:24.34jonprythe problem is PIL
13:24.41jonpryit reads ELF
13:24.44Cotullayes
13:24.48jonpryand is trying to load crap to VA
13:25.11jonpryi was thinking of modifying the ELF
13:25.23jonpryVA->PA after compile
13:26.46Cotullait should be special ELF actually
13:26.49Cotullanot program
13:26.54Cotullabut with physical regions
13:27.14Cotullathere are two catalogs inside ELF
13:27.19Cotullaprogram sections
13:27.20Cotullaand
13:27.24Cotullaphysical sections
13:28.05jonpryhttp://pastebin.com/xEjkiECW
13:28.50Cotulladump original ELF maybe
13:28.52Cotullaalso
13:29.00Cotullaor make flat kernel
13:29.08jonpry0x8da0 stuff and IMEM
13:29.09Cotullait should be the best
13:29.18Cotullacuz same experiene like with ARM
13:29.24Cotulla*experience
13:29.42jonpryi think i can make this work
13:29.55Cotullaok
13:35.45jonprydid you see my head.S?
13:36.25Cotullano
13:36.34CotullaI didn't join yet to github was busy with code :P
13:36.47Cotullaaround 400 assembler lines :O
13:37.49jonpryhttps://github.com/detule/linux-hexagon/commit/12a26cdf01b04fbebfc59f20eba1e59fde114d08
13:38.05jonpryi can't even tell if that will run
13:38.15jonprymy assembler sucks
13:39.07Cotullashould work in theory
13:39.12Cotullabut is it PA?
13:39.21jonpryyeah
13:39.28jonprythat is the entry point
13:39.50jonpryhmm. i think memw is supposed to be after 1:
13:41.39Cotullayea
13:47.00Cotullahead.S should be replaced almost fully I think
13:48.16Cotullainteresting that
13:48.33Cotullainstruction packet with stack space allocate fails if stack is uncached
13:48.46Cotullait didn't work until I changed caching type
13:49.53jonpryis it required to packet the instructions?
13:49.59Cotullanot really
13:50.03Cotullabut it's speed up
13:50.12Cotullamy current tlbmiss code without packets yet
13:50.13jonpryassembler does it automatically?
13:50.39Cotullano
13:50.47Cotullau need manually do that by { }
13:50.56Cotullaand it's not really easy
13:51.36jonpryjust one instruction per packet without { }?
13:52.13Cotullayes
13:52.21Cotullabut it's not about used soace
13:52.22Cotullaspace
13:52.25Cotullaabout speed
13:52.34jonpryyeah VLIW
13:52.41jonpryquad issue
13:52.55Cotullanot all instructions can be issues at the same time
13:53.08Cotullalike two memw() looks not possible
13:53.30jonpryv4 has more possibilities
13:53.36Cotullamaybe
13:53.44Cotullabut I am proud V2 user :P
13:54.16Cotullaokay
13:54.20Cotullanext step
13:54.24jonpryprobably aim for portability
13:54.52CotullaI should clone git I think and start work under kernel
13:55.18CotullaI am going to make copy of comet_defconfig to htcleo_defconfig
13:55.29Cotullaas well we need
13:55.34Cotullasome CONFIG_ for V2 and V4
13:55.41jonpryi made one for v4
13:55.47jonpryyou can use comet if you want
13:56.20jonprythere is comet_defconfig and v4_defconfig now
13:56.52jonpryCONFIG_HEXAGON_ARCH_V2
13:56.53jonpryCONFIG_HEXAGON_ARCH_V4
13:57.13jonpryit sets up all the compiler options and everything
13:58.41Cotullaokay
14:01.08Cotullahm is it cat
14:01.21Cotullaor cattyoctopus ? :O
14:01.53Cotullahttps://github.com/detule/linux-hexagon ?
14:03.10jonprygit@github.com:detule/linux-hexagon.git
14:03.17jonpryfor commit access
14:03.19Cotullawhy so plain name
14:03.29Cotulla:D
14:03.44Cotullahexy-linux much better :P
14:03.55jonpryhex-core-android?
14:04.02jonprylol
14:04.03Cotullajoke, actually it's confusing is it official or not
14:04.32Cotullalike linux-hexagon@vger.kernel.org
14:05.00jonprylinux-real-hexagon
14:05.17Cotullakinda yes
14:06.52*** join/#htc-linux stroughtonsmith (~steven@86-42-150-7-dynamic.b-ras1.bbh.dublin.eircom.net)
14:07.40jonpryi hope that qcom rage quits
14:08.02Cotullawell
14:08.13Cotullaseems my mail is gone
14:08.18*** join/#htc-linux detule (~detule@unaffiliated/d3tul3)
14:08.18Cotullamaybe they paid to remove it :D
14:08.23Cotullalol
14:08.38Cotullamaybe I need register at mail list before send mail?
14:09.14jonprydid you send it to linux-hexagon or just linux ?
14:09.22Cotullalinux-kernel
14:10.26Cotulladetule
14:10.28Cotullahi
14:13.11jonpryso i guess i need some deal to turn elf into those stupid mdt and b00 things
14:13.26Cotullashit I am bad with GIT still :(
14:13.52Cotullabut I am still afraid how this cattypus looks to me :O
14:16.33*** join/#htc-linux arif-ali (~arif-ali@81.144.163.60)
14:17.01Cotullaok I gotta boot linux pc
14:17.03Cotullaand git clone
14:17.05Cotullaand compile
14:17.08Cotulla*try to compile
14:17.41Cotullabtw cover next time "added entry point testing code" by ARCH_V4
14:20.54jonpryk
14:29.41detulehi folks *waking up*
14:29.46detulenice job Cotulla
14:30.26detulefigured out this business of enabling exceptions while handling tlb miss?
14:31.42Cotullano
14:31.48Cotullaall done inside one tlbmiss
14:31.51Cotullawithout nested exceptions
14:32.03Cotullawe discussed that with jonpry above
14:32.16Cotullait's not possible to use nested exceptions to fetch L2 value
14:34.23detuleyou made a github account?
14:45.50Cotullayea
14:46.16CotullaCotulla one
14:46.19Cotullastrange
14:46.23Cotulla:D
14:48.29detuleyou should have commit acc to that repo
14:51.26Cotullaokay
14:51.30CotullaI hope I won't mess anything
14:51.34CotullaI am still rather bad with GTI
14:52.27detulejust no git push force :p everything else is reversible
14:53.07*** join/#htc-linux Marc (~quassel@phpbb/modifications/marc1706)
14:56.04Cotullaokay
14:56.23*** join/#htc-linux [Kosh] (~zz@109.205.253.11)
14:56.28[Kosh]hi guys
14:56.42detulejonpry, can't we just memblock remove a larger hole?
14:57.04jonpryor fixup
14:57.44[Kosh]how change user name in Linux?
14:57.52[Kosh]or PC name
14:57.56jonpryi'm trying to convert the vmlinux to something that can be stuck in /firmware
14:58.09[Kosh]what is there? MBN?
14:58.20jonpryand then i guess umount /firmware , mount loop /fimware
14:58.27jonpryecho "get" > pil ?
14:58.47jonprymdt
14:58.51jonpry+bin
14:58.53[Kosh]can u just map region, copy binary and start Q6
14:59.23jonprystarting q6 is the trouble
14:59.30[Kosh]why
14:59.33jonpryit will work better if PIL is left alone
14:59.47jonprycause 8960 needs q6v4 pil to operate the modem
15:00.41[Kosh]oh
15:00.45[Kosh]yes
15:00.59jonprybut that may not work anyways
15:01.05jonprysince modem needs trusted loader
15:01.06[Kosh]should be
15:01.14[Kosh]call to RPM
15:01.16[Kosh]to run them
15:01.51jonpry<PROTECTED>
15:01.51jonpry<PROTECTED>
15:02.08jonpryi think that is digital signature
15:02.16[Kosh]maybe
15:02.21[Kosh]it can be a problem yes]
15:05.11[Kosh]ok git cloner
15:05.18[Kosh]speed is good
15:05.20[Kosh];)
15:11.45[Kosh]done
15:12.21[Kosh]ya commit ba9459b9124911b795713b420edce3716af6d28b
15:13.03detulei guess kvm is the latest blow up on lkml
15:13.17detulelinus on the receiving end of "you're so full of shit"
15:13.27[Kosh]?
15:13.40[Kosh]why u hardcoded 0x8da00000?]
15:14.11detulethat's where q6 firmware is currently being loaded
15:14.23[Kosh]well for me address is totally different :)
15:15.03detule*on msm8960 and apq8064 or whatever is in the n4
15:15.10[Kosh]yes
15:15.14[Kosh]but I need another address
15:15.21jonpryyeah needs to be a config option
15:15.25[Kosh]it was PAGE_OFFSET + LOAD_ADDRESS
15:15.25jonprydidn't get to it
15:15.31[Kosh]we should look how it's done in ARM
15:15.34jonprydon't do that
15:15.48jonpryPAGE_OFFSET+LOAD_ADDRESS causes all kind of problems
15:16.20jonpryjust CONFIG_PHY_BASE
15:16.23jonpryand be done
15:16.32jonpry*PHYS
15:16.34[Kosh]#define PAGE_OFFSET_AC(0xc0000000, UL)
15:16.40[Kosh]it's kernel VA start
15:16.52jonprywhich is no good for init.text
15:17.49[Kosh]why
15:17.52[Kosh]for ARM it's . = PAGE_OFFSET + TEXT_OFFSET;
15:19.14[Kosh]and it's textofs-y:= 0x00008000
15:19.23[Kosh]maybe we can make it
15:19.32[Kosh]no
15:19.36[Kosh]or yes
15:19.50jonpryi already got it to do "the right thing"
15:19.53[Kosh]space for ATAGs
15:20.00[Kosh]wait
15:20.02jonpryjust define 0x8da0 for your layout
15:20.08[Kosh]constant can not be right thing :)
15:20.16jonpryno it needs defined
15:20.25jonprybut the resulting ELF is good
15:20.26[Kosh]wait
15:20.37[Kosh]0x8da00000 is wrong
15:20.39[Kosh]it's PA
15:20.43[Kosh]and we need VA
15:20.46jonpryinit.text is PA
15:20.48[Kosh]0xC0000000+ there
15:20.49jonprymmu off
15:21.17jonpryreadelf -l vmlinux
15:22.12[Kosh]I am looking
15:22.41jonpryi am fairly good at the trampoline stuff
15:23.04jonprylot's of kexec experience
15:23.25[Kosh]well
15:24.28[Kosh]it doesn't used for ARM
15:24.36jonpryso like init.text is at PA
15:24.37[Kosh]they just in the start up code use offsets
15:24.49[Kosh]between PA and VA to access _few_ variables
15:24.50jonprythen first order of business is to setup an idmap
15:24.56[Kosh]I think the best way to do same
15:25.02jonpryso VA=PA for 0x8da0
15:25.03[Kosh]cuz ARM is well tested
15:25.11jonprythen mmu on
15:25.16[Kosh]oh
15:25.18[Kosh]shit
15:25.25[Kosh]I forgot one thing ofcourse
15:25.37[Kosh]unlike ARM very hard to make position independent code
15:25.43jonprythen setup 0xc000 to kernels PA
15:25.46[Kosh]in that case it can be better to use
15:25.49[Kosh]that section maybe
15:26.04[Kosh]so it should be CONFIG_INIT_OFFSET maybe
15:26.08jonprysure
15:27.00[Kosh]as well "core system" will be mapped to FFF00000 I think
15:27.09[Kosh]we need to add a special section for that into LDS
15:27.26[Kosh]well I am going to compile it now
15:28.30Cotullawell let me try commit something
15:28.34Cotullalike htcleo_defconfig
15:30.21Cotullahm how to do that
15:30.36detuleyou have it commited locally?
15:30.47jonprygit add file; git commit -m "added bs"; git push
15:30.48Cotullanot yet. I think I need to add key
15:30.56Cotullaafaik
15:31.06detuleright you need your ssh key on github
15:31.23detulethen what jonpry said
15:33.25[Kosh]passphrase too short: have 3 bytes, need > 4
15:33.28[Kosh]lol
15:36.10[Kosh]Hi Cotulla! You've successfully authenticated, but GitHub does not provide shell access.
15:36.11[Kosh]lol
15:36.17[Kosh]looks like end of level in Mario
15:36.19[Kosh]:O
15:36.29jonprynot ssh://
15:36.35jonpryedit .git/config
15:37.15jonpryok i finished the vmlinux post processor
15:37.31detuledamnit kosh=cotula
15:38.17[Kosh]lol detule?
15:38.24[Kosh]u are soooo fast
15:38.26[Kosh]:D
15:38.44[Kosh]this is from Linux PC
15:38.50detulehey it took you a while to figure out who d3tul3 is
15:39.01[Kosh]lol I was 95% sure
15:39.03[Kosh]just checked
15:39.04[Kosh]:P
15:39.04detuleand those two nicks have much more resemblance
15:39.19[Kosh]yea correlation is very close
15:39.36[Kosh]2 e - > 2 3
15:39.41[Kosh]len is 6
15:39.43[Kosh]so
15:39.45detulei was surprised that someone else is jumping in on the project with "you should do this or that"
15:39.45[Kosh]2 / 6
15:40.04[Kosh]so
15:40.07[Kosh]100 / 6 = 16.6
15:40.12[Kosh]2 * 16.6  = 32.2
15:40.19[Kosh]100 - 32.2 = 67.8
15:40.29[Kosh]but we need take into account that e and 3 looks rather simular
15:40.32[Kosh]but dunno how to measure that
15:40.49[Kosh]so lets say it's 70% correlation
15:40.50jonpryit's l33t speak
15:40.51[Kosh]:P
15:42.20Cotullayea
15:42.26Cotullait's my favorite troll style
15:42.32Cotullajust enter and start to give advises to ppl
15:42.33Cotulla:D
15:42.39Cotullafrom air
15:43.29detulei think [Kosh] 's english is better...that threw me off to
15:43.30detuleo
15:46.10jonpryshould i push this pos to the kernel?
15:51.30[Kosh]pos?
15:51.44langpoohi guys
15:51.59langpooand ladies
15:52.26jonprypiece of shit
15:52.46jonprythis horrible program to turn vmlinux into PIL images
15:53.01langpooMaybe.
15:53.13jonpryi don't really want to make a whole other repo for it
15:53.23langpooI think I gotta use qImage.
15:53.52jonpryin theory i could wrap a qImage in ELF
15:54.11jonprybut it's like hard to tell what the linker is doing
15:54.44detulemaybe start another branch for now just so we can have the commit up there
15:55.09*** join/#htc-linux gauner1986 (~Adium@hmbg-5f760146.pool.mediaWays.net)
15:55.29gauner1986hey
15:55.33langpoofatal: remote error:
15:55.33langpoo<PROTECTED>
15:55.33langpoo<PROTECTED>
15:55.35langpoohm
15:55.39langpooI need change to SSH?
15:55.59detulein .git/config
15:56.03detulechange the repo address
15:56.04detuleto the one the told you above
15:56.11detulegit@ *
15:56.31Cotullayesterday?
15:56.38langpoogit@github.com:detule/linux-hexagon.git
15:56.40langpoothis one?
15:56.42detuleyes
15:57.20langpooI guess
15:57.20langpoourl = git://github.com/detule/linux-hexagon.git
15:57.21langpoothis>
15:57.22langpoo?
15:57.57jonprychange that
15:58.05detuleyes right under [remote  "origin"]
15:59.21detulecongratulations
16:00.16langpoofuck yea
16:00.17langpoo11
16:02.04langpooShit. I forgot to put a dot at the end of commit sentence. . .
16:02.08langpoo:O
16:02.52langpootime to compile
16:16.03jonpryit thought about running my firmware
16:16.11jonpryRPM fail
16:16.41langpoois it possible to ignore changes inside one specific file for git?
16:16.49langpookinda my Makefile with hack
16:16.56langpooand nobody gotta change it more
16:17.24jonprythere is something called git ignore
16:17.55Cotullabut I should able to commit still
16:18.29langpoocompiling
16:19.12langpoooh I need CONFIG_HEXAGON_ARCH_V2=y
16:21.55Cotullalol compiled
16:21.57Cotullastrange
16:22.17Cotullamy aura is positive today I think
16:22.46*** join/#htc-linux detule (~detule@pool-96-234-132-77.bltmmd.east.verizon.net)
16:23.27*** join/#htc-linux detule (~detule@unaffiliated/d3tul3)
16:24.40detuleCotulla, add "Makefile" to your .gitignore file in the root of your repo, you will also want to add ".gitignore" to .gitignore
16:24.59Cotullaokay
16:26.05langpoohm still
16:26.06langpoo#modified:   .gitignore
16:26.06langpoo#modified:   Makefile
16:26.22langpoonvm
16:26.43langpoono it is
16:29.29*** join/#htc-linux arif-ali (~arif-ali@81.144.163.60)
16:30.11jonprydetule, i have q6 images
16:31.08langpoowhy arch/hexagon/kernel/vmlinux.lds is untracked now hm]
16:31.09langpoo?
16:31.26jonprynormal
16:31.34langpoook
16:31.37jonpryit is generated from vmlinux.lds.S
16:31.44langpoooh
16:32.21langpooI will add CONFIG_MACH_HTCLEO ok?
16:32.33langpooor how we are going to separate parts?
16:32.42langpooLEO/N4 and etc
16:32.55jonpryv4/v2?
16:33.04jonpryis there really machine specific stuff?
16:33.06langpooyes also possible
16:33.14langpooyes ofcourse
16:33.44jonprylike n4/sgs3?
16:33.54langpoolike memory mapping
16:33.59langpoofor example
16:34.16jonpryyes that is going to be fun
16:34.40jonprymach types are fine with me
16:34.47Cotullaok
16:34.53Cotullalets add CONFIG_MACH_*
16:35.35detuleso it's time to see if PIL will play nice with these?
16:35.37CotullaI think better to put new "real" code to separate folder
16:35.54Cotulla"coresys" for example
16:36.01Cotullaunder arch\hexagon\coresys
16:36.10jonprynot mm?
16:36.19Cotullato separate our files
16:36.22jonprydetule, trusted PIL freaked out on me
16:36.26Cotullafrom mainline/QCT/CA
16:36.49jonpryi'm not picky
16:37.02Cotullaok
16:37.13jonpryat some point i think it should be a patch set against mainline though
16:37.27jonprytry and push that upstream :p
16:37.41Cotullayea why not
16:37.54Cotullathen we can move working code to MM
16:37.58Cotullait's not hard
16:38.03jonprysure
16:41.57jonpryit claims to have booted dsp
16:43.05jonpryso now how do i inspect /dev/mem?
16:43.18Cotullaioremap?
16:43.28jonpryfrom userland
16:43.38Cotullahm no idea
16:47.05detulejonpry, use busybox devmem
16:47.52jonpryi only have toolbox
16:48.53detuleyou have that rooted?
16:49.06jonpryyeah
16:50.07detulethis is what you want https://github.com/CyanogenMod/android_external_busybox/blob/gingerbread/miscutils/devmem.c
16:51.01Cotullaheh
16:51.03Cotullahehe
16:51.07Cotullau may need dckill
16:51.42detuleneed busybox binary?
16:52.24jonpryi found something on play
16:54.02jonpryhmm
16:54.11jonprythe code is in memory
16:54.36jonprydoesn't appear to have run though
16:54.42detulebut it didn't clobber?
16:54.46Cotullamaybe no dckill
16:54.47jonpryno
16:56.56jonprydckill?
16:58.09Cotullacache clear kinda
16:58.16Cotulladata cache
16:58.45jonpryah
16:58.56jonpryi think the problem is with my elf stuff
16:59.07Cotullamaybe compiled wrong
16:59.22Cotullarelocations and etc
16:59.34jonprysomehow i can't disassemble it
16:59.43Cotullause objdump
16:59.50jonpryi tried
16:59.55jonprybut it looks nothing like head.S
16:59.57Cotulla-D ?
17:01.36jonpryhttp://pastebin.com/KQGyqbcG
17:05.19detulemaybe stripped too agressively>
17:05.26jonpryappears to be endian
17:05.39jonpry<PROTECTED>
17:05.39jonpry<PROTECTED>
17:06.33Cotullayeah some shit
17:07.22jonpryis qMAGLDR littlehexagon?
17:10.45jonpryCotulla, can you send me a qMAGLDR binary?
17:11.12Cotullayes it's little
17:11.28CotullaDSP.bin:     file format elf32-littleqdsp6
17:12.56jonprytypo
17:13.02Cotulla?
17:13.20jonpryr25.L = #0x0000
17:13.20jonpryr26.H = #0x8eff
17:13.21jonprydur
17:13.37Cotullamoll
17:16.22*** join/#htc-linux eR^Z` (~zzeratul@ip-84-42-202-42.net.upcbroadband.cz)
17:17.17jonpryhmm
17:17.32jonprystill no boot
17:19.01Cotullaadded dckill?
17:19.27jonpryseems like PIL should have what it needs
17:19.40jonpryand /dev/mem is uncached i think
17:20.31*** join/#htc-linux arif-ali (~arif-ali@94-192-24-56.zone6.bethere.co.uk)
17:21.24Cotullabut in Q6 it should be cached
17:21.47jonpryyes
17:22.03jonprythats why i set it to write 16MB
17:23.31Cotullayea should not
17:32.51Cotullatry to add that at the begining
17:32.52Cotullahttp://pastebin.com/fqRWQueF
17:40.50Cotullaworking under vm_ops.S implementation
17:43.22jonpryhow do you do forward pc relative jump?
17:43.46fakkergalaxy nexus is broken
17:44.50Cotullaearth fakker is broken
17:45.00Cotullajonpry looks like it's not really possible
17:45.05Cotullau can load pc value to register
17:45.13Cotullaand then add something
17:45.18Cotullabut hard to calc exactly value
17:45.21Cotullain asm
17:45.30fakkerscreen is broken - do i wait or do i buy something now?
17:45.41Cotullawait
17:45.47jonpryCotulla, jump 1f ?
17:45.59Cotullait's relative
17:46.01Cotullaoh yes
17:46.09Cotulla1:
17:46.10Cotullathen
17:50.00jonpryhmm
17:50.02jonprystill nothing
17:50.13fakkerwait for what?
17:50.14Cotulladid u add my code?
17:50.20jonpryyes
17:50.24Cotullafakker for Windows Phone 9
17:50.33Cotullahm
17:50.39Cotullais there old values?
17:50.42fakkerstupid russian
17:50.46Cotulla:D
17:50.59Cotullau didn't overwrite code?
17:51.37jonprysomething is wrong with the disassembly
17:55.08Cotulla?
17:55.18Cotullaare u sure u are compiling for V4?
17:55.40jonpryyes
17:57.26jonpryhttp://pastebin.com/ky414nwh
17:58.32Cotullathere is also something called chicken
17:59.18Cotullait inited by 00 20 20 00 value
18:00.26Cotullap0 = cmp.gtu (r25, r24)
18:00.42Cotullaoh it's reversed compare
18:01.09jonpryq6 init is simple on 8x60
18:01.37Cotullathere is V3?
18:01.48jonpryhttp://pastebin.com/SCB0t8zv
18:02.13jonpryit looks to me like 0x40 is setting up the c stack
18:02.33Cotullastack is r29
18:03.03jonpryr26 is 0xc000 0000
18:03.33jonpryr27 is like end of .text
18:03.41Cotullamaybe try to modify place where code is located
18:04.02Cotulla8DA
18:04.11jonpryi figure RPM is messing with it
18:04.29jonprylike running the stock q6 images with untrusted boot doesn't work either
18:04.38Cotulla?
18:04.41Cotullaalso problem?
18:04.53jonprydoesn't do anything
18:04.59jonprylike it doesn't come out of reset
18:05.01Cotullahm
18:05.07Cotullaso ur code maybe not executed
18:05.08Cotulla?
18:06.30jonprythats what i think
18:06.58Cotullabad
18:07.26jonprysomehow you are able to boot it
18:07.54Cotulla?
18:08.27jonprywithout RPM
18:09.02Cotullahow?
18:10.17jonpryi'm not sure
18:10.30jonpryqMAGLDR works though
18:10.49Cotullait's QSD8250B
18:10.56Cotullano RPC there at all
18:11.03CotullaRPM
18:11.15jonpryoh
18:11.23Cotullasadly otherwise rMAGLDR could be cool to have :)
18:12.23Cotullait can also use TZ
18:17.47Cotullayes I think PIL is using TZ services not RPM
18:19.03jonprySCM?
18:19.13Cotullawhat is it?
18:19.32jonprysome kind of ROM code i think
18:20.28Cotullahm
18:20.40jonpryi think this PIL stuff is just all wrong
18:20.42CotullaSecure Channel Manager seems
18:20.51jonprystale code
18:26.05Cotullawhy
18:26.18Cotullait's working every boot]
18:26.39jonpryworking using the trusted code path
18:26.53jonpryCA has much different stuff now
18:27.43detulemaybe i should've tried it
18:27.52detulewith my spanking new kernel
18:28.38jonpryshould i push this new head.S?
18:29.02Cotullawith define?
18:29.04*** join/#htc-linux dsdsfds (511253ef@gateway/web/freenode/ip.81.18.83.239)
18:29.12Cotullawith #ifdef
18:29.20jonpryyou don't need ssr=0?
18:29.40Cotullaneed
18:29.55Cotullabut that can be done separetely
18:30.03Cotullalike two include files
18:30.06Cotullav2 v4
18:31.17jonpryi pushed something
18:31.37jonprydetule, so like if you want to try this, build the vmlinux
18:32.01jonprythen g++ arch/hexagon/tools/splitter.cpp
18:32.04jonpry./a.out
18:32.10*** join/#htc-linux arif-ali (~arif-ali@94-192-24-56.zone6.bethere.co.uk)
18:32.15jonprythen you have q6.mdt and b00
18:32.21jonpryumm
18:32.42Cotullahm
18:32.46jonprythen i like modified the kernel so it has no sound support and no q6 support except pil
18:32.49Cotullado u have rw access
18:33.05Cotullato that area jonpry?
18:33.09Cotullaor only ro
18:33.17jonpryfor firmware?
18:33.23Cotullafor QDSP6 memory area
18:33.31jonpryrw
18:33.37jonpryi read back /dev/mem
18:33.41jonprycode is loaded
18:33.47Cotullanot via PIL
18:33.52Cotullabut via usual access?
18:33.58jonpryi believe so
18:34.19Cotullahm
18:34.32Cotullacan u access all registers?
18:35.04jonpryi think so
18:35.36jonprydetule, and then i patched pil-q6v4 with something like if (0){//pas_supported(pdata->pas_id) > 0) {
18:37.01jonpryi think the nontrusted pil support was developed for mss
18:37.30jonprynew terminology here. modem q6 = mss, apps q6 = lpass
18:37.50detulelow power audio sub-sys
18:37.56detulemodem sub-sys
18:38.03jonpryseems like my PIL is doing modem stuff
18:38.24jonpryso the reset vector is all fucked, and the clocks, the whole thing is wrong
18:38.48Cotullayes mss and lpass
18:38.59detulehow do you ask the kernel to bring q6 online
18:39.15jonpry<PROTECTED>
18:39.22Cotullajonpry afaik pil has load and run as separate functions
18:39.23jonpryecho "put" > q6 to turn off
18:39.26jonpryget to turn on
18:39.36detulethanks
18:39.54detulei'll try it tonight...gotta get some work done this afternoon and you two aren't helping
18:40.09detuleby being all constructive and what not
18:40.55jonpryi think the trick is to get the stock firmware to work with that trusted crap turned off
18:42.42CotullaI think it copies stuff
18:42.46Cotullathen checks signature
18:42.48Cotullaand bailout
18:49.29Cotullado u have access to 0x28800000?
18:50.41jonprynon trusted doesn't use anything but arm
18:50.43jonpryand checks nothing
18:50.56jonprybut it tries to boot the wrong processor
18:51.05Cotullawhy?
18:51.18CotullaI mean registers at 0x28800000
18:51.32jonprythe code is for booting modem
18:51.41Cotullabut u need lpass I think
18:51.44jonpryit doesn't know how to boot apps
18:51.51jonprylpass
18:51.55Cotullawhy
18:52.02jonprycause it's old code
18:52.04Cotullait should be implemented there
18:52.20jonpryi don't know what to tell you
18:52.25jonpryit doesn't work
18:52.41Cotullabut it should load lpass to get audio
18:52.48Cotullahow it worked with original fw
18:53.10jonprybecause SCM or whatever has it's own code
18:53.18jonpryit knows how to boot lpass
18:53.25Cotullahm
18:53.38Cotullaso u think it loads elf from filesystem?
18:53.51jonpryit does
18:54.02Cotullahm
18:54.12Cotullabut where lpsass mbn located?
18:54.12jonprycan we like disassemble SCM?
18:54.22jonpryfirmware/image
18:54.36Cotullainside system?
18:54.40Cotullaor another partition?
18:54.42jonpryroot
18:54.52Cotullahm
18:55.03Cotullawhere is pil code?
18:55.43detulehttps://github.com/detule/linux-msm-d2/blob/msm-jb_2.5/arch/arm/mach-msm/pil-q6v4.c
18:55.45detuleand
18:55.52detulehttps://github.com/detule/linux-msm-d2/blob/msm-jb_2.5/arch/arm/mach-msm/peripheral-loader.c
18:56.37jonpryi'm gonna go out for a bit
18:56.58jonprypersonally i think codeaurora pil or trying to extract the SCM rom code is the way to go
18:57.19Cotullapil-q6v4.c looks good
18:58.19Cotullahow is board file is called?
18:59.07detule<PROTECTED>
18:59.24Cotulla#define MSM_LPASS_QDSP6SS_PHYS0x28800000
18:59.32Cotullaall right it should work . . .
18:59.40Cotullaif it has access to those registers
18:59.58Cotullahttps://github.com/detule/linux-msm-d2/blob/msm-jb_2.5/arch/arm/mach-msm/devices-8960.c#L1321
19:00.38jonpryi think that isn't the problem
19:00.49jonprylike register layout it wrong
19:01.02Cotullaso why it doesn't work?
19:01.13Cotulladid u try with pil-q6v4.c?>
19:01.20jonpry#define QDSP6SS_RST_EVB0x0
19:01.20jonpry#define QDSP6SS_RESET0x04
19:01.26jonpryi think that is wrong
19:01.43jonpry#define MSS_RESET(MSM_CLK_CTL_BASE + 0x2C64)
19:01.47jonprydoesn't even make sense
19:01.55*** join/#htc-linux tehtrk (~The@rrcs-24-173-220-30.sw.biz.rr.com)
19:01.55jonpry#define MSS_S_HCLK_CTL(MSM_CLK_CTL_BASE + 0x2C70)
19:01.56jonpry#define MSS_SLP_CLK_CTL(MSM_CLK_CTL_BASE + 0x2C60)
19:01.56Cotullano it's right
19:01.59jonprymoar wtf
19:02.03jonprythat MSS clocks
19:02.06jonpryno LPASS
19:02.11Cotullathe first two once
19:02.12Cotullaones
19:02.15jonpryah
19:02.24Cotullabut not sure about MSS_S_HCLK_CTL
19:02.25jonpryi though i saw 0x10 being used elseware
19:02.56Cotullahm pil_q6v4_init_modem
19:03.38Cotullabut modem_base is 0
19:03.47Cotullaso it's never called
19:04.00Cotullahm or not
19:05.13Cotullayers
19:05.38Cotulladevice file has
19:05.39Cotulla1)msm_8960_q6_lpass_data
19:05.48Cotulla2)msm_8960_q6_mss_fw_data
19:05.58Cotulla3)msm_8960_q6_mss_sw
19:08.35langpoo#ifdef CONFIG_HEXAGON_ARCH_V2
19:08.35langpoo. = 0x10000000;
19:08.35langpoo#else
19:08.35langpoo. = 0x8da00000;
19:08.35langpoo#endif
19:08.38langpooI will do for now
19:09.06*** join/#htc-linux Ondalf (~ondalf@cable-roi-50ddf8-39.dhcp.inet.fi)
19:14.55*** join/#htc-linux kiozen (~kiozen@ppp-93-104-67-174.dynamic.mnet-online.de)
19:16.28*** join/#htc-linux arif-ali (~arif-ali@81.144.163.60)
19:20.15*** join/#htc-linux arrrghhhAWAY (~arrrghhh@unaffiliated/arrrghhh)
19:23.11Cotullalooking to interrupts
19:26.09jonprydoes the image work on yours?
19:28.59Cotullawhich image?
19:35.27*** join/#htc-linux arif-ali (~arif-ali@81.144.163.60)
19:37.28*** join/#htc-linux ntg (ntg@141.0.137.20)
19:44.03*** join/#htc-linux ntg (~ntg@141.0.137.20)
19:49.12*** join/#htc-linux jonpry (~jon@2602:306:c417:8aa0:b5c2:f85e:9b15:7ad6)
20:00.46*** join/#htc-linux eR^Z` (~zzeratul@ip-84-42-202-42.net.upcbroadband.cz)
20:03.49*** join/#htc-linux fakker (~fakker@cpc30-hitc6-2-0-cust607.9-2.cable.virginmedia.com)
20:03.50*** join/#htc-linux fakker (~fakker@unaffiliated/fakker)
20:19.42*** join/#htc-linux eR^zeRa` (~zzeratul@ip-84-42-202-42.net.upcbroadband.cz)
20:31.23*** join/#htc-linux arif-ali (~arif-ali@94-192-24-56.zone6.bethere.co.uk)
20:47.58*** part/#htc-linux langpoo (~zz@109.205.253.11)
20:59.49*** join/#htc-linux AstainHellbring (AstainHell@unaffiliated/astainhellbring)
21:30.03*** join/#htc-linux AstainHellbring (AstainHell@unaffiliated/astainhellbring)
21:51.12*** join/#htc-linux arif-ali (~arif-ali@81.144.163.60)
21:56.52*** join/#htc-linux helicopter88_2 (~helicopte@host11-8-dynamic.55-79-r.retail.telecomitalia.it)
23:18.21*** part/#htc-linux Cotulla (~myfakemai@109.205.253.11)
23:29.36*** join/#htc-linux the-leviathan (~quassel@c-82-192-226-27.customer.ggaweb.ch)
23:34.34*** join/#htc-linux the-leviathan (~quassel@c-82-192-226-27.customer.ggaweb.ch)
23:59.15*** join/#htc-linux Ondalf (~ondalf@cable-roi-50ddf8-39.dhcp.inet.fi)

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