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 icon identifies that the person is a core developer (has commit access).

#rockbox log for 2008-02-28

00:00:01gevaertsYes. That would probably provide the most similar system
00:00:06 Quit davina ("GNU/Linux the free alternative to Windows")
00:00:41 Join keanu|afk [0] (n=keanu@unaffiliated/keanu)
00:01:24 Quit keanu (Read error: 110 (Connection timed out))
00:01:48amiconnHmm, now got one single reset on my H10 (after ~15 minutes of playing music via usb)
00:02:04stripwaxCan we update the diskmode to dump out pcf/devenv registers via serial ?
00:02:44*stripwax half expects diskmode already has some serial output
00:03:13pixelmaFebs: there's also a microphone hole at the left side (top -> bottom: microphone, lanyard thing, volume socket. And maybe mention which is volume up and volume down (and they are two buttons but feel like one, worth mentioning?
00:03:22amiconnThe G5.5 rom has some serial console code in it
00:03:41stripwaxconsole? wowzer
00:03:44amiconnBut so far nobody could figure out how it is possible to run it
00:04:46 Quit petur ("gonne")
00:08:47amiconnstripwax: "Bootloader UI Shell, Build Sep 10 2006, 19:49:21"
00:09:25amiconnMini also has that, just an older version...
00:10:37amiconnSeems to understand commands like 'alias', 'checksum', 'dump', 'echo', 'run' etc
00:11:00*kushal_12_27_200 is back again
00:11:13 Join japc [0] (n=japc@bl7-242-100.dsl.telepac.pt)
00:11:15stripwaxWouldn't be surprised if it's enabled by a specific resistance in the accessory pin..
00:11:24 Join tvelocity [0] (n=tony@athedsl-124459.home.otenet.gr)
00:11:37Febspixelma: thanks. I'll probably not have a chance to revise it today, but maybe I can get it done tomorrow.
00:12:14pixelmathank you too :)
00:12:19kushal_12_27_200gevaerts, the screen says "Press any key to shutdown. 96 kB left". Is it done?
00:12:25amiconnIt features some built-in help on parameters as well
00:12:39 Join kaptenbalja [0] (n=jlind@c-6fd772d5.04-129-73746f28.cust.bredbandsbolaget.se)
00:12:58gevaertskushal_12_27_200: yes. Unplug the cable and press a key.
00:13:41kushal_12_27_200done
00:14:13gevaertskushal_12_27_200: now turn it back on. I expect the blue leds will light up, but nothing else. If that happens, plug it in
00:14:26kushal_12_27_200yes, just as expected
00:14:34gevaertskushal_12_27_200: Do you still have e200tool-mac ?
00:15:15kushal_12_27_200no
00:15:30kushal_12_27_200oo yes I do
00:16:02 Quit linuxstb (Read error: 110 (Connection timed out))
00:16:10gevaertsOK. Then run "sudo ./e200tool-mac recover pribootLoader.rom"
00:16:47 Part kaptenbalja
00:17:09 Join Bensawsome_ [0] (n=chatzill@c-67-186-185-71.hsd1.ma.comcast.net)
00:18:04Bensawsome_hey everybody
00:18:49kushal_12_27_200it says command not found
00:19:25stripwaxkushal_12_27_200 - you're running it from where e200tool-mac is?
00:19:38gevaertskushal_12_27_200: try "chmod +x e200tool-mac"
00:19:38kushal_12_27_200yes, desktop
00:19:48kushal_12_27_200ok
00:19:59gevaertsThen try "sudo ./e200tool-mac recover pribootLoader.rom" again
00:20:40kushal_12_27_200length write error, operation not permitted
00:21:09 Join keanu [0] (n=keanu@unaffiliated/keanu)
00:21:22 Quit keanu|afk (Read error: 110 (Connection timed out))
00:21:38gevaertsUnplug the sansa, turn it off, and put it back to manufacturer mode the normal way (hold switch on, and press select while powering on)
00:21:55Bensawsome_o
00:22:00Bensawsome_i have a sansa :D
00:22:14stripwaxamiconn - do you happen to know where LinusN obtained his ipod serial cable? I was going to construct one but just thought, what I *really* want is a combined USB & serial cable...
00:22:21 Quit ender` (" NOTICE: Thank you for noticing this new notice. Your noticing it has been noted. And will be reported to the authorities.")
00:22:51*amiconn has no idea
00:23:15kushal_12_27_200connected
00:23:15gevaertskushal_12_27_200: When you've done that, plug it back in
00:23:37gevaertskushal_12_27_200: OK. Now try "sudo ./e200tool-mac recover pribootLoader.rom" again
00:23:43kushal_12_27_200I also turned the hold off before plugging in this time
00:23:44*amiconn might be on to something....
00:24:17kushal_12_27_200Length write error (-1, Operation not permitted)
00:24:22Bensawsome_wait ur using a mac to do it?
00:24:26*stripwax can't wait to find out what ... :)
00:24:40gevaertskushal_12_27_200: can you paste the full output somewhere ?
00:24:43kushal_12_27_200yes, bensawsome_
00:24:48kushal_12_27_200yes
00:24:49Bensawsome_aaaaaaa
00:24:52Bensawsome_interesting
00:24:52 Join corevette [0] (n=corevett@adsl-75-18-210-31.dsl.pltn13.sbcglobal.net)
00:25:14 Join TMM [0] (n=hp@ip565b35da.direct-adsl.nl)
00:25:56 Quit Nico_P (Remote closed the connection)
00:25:58 Quit Febs ("ChatZilla 0.9.81 [Firefox 2.0.0.12/2008020121]")
00:26:05kushal_12_27_200http://pastebin.ca/921341
00:26:13amiconnSome most probably usb related code in the ipod roms (checked both mini and g5.5) fiddles with GPO32 bit 9
00:28:16kushal_12_27_200Did it work> http://pastebin.ca/921341
00:29:24gevaertskushal_12_27_200: Maybe something went wrong in putting it in manufacturer mode. Try that again, and run the command very soon aterwards (type it in or paste it before plugging in, and press enter after plugging in)
00:29:59gevaertsamiconn: that looks interesting. I guess you'll soon know more
00:31:18gevaertskushal_12_27_200: I seem to remember that waiting too long between plugging it in and typing the command sometimes made it fail
00:31:25 Quit mirak (Remote closed the connection)
00:32:14kushal_12_27_200same error again
00:33:40 Quit ch4os_ ("Lost terminal")
00:34:31 Quit Soap_ ()
00:34:53 Quit Bensawsome_ (Read error: 104 (Connection reset by peer))
00:34:54gevaertskushal_12_27_200: it should work. Try again a few more times. Make sure you turn off the sansa every time
00:35:07kushal_12_27_200yes, i tried it again, and it worked this time. pasting result in pastebin
00:35:35 Join tessarakt2 [0] (n=jens@e180067140.adsl.alicedsl.de)
00:35:47kushal_12_27_200http://pastebin.ca/921352
00:36:12gevaertsOK. Then you should now see some output on the sansa screen.
00:36:31kushal_12_27_200the screen is off
00:36:50kushal_12_27_200can I try once more?
00:36:58 Join h3av3n [0] (n=andrew@79.119.174.189)
00:37:03h3av3nhello everyone
00:37:17gevaertsTry "sudo mount -t msdos /dev/disk1 /tmp/sansa" If it doesn't work, try again from the start
00:37:25 Join Bryan [0] (n=c0552f0b@gateway/web/cgi-irc/labb.contactor.se/x-11fe4f69dc666c7b)
00:37:58 Quit Bryan (Client Quit)
00:38:10 Join gtkspert [0] (n=gtkspert@203-206-33-62.dyn.iinet.net.au)
00:38:22 Join Bensawsome_ [0] (n=chatzill@c-67-186-185-71.hsd1.ma.comcast.net)
00:38:24 Nick Bensawsome_ is now known as Bensawsome (n=chatzill@c-67-186-185-71.hsd1.ma.comcast.net)
00:38:34h3av3nOk, of course like, I think, many others, I come with a question too... My question is: will rockbox work on non-apple ipods? (clones remakes and this like that)
00:38:45krazykith3av3n, no, as they're different hardware
00:38:49h3av3nthings*
00:38:52h3av3n:(
00:39:38gevaertsh3av3n: What do you mean by that ? It works on lots of players from different manufacturers.
00:40:14h3av3ni mean: company that produces clones of ipods they look the same they got the same menu just .. their cheaper
00:40:47gevaertsOK. Those probably won't work (unless they are actually the same inside as well, which seems unlikely)
00:40:49 Nick midkay_ is now known as midkay (n=midkay@63-226-231-108.tukw.qwest.net)
00:41:29kushal_12_27_200this time it says http://pastebin.ca/921362
00:41:37kushal_12_27_200in the sansa screen
00:41:53gevaertskushal_12_27_200: great. Now "sudo mount -t msdos /dev/disk1 /tmp/sansa"
00:41:57h3av3nwell I don't thing it would be so much of an awe because instead of designing a different architecture to do the same thing, i'm leaning to think that they copied the architecture too....
00:41:57stripwaxh3av3n - if they genuinely look the same and have the same menu, how would one distinguish it from a real ipod?
00:42:10h3av3nIt's not called Ipod
00:42:12h3av3n:D
00:42:15amiconngevaerts: Could you tell me where the actual hardware init on usb connection does happen (the DEV_EN stuff)?
00:42:17stripwaxwhat is it called
00:42:23h3av3ndepends on the company
00:42:26stripwaxname some
00:42:28kushal_12_27_200done
00:42:34h3av3nthe one i want to buy is named quick
00:42:37*amiconn wants to compare our sequence with what that rom test routine does
00:42:44h3av3nlooks exactly like a mini gen 2
00:42:55 Quit Mathiasdm ("Yuuw!")
00:43:00gevaertsamiconn: firmware/target/arm/usb-fw-pp502x.c
00:43:17gevaertskushal_12_27_200: now "sudo cp firmware.mi4 pribootLoader.rom header.txt /tmp/sansa"
00:43:17h3av3nHyunday produces some ipod clones too
00:43:25stripwaxh3av3n - any model numbers or links or anything?
00:43:29krazykith3av3n, they copy what the software LOOKS like, they don't copy the hardware. they won't run rockbox.
00:43:30 Quit Axio ()
00:43:32krazykitnot unless someone ports rockbox to that hardware.
00:43:34stripwaxlots of people make mp3 players that look a bit like ipods
00:43:42kushal_12_27_200ok
00:43:52gevaertsOK. then "sudo umount /dev/disk1"
00:44:00h3av3nthese are identical not just a bit
00:44:11kushal_12_27_200done
00:44:14gevaertsThen "sudo hdiutil detach /dev/disk1"
00:44:25h3av3nwould they put that kind of work in rebuilding the whole hardware?
00:44:42gevaertsh3av3n: Have you opened them and compared the insides ? Pictures of ipod insides should be easy to find
00:44:59h3av3ntrue, i will try to find some ipod clone factory or something like that :D
00:45:01kushal_12_27_200The disk unmounted but "hdiutil: couldn't eject "disk1" - error 49168" no outut on sansa
00:45:05stripwaxh3av3n - my guess is they are cheaper than real ipods because they are not as good as real ipods. how about that?
00:45:29***Saving seen data "./dancer.seen"
00:45:34gevaertskushal_12_27_200: did the sansa say "LUN0 unlocked" ?
00:45:51stripwaxthinking that cost reduction implies different hardware
00:45:52kushal_12_27_200no, it is still LUN0 locked
00:46:11gevaertskushal_12_27_200: run "df /tmp/sansa"
00:46:32h3av3nSame menu, same functions same everything i could say that the battery is the same because the shop selling it here wouldn't give them with 2 years warranty
00:46:50stripwax"same everything" implies it *is* an apple ipod
00:47:02kushal_12_27_200pasting result in pastebin
00:47:17stripwaxh3av3n - i have no idea what you mean by the battery being the same
00:47:33h3av3nsame charging time
00:47:39stripwaxIf it works with Apple iTunes then it is an apple ipod
00:47:46 Join teksimian [0] (n=user@CPE62d786a95f21-CM0000395c0061.cpe.net.cable.rogers.com)
00:47:58kushal_12_27_200http://pastebin.ca/921370
00:48:13h3av3nno theyr in the mp3 player category and its just, everything like an ipod (meaning that i compared the two myself) but its just not made by apple
00:48:21h3av3nsome chinese companies or stuff like that
00:48:41gevaertskushal_12_27_200: try "sudo umount /dev/disk1" again
00:48:59stripwaxI just think you should be careful about what you mean when you say "same functions". You mean "it behaves like an mp3 player", not "it functions in exactly the same way as an apple ipod"
00:49:00kushal_12_27_200done
00:49:11 Quit robin0800 (" I love my HydraIRC -> http://www.hydrairc.com <-")
00:49:19gevaertskushal_12_27_200: then try "sudo hdiutil detach /dev/disk1" again
00:49:28 Join einhirn [0] (n=Miranda@p5B031B44.dip0.t-ipconnect.de)
00:50:01h3av3nstrip wax: if you dont turn them both with their backsides facing up and you see that one is missing the iPod written on the back you wouldnt be able to tell the difference
00:50:03 Quit conando (Read error: 110 (Connection timed out))
00:50:12kushal_12_27_200yes, now it is unmounted and ejected. The sansa screen says LUN0 unlocked LUN0 ejected.
00:50:12stripwaxh3av3n - but anyway I suppose the point is, if nobody really knows anything about the hardware or the software of your mp3 knock-off, then we have no way to tell you if rockbox can possibly work on it
00:50:25gevaertskushal_12_27_200: ok. Now unplug the cable
00:50:37stripwaxh3av3n - what it *looks* like is just cosmetic. I could put my ipod in a shoebox and it would still be an ipod
00:50:38kushal_12_27_200done
00:50:46 Join cool_walking_ [0] (n=root@203-59-129-195.perm.iinet.net.au)
00:50:53gevaertskushal_12_27_200: does it do anything ?
00:50:58 Quit gtkspert_ (Read error: 101 (Network is unreachable))
00:51:07kushal_12_27_200yes, it booted and asked for language
00:51:22kushal_12_27_200Should I go ahead and press english?
00:51:28h3av3noutside and inside, inside meaning: menu collors , button sizes ...
00:51:31gevaertskushal_12_27_200: yes.
00:51:37kushal_12_27_200done
00:51:53teksimianHi there, I have a very basic question, the answer to which I couldnt find in the docs. If i put rockbox on my ipod, does that mean bye bye itunes, and that I can just copy mp3s onto it via mounted fs?
00:51:55gevaertskushal_12_27_200: after that, just to make sure, choose "Format" in the Settings menu
00:52:02kushal_12_27_200ok
00:52:07gevaertsThen choose yes
00:52:26kushal_12_27_200format complete
00:52:35 Quit tessarakt (Read error: 113 (No route to host))
00:52:38stripwaxh3av3n - menu colours and button sizes are still just completely cosmetic!
00:52:38h3av3nits true i don't like the ideea
00:52:40kushal_12_27_200should I also change USB mode to MSC?
00:52:47gevaertskushal_12_27_200: yes.
00:52:52stripwaxh3av3n - were you able to find a link to info on any of these products?
00:52:56kushal_12_27_200done
00:52:59h3av3nyes
00:53:01h3av3nclone of iphone
00:53:05h3av3nat 159$
00:53:08stripwaxiphone now?
00:53:11stripwaxnot ipod mini?
00:53:11h3av3nhttp://www.mp4nation.net/catalog/index.php?main_page=product_info&products_id=116
00:53:18h3av3nim still searching for ipod
00:53:21h3av3njust found an iphone
00:53:24gevaertskushal_12_27_200: It should be ok now. I'm wondering what went wrong this time. Did you unplug it unsafely or anything like that ?
00:54:03teksimiananyone?
00:54:34krazykitteksimian, you can still run itunes if you want, but it's your choice
00:54:37gevaertsteksimian: with rockbox the files can be anywhere on the filesystem, so
00:54:40kushal_12_27_200I tried to sync it with a Windows computer that had some podcasts I wanted to listen. I think the syncing is what caused this. I am not sure, but since all I did except that was listen to music,
00:54:42amiconninteresting....
00:55:20kushal_12_27_200I am inclined to blame the syncing. I am never syncing my sansa again. I will just manually upload the files
00:55:47gevaertskushal_12_27_200: that seems safer. Let's hope it doesn't happen again
00:55:47 Quit tessarakt2 ("Client exiting")
00:55:55teksimiankrazykit, gevaerts, I would like to be done with itunes for obvious reasons. So I just copy the files onto the fs, and the firmware will find it? I don't have to use any third party program or anything, Correct?
00:55:56kushal_12_27_200thanks a lot, gevaerts! you are the best
00:56:08stripwaxh3av3n - so this iphone "clone" already has different specs to the real iphone, given that it weighs less
00:56:19gevaertsYou're welcome
00:56:20stripwaxso obviously the hardware is different
00:56:32gevaertsteksimian: rockbox will find it
00:56:47h3av3ndid u weigh your iphone, or some iphone?
00:57:02h3av3nor got data from gsmarena?
00:57:02teksimianawesome. time to install rockbox :D what are the chances of me bricking my ipod?
00:57:02*gevaerts wonders what amiconn found
00:57:13kushal_12_27_200when I plugged it back in, I found something different.
00:57:13stripwaxh3av3n - I compared the specs on your link to the specs on apple's link . what did you expect?
00:57:18 Join Zarggg_ [0] (n=zarggg@216-15-73-111.c3-0.eas-ubr6.atw-eas.pa.cable.rcn.com)
00:57:27amiconnWait a few minutes, have to do some more checks
00:57:35h3av3ni thought you were going after gsm arena too they got crooked data here and there
00:57:41kushal_12_27_200gavaerts, unlike last time when the folders had strange names, this time they have english names
00:58:12h3av3nwhatever i can't find now much about that "quick" company producing the ipods i am selling, i will try and maybe see what i can dig up tomorow at work....
00:58:13stripwaxh3av3n - I don't know what that means. but this is getting off topic, rockbox will almost certainly never be ported to the iphone.
00:58:19gevaertskushal_12_27_200: then I guess last time the recovery wasn't really complete. Probably you should have done a format then as well
00:58:35*stripwax notices the screen resolution on the clone is totally different too
00:58:41h3av3njesus crhist I showed you a clone of an apple product
00:58:44kushal_12_27_200I think you are rightand there are only two files in the root level, version.sdk and version.txt .
00:58:49h3av3nthats it just as an example
00:58:54h3av3nshowing that those exist
00:58:55kushal_12_27_200unlike last time
00:58:56stripwaxit doesn't even have wifi! :)
00:59:08teksimiangevaerts; awesome. time to install rockbox :D what are the chances of me bricking my video ipod?
00:59:16stripwaxok so that's an example of not a clone, but a knock-off
00:59:35gevaertsteksimian: As far as I know near zero, but I don't have much ipod experience
00:59:35h3av3nthat's what their called? sorry pretty bad english here
00:59:49stripwaxI just mean it isn't a clone, as it isn't identical
01:00
01:00:12teksimianthank you guys! gevaerts krazykit, thank you.
01:00:12 Part teksimian
01:00:31krazykith3av3n, any more discussion of these knockoff products is offtopic, as none of them will run rockbox.
01:00:37stripwaxWhich I think was your original question - if the Quick mp3 player is really identical to the official product, then I'm sure it will work fine with rockbox
01:01:22*gevaerts doesn't care if it's a clone or not, but mentions the existence of #rockbox-community just in case
01:01:25h3av3nbasically yes, that was my question.... damn that pretty much sucks, because from what i've read rockbox is a great piece of software
01:01:40h3av3nthank you gevaerts
01:01:42stripwaxh3av3n - rockbox is great
01:01:57*amiconn is now more puzzled than before :/
01:02:10krazykith3av3n, well, if you want rockbox, it's as simple as buying one of the real players from the front page :)
01:02:15h3av3ni know and i hate that i probably wown't be able to take it to a spin
01:02:20h3av3nyes true but, low funds
01:02:44amiconngevaerts: First, the good news: After playing the whole album (>70 minutes) off my H10 via usb, there were just 3 resets logged in dmesg
01:03:18h3av3nbut i'm sure i will try
01:03:32gevaertsNot perfect, but still (IMHO) good enough to call it working. What's the bad news ?
01:03:47h3av3nim looking at some other knock-offs now and, some look like a video nano but with a monochrome screen :|
01:03:52h3av3nanyway
01:04:08h3av3ncould i wreck the poor knock-off thing just by trying?
01:04:14amiconnNow, the puzzling one: I enabled the DEV_INIT2 handling in usb-fw-pp502x.c for PP5022 as well. That males it behave better on windows+hub (accesses are faster, less errors are logged in the system protocol), but worse on linux+front port
01:04:24 Join EspeonEefi [0] (i=espeonee@STRATTON-THREE-THIRTY-THREE.MIT.EDU)
01:05:01amiconnThe usb test code in the mini's and g5.5's roms does handle DEV_INIT2 too
01:05:02 Quit JamPS (Read error: 110 (Connection timed out))
01:05:18krazykith3av3n, probably not. the bootloader would simply fail to install and you'd have a useless directory on your player.
01:05:25stripwaxh3av3n - I sent you a private message
01:05:34 Join ol_schoola [0] (n=meatwad@c-67-167-20-91.hsd1.il.comcast.net)
01:06:06gevaertsThen I guess it should be enabled anyway. Buschel only did the for PP5020 before the usb stack was working properly, so the #ifdefs there are really guesses
01:06:38 Quit amiconn (Nick collision from services.)
01:06:39h3av3nthanx krazy, at least i wown't give up without trying
01:06:44 Join amiconn [50] (n=jens@rockbox/developer/amiconn)
01:09:18gevaertsamiconn: also, I found that the number of resets can be pretty rando,
01:10:53amiconnRegarding the transient fullspeed devices - maybe we're enabling something in the controller that shouldn't be enabled?
01:11:04gevaertsI just read 100MB twice, the first time I got 14 resets, the second time 28
01:11:26amiconnThose appear even if I plug the mini into the rear port of the linux box, but there are no resets
01:11:36 Part Bensawsome
01:12:01amiconnYes, but a difference between a few dozen resets and successful mount and *thousands
01:12:04gevaertsThey might be related to us only enabling the controller on plugin detect.
01:12:13gevaertsOk. That's a big difference
01:12:19amiconnof resets and scsi errors and unsuccessful mount might be significant
01:12:49h3av3nok, bye bye talk tomorow sometime
01:14:57gevaertsEnabling DEV_INIT2 here (laptop ports, sansa) doesn't seem to make a difference
01:16:15amiconnSome usb related init sequence in the rom checks explicitly for PP5020 vs. PP5022 ...
01:16:29stripwaxooh
01:17:09 Quit Zarggg (Connection timed out)
01:17:30*gevaerts still can't read assembly well enough to be able to spot that sort of thing quickly
01:20:19amiconnWhat that does (as far as I figured): * enable DEV_USB1 * wait 10 us * set bit 1 of REG_USBCMD * wait for that bit to become zero again * enter a subroutine that checks for PP5020 vs. PP5022 first, and then does some extended init in the 0x7000002x and 0x7000006x range for PP5022 only
01:20:21amiconn(!)
01:22:07gevaertsWait for bit 1 of REG_USBCMD to become zero ? That sounds strange. That's the RUN bit
01:22:49 Quit abescully (Read error: 110 (Connection timed out))
01:23:43stripwaxamiconn - hm, that sounds quite different to what usb_drv_init does currently
01:24:25gevaertsusb_drv_init() is actually later. That's straight controller initialisation.
01:25:14gevaertsusb_init_device() and usb_enable() in usb-fw-pp502x.c is what we're comparing with
01:26:03stripwaxoh, sorry
01:26:29gevaertsIt's still somewhat different though
01:27:37amiconnThat extended init code is rather strange...
01:29:20 Quit lee-qid (Read error: 110 (Connection timed out))
01:31:15stripwaxamiconn - bit 1 as in 0x01 or 0x02?
01:31:23amiconn0x02
01:31:27amiconn0x01 is bit 0
01:31:32*gevaerts slaps forehead
01:31:50gevaertsThat's a controller reset
01:31:57stripwaxso it's the same as usb_drv_init ..
01:32:27stripwaxexcept we delay 5us rather than 10us
01:32:41stripwaxand don't do any of that 'other stuff'
01:32:56 Join Febs [0] (n=chatzill@207-172-204-33.c3-0.rdl-ubr4.trpr-rdl.pa.cable.rcn.com)
01:33:02gevaertsWhich explains why it works well on PP5020...
01:34:21amiconnOn 5022, what happens is a whole series of bit flips in 0x70000028 and 0x70000060, with 10 us intervals
01:35:39amiconnI will call 0x7000028 just '28, and 0x7000060 just '60 to keep the sequence short. Numbers in [] are bits within those registers. Here's the sequence:
01:38:09stripwaxwait - OF waits 10us, we wait 50 ms ..
01:38:22stripwax(for reset, that is)
01:39:50amiconn'60[0..3] = H, '28[16] = H -> L (i.e very short pulse), '60[5] = L * wait 10us * '60[5] = H * wait 10us * '60[0,1,3] = L, '60[2] = H * wait 10 us * '60[5] = L * wait 10us * '60[0..3] = L * wait 10us * '60[5] = H * wait 10us * '28[11] = H->L (pulse) * wait until '28[7] becomes L
01:41:16*gevaerts tries to put that in the code
01:41:51stripwaxTotal guess but maybe a bunch of flushing/resetting of usb controller state that is done automatically on 5020
01:42:12stripwaxi.e. maybe a software workaround for a usb hardware problem on 5022?
01:42:21*stripwax does too
01:42:22amiconnUnfortunately pp-5020.h mentions neither 0x70000028 nor 0x70000060
01:43:51amiconnHere's the raw asm: http://pastebin.ca/921430
01:44:19amiconnNote the check for PP5022 at the top; is_pp5022 returns 1 for pp5022, 0 for other pp502x
01:46:06*amiconn guesses that might be something portalplayer put in just to make RE more difficult
01:46:15stripwaxheh
01:46:29amiconnI remember the infamouns "unlock >66MHz" bit on PP5002 and PP5020
01:46:56*amiconn wonders whether ipl incorporated those fixes meanwhile
01:47:19amiconnActually it's not a bit, it's a magic constant
01:51:34gevaertsMy translation is at http://pastebin.ca/921434
01:52:12 Join dandin1 [0] (n=dandin1@bas7-ottawa23-1088834665.dsl.bell.ca)
01:53:51*stripwax disagrees with lines 13 and 14 - shouldn't they be 0x0000000b and 0x00000004 resp?
01:54:08stripwaxbased on amiconn's post, not looked at the raw asm
01:54:40*gevaerts thinks stripwax is right
01:54:46 Nick fxb is now known as fxb__ (n=felixbru@h1252615.stratoserver.net)
01:54:53amiconnActually it should be one line
01:54:59*stripwax was checking his against gevaerts and found some mistakes in his own anyway
01:55:10 Quit tvelocity (Remote closed the connection)
01:55:15gevaertsThat's why I posted it
01:55:18 Quit einhirn (Read error: 104 (Connection reset by peer))
01:55:30amiconnREG_0x70000060 = (REG_0x70000060 & ~0x0f) | 0x04;
01:55:47amiconnI.e. one step, that's why I posted the raw asm as well
01:57:51amiconnI could not find an equivalent in the c200 OF so far, but that doesn't mean much
01:58:46 Quit Zarggg_ ("Even electronic brain pancake crystal elderly have mass naked child events lately.")
01:59:09 Part moos ("Rockbox rules the DAP world")
01:59:24gevaertsIt doesn't enable DEV_USB0 ?
02:00
02:00:47amiconnThis subroutine is just the pp5022 specific stuff that happens after what I mentioned earlier (for all pp502x)
02:01:43gevaertsYou only mentionned DEV_USB1 before.
02:02:53amiconnyes
02:03:16amiconnBut there could be some upper-level function that already handles DEV_USB0
02:03:39gevaertsYes, probably
02:03:40*stripwax builds
02:04:16corevettewhen i submit my songs to last.fm...it only picks up the last song i played..why/
02:04:41amiconnI just searched for a constant of 0xc5000000 in the listing, and started looking at the functions containing that
02:05:26 Join Zarggg [0] (n=zarggg@216-15-73-111.c3-0.eas-ubr6.atw-eas.pa.cable.rcn.com)
02:05:33stripwaxcorevette - what tool are you using to submit? maybe it shows you the last.fm error, or has an error log or message somewhere? if the /.scrobbler.log file looks ok then rockbox is working ok
02:05:59amiconngevaerts: Btw, according to usb-drv-pp502x.c, bit 1 is USBCMD_CTRL_RESET
02:06:11stripwaxright
02:06:29amiconn(as you said it would be RUN)
02:06:29gevaertsamiconn: yes, I was wrong first. It's getting late, and 1 and 0 start looking similar...
02:06:38corevettestripwax: i've tried http://qtscrob.sourceforge.net/ and http://paulstead.com/scrob/ and they both do the same thing. last fm says: Some tracks you submitted have not been added to your profile for the following reason:
02:06:38corevetteSubmissions from before the date you registered are not allowed.
02:06:39*gevaerts tries to find an excuse
02:06:44stripwaxamiconn - he did slap his forehead afterwards.. :)
02:06:52amiconnlol
02:07:15*amiconn wonders where GPIO D bit 0 comes into play....
02:07:19stripwaxcorevette - well that could be the reason then. what audio device do you have, and is the realtime clock set correctly
02:07:44corevettestripwax: ipod video 30g (5th gen) with rockbox
02:07:49stripwaxalso, of course, any tracks you played from before the date you registered will not get uploaded to last.fm .. as per the error message you gotg
02:07:56gevaertsAnyway this doesn't seem to make much difference on my sansa. Maybe you will be luckier on ipod
02:08:02stripwaxcorevette .. and is the realtime clock set correctly
02:08:27corevettei'm checking stripwax...where is it at?
02:08:46stripwaxcorevette - you can check in the rockbox manual
02:09:09corevettestripwax: you mean the date/time in rockbox in settings?
02:09:12stripwaxyes
02:09:15stripwaxis it correct
02:09:20corevettestripwax: 2000
02:09:23corevette:-)
02:09:24stripwaxso, no
02:09:27stripwax:)
02:09:52stripwaxfix that and I'm sure last.fm will start to believe the timestamps you send it :)
02:09:59*gevaerts didn't encounter GPIO D bit 0 before
02:10:06corevettethanks stripwax :-D
02:10:12stripwaxcorevette in the meantime you can use .scrobbler-timeless to submit
02:10:20stripwax(to submit the tracks you already played back in 2000 ;-)
02:10:29corevettena didn't have too many anyways, it's fine
02:10:32str