--- Log opened Mon Aug 09 00:00:51 2010 00:00 -!- fmibot [~fmibot@static.225.178.40.188.clients.your-server.de] has joined #freemyipod --- Log opened Mon Aug 09 00:08:45 2010 00:08 -!- fmibot [~fmibot@static.225.178.40.188.clients.your-server.de] has joined #freemyipod 00:17 < cmwslw> anyone know where the 2g clickwheel driver is in the rockbox svn? 00:17 < cmwslw> the svn is confusing to me 00:28 < slck> i have a guess, but i'm pretty sure it's wrong 00:29 < cmwslw> any guess is good 00:29 < cmwslw> i can find the s5l8700 specific part, but.. gah so confusing 00:33 < slck> it's not as easy as i thought in first place ... 00:35 < slck> so .. you're porting some code from rockbox to embios, then porting another pieces of code back? 00:35 < slck> or i get it wrong? 00:36 < cmwslw> well i want to write a clickwheel driver that works for the 4g 00:36 < Farthen> do you know the base address of it? 00:36 < cmwslw> this would probably be a step up from the accelerometer i got working 00:36 < cmwslw> farthen: iirc it uses i2c 00:36 < Farthen> ok 00:37 < Farthen> cmwslw: hmm, try out \firmware\target\arm\ipod\button-clickwheel.c 00:38 < Farthen> sorry for the backslashes ;) 00:38 < Farthen> it *should* be the right file 00:38 < slck> cmwslw: do you have some working example that uses your accel. driver on the 4g, because the last time i used one of the functions to init.c, it didn't compile 00:38 < cmwslw> ahh i was looking in the 2g-specific folder, thanks 00:39 < cmwslw> slck: it works for me at least. give me the error and i'll check into it 00:39 < slck> or maybe i used the wrong code .. ok just a sec to recreate it 00:40 < cmwslw> the 4g branch has a bug in the console code, so it prints one character at a time, but it still works 00:41 < slck> what about the dash at the end of CROSS-variable, i saw you've changed it in some of the revisions in trunk 00:42 < Farthen> it is changed back 00:42 < Farthen> you need to use the dash 00:48 < slck> i'm not getting any emails from the mailing list for some reason, can someone check please 00:48 < slck> the last one i got is about commit of revision 57 00:49 < cmwslw> it worked for me 00:49 < cmwslw> btw for some reason there's a redirect loop when someone clicks an old page 00:49 < cmwslw> an old page link on the wiki 00:49 < Farthen> slck: i did not unsubscribe you this time ;) 00:50 < cmwslw> oh i see that you use "wiki" instead of "index.php" in your urls 00:51 < slck> Farthen: i know, but i'm not getting mails for some reason 00:51 < Farthen> let me check the log 00:51 < slck> ok, thanks 00:52 < slck> i got it ... gmail's spam filter has gone crazy 00:52 < Farthen> ok 00:53 < Farthen> the mails can somethime become really big. maybe it doesn't like that for some reason 00:53 < Farthen> *sometimes 00:58 < slck> i use a weird setup ... my catch-all address is hosted withing google apps, then all mail is forwarded to my gmail.com account 00:59 < slck> but it seems that if google apps' filter marks something as a spam, it doesn't get forwarded at all but stuck into its spam folder ;) 02:11 -!- clustur [~logger@c-76-127-58-39.hsd1.ga.comcast.net] has quit [Remote host closed the connection] 02:12 -!- clustur [~logger@c-76-127-58-39.hsd1.ga.comcast.net] has joined #freemyipod 02:31 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has quit [Ping timeout: 245 seconds] 02:36 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has joined #freemyipod 03:14 -!- angelwolf71885 [chatzilla@cpe-173-168-248-236.tampabay.res.rr.com] has joined #freemyipod 03:23 -!- angelwolf71885 [chatzilla@cpe-173-168-248-236.tampabay.res.rr.com] has quit [Quit: ChatZilla 0.9.86 [Firefox 3.6.8/20100722155716]] 03:41 -!- MrShlee [~Default@219-90-144-75.ip.adam.com.au] has joined #freemyipod 04:30 -!- cmwslw [~cmwslw@c-76-127-58-39.hsd1.ga.comcast.net] has quit [Quit: Ex-Chat] 05:00 -!- clustur [~logger@c-76-127-58-39.hsd1.ga.comcast.net] has quit [Remote host closed the connection] 05:00 -!- clustur [~logger@c-76-127-58-39.hsd1.ga.comcast.net] has joined #freemyipod 06:25 -!- MrShlee [~Default@219-90-144-75.ip.adam.com.au] has quit [Ping timeout: 246 seconds] 08:08 < TheSeven> cmwslw (for the logs): please note that ucl2e10singleblk is *not* the same as uclpack 09:10 -!- benedikt93 [~benedikt9@unaffiliated/benedikt93] has joined #freemyipod 09:18 -!- MrShlee [~Default@219-90-144-75.ip.adam.com.au] has joined #freemyipod 10:04 -!- perror [~fleury@aldebaran.labri.fr] has joined #freemyipod 10:11 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has quit [Ping timeout: 240 seconds] 10:53 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has joined #freemyipod 11:00 -!- clustur [~logger@c-76-127-58-39.hsd1.ga.comcast.net] has quit [Remote host closed the connection] 11:00 -!- clustur [~logger@c-76-127-58-39.hsd1.ga.comcast.net] has joined #freemyipod 12:23 < benedikt93> TheSeven, are the values that can be in struct scheduler_thread.state those in thread_state ? 12:34 < TheSeven> yes 12:34 < TheSeven> see the declaration 12:35 < benedikt93> I wasn't sure because it's uint32_t state; there and not enum thread_state state; 13:08 -!- MrShlee [~Default@219-90-144-75.ip.adam.com.au] has quit [Quit: Leaving] 14:11 < TheSeven> yes, it needed to be a uint32_t because i'm accessing it from asm 14:11 < TheSeven> (to avoid trouble with short enums) 14:16 -!- MrShlee [~Default@219-90-144-75.ip.adam.com.au] has joined #freemyipod 15:06 -!- cmwslw [~cmwslw@c-76-127-58-39.hsd1.ga.comcast.net] has joined #freemyipod 15:21 -!- MrShlee [~Default@219-90-144-75.ip.adam.com.au] has quit [Ping timeout: 240 seconds] 15:37 -!- MrShlee [~Default@219-90-144-75.ip.adam.com.au] has joined #freemyipod 16:03 -!- MrShlee [~Default@219-90-144-75.ip.adam.com.au] has quit [Quit: Leaving] 16:09 < cmwslw> and I thought threading was dependent on getting the timer working on the 4g 16:09 < cmwslw> do you have any clues as to how to get this to work? 16:09 < cmwslw> i suppose it would involve looking through the bootrom dump 16:14 < TheSeven> the bootrom probably isn't setting up timers 16:16 < TheSeven> cmwslw: http://theiphonewiki.com/wiki/index.php?title=S5L8720_Timers_%28Hardware%29 16:16 < cmwslw> ugh and we don't have a utility flash dump yet 16:16 < cmwslw> oh forgot about that 16:17 < TheSeven> looks like the iphone guys have already done most of the hard work 16:18 < cmwslw> ok well i'll have to look at the 2g threading code for a bit because I still barely understand threading 16:33 -!- watto [~watto@193.203.81.165] has joined #freemyipod 16:53 -!- n1s [~n1s@rockbox/developer/n1s] has joined #freemyipod 16:56 -!- teuf [~teuf@scytale.myrix.net] has joined #freemyipod 16:57 -!- GaveUp [gaveup@your.friendly.neighborhood.hellmouth.info] has joined #freemyipod 17:00 -!- clustur [~logger@c-76-127-58-39.hsd1.ga.comcast.net] has quit [Remote host closed the connection] 17:00 -!- clustur [~logger@c-76-127-58-39.hsd1.ga.comcast.net] has joined #freemyipod 17:31 -!- nezza-_- [troth@unixforge.de] has joined #freemyipod --- Log opened Mon Aug 09 17:42:18 2010 17:42 -!- fmibot [~fmibot@static.225.178.40.188.clients.your-server.de] has joined #freemyipod 17:45 -!- benedikt93 [~benedikt9@unaffiliated/benedikt93] has quit [Quit: Bye ;)] 17:47 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has quit [Ping timeout: 276 seconds] 18:16 -!- perror [~fleury@aldebaran.labri.fr] has quit [Quit: Bye all !] 18:32 -!- watto [~watto@193.203.81.165] has left #freemyipod 18:52 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has joined #freemyipod 18:54 < TheSeven> cmwslw: timer.c and interrupt.c are probably the only files that need changing 18:55 < slck> could someone point me to the commands i need to run embios on nano4g via ibugger 18:57 < TheSeven> ibugger upload 08000000 build/ipodnano4g/embios.bin && ibugger execute 08000000 0a000000 18:57 < slck> thanks, and what's the ucl file for? do i need it some way? 19:03 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has quit [Ping timeout: 240 seconds] 19:09 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has joined #freemyipod 19:32 < TheSeven> slck: not yet. it's a compressed version of it 19:33 < TheSeven> once we're flashing it, we might want to compress it 19:46 < slck> this format is used by iloader, right? 19:46 < TheSeven> for example, yes 19:47 < TheSeven> and by embios loader for the 2g 19:48 < slck> ok 19:57 < cmwslw> i've added some functions that control the backlight in backlight.c and .h 19:58 < cmwslw> and I added backlight.c to SOURCES, and when I compile everything backlight.o is created and linked in later 19:58 < cmwslw> but for some reason my backlight functions are not in the object file so I always get "undefined reference" - any suggestions? 20:01 < cmwslw> wow I'm stupid - I had one empty set of backlight files and the real ones were somewhere else --- Log opened Mon Aug 09 20:13:41 2010 20:13 -!- fmibot [~fmibot@static.225.178.40.188.clients.your-server.de] has joined #freemyipod 20:20 -!- benedikt93 [~benedikt9@unaffiliated/benedikt93] has joined #freemyipod 21:19 -!- benedikt93 [~benedikt9@unaffiliated/benedikt93] has quit [Ping timeout: 264 seconds] 21:31 -!- benedikt93 [~benedikt9@unaffiliated/benedikt93] has joined #freemyipod 22:01 -!- benedikt93 [~benedikt9@unaffiliated/benedikt93] has quit [Quit: Bye ;)] 22:38 < cmwslw> TheSeven: i saw you imported the rockbox libc. My backlight code complains: 22:38 < cmwslw> backlight.c:(.text.backlight_set+0xc): undefined reference to `__aeabi_dmul' 22:38 < cmwslw> backlight.c:(.text.backlight_set+0x10): undefined reference to `__aeabi_d2uiz' 22:38 < TheSeven> urgh. now what are those? 22:39 < cmwslw> because it needs some libc functionality (as far as I know from my googling 22:39 < TheSeven> i'm pretty sure not even rockbox has those 22:39 < TheSeven> see arm/arm-support.S (which i've also cherrypicked from there) 22:42 < TheSeven> int file = file_open("/.rockbox/config.cfg", O_RDONLY); 22:42 < TheSeven> char buf[16]; 22:42 < TheSeven> int bytes = read(file, buf, 16); 22:42 < TheSeven> close(file); 22:42 < TheSeven> cprintf(3, "Read %d bytes:\n", bytes); 22:42 < TheSeven> cwrite(3, buf, 16); 22:42 < cmwslw> well apparently it needs those to convert from a double to an integer 22:42 < TheSeven> int file = file_open("/.rockbox/config.cfg", O_RDONLY); 22:42 < TheSeven> char buf[16]; 22:42 < TheSeven> int bytes = read(file, buf, 16); 22:42 < TheSeven> close(file); 22:42 < TheSeven> cprintf(3, "Read %d bytes:\n", bytes); 22:42 < TheSeven> cwrite(3, buf, 16); 22:42 < TheSeven> oops, sorry for double paste 22:42 < TheSeven> D:\Daten\Projekte\embios>embiosdbg console 22:42 < TheSeven> Connected to emBIOS Debugger v0.0.1 on iPod Nano 2G, USB version 00.01 22:42 < TheSeven> Read 16 bytes: 22:42 < TheSeven> # .cfg file crea 22:42 < TheSeven> yay! \o/ 22:43 < TheSeven> oh, you're using floating point? 22:43 < TheSeven> that would explain a lot. 22:43 < cmwslw> TheSeven: yea, i didn't want to but i think we need to to maintain a compatible api between the 2g and the 4g 22:43 < TheSeven> we would need to link a whole softfp lib, those cpus don't have a hardware fpu 22:44 < TheSeven> you're talking about a brightness value? 22:44 < TheSeven> just use 0-255 for that, and multiply it with a target-dependent factor 22:44 < cmwslw> yea 32 is fully bright on the 2g but on the 4g its 255 22:44 < cmwslw> oh i hadn't thought of that 22:44 < TheSeven> and 32 isn't full brightness on 2g 22:45 < TheSeven> it's something weird like 46 22:45 < cmwslw> well that means i'd have to use 0-46 then multiply for the 4g wouldn't I? 22:45 < cmwslw> since I can't multiply by a float 22:47 < TheSeven> but you can divice 22:47 < TheSeven> divide* 22:47 < TheSeven> we don't even need a divison 22:47 < TheSeven> (46 * value) >> 8 23:00 -!- clustur [~logger@c-76-127-58-39.hsd1.ga.comcast.net] has quit [Remote host closed the connection] 23:00 * TheSeven pokes cmwslw 23:00 -!- clustur [~logger@c-76-127-58-39.hsd1.ga.comcast.net] has joined #freemyipod 23:00 * TheSeven unpokes him again :P 23:15 < cmwslw> the logger restarts every 4 hours I think 23:16 < cmwslw> now that we have fmibot, i only keep it so I can search the logs using grep 23:20 -!- kisak [~kisak@c-98-235-209-218.hsd1.pa.comcast.net] has quit [Read error: Operation timed out] 23:25 -!- n1s [~n1s@rockbox/developer/n1s] has quit [Quit: Lämnar] 23:42 < cmwslw> TheSeven: what does the fade even do for the 2g backlight? 23:42 < cmwslw> i'm wondering if I should just cut it out 23:42 < cmwslw> set it to 32 by default 23:43 < TheSeven> it just works? 23:44 < cmwslw> oh it fades. I should use my brain more often. I guess it should stay then 23:57 -!- angelwolf71885 [chatzilla@cpe-173-168-248-236.tampabay.res.rr.com] has joined #freemyipod 23:58 < angelwolf71885> wow the progress on em BIOS is moveing at a breack neck pase i love the quick progress 23:59 < cmwslw> its so much easier to code on than the other tools --- Log closed Tue Aug 10 00:01:40 2010