Previous day | Jump to hour: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | Next day

Seconds: Show Hide | Joins: Show Hide | View raw
Font: Serif Sans-Serif Monospace | Size: Small Medium Large

Click in the nick column to highlight everything a person has said.
The Logo icon identifies that the person is a core developer (has commit access).

#rockbox log for 2013-08-08

00:02:22TheSevenanyway, I found OS_CreateThread
00:03:06pamauryaddress ?
00:05:33 Quit wodz (Quit: Leaving)
00:07:18pamauryindeed, I'm on the same ^^
00:12:54 Quit petur (Quit: Leaving)
00:17:48 Quit kugel (Ping timeout: 268 seconds)
00:24:05***Saving seen data "./dancer.seen"
00:26:07TheSevenwow, they really named the thread "thread" :)
00:26:26 Quit Scall (Read error: Operation timed out)
00:26:55pamaurystupid ><, they have a thread and a c++ wrapper around the threads
00:27:04 Join zaxos [0] (
00:29:52 Quit Bagder (Ping timeout: 240 seconds)
00:31:09TheSevenpamaury: so I looked at the "boot" thread code
00:31:18TheSevenyou spotted that ram remap thing
00:31:29TheSeventhat arm_unk before it is a "disable_icache"
00:31:34 Join Scall [0] (~chat@unaffiliated/scall)
00:31:46TheSevenand the ccu function at the end could be called "exec_main_firmware" or something
00:31:47 Nick Scromple_ is now known as Scromple (~Simon@
00:31:59TheSevenso that's the code path if everything works right
00:32:22pamauryok thanks, I am reverse the c++ code which wraps around the thread creation
00:32:28TheSevenso I guess the function that is called immediately before that split is loading and validating the firmware
00:32:31pamauryit has links to other structures found the usb otg stuff
00:32:33TheSeventhe code path to the right is most certainly USB mode
00:32:41TheSevenand what the heck is the 3rd code path?
00:33:36zaxosi want toask if there is a way to unfreeze sansa c200 from boot screen
00:34:01zaxosi ve tryied to manual update the device but nothing happened
00:34:28pamauryTheSeven: what do you mean by "the ccu function at the end", which one ? /me is trying to follow
00:35:21pamauryzaxos: I know nearly nothing about the sansa c200, except about what is on the wiki
00:35:35pamauryactually this is not the best time to ask because most devs are sleeping now
00:36:18TheSevenor wait, my guess is that loc_80002488 is the 4MB mode path and loc_800024dc is the "real" recovery mode
00:36:53TheSevenand the function that i meant is 0b08, which IIUC is supposed to execute the main firmware
00:37:58pamauryhum, 0b08 does nothing appart from poking a few registers
00:39:18TheSevenso the second arg of 3880 determines whether to go into 4mb mode (if it's 0) or the sd recovery mode (if it's 1)
00:39:35TheSevenpamaury: it jumps to R0 at the end, after putting things into a safe state
00:39:45TheSevenand address 0 is passed in as r0
00:39:53pamauryah sorry, I cannot read my own comments ^^
00:40:28pamauryit is called from the boot thread and the set_mode whatever that means
00:41:50 Quit froggyman (Ping timeout: 264 seconds)
00:42:07pamaurythe amount of code/data duplication in this bootrom is incredible, it's like everything is written twice or more
00:42:38 Join Bagder [241] (~daniel@rockbox/developer/bagder)
00:42:55zaxosah ok.. i am looking at a tool an e200 tool and i wanted to know how can i install this using linux because i do n't know
00:44:44pamauryhonestly I am not the right person to ask, but beware, there are two different c200 models: v1 and v2, the v1 is similar to the e200 and v2 is completely different I think, but I don't know anything beside this
00:48:08 Quit zaxos (Quit: CGI:IRC (Ping timeout))
00:48:36 Quit Strife89 (Ping timeout: 246 seconds)
00:50:41 Join froggyman [0] (~froggyman@unaffiliated/froggyman)
00:52:13 Join zaxos [0] (
00:52:40zaxosi have sansa c 200v1
00:53:58pamaurywhat is the problem ? how did you get there ?
00:56:38TheSevenpamaury: we definitely drop into the loc_80002488 code path with R1=0
00:57:07TheSevenr4 is 0xffffe403 at this point
00:57:15TheSevenwhich I guess is an error code
00:58:37TheSevenyes, that's coming from sub 16e18
01:00:40 Join Strife89 [0] (
01:01:17TheSevenwow, sub 14bd0 is a nice mmc-related monster :)
01:01:51pamauryare you working on the mmc part ?
01:05:20funmanyou found the selection between 1GB and 4MB ?
01:07:14 Quit zaxos (Quit: CGI:IRC (Ping timeout))
01:07:30TheSevenmy clip takes the branch at 16eb4, which makes it end up in 4mb mode
01:07:35TheSevenfunman: probably
01:08:07TheSevenI guess it's the second arg to sub_80003880
01:08:36TheSevenpamaury: no, I'm not working on anything in particular, I'm just toying around
01:09:53 Quit ender` (Quit: You must know by now we Brits are going metric inch by inch! -- Greg Chapman)
01:21:33 Quit tripper (Read error: Connection reset by peer)
01:27:08 Quit lebellium (Quit: ChatZilla [Firefox 23.0/20130729175331])
01:28:30pamauryTheSeven: going to bed, here is my current idb:
01:37:05 Quit pamaury (Ping timeout: 264 seconds)
02:03:07 Join robin0800 [0] (
02:05:53 Quit bertrik (Ping timeout: 264 seconds)
02:24:08***Saving seen data "./dancer.seen"
03:02:49 Nick SuperBrainAK is now known as DormantBrain (
03:05:16 Quit robin0800 (Remote host closed the connection)
03:07:25 Quit Bagder (Ping timeout: 240 seconds)
03:18:33 Join robin0800 [0] (
03:20:19 Join Bagder [0] (~daniel@
03:20:19 Quit Bagder (Changing host)
03:20:19 Join Bagder [241] (~daniel@rockbox/developer/bagder)
03:22:56 Join Scr0mple [0] (
03:23:25 Join advcomp2019 [0] (
03:23:28 Quit advcomp2019 (Changing host)
03:23:28 Join advcomp2019 [0] (~advcomp20@unaffiliated/advcomp2019)
03:25:27 Quit robin0800 (Quit: Leaving)
03:25:31 Quit Scromple (Ping timeout: 240 seconds)
03:26:04 Join robin0800 [0] (
03:36:42 Join Scromple_ [0] (~Simon@
03:40:51 Quit Scr0mple (Ping timeout: 248 seconds)
03:47:14 Join CaptainKewl [0] (
03:53:13 Quit robin0800 (Quit: Leaving)
04:14:32 Quit amiconn (Disconnected by services)
04:14:32 Quit pixelma (Disconnected by services)
04:14:33 Join pixelma_ [0] (pixelma@rockbox/staff/pixelma)
04:14:33 Join amiconn_ [0] (amiconn@rockbox/developer/amiconn)
04:14:35 Nick pixelma_ is now known as pixelma (pixelma@rockbox/staff/pixelma)
04:14:37 Nick amiconn_ is now known as amiconn (amiconn@rockbox/developer/amiconn)
04:24:12***Saving seen data "./dancer.seen"
04:31:05 Quit rdn (Read error: Connection reset by peer)
04:39:30 Quit [Saint] (Remote host closed the connection)
04:40:39 Join [Saint] [0] (~saint@rockbox/user/saint)
04:55:03 Join Maxdamantus [0] (~Maxdamant@2001:470:f078::dead:beef:cafe)
05:00:12 Join JdGordon_ [0] (~jonno@rockbox/developer/JdGordon)
05:00:50 Quit JdGordon (Ping timeout: 245 seconds)
05:12:11 Join froggymana [0] (~me@unaffiliated/froggyman)
05:19:24 Quit CaptainKewl (Read error: Connection reset by peer)
05:33:02 Quit TheSeven (Disconnected by services)
05:33:11 Join [7] [0] (~quassel@rockbox/developer/TheSeven)
06:06:40 Join kevku [0] (~kevku@2001:470:27:773:0:feed:c0f:fee)
06:10:47*Maxdamantus wonders if he should try fixing Rockbox's UTF-16 support.
06:11:46MaxdamantusThere are things like utf8length, which returns the number of unicode codepoints represented by a UTF-8 string, but code (particularly, fat.c) uses it for counting UTF-16/UCS-2 characters.
06:12:26Maxdamantuswhich works as it is, because it doesn't support characters above the BMP, instead encoding/decoding them as the replacement character.
06:12:55Maxdamantuser, UTF-16/UCS-2 units* or whatever.
06:14:51MaxdamantusSo fat.c, and other things that use utf8length for conversion to UTF-16 should use something specifically for that (utf8to16length?)
06:18:11Maxdamantusutf8decode is tied similarly: it decodes to an unsigned short * (called ucs)
06:18:29 Nick DormantBrain is now known as SuperBrainAK (
06:18:29MaxdamantusFunny names.
06:18:54 Nick [Saint] is now known as [Sinner] (~saint@rockbox/user/saint)
06:19:55 Nick [Sinner] is now known as [Saint] (~saint@rockbox/user/saint)
06:24:13***Saving seen data "./dancer.seen"
06:31:11Maxdamantusvoid lcd_putc(int x, int y, unsigned long ucs)
06:31:26MaxdamantusHeh .. so it's kind of half done.
06:59:00MaxdamantusApparently selling UCS-2 software in China is pretty much illegal.
07:00:14MaxdamantusSoftware sold there has to support GB18030, which UCS-2 doesn't do (all of).
07:34:18 Join kugel [0] (~kugel@rockbox/developer/kugel)
07:37:24 Join olspookishmagus [0] (
07:39:31 Quit froggymana (Ping timeout: 246 seconds)
08:07:17 Quit amiconn (Remote host closed the connection)
08:07:17 Quit pixelma (Remote host closed the connection)
08:08:08 Join pixelma [0] (pixelma@rockbox/staff/pixelma)
08:08:08 Join amiconn [0] (amiconn@rockbox/developer/amiconn)
08:13:23 Join Zagor [0] (
08:13:29 Quit Zagor (Changing host)
08:13:29 Join Zagor [242] (~bjst@rockbox/developer/Zagor)
08:24:16***Saving seen data "./dancer.seen"
08:26:43 Join ender` [0] (
08:29:09 Quit kevku (Ping timeout: 245 seconds)
08:31:07 Quit kugel (Ping timeout: 260 seconds)
09:44:16 Join kevku [0] (~kevku@2a01:d0:ffff:34a::8:3)
09:53:16 Join LinusN [0] (
10:09:29 Join maruk [0] (
10:10:22 Join einhirn [0] (
10:14:37 Join bertrik [0] (~quassel@rockbox/developer/bertrik)
10:24:20***Saving seen data "./dancer.seen"
10:34:42 Join pamaury [0] (~quassel@rockbox/developer/pamaury)
10:39:16 Join petur [0] (~petur@rockbox/developer/petur)
11:06:26 Join lebellium [0] (
11:10:20 Nick SuperBrainAK is now known as DormantBrain (
11:17:54 Quit pamaury (Ping timeout: 264 seconds)
11:35:12 Part LinusN
11:35:26 Quit shamus (Read error: Connection reset by peer)
11:35:40 Quit Unhelpful (Quit: No Ping reply in 180 seconds.)
11:36:00 Join Unhelpful [0] (~quassel@rockbox/developer/Unhelpful)
11:36:32 Join shamus [0] (
11:43:27 Join robin0800 [0] (
11:51:05 Join pamaury [0] (~quassel@rockbox/developer/pamaury)
12:07:40 Quit desrt (Read error: Operation timed out)
12:10:47 Join desrt [0] (
12:24:24***Saving seen data "./dancer.seen"
12:46:28 Quit robin0800 (Ping timeout: 246 seconds)
12:58:13 Quit bluebrother (Disconnected by services)
12:58:18 Join bluebrother^ [0] (~dom@rockbox/developer/bluebrother)
12:59:46 Quit fs-bluebot (Ping timeout: 246 seconds)
13:01:05 Join fs-bluebot [0] (
13:16:12 Join robin0800 [0] (
13:36:39 Quit kevku (Ping timeout: 245 seconds)
13:38:49 Join LinusN [0] (
13:59:37 Join wodz [0] (
14:02:35 Quit robin0800 (Quit: Leaving)
14:03:28wodzpamaury: I played a bit with hwstub on rk27xx. I can't make usb core recognize setup packet condition reliably in polled mode. I don't know why it is so unfortunately.
14:19:34 Quit DexterLB (Quit: So long and thanks for all the fish)
14:20:58 Join DexterLB [0] (~dex@
14:24:27***Saving seen data "./dancer.seen"
14:37:34 Join draft [0] (
14:38:06draftis here anyone who has experience opening 6th (or 7th) gen iPod Classic (160GB)...?
14:38:16drafti need to replace my harddrive with SSD drive
14:59:17 Join kevku [0] (~kevku@2001:470:27:773:0:feed:c0f:fee)
14:59:41 Quit shamus (Read error: Connection reset by peer)
14:59:53 Join shamus [0] (
15:08:58 Quit draft (Quit: leaving)
15:09:41 Join rdn [0] (
15:14:10 Quit Strife89 (Ping timeout: 246 seconds)
15:25:24 Quit kevku (Ping timeout: 245 seconds)
15:29:45 Join robin0800 [0] (
15:36:23pamauryfunman: where does the register for the amsv2 SD controller comes from ?
15:37:40 Quit akaWolf (Ping timeout: 248 seconds)
15:54:41 Quit olspookishmagus (Quit: free() the malloc())
16:00:18 Part LinusN
16:04:09funmanpamaury: reverse engineering (it's not mentioned in the datasheet)
16:06:46bertrikfunman: just for the base address, right? I vaguely remember seeing another datasheet that seemed to match the AMSv2 sd controller
16:07:17funmanhmm I don't remember exactly
16:07:51funmanthe register names seem quite explicit so i think you're right
16:08:19 Quit Zagor (Quit: Clint excited)
16:09:07bertrikmore info about the AMSv2 sd controller here
16:10:16funmanhmm the info might have come from a Linux driver
16:19:52 Join liar [0] (
16:21:53funmanah the wiki mentioned it
16:24:29***Saving seen data "./dancer.seen"
16:26:22 Quit DexterLB (Quit: So long and thanks for all the fish)
16:28:08 Join DexterLB [0] (~dex@
16:32:23 Join Rower [0] (
16:41:58pamauryah thanks, I missed that bit on the wiki ^^
16:50:15 Quit Raptors (Read error: Connection reset by peer)
16:50:33 Join Raptors [0] (
17:01:05 Quit ender` (Read error: Connection reset by peer)
17:01:23 Join Guest11127 [0] (
17:01:37 Join ender` [0] (
17:32:15 Quit petur (Quit: Nettalk6 -
17:39:59 Quit dewlap (Ping timeout: 245 seconds)
18:01:55 Quit einhirn (Quit: Miranda IM! Smaller, Faster, Easier.
18:11:14 Quit thegeek (Ping timeout: 245 seconds)
18:12:16 Join thegeek [0] (
18:15:59 Join kevku [0] (~kevku@2001:0:c38c:c38c:cec:8f70:3d69:bef5)
18:17:05 Join akaWolf [0] (~akaWolf@unaffiliated/akawolf)
18:18:51 Join Guest79504 [0] (uid4289@gateway/web/
18:19:29 Nick Guest79504 is now known as amithkk (uid4289@gateway/web/
18:19:34 Quit amithkk (Changing host)
18:19:34 Join amithkk [0] (uid4289@2buntu/writers/amithkk)
18:24:32***Saving seen data "./dancer.seen"
18:36:14 Join y4n [0] (~y4n@unaffiliated/y4ndexx)
18:39:19 Quit maruk (Quit: Leaving.)
19:12:13 Quit Raptors (Ping timeout: 240 seconds)
19:12:35 Join Raptors [0] (
19:18:01 Quit bertrik (Remote host closed the connection)
19:31:30 Quit pamaury (Read error: Operation timed out)
19:45:26 Join n1s [0] (
19:45:26 Quit n1s (Changing host)
19:45:26 Join n1s [0] (~n1s@rockbox/developer/n1s)
20:03:57 Join pamaury [0] (~quassel@rockbox/developer/pamaury)
20:18:50 Quit Barahir (Quit: leaving)
20:24:36***Saving seen data "./dancer.seen"
20:37:57 Join bertrik [0] (~quassel@2001:610:76a:0:c1d9:e70:fb3:4d57)
20:37:58 Quit bertrik (Changing host)
20:37:58 Join bertrik [0] (~quassel@rockbox/developer/bertrik)
20:43:49 Join guy [0] (
20:44:13 Nick guy is now known as Guest6025 (
20:44:37Guest6025mkimxboot.exe for sansa fuze+ anyone?
20:45:39pamauryGuest6025: can you develop, I don't understand your question
20:46:47Guest6025sorry..I have a sansa fuze+..and lm trying to install rockbox..the manual way but cnt see to find mkimxboot.exe to complete the process
20:46:48 Quit lebellium (Quit: ChatZilla [Firefox 23.0/20130729175331])
20:47:19pamauryGuest6025: we do not have a prebuilt version of mkimxboot.exe, why do you want to use the manual way ? that's really discouraged
20:48:22Guest6025somehow l cnt do it the automated way.. is there a way around this?
20:49:27pamaurywhy ? because it you can't that's probably a bad sign or a bug
20:49:46 Quit [Saint] (Read error: Connection reset by peer)
20:49:53pamaurythere is another way around but I would first like to understand why Roxkbox Utility doesn't work you
20:50:55 Join [Saint] [0] (~saint@rockbox/user/saint)
20:51:11Guest6025well to be truthful...lm from a third world country n dnt hav access to the internet from lm trying the rockbox utility from my work pc..but l think the firewall is blocking me..can u help..tnx in advance
20:54:44pamauryGuest6025: you can try to download directly a prebuilt image from my dropbox:
20:54:58pamauryit is an experimental bootloader but it also comes with the most advanced features
20:55:06pamaurythat way you don't have to run mkimxboot
20:56:35Guest6025sweet...tnx alot l jus place this on the fuze+...and then what do l do? sorry for all the question..lm a total noob at this
20:59:11Guest6025its the first time lm gonna be trying to use rockbox
21:00:21pamauryput at that at the root, reboot your player, it should display "upgrade" and then you get the rockbox bootloader. To install rockbox, you need to download either rockbox stable or a nightly build and unpack it at the root of the device (
21:02:12 Join petur [0] (~petur@rockbox/developer/petur)
21:03:17 Join dewlap [0] (~dewlap@2001:0:4137:9e76:3c0e:1f50:b815:38b6)
21:04:48 Join kilroy [0] (~dewlap@2001:5c0:1000:a::a43)
21:05:55Guest6025tnx..alot pamaury..uve been rly helpful..lm gonna try what u say as soon as l finish downloading that bootloader fiel..tnx again
21:07:53 Quit dewlap (Ping timeout: 245 seconds)
21:13:02 Join einhirn [0] ( u develop for android too?
21:15:03pamauryabsolutely not, and I try to keep it that way ;)
21:17:48Guest6025wow..sounds like u despise android..where do I go to get help with that..any idea?
21:18:35 Nick DormantBrain is now known as SuperBrainAK (
21:20:15pamaurydon't get me wrong, android is better than nothing but developing on Java is already a pain and I'm not a big fan of smartphone where you put everything on
21:20:35pamauryI guess there are plenty of tutorials on the internet about that, first you need to learn java obviously
21:21:56Guest6025yea...l get what ure say..but l dnt want to develop for android...l was wondering if theres an irc channel like this where ppl can go help help when encountering problems
21:22:06 Join ikeboy [0] (
21:32:01 Join thomasjfox [0] (~thomasjfo@rockbox/developer/thomasjfox)
21:44:18Guest6025pamaury...this thing works great..thanks alot..
21:50:38 Quit wodz (Quit: Leaving)
21:55:44 Quit ikeboy (Ping timeout: 276 seconds)
22:03:03 Quit Guest6025 (Quit: CGI:IRC)
22:08:12pamaury[7]: I have identified the init code for the usb core driver
22:08:19pamauryat least some part of
22:09:10[7]pamaury: great :)
22:09:17 Join wodz [0] (
22:10:06pamauryif you want to see what it looks like it's at 80011414
22:10:15pamaurybut I doubt you'll understand anything ;)
22:10:31pamauryby the way, 80011670 is thread sleep
22:12:09[7]I also found some trivial delay loops somewhere
22:12:30[7]not udelay using a timer, no... simply passing the number of loop iterations into it
22:13:25[7]I think I found that in the MMC driver somewhere, waiting for the card to go ready or something
22:14:00pamauryApparently threading is more complicated than I expected, there is a low level threading and some high level where you give "objects" to thread, I'm a bit lost of this part
22:14:20pamauryI have looked a bit at the mmc driver but it's quite complicated, it has a huge state machinary
22:16:19 Quit einhirn (Quit: Miranda IM! Smaller, Faster, Easier.
22:17:42pamaurydamn, there really are syscall calls !!
22:18:00pamaury[7]: at 80000970, this is a syscall ?
22:19:31[7]hm, I'm not at home right now, need to get my windows vm here going :)
22:22:53 Join ikeboy [0] (
22:23:26 Quit ikeboy (Client Quit)
22:24:38***Saving seen data "./dancer.seen"
22:24:49 Quit y4n (Quit: 6,000,000 ways to die — choose one.)
22:26:06 Join ikeboy [0] (
22:26:46 Quit ikeboy (Client Quit)
22:28:20 Join ikeboy [0] (
22:30:37 Quit ikeboy (Client Quit)
22:31:25 Quit Raptors (Ping timeout: 240 seconds)
22:31:48 Join Raptors [0] (
23:00:56bluebrother^just for the record, if Rockbox Utility can't reach the net it's most likely the proxy setting being wrong. I don't see how a firewall should be able to just block that program, it's just accessing http services (and that's something most programs do these days, so those wouldn't work either)
23:02:23bluebrother^except some "personal firewall" thingy of course.
23:03:05bluebrother^but are those things still in use those days?
23:03:13 Quit thomasjfox (Quit: Konversation terminated!)
23:04:49wodz[7]: how do you connect ida to gdbserver?
23:06:33[7]just select remote gdb as the debugger type
23:08:08pamaury[7]: bootrom enable dma in GAHBCFG so the chip must drive it in dma mode
23:09:02pamauryit also tweaks usb turnaround time
23:10:10[7]yes, that's quite typical
23:12:00pamaurycurrent init seq reversed: core and hclk soft reset, if session valid then disconnect, force device mode, set burst length to INCR, enable dma, set turnaround time, set PHY to 16-bit
23:12:28 Quit kevku (Ping timeout: 245 seconds)
23:14:26wodzWhat is this 'set PHY to 16bit'?
23:17:04pamaurynothing too important, the IP supports two bus widths for to PHY and the internal bus on amsv2 is probably 16-bit
23:17:06 Nick SuperBrainAK is now known as DormantBrain (
23:17:58wodzdamn, ida version I have doesn't offer remote GDB debugger option :/
23:18:19 Nick DormantBrain is now known as SuperBrainAK (
23:19:16 Quit bertrik (Remote host closed the connection)
23:21:43 Join dewlap [0] (~dewlap@2001:c08:3700:ffff::3f3)
23:23:18 Quit kilroy (Ping timeout: 245 seconds)
23:24:55pamauryend of init sequence: set FS timeout calibration, enable OTG int / mode mismatch int, set speed to HS, set non-zero length OUT status to STALL, enable IN/OUT/enum done/(early)suspend/reset interrupts, enable global interrupts
23:25:04pamaurynothing too fancy
23:27:28 Quit n1s (Quit: Ex-Chat)
23:27:29 Quit liar (Ping timeout: 264 seconds)
23:37:05 Quit robin0800 (Quit: Leaving)
23:39:23pamaurywow, that's a massive object: size = 0x68 and has 34 virtual methods
23:50:00 Quit Rower (Quit: Hmmm...)

Previous day | Next day