irclog2html for blob on 2002.06.12

01:10:23prpplaguehey seletz_
01:10:26prpplagueup late?
07:16:12que tal, mmatten
07:16:12mmattenhi
08:40:36seletzmorning
08:40:59seletzBZFlag: hmm, you had a poblem with my CF code?
08:54:34BZFlagseletz: I just messed up something without saving a backup. =(
08:55:01BZFlagin moving to the new code I lost my code that mostly worked. now I'm back where I can't see the card ID.
08:56:14Russhey erikm
08:56:36RussI'm having a problem with the intel flash code on some strataflash on an "assabetish" system
08:58:26Russbootldr is on the system, and that can flash fine,
08:58:43RussI chain boot blob (flash as a kernel, and bootldr loads it as such)
08:59:01RussI can erase flash ok
08:59:22Russbut it doesn't make it past the first few 0x100 bytes
08:59:33Russits starts looping, and occasionaly times out
09:01:35Russflash_write_region(): flashing 0x00030000 (196608) words from 0xc0800000 to 0x00140000
09:01:35Russerasing at 0x00144668... scanning down... resume writing at 0x00140000
09:01:35Russerasing at 0x00140334... scanning down... resume writing at 0x00140000
09:01:35Russerasing at 0x001404c4... scanning down... resume writing at 0x00140000
09:01:43Russthat type of thing over and over
09:05:15SammyRuss: maybe that flash is bad , I have that experience before :(
09:05:34Russbootldr flashes it just fine
09:13:26erikmRuss: hey Russ
09:13:36Russhey erikm
09:13:38erikmRuss: are you sure the slash isn't locked or so?
09:14:07Russya, the slash stops
09:14:33RussI don't have the schematics of this board, so I could be missing something subtle
09:14:56Russbut If I flash a jffs2 root with bootldr, boot blob, download my kernel, boot the kernel, it will mount the jffs2 root just fine
09:15:36RussI should probably see how well mtd writes the flash
09:15:48erikm(I meant flash, not slash, sorry %)
09:15:57Russya
09:16:10RussI can erase the flash no problem
09:16:30seletzshot his analogue HW board right now :(
09:16:40Russthe chips are two E28F128's
09:17:01erikmRuss: can you dump the contents of the flash to see they are indeed erased?
09:17:23RussI have
09:17:57erikmhmm, could still be a bit stuck-at-one
09:18:45erikmtry to flash a block with zeros
09:18:59erikmyou might have to change the flash algorithm to continue despite errors
09:19:19Russlemme have bootldr do that
09:19:27erikmthen dump the contents of the flash, look for bits stuck-at-one, and try to discover a pattern
09:24:06Russcoming out all zeros
09:24:27erikmstrange
09:24:40RussI had a problem earlier, where if I didn't give the IrDA device a power setting, It would read back zeros for the upper 16 bits of flash
09:24:57Russand many times, 0x0080
09:25:10erikmmight be something similar. figure out what kind of initialisations the kernel uses
09:25:17Russand I couldn't get it to read back the true value without a reset
09:25:23erikm(and/or bootldr)
09:25:28RussI can't get the source
09:25:38erikmeven not for the kernel?
09:25:42Russnope
09:25:49erikmbut you do have a binary?
09:25:52Russright
09:26:01erikmok, that's a GPL violation
09:26:05RussI know
09:26:09Russthey are in korea
09:26:17erikmwho is "they"
09:26:32Russciit tech
09:26:36Russ(ciitech.co.kr)
09:26:43seletzlooking
09:26:43erikmarm-linux kernel?
09:27:00Russyup, they are using the assabet arch number
09:27:38erikmRuss: oh, I'm sure rmk and nico will find that interesting
09:29:04Russprpplauge has tried for quite some time to get them compliant
09:29:13erikmdoes an rmk summoning dance
09:29:23seletzlol
09:32:51Russi basically have the port done, execpt for hammering out some uda1341ts issues, audio paths, ucb1x00-battery driver, and a driver for the buttons
09:33:18Russcpu scaling is mostly woring, it works at 103200, but not 52600
09:33:22RussI don't know if it should
09:33:31erikmRuss: is it a sa1110?
09:33:34Russya
09:33:54erikmRuss: ok, that's a known issue. some designs stop at 147000
09:34:18erikmRuss: we need somebody with a logic analyser to figure out what's going on on the bus
09:35:07seletzerikm: well, i have a logic analyzer
09:35:25Russit'd also be helpfull to get a part number on the debug connector so I could hook up jtag and pull out the CPLD schematics
09:35:40erikmseletz: ok. I think we can discuss the issue at OLS, much easier to explain IMHO
09:35:44seletzerikm: i'll be glad to help out if someone explains the problem to me (i'm a software guy at last ...)
09:35:58seletzerikm: cool, ok.
09:36:47Russerikm: when you were talking about issues with implementing a pci bus on an sa11x0, were you talking about a complete bus, or supporting even slaves
09:37:30RussI haven't had much time to go into it, but I've been slowing going through the pci spec and rtl8139 datasheet
09:39:45erikmRuss: the main problem is that your PCI north bridge has to take the sa1110 bus for bus master transfers
09:40:02Russoptimally, it seems an address/command could be sent out, and then a burst of 4 to maybe 16 words of cache transfers
09:40:23RussI don't want a north brigde
09:40:27RussI don't want slots
09:40:32seletzdetects HW gurus talking :)
09:40:39erikmRuss: that means that the north bridge has to control the SDRAM, including things in the right order, and also doing SDRAM refreshes
09:41:21Russright, I don't want a north bridge, I just want to put some PCI chips and glue logic in SRAM space (or maybe DRAM space)
09:41:55erikmglue logic == PCI north bridge
09:42:19Russnot what I'm thinking
09:42:33RussI'm thinking decode and maybe a latch for address/command
09:43:13Russit wouldn't support additional bus masters
09:44:22Russit wouldn't support additional bridges either
09:44:41Russor any bridges for that matter
09:45:13erikmquestion is if the other PCI chips (rtl8139 etc) will like that
09:45:26Russthat's why I'm reading through both data sheets
09:45:50Russbut for a 33MHz bus (or 40MHz) where you can get $8 chips that do 10/100
09:45:54Russhey _rmk_
09:46:00_rmk_Russ: first thing I'll say is what Linus said about the armlinux.net thing:
09:46:03seletz_rmk_: hi
09:46:13_rmk_Quite frankly, as long as they are in korea, there's probably not much to
09:46:13_rmk_be done. Trying to go after them in any legal way simply isn't practical
09:46:14_rmk_until there is some real presense in either Europe or the US.
09:46:37_rmk_--- end quote ---
09:46:47Russgoing after them has basically been given up on
09:47:19erikmRuss: but where did you get the board? through a US representative, or directly from .kr?
09:47:25RussI almost have the port done, its mainly figuring out what all they changed from the assabet reference design
09:47:33Russerikm: prpplauge sent it to me
09:48:46erikmRuss: and I suppose you don't know where he got it...
09:48:59Russerikm: nope, would have to ask him
09:49:33erikm_rmk_: so bottom line is that we can't do anything against .kr companies for as long as they stay in .kr :(
09:50:17_rmk_erikm: that's Linus' interpretation - if .kr didn't sign up to the international copyright agreements, then that would be the case.
09:50:25Russthey also have a bunch of warez on their ftp
09:50:42seletzugh
09:50:51erikmRuss: intersting. put the BSA on it };-)
09:50:57seletzmybe give a hint to m$
09:51:02mmatten:>
09:51:36Russdear ms...a company promoting linux is pirating your software...
09:51:48seletzno
09:52:10seletzdear m$, i got this sw from ftp:///, may i have support?
09:52:21seletz(anonymous writer)
09:52:31Russanyway, I gots to sleep
09:53:02_rmk_does the name 'skiff147' mean anything to people here?
09:53:13Russjust the skiff portion
09:53:41_rmk_its not the name of one machine from the skiff cluster, is it?
09:54:10erikmskiff is the nickname of the compaq personal server
09:54:42_rmk_erikm: yep.  I happen to be holding one with a post-it note on that says skiff147
09:55:28erikm_rmk_: isn't it skiff #147?
09:55:55_rmk_the serial number is 1268
09:57:06BZFlaghttp://www.google.com/intl/xx-elmer/
09:58:29erikm_rmk_: could be that it's the 147th *working* skiff and number 1 through 1121 boards were broken
09:58:32erikmBZFlag: lol :)
09:58:39_rmk_erikm: hehe
09:58:58_rmk_now, where would jamey hang out? #handhelds.org ?
09:59:16erikmor #ipaq
09:59:20jamey was last seen on #zaurus 1 days, 21 hours, 58 minutes and 52 seconds ago, saying: <private message> [Mon Jun 10 13:00:28 2002]
09:59:20BZFlagibot: seen jamey
10:00:00_rmk_hmm.
10:00:38_rmk_wonders if the rj45 jack on the back of this is ether.  its helpfully marked "phone"
10:00:58_rmk_and the 9 pin D is marked "10baseT"
10:01:26_rmk_and a switch is marked "serial"
10:01:28seletzthats weird
10:01:34seletzlol
10:02:23BZFlagthat's one of those new-fangled serial switches.
10:03:52_rmk_considers running this compaq personal server as a dev machine and a public access box (and if I do, it'll be going on a separate network segment here, just in case anyone gets any ideas about tcpdump 8))
10:05:57_rmk_hmm, have to get some extra IPs from mailbox if I do.
10:09:46seletz_rmk_: btw, something planned yet for the ARM Linux BOF at OLS?
10:10:08_rmk_umm, no.
10:10:33_rmk_that mail I sent out about it - I only got 3 replies ;(
10:10:55seletzugh, thats a shame.
10:11:29seletz_rmk_: well, i guess we'll stick with prpplagues arm beer BOF then :)
10:12:12erikmhas to be honest that he has been too busy to even *look* at the linux-arm-* lists
10:16:17seletzwell, SIGLUNCH over here ...
10:21:02erikmyeah, over here as well
10:21:15BZFlag4am here. ;-)
10:21:45erikmBZFlag: shouldn't our caring father go to sleep as well...? ;)
10:21:52erikmBZFlag: (btw, how's the little one?)
10:25:52BZFlagerikm: doing well now, thanx. he's sleeping for about 6hrs at a time at night now.
14:06:51prpplaguemorning guys
14:07:32privet, seletz
14:07:32seletzprpplague: hi
14:33:00prpplagueargh, i seem to have mis placed my "programming ansi c" book
14:40:24seletzprpplague: oh, the holy k&r ansi c bible?
14:44:15seletzhmm.
14:45:05seletzi need to do k*x+d on each of thermeasured values. grrr. Guess its asm time :(
14:48:06prpplagueseletz: yep thats the one
14:48:36seletzprpplague: what do you need to know? or is it just that you miss it?
15:03:03prpplagueseletz: just that i'm missing it
15:03:18prpplagueseletz: not sure if someone has swipped it or whether i left it at home
15:03:45prpplagueseletz: besides, my pr0n is hidden in there, lol
15:04:01prpplagueseletz: jk
15:08:33seletzlol
16:05:10prpplagueseletz: when do you expect a response from the board producers on the "hack kit"
16:05:28seletzprpplague: this week or beginning of next week.
16:05:39seletzugh
16:05:52seletzprpplague: this week or start of next week.
16:06:00seletzprpplague: grammar :(
16:06:44prpplagueseletz: np, i understood
16:07:02seletzprpplague: why? some urgent issues?
16:08:19seletzprpplague: at OLS i'll have most figures.
16:08:22prpplagueseletz: no just curious
16:08:23prpplagueseletz: i'm excited about getting started
16:08:39prpplagueseletz: i've start laying out some "sample" applications
16:10:58seletzgetting tired i'm writing bogus code ...
16:11:15prpplaguelol
16:11:21prpplaguethats what i was doing last night
16:11:35prpplagueseletz: i've got this array that i step through in a loop
16:12:20prpplagueseletz: all 80 are do the exactly the same thing in the loop except for item number 18
16:12:36prpplagueseletz: item 18 has to open an additional screen
16:13:00prpplagueseletz: i really had just hardcoding an "if" in the loop
16:13:32prpplagueseletz: i mean what if the item number changes or more of these exceptions come along
16:14:33seletzprpplague: am i that tired? I see nothing wrong with it ...
16:15:16prpplagueseletz: its just doesn't seem generic enough
16:15:17seletzis writing a userspace test program for his data aquisition kernel driver
16:15:57seletzprpplague: oh my. use #defines or whatnot. but if its only one number i'd think later....
16:24:32prpplagueseletz: ya, thats what i finally did, its just not as clean and flexible as i had hoped
16:25:32prpplagueseletz: i'm afraid i may have to add some more "exceptions" later down the road
16:29:33seletzprpplague: do a typedef struct operation { int id; ...   }; and use a function table (array of function pointers).
16:30:11seletzprpplague: then you can: ret = (func_table[id].func)(args); in your loop
16:30:38seletzprpplague: have a setup routine which sets up the table dynamically.
16:30:58seletzprpplague: just my .02$ ...
16:34:27prpplagueseletz: hmm, that sounds do-able
16:34:43seletzprpplague: forget the struct thing.
16:35:08seletzprpplague: you need only a array of functions. Probably all of the same signature, though.
16:35:35seletzprpplague: you might also use C++ for that ....
16:35:44prpplagueseletz: hmm just do a matching array of functions that correspond the the other array item, so when item item[18] is reach you do function[18]
16:35:44seletzrunning .... :)
16:35:54prpplagueseletz: leaving?
16:36:10seletzno, because of my C++ joke :)
16:36:35prpplagueseletz: ohh, sorry , didn't get it untill now
16:36:44seletzprpplague: why 2 arrays?
16:37:39seletzprpplague: use typedef int (*itemfunc)( int id, ... ); itemfunc ftable[MAX_ITEMS];
16:37:56seletzthen do
16:38:26seletzfor (id=0;...) { ret = ftable[id](id, some_other_args );; }
16:39:02seletzthat way you can have several ids have the same func.
16:39:23seletzand you get the actual id in the function.
16:39:51seletzfor now you could just point every id to the same function. Later update.
16:41:09prpplaguecool, thats what i was looking for
16:41:11seletzugh, thats _really_ bad
16:41:14seletzhttp://www.theregister.co.uk/content/55/25689.html
16:41:31prpplaguesaves buffer
16:41:36seletzlol
16:42:19prpplagueseletz: i after all these years, i still  have problems with some c/c++ concepts, guess i'm still partial to gw-basic, lol
16:42:20seletzcrash XFree + linux box _remotely_ in 3 sec.
16:42:33seletzeeeeek!
16:42:37seletzyou named it!
16:42:58seletzvanishes in a puff of smoke
16:43:33prpplaguelol
16:43:53prpplaguewhich one c++ or basic?
16:44:05seletzbasic :)
16:44:22prpplaguelol
16:44:23seletzman. reminds me of my old simon's basic days ....
16:44:42seletz(or even amiga basic. yuck.)
16:45:01prpplagueseletz: mine was gw-basic and applesoft basic
16:47:53prpplagueseletz: i'm looking at your typedef suggestion
16:48:10seletzhmm, hope i got the * right
16:48:14seletz:)
16:48:28seletzok, looks good
16:48:38prpplagueseletz: when you say you can point multiple id's to the same function, where are you placing that?
16:48:54seletzok
16:49:37seletzhave a func_for_ids_10_to_100( int id, ... ) { ... }
16:49:42seletzthen do a
16:50:24seletzfor ( id=10: id<100; id++) { ftable[id] = func_for_ids_10_to_100; }
16:50:38prpplagueahh, ok that pulls it together
16:50:42prpplaguei understand now
16:50:54seletzi guess you have to do
16:50:55prpplagueseletz: thanks i really appreciate the c 101
16:51:29seletzret = (*ftable[xx])(xx, a,b,c);
16:51:32seletznot
16:51:46seletzret = ftable[xx](xx, a, b, c );
16:52:01seletznote the star
16:52:08seletzhmmm
16:52:33seletzahyes, and you have to do ftable[id] = &func_for...;
16:52:51seletzoh my.
16:52:53seletztry it.
16:52:55seletz:)
16:52:59seletzYMMV
16:53:23seletzas i said, i'm tired. sigh.
16:53:36prpplaguenp
16:54:30seletzok, i'm off now
16:55:05seletzprpplague: last thing, use varargs. Tent you're most flexible. (but its dangerous..)
16:55:15seletzgoing home
16:55:45seletzsee ya
17:41:11erikmgoes home

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with infobot logs, split per channel and by date, etc.