**** BEGIN LOGGING AT Wed Mar 27 08:23:32 2002 --> Bagder (~daniel@as3-3-2.ras.s.bonet.se) has joined #rockbox --- Topic for #rockbox is rock the box http://bjorn.haxx.se/rockbox/ --- Topic for #rockbox set by adiamas at Tue Mar 26 09:53:55 hey welcome back --- adiamas gives channel operator status to Bagder thanks ;-) we had quite a gathering here yesterday as your logs might have shown heheh let me scroll and see ;) seems like it... i wanted to play with the uisimulator on my home machine... but having issues... seems that rh7.1 doesn't install the X11 headers for somereason. :-( btw, you should get the latest uisimulator sources I updated them all day yesterday yeah.. grabbed it this afternoon at work... ah, ok pops up a little black window.. white boarder with text? yes nods i gotta take time to read the source.. no time at work... most of the lcd-code is generic as it works on a buffer the lcd_update() reads the buffer and makes X11-calls to draw in the window damn it.. think i may have to download the neweest x ouch, that's a *lot* isn't there any rh7.1 rpm with x11 headers? i don't know rpms all that well :( i pulled out the source from the source cd.. but not sure wtf im looking at... so im playing with diff ideas --> wavey (~wavey@dlan1431.dircon.co.uk) has joined #rockbox morning wavey hiya bagder i keep reading your name as badger is there a meaning behind bagder? hehe, I don't hold that against you ;-) --- adiamas gives channel operator status to wavey once upon the time.. back in.. 1987 I was about to pick myself a nick name and this is what it turned out to be ;-) heh I've stuck with it since same here, but it was 1991 i was asked to give a name for a MUD and this one came out of nowhere and it stuck I actually *did* intend to spell it badger but I was a bad reader or writer or something ;-) heh excellent then I thought the dyslexic style was kinda fun should reduce the number of nick collisions, etc :) yeps except on #dyslexic-animals bwahaha okay.. are you guys familar with rpms? somewhat * wavey is more of a debian man, but go on well.. i don't ever use them... im a jedi, i use the source luke heh anyways... i have like 20 rpms for various forms of X11.. all i want are the friggin headers since rh7.1 didn't install witht hem... is there and easy way to get at them? isn't there like a x11-devel package or something? and an easier question ;) when charging your players.. have you run the batteries all the way down? and if so, how long did it take charging for you before it held the charge? you can unpack an rpm without installing it to get files out, yes and i've run the batteries down a few times but never in one continuous go and i always charge overnight or even continuously so dunno nods it seems like its taking forever for this to take a charge again... me neither, I haven't even had mine a week yet and yeah.. theres a dev version... but 7.1 is so bitch slapped i think im just going to pick up a new distro tomorrow... think i might borrow a buds suse... 7.1 shipped with a dev snap shot of gcc that was fucked. isn't 7.x really old? i haven't looked at rh for yearsa 7.2 is the most recent, there's a 7.3 beta available ok, my bad yeah... but im starting to really dislike the rh distro... Bagder: what distro are you runnin? rh 6.1 I believe, patched and upgraded beyond recognition ;-) --> Zagor (~bjst@labb.contactor.se) has joined #rockbox ad: how long is 'forever'? to take a charge? hej Zagor morning morning Zagor: I feel a need for some source code organization from you ;-) bagder, don't put those dir in the root. make a 'firmware' top dir to put them in morning... you mean uisimulator root? no, the ones you mailed about. the target code. wavey im looking at hmmm.. i was home by 23:30 est, and it's now 3:30 est uisimulator is fine in the root, i think so 4 hrs? ah, right I didn't intend to put them in the root ok, good but i _really_ drained the batteries. I thought of having a 'rockbox' module, as a name for the firmware maybe a bit too general? Zagor: but I was actually thinking of leaving that task to you ;-) ah :) as head of the team I'm getting confused of all the various source code archives now ;-) hehe * adiamas pokes zagor so.. should i antagonize you about getting added to source forge team? * adiamas grins wildly hmm, did you send me your sourceforge user name? nods same one as here "adiamas" ok. sorry, i must have missed it. i'll add you right away and should we call this room "everyone gets op status bu Tumm"? --- Bagder gives channel operator status to Zagor hehe no prob.. just want to post ver. 1 of FAQ its really basic and typo ridden. i can't spell for crap. no problem but i figure once your happy, you post it where you see fit. yup Bagder btw.. when i was looking at the code for uisim, something odd... the first function in screenhack.c, merge_options... i was playing with the structs, just to test something we've been doing at work you do a memcpy, and i was playing with structure copies... they are a bit faster, but when i did it the size of the displyed box (not the white box, the surrounding box) tripled... as the header of that file explains, it's been ripped-out from xscreensaver any idea why? no I don't, I'm not that well aquinted with those functions hehehe k... ill go back then... was just the first thing i played with. adiamas: you are added now ? sweet. "Doc Writer" :-) Zagor: suggestion for a new page: cvs info, that sourceforge one is too hard to find and too generic good point i'll see if i can fix all the cvs issues today including putting the web page in cvs hehe Doc Writer works for me till i get my box working better. that would be really neat tumm, who are you? i haven't seen you before. I think he's asleep ok well, the more the merrier :) Gary sure is one active guy yeah we have attracted a wonderfully productive crowd! indeed maybe i'm the exception. i spent last night playing cstrike :*) we might consider putting named people in charge of various sub modules haha I got some really stupid problems with my Archos mounted filesystem yesterday ok? what problems? when cp -r'ing it failed, saying that the filesystem is read-only whoa! several times sounds bad I umunted and re-mounted and I could do it again did you have usb-storage debug on? no it copies maybe a hundred files before it bails out ive actually had that... but it happened when i was in win, not linux... :( hmmm, i can't remember how much i've copied to the recorder thats when i got that corrupted file. this is a 2.4.18 kernel i did 500+ files today in one shot hmmm same here. i have a 2.4.17 but i only use ehci (usb 2.0) since i got it my card arrived yesterday (at Contactor) so I'm soon gonna be there too ;-) it's schweet! :) i xferred 32 cds of mp3 to my recorder in 1 1/2 hours with usb2 that's 3500 songs 350 cd fuckin' a. :-) small house keeping question, cause im anal... umm... logging, will we be relying on printf to the screen, or an actual log file? in uisimulator you mean? cause i see you have a Logf() in uibasic.c nods kinda pointless to keep a log on the player ;) my original intent was to use the log function but then I lost my dicipline ;-) also, some of the printf() things are placed in "actual" code, and we need to define how to deal with that hehe well.. for what its worth... dicipline may be what we want to set this early :) its gonna be a pain in the arse to break habits later :) on a global basis you're right i have a suggestion on that something that seemed to work for me... since we are doing "functionname(char *format, ...) we just #define the function name, use that... then when/if you want to tear it out its a bit easier i don't get it. what's the gain? nothing significant.. i was just refering ot the "actual" code bit... oh doing dev, having it there is fine, but if you want to bring it o the player you want and easy way to remove it. a #define macro can't use a variable amount of parameters, in ansi and config files are out of the question in this case. thats not what i mean... i mean: #define PRINTFUNC printf aha then just: PRINTFUNC("%s", "we are cool") then you want to turn it off, then you just have PRINTFUNC point to an empty funciton *poof*, no more output but that still makes calls to code nah, optimized out only if in the same source #define PRINTFUNC // :) hehe yeah... heheh ugly, i know that's a bit "brual" ;-) i like that better :) brual? why not just PRINTF(("%s", "rockboxk")); ? then you can #define PRINTF completely it gives really weird errors if you do a multi-line PRINTFUNC call i don't get it. #define PRINT printf x oh, got ya honestly, id just have issues with that on a readablity level but thats just me I have no strong feelings about either way really we should define a single way to do it, and stick with it * adiamas defers all decision making to you european types ;) that i agree with... and please please please, someone post preferences on how code is to be indented/spaced etc... i get enough of 19 diff ppls ideas of formating at work... code layout is so unimportant be nice to have something everyone is expected to stick with. as long as it's readable and runnable we could have a "prefered" style, but allow stubborn people to use their own readable is the problem. nods.. thats what i ment. readable is common sense i dont mean we take a LART to someone for putting a { on the wrong line. and no two people agree on styles true * adiamas thinks wavey hasn't seen what passes for 'readable' in his office heheh and code beautifiers can be built into a makefile beautifiers are no good for versioning * adiamas watches cvs explode no, you beautify locally right according to how you like code and you can do a 'standard' beautify before the check-in if these things matter to you cvs sucks ass, anyhow it's the best we have... how do you do a standard beautify before check in? rely on the person remembering? i don't like non-exclusive versioning systems define non-exclusive? adiamas incorporate it into the makefile wavey: when doing global development, that's the only thing that works make checkin nods bag: alas, yes thought so.. tired, so checking :) non-exclusive == if i have it checked out, you can't touch it wavey: i wouldn't want to admin a global project with exclusive checkout... :) zag: depends on the numbers, not the geographical distribution.. ;) correct I don't think the problem with CVS is the non-exclusiveness --> alkorr (jbcoax@srs07v-1-85.n.club-internet.fr) has joined #rockbox hey alan hi well i'm planning to do an ARCHOS.MOD as a loader for a not scrambled rockbox.bin binary * Bagder needs more coffee cvs will work fine for us - and i'm not ungrateful for sourceforge providing it.. --> linus (~linus@labb.contactor.se) has joined #rockbox hey linus Yo! yo Linus I just dug up my FAT code. It isn't that much really. It was originally intended to be a general FAT12/16/32 driver, with emphasis on FAT16. It was for another project. It is only working in a simulated environment, in Linux. yes, ok I retrieve some of my FAT32 source but a little bit old compared with the last I've lost so it could be interresting to merge Yup. I'll give it to Björn, and he will upload it to the web site. hey linus hey Bagder well tell me if you are okay for what follows : - only FAT32 - filesystem directly use ATA, no generic device - ATA only handle primary controller and the master device (our HD) are you okay with that ? or do you want something else ? I believe in incremental development anything is fine we improve it later if need be It's perfectly OK. There's no need to develop any code that we won't use. I was planning to rip out the FAT12/16 stuff anyway, since the project it was intended for died. must we handle only one partition ? I don't see a problem handling several partitions, but let's start with only one primary partition. ok it is not a problem for me, it's just some code to add for having them the only problem is how the user will see all the partition on his/her JB That's why we should wait with that feature. ok i'm not sure about that, but did you know for people who have a recent JBR if their hd have a MBR or a direct FAT32 (true removable hd) ? I have no idea. then you have to add that feature we can't know all at once anyway the old JBP and JBR cannot read direct FAT32 because of their old firmware badger ? your hd on you JBR is the original ? I'm not sure I follow you. What is "direct FAT32"? yes I just got mine can you have a look on the first sector to see its signature, a MBR or a FAT32 ? unless you did format it what tool can show the first sector like that? My Recorder HD had one primary FAT32 partionaccording to FDISK, before I reformatted it... :-( mc ok, I'll try to remember to do that tonight linus : a normal hd has a MBR with a partition table * adiamas growls at CVS mc, look for /dev/sda, press F3, switch to hexa mode, that's all FDISK seemed to recognize a partition table when I put the recorder HD in my laptop yesterday. alkorr: will do, I don't have access to it now linus : a removable disk can have no MBR, i.e, it has no partition at all. Instead, it has a FAT32 boot sector at the very first physical sector I just gave the FAT code to Björn. Be aware, it is undocumented, and implemented straight from the Microsoft specification, so it is in no way optimized. It cad create empty files and directories. Badger : yes I know, I just gave you the instructions to check ok * Bagder logs everything said here, saves him from taking notes ;-) :) linus : no problem :), Windows can read that kind of removable hd linus : but old firmware don't know that for those who used Windows 98 SE, it is very complicated to format because you need to put the hd as removable to access it, but not removable to format it :/ Björn ? how must I do to take Linus'source ? wait :) oh okay :) Interesting. I just did that yesterday. I attached the redorder with an empty HD and partitioned it using FDISK. Was that the wrong way to do it? are you interested with a simple ARCHOS.MOD as a loader for our rockbox.bin which wouldn't need to be scrambled ? linus : an empty hd ? linus : via USB or a ATA converter cable ? alan: http://bjorn.haxx.se/rockbox/tmp/fat.tar Well, brand new HD, via USB. okay it's strange, because Windows can only reckonize USB disk as logical disk... at least it is what happens when I use WinHex... So you mean that FDISK shouldn't be able to access the partition table of the Recorder? DOS Fdisk ? Windows FDISK ? or linux fdisk ? a logical disk is a partition a physical disk is the entire hd with WinHex i cannot access USB disk as physical disk, So i cannot retrieve the MBR for USB disk, even I know it exists Sorry. I ran FDISK in a DOS windows in Win98SE was it an Archos disk using the chipset ISD200 ? I created a primary partition (man those "integrity checks" tokk some time...) and then formatted it in Explorer. I would have done it in Linux if it hadn't hung badly when I connected the Recorder... :-( hmmmmm So your BIOS is able to read the recorder HD !? i thought ISD200 was not totally compliant with USB Mass Storage i had that issue today to... matter of fact.. my recorder battery died.. caused linux to hang so bad i had to hard reboot Alan: remember. The Recorder is an ISD300 device. oh yes !!!! okay i'm speaking about ISD200 !!! Now we're talking. I had to use Linux when I did the same thing with my Player. okay okay you don't even need a driver for Windows with ISD300 i suppose okay.. sorry all you european studs you.. but this american needs sleep.. see you in a few adiamas alkorr night adiamas --- adiamas is now known as adiamas|sleeping I really don't know. When I connected my Recorder the first time, Windows asked for a driver disk, and I inserted the CD that came with the Recorder. Zagor ? what do you think about ? well, if your DOS is able to access your recorder, that means your BIOS has capability to see USB hd (i.e, those which are really compliant with USB Mass Storage) Maybe if you don't give the CD, Windows will find another driver in its database maybe maybe anyway it is good for you not to be blocked :) * Zagor thinks windows wants drivers for everything... linus : i'm looking at your work your fat entry cache is one sector ? Nope. It is as many sectors as you need. the reason why you use a malloc... Actually it's 256 sectors. Look at line 71. ok As you see, a lot can be removed, since we don't intend to support FAT16. And in many places, I only have support for FAT12/16. We have work to do. lfn ? i must leave you. CU <-- alkorr has quit () can we get the logs of this channel sent to the website? they're very interesting any many people would be interested good idea I can collect my logs so far Daniel! Don't press DELE*... Off for lunch. CU in a few. same here --- Tumm is now known as coyote he's alive! ;-) if uncommunicative ;) --> alkorr (jbcoax@srs04m-8-243.n.club-internet.fr) has joined #rockbox re-hi alkorr: what's your surname? I'm typing up a little nick => real name list for posting the logs i've no nickname. Alkorr is not enough ? alan korr, i think, yes? people might want to know the real name, who's behind the nick Alan Korr, my nickmane : Alkorr ok, thanks Alan Korr just a question for Linus : did my rockbox work with serial ? he's away, eating right now, as soon as Björn has made the web updated vis CVS, I can just add the log there ;-) s/vis/via arf :) you'r a fan of GREP ;) okay i'll be here in one or two hours good lunch <-- alkorr has quit () <-- coyote has quit (zahn.openprojects.net irc.openprojects.net) --> coyote (coyote@dreamhosted.borlange.se) has joined #rockbox hey, coyote Zagor: how's the www cvs going? it's just about ready i'm just reorganising a few things. the scramble tools, for instance, gets a cvs dir of their own also, I need to fix something about the load balancer which of .html and .cgi has priority by default in apache? I think it checks them in the order used in the config index.cgi vs index.html that is yeah. but that's not what I want to head :-) hear ok, so we'll have to remove index.cgi in the cron job on sourceforge.net. not a problem or, you can just don't add it to cvs yup. but i wanted it in cvs, so it's already there :-) btw, we could also use a new mailing list for cvs commits its a great way to keep up with development yes if you name a directory within www, I could put yesterday's irc log there :-) <-- wavey has quit (Read error: 110 (Connection timed out)) --> alkorr (jbcoax@srs06m-7-196.n.club-internet.fr) has joined #rockbox linus : are you here ? Helooooo! hi linus bagder: 'irc' sounds good to me I'm sitting with your code trying to get it to run on my jukebox we'll make an index page with info about server/channel, and then links to the logs okay, if you have some questions, don't fear to ask UIE6A at 900014be you caught an exception ? Yup. Zagor: I added the dir and put the log there just now exception 106 : TXI1 ok Zagor: there's a short nick => real name list at the top of the log, it could probably be put on the main page too ok is abnormal, you shouldn't get it because I don't use interrupt when transmitting You might have turned it on by mistake, since you do use it for receiving. SH1 tries to call an interrupt TXI1 but as i don't code an interupt TXI1, it defaults to a UIE yes but it's strange, because I never caught this interrupt let me have a look on SH1 hardware manual SCI1SCR is set to 0x70, which means only RIE,TE and RE is set RIE = Receive Interrupt Enable Yeah, I saw that too... TE = Transmit Enable (nothing to do with interrupt) etc. By the way, you never called serial_setup() in the code you sent me. yes because I did in setup () setup () contains all the initial setup for most ports included SCI1 setup is in main.c Now I see. Why do you do that instead of using serial_setup()? well serial_setup was just an extra in case we need it elsewhere bagder: doesn't "cvs update" make new dirs? i just updated the sf page, and didn't get the irc dir no, make a habit of using "up -dP" I prefer concentrate all initialisation in one setup () with direct access on port for a smaller code ah -d for make dir, -P for delete removed files quite now i never use serial_setup (a old code) I understand. I have another opinion, but never mind. Let's find out whywe get that interrupt... my intention is to have the smallest code possible for the final rockbox so we can have the largest space for buffer a choice to do Good idea me like inlined functions then, best of both worlds so, without changing my code, you caught this interrupt ? that's true, Badger, i should try do so too to check i didn't lose space that way btw, alan. he's "bagder", not "badger". it sorry :) 's an old story :) it proves he's not using tab completion ;-) haha Bagder, are you sure ? :) that would be french tab complettion then :-) tab completion to a dictionary, perhaps ;) yes i forget this capability :) very practical indeed ok, linus, can you tell if you made a change before catching this interrupt ? linus, add a new interrupt in serial.c or let me change my serial.c and i will send it to you Alan, I removed my extra call to serial_setup(). Now I get "OK WORKING", but no serial communication seems to work ok, it looks as if my software is no good if only i could remember what i did to make it work before my hd crashing :( I'll look into it. Hang on. linus : we must check if REI1 is called add : " } add : "lcd_goto (0,0); lcd_puthex (QI(SCISSR1),2);" in REI1 it will display in hexa the byte read for Serial Status Register (overrun,frame or parity error) Zagor: you should add Gary to the activity table ok oh wait, and if PB10 and PB11 is not set as serial pins in setup () ? i'm checking them bagder: ui simulator? lcd code and ui sim for windows at least ok did rob ever put his faq anywhere? I don't think so Linus, check for BAUDRATE and PHY at the begining of system.h 12MHz and 9600 9600 is okay for you ? Yup. well, when there is no serial jack pllugged on my JBP, it displays "OK WORKING!" the same thing when pluged but nothing in my serial terminal Are you sure that you don't loop the serial data in your PC? what do you mean by looping ? Echoing i echo what I get not what i put I = sh1 there is no echo from the PC side Got it! so ? You have to insert a small delay before enabling TX and RX (SCR1 = 0x70). I made a while(i++ < 30000); ok good to know As the manual says: "one bit time" * Bagder grins I spent quite a few hurs myself with exactly the same problem. I should have remembered that... :-) ok you know what i did ? i just put the last SCISCR1 = 0x70 just after setting interrupt priorities and it woks now so we don't need a very long delay very good now i can display messages on my serial terminal :))))))) thanks to you Linus, I thought about that but i was sceptical :) finally you did the right thing * Bagder hoorays ok i will see later bye <-- alkorr has quit () Gotta go now. CU! <-- linus has quit ("Leaving") --> alkorr (jbcoax@srs08m-5-139.n.club-internet.fr) has joined #rockbox oh linus is left, well okay. <-- alkorr has quit (Client Quit) gotta run. see you guys bye! I figure the day is over now, I'll clear off as well **** ENDING LOGGING AT Wed Mar 27 16:27:55 2002