irclog2html for blob on 2002.06.21

00:02:52Fareupdated his jornada820 patch
01:08:20prpplagueBZFlag: howdy
01:08:40prpplagueBZFlag: gonna make it for all of OLS?
01:15:33BZFlagyep I get in tuesday at 4:35 and head out... hmm sunday I think.
01:16:24prpplagueBZFlag: same here, i get in around 5:15pm
01:16:38BZFlagsweet. I'm in the westin
01:16:44BZFlagback later
01:17:06prpplagueBZFlag: i'm staying the "les suites" , erikm is using the extra room
01:17:08prpplaguelater
02:13:36Fareanyone here?
02:13:56prpplagueno
02:14:48Farehum. So I get into the kernel, but once it goes past head-armv.S, I get no output whatsoever
02:15:45prpplaguesounds like a personal problem
02:15:47prpplaguelol
02:16:09prpplagueFare: not using any leds for debugging?
02:16:40Farewithin linux?
02:16:44Fareno, not yet
02:17:03Russ|werkFare: what is neccessary to flash the lights
02:17:08prpplagueFare: blob has the ability to blink leads based on different errors
02:17:08FareI suppose I could output to wherever I know the framebuffer happens to be
02:17:49Farebut I don't know how to both map it at the right place and avoid the kernel from putting it up for grabs
02:17:57Fareno blob works
02:18:03FareI'm now in the kernel
02:18:09Fareand there are no leds on this machine
02:18:12prpplagueohh your talking about the kernel code?
02:18:18Fareyup
02:18:42Fareblob now runs fine
02:19:24prpplagueFare: ahh, let me get a url for ya
02:19:41Farethanks a lot
02:20:37Farealso, I know the value of the LCD register. How do I compute a pixel clock back from it?
02:31:26Russ|werkheh
02:31:39Russ|werknm
02:31:59Sammynm ?
02:33:10Russ|werknevermind
02:33:39Sammy.^______________^.
02:39:03prpplagueFare: hang on, my web server is giving me issues right now
02:43:27prpplagueFare: we just upgraded last night due to the apache problem, but i can't seem to get my pages
02:45:07prpplagueFare: http://www.abcsinc.com/small-linux/printascii.txt
02:45:53prpplagueFare: that should help ya
03:11:32BZFlagprpplague: sweet (er suite?) We'll party at your place. ;-)
03:12:18prpplagueBZFlag: lol
03:12:35prpplagueBZFlag: i hope the partying goes on at some cool english style pubs
03:32:59BZFlagdoes not drink so he hopes it by computers. ;-)
03:33:11BZFlager it's
03:35:47prpplagueBZFlag: lol, thats ok, nothing like beer ladened laptops
03:42:37prpplagueBZFlag: i'm hope to get all of the arm gurus together for dinner/bof
04:02:26BZFlagI'm interested.
04:05:27prpplagueBZFlag: we make a ton of money off open source, least i can do is buy some of these guys a beers, lol
04:12:21BZFlag"a ton of money" that must be nice.
04:17:48prpplagueBZFlag: well i know you guys have been a little "lean" lately, but things will work out
04:18:41prpplagueBZFlag: when we went from $8800 per customer costs with sco, down to $200 with linux, profits went through the roof
04:20:14prpplagueBZFlag: when we used to use third party terminals, our tech support center was taking 750-1000 calls a day, with custom thin clients running linux, we now get around 30-50 per day
04:23:12prpplagueBZFlag: we used to use cisco routers for vpn stuff, now we use snapgear(arn't you guys part of the same group?) and have cut our install times down to 1/10 and virtual no support issues
04:25:45BZFlagsweet. good to hear it's all working for you. nice.
04:26:04BZFlagsnapgear and lineo went our separate ways a few months back.
04:28:51prpplagueBZFlag: well, i'm sure if your new pda with fold out keyboard gets to market, we'll be buying them
04:31:15BZFlagheh, I'm hoping. ;-) you pick up a Z yet?
04:32:02BZFlagthe builtin keyboard on the Z is actually useful. I use it all the time now.
04:32:24prpplaguenot yet, i'm currently playing with a couple of korean prototypes
04:32:42prpplaguethe camion from CIIT and the mizi pda sdk
04:33:00prpplaguei sent one of the camions to Russ to port blob to
04:33:55BZFlagwhat do you think if the mizi? that's Qt/e as well yes?
04:34:21BZFlags/if/of/
04:34:27prpplagueya qt/e
04:34:53prpplaguethe interface is done well, but the documentation and support on the opensource side is terrible
04:35:18prpplaguei'd never use mizi if i had an important project that was on a time schedule
04:38:16BZFlagis mizi based on qtopia? ie: is there a libqpe included?
04:39:34prpplagueno i don't believe it is qtopia based
04:39:44prpplagueis not big into qt
04:40:12prpplagueBZFlag: i'm more into X with small widget gui's like fltk
04:41:18I haven't seen 'the', BZFlag
04:41:18BZFlagprpplague: seen the yopy interface? it's just tinyx with icewm. it's pretty cool.
04:41:57BZFlagI'll bring a yopy or two with me to OLS. you planning to bring the mizi and the camion?
04:42:06BZFlagbring serial cables too if you have them.
04:42:06prpplagueBZFlag: lol, ya i was one of the ppl that worked on that and helped gmate decide to move from w-windows to x
04:42:40BZFlagI did the initial jffs2 conversion for gmate.
04:43:49prpplagueBZFlag: really? cool
04:44:12prpplagueBZFlag: http://www.abcsinc.com/yopy/
04:44:26prpplagueBZFlag: sure i'll bring the camion
04:44:55prpplagueBZFlag: i'll have to re-assemble it, i've been having a look at there fabrication techniques
04:45:05BZFlaghttp://yopy.org/ <- ok, I don't have anything there yet. ;-)
04:45:34prpplagueBZFlag: but the mizi is spoken for on some tests
04:45:36prpplagueBZFlag: lol
04:46:04BZFlagsurely they can spare the mizi for a week, no?
04:46:35prpplagueBZFlag: well........, its currently doing a field test for two week in barbados
04:46:50BZFlagah
04:47:21prpplaguewe do inventory control for shipping and customs for almost all of the caribean and bahamas
04:49:27prpplagueBZFlag: are you guys strickly embedded processors or do you do any x86 stuff anymore?
04:50:45prpplagueBZFlag: btw, small-linux.com is mine, but i never can seem to find time to get it running
04:53:05BZFlagwe do all kinds. we do a lot of x86 on settops and routers etc.
04:53:17BZFlagyeah I have elinux.org too
04:56:40BZFlaganyone know if wookie is headed to ols?
04:58:06prpplagueBZFlag: not for sure, but seems _rmk_ said something about him attending
04:59:25BZFlagcool. /me wants to resurrect emdebian
05:00:18prpplagueBZFlag: this was my baby before i switched to learning arm - http://www.linuxdevices.com/products/PD4854992533.html
05:01:06BZFlagprpplague: yep seen it. cool.
05:01:44BZFlagwoohoo, welcome to irc.opensplits.net
05:03:14prpplagueBZFlag: ya, well, as it was my first design had a few problems, processor ran too hot, so problems with ct chipset, don't get me wrong, it worked well, but sure realized the short falls of x86
05:03:23prpplagues/so/some
05:04:20BZFlagI hear that.
06:14:43Russhehe
06:51:04que tal, mmatten
06:51:04mmattenhi
08:51:43Sammywhat's this strange problem hang ?
08:51:44SammyExecutiKernel panic: Attempted to kill init!
08:51:45Sammyg /linuxrc....
08:51:46SammyPATH=/bin:/sbin: bad identifier
08:52:43Sammyanyone know's ?
08:53:11seletz_moin
08:53:30Sammyhi seletz
08:54:10Sammyseletz: do you have any suggest ?
08:57:07seletzSammy: the path env var?
08:57:22seletzSammy: hmm
08:57:50seletzSammy: we have had the same problem when we tried to move over to newer libc versions.
08:58:20seletzSammy: dont know how to solve it, we stick ATM with old libc versions :(
08:58:43Sammy:(
09:14:04Fareprpplague: that was exactly what I needed! Thanks a lot!
09:14:33seletzFare: so your jornada boots?
09:14:44Farewell, it goes as far as head-armv.S
09:14:55Farethen it dies before a console is registered
09:15:03seletzFare: what did the trick?
09:15:08Farenothing yet
09:15:28Farebut prpplague pointed me to http://www.abcsinc.com/small-linux/printascii.txt
09:15:37Farewhich I think should do the trick
09:15:49seletzah, the printk() hack?
09:15:53Fareyup
09:16:19seletzhelped me a lot too ;)
09:16:37seletztried splitting the mem range?
09:16:44FareI was desperately trying to figure out how to register a serial console early, then realized it wouldn't work because you need a different driver before and after interrupts are enabled.
09:17:02seletzhmm
09:17:11Fareseletz: yes I did, but whatever gives, linux dies before the console is enabled.
09:17:18seletzok
09:17:38Farecurrently, I called __error just before the end of head-armv.S and it worked
09:17:49seletzhow far does it get, then?
09:17:56Fareno idea
09:18:12Fareit calls start_kernel, but never registers a console.
09:18:31Farewith the printk hack I hope to identify problems more closely.
09:18:39seletzyou have blob running, dont you?
09:19:02seletzhmm, so you actually havent tried the printk hack yet?
09:19:24Fareno, I'm just up from bed, and saw what prpplague told me in the logs.
09:19:47Fare(he was telling me he'd give me a url, but I fell asleep)
09:19:50seletzFare: where are you, if you dont mind asking?
09:22:18FareParis, France.
09:22:41Faresame time zone as you
09:26:04Farewhat do you use to reduce the time spent in kernel diff?
09:26:16Farewhat's this dontdiff thing?
09:31:13Farebtw, I updated my patch
09:31:21Fareit's cleaner
09:31:28Faretouches less files
09:32:22Fareintroduces less #ifdef JORNADA820
09:32:52Fareand has a different file name on the patch server, too :)
09:35:00Fareok, found diff -X
09:41:38mmattenx
09:41:41mmattenX
09:41:47mmattenack wrong window
11:51:18FareLinux version 2.4.18-rmk5-frr2 (fare@ZhengHe) (gcc version 2.95.2 20000313 (Debian GNU/Linux)) #51 Fri Jun 21 13:48:44 CEST 2002 // Processor: Intel StrongARM-1100 revision 9 // Architecture: HP Jornada 820 // <2>kernel BUG at bootmem.c:125!
11:51:21Fareyay!
11:52:54Farehum. What's PAGE_SIZE on these machines?
11:54:41seletz4k
11:54:54seletzcoooool
11:56:18seletzFare: i hope you split on page size?
11:56:27Fareyes
11:56:39Farebut maybe I did something wrong in the doing
11:56:46Fareit's not like I double checked the code.
11:57:31Fareif (!test_and_clear_bit(i, bdata->node_bootmem_map)) BUG();
11:57:39seletzhmm
11:57:39Farehum, what does that mean?
12:00:58seletzchecking out
12:01:03seletzon moment
12:02:06Farechecks bootmem section on lkdp.tk
12:02:18seletzFare: are you _sure_ you round up to 4k?
12:02:30seletzFare: and got the start addr right?
12:02:46seletzFare: what addr did you specify?
12:03:39Fareoops, my blob/memory.c patch was really fux0red
12:03:45Fareis ashamed
12:04:29seletzFare: just change src/blob/linux.c and specify start=0xc0100000, len=15MB
12:04:43seletzFare: just for a test, that is
12:05:48seletzFare: ok?
12:06:36Fareok
12:06:54Farewell, first, I'll try to put my head completely out of my ass
12:07:11Fareif it doesn't work, I'll try what you say
12:08:21seletzlol
12:16:37Farehum. Still the same.
12:17:54Faregrrr
12:19:33seletzFare: you did recompile your kernel, did you? To match its new starting addr, that is.
12:20:48Farehum, actually I still load the kernel 0xc0068000 and use 0xc0060000 len=0x00fa0000
12:22:50seletzhmm, sounds right.
12:23:09seletzFare: do you see the zone allocations?
12:23:16seletzFare: at kernel boot, that is
12:23:21seletzerm, startup
12:24:16FareI see nothing more than I pasted
12:24:46seletzugh
12:24:59seletzFare: actually, i think its LAK time :)
12:25:12seletzFare: (i mean ask tha list, man!)
12:28:07seletzFare: it may well be that i gave you a _completely_ wrong direction, so i think it's better to ask the list. The're much more competent there.
12:28:41Fareyou've been very helpful
12:48:02Fareputs printk statements in bootmem.c and retries...
12:59:17Fareouch, at first look, it seems that linux BOTH detects 16MB of RAM by itself and then uses the blob memory ma
12:59:18Farep
12:59:22Fareor something similar
13:01:39Fareyup that's it
13:02:24Farehelp!
13:03:52seletzFare: hmm, look at your board code arch/arm/mach-sa1100/jornada.c or similar
13:04:09seletzFare: ther watch out to _not_ report memory by yourself, but
13:04:21seletzFare: instead trust the ATAG_MEM tag.
13:04:27seletzFare: got me?
13:04:47Fareyup
13:04:49Farelooking...
13:04:57seletzthe call is ...
13:05:44Faredamn I feel stupid, at times.
13:06:11FareIndeed, I had copied it from jornada720.c, that does not use blob but initializes its stuff by itself.
13:06:13seletzFare: what template did you take? Lart? assabet?
13:06:29FareI used jornada720 as a template. Maybe I was wrong.
13:06:46seletzone moment, im looking
13:07:11seletzline 62: SET_BANK( 0, 0xc0000000, 32*1024*1024 );
13:08:03Fareyup, I'm removing that
13:08:14Farethere's also a BOOTMEM() line. Shall I keep it?
13:08:17seletzFare: either remove it, or hack it. :)
13:08:42seletzone momen
13:09:40seletzFare: i'd hack it to BOOT_MEM( 0xc0060000, .... )
13:09:53seletzFare: have corrected the BOOT_PARAMS() too?
13:11:04FareI don't need correct it, do I?
13:11:26FareI mean, 0xc0000100 looks correct to me
13:11:38seletzhmm.
13:11:38Fareand if it did try to map the blob-given map, then it works
13:11:51FareI don't have flash
13:11:59Faredo I need a map_io() function?
13:12:52seletzFare: hmm, yust comment it out, but leave in the maps. opne never knows
13:13:48seletzFare: as for boot params: i dont know how the kernel will react, because you tell him: hey, i have memory from A-B, and pootparams are not in that range.
13:14:23seletzFare: i'd change it to 0xc0060100.
13:14:33seletz(and change blob too.)
13:14:41Farethat's ok, I'll map 0xc0000000 to 0xc005c000 :)
13:14:42seletzbut hey, give it a try without ....
13:15:15Faremap_io worries me a bit
13:15:19Farethe register_uart, too
13:15:32seletzFare: btw, is there a chance that you know about keyboards, console devices etc?
13:15:42seletzFare: why?
13:15:59FareI know zilch about the keyboard, etc.
13:16:19FareI mean, oleg gushev has opened his box and collected datasheets for the parts, but that's all I know
13:17:13seletzFare: nah, not related to your jornada project. I thought you could help me with my little prob here...
13:17:18Fareso I know the keyboard controlled is a spicoder sa01 ur5hcspi-sa01
13:17:27Fareseletz: sure
13:17:34Fareif you think I can be helpful
13:18:28seletzFare: well, all i want is to _write_ to the keyboard controller. So i'd like to use some generic interface for that (i.e. like open( "/dev/kbd", ..) ioctl() ).
13:18:44seletzFare: but i cant find anything...
13:24:23Faremaybe because there *isn't* anything.
13:27:12seletzFare: thats what i fear
13:35:30Fareon the PC, such a device was specifically not made
13:35:57Farebecause the same register was used to control many different things including the A20 line, and linus does NOT want any user, even root, to control that
13:36:25Fareand he didn't care to include a mux to just send commands
13:37:00seletzargh
13:37:19Farethere is progress:
13:37:22seletzok, i see. I'll end up with copying sa1111_keyboard.c
13:37:27Farenow it dies right AFTER bootmem.c
13:37:32seletzlol
13:37:38Farebut no message whatsoever.
13:38:01seletzyou should _really_ ask at the LOK list.
13:38:12seletzthings sound quite odd.
13:38:23seletzs/LOK/LAK/
13:40:07Farenah
13:40:25Faremaybe I get no more message because linux does initialize the serial line at a different speed?
13:40:44seletzgrep SPEED .config
13:40:56seletzi.e. its a config option.
13:41:34seletzbut IMHO you would see some garbled output in that case.
13:47:52Farethere is no SPEED in .config
13:48:27seletzCONFIG_SA1100_DEFAULT_BAUDRATE
13:48:29seletzsorry
13:49:18seletzadd printk's in your fixup and init routines
13:51:14seletzand in main()
13:55:07Farewhich main() ?
13:55:15seletzkernel main
13:55:17Farethe baudrate is correct (115200)
13:56:44Farewell, init/main.c has two printk's around setup_arch, and I only see the first
13:56:49Fareso let's recurse :)
13:57:12Faresee what I told you about the edit-compile-crash cycle of C as compared to FORTH?
13:58:05seletzFare: so add printk to your fixup routines.
13:58:17seletzFare: and yes, i see your point.
13:59:26seletzFare: This will somewhat go away when we have a kernel debugger. Some folks even use gdb via serial line to debug the kernel (no, i'm not doing so).
14:03:11Farethat still won't help with initial porting, will it?
14:08:10Fareok. I dies in init_paging
14:08:28FareI mean, paging_init()
14:13:16seletzurg.
14:13:23seletzbad karma.
14:14:01seletzok, i'd fill up paging_init() with prink's and try again.
14:14:03seletzlooking
14:15:35seletzhmmm
14:15:39seletzmdesc->map_io()
14:16:07Farepaging_init: memtable_init
14:16:14Farethere you go
14:16:19Farerecurse once more
14:17:06Fareor maybe the mdesc->map_io()
14:17:15Faredarn. I didn't put enough of those printk's
14:17:35seletzfill it up. saves time. put _many_ printks in.
14:18:02seletzespecially in your fixup code arch/arm*/*/jornada8*.c
14:18:10FareI removed the fixup code
14:18:31seletzthe map_io is still in, is it
14:19:09seletzhave you left in the init routine?
14:19:17seletzjoprnada720_init()
14:19:47Fareyup
14:19:50Fareit doesn't print
14:20:04Farewhat's desc->mapio() ?
14:20:15seletzok. Beware though, there they do some GPIO stuff.
14:20:37seletzi guess it comes from jornada*_map_io():iotable_init(jornada720_io_desc);
14:21:00seletzhave a sa1111?
14:21:04Fareno.
14:21:07FareA SA1101
14:21:20FareSA1100 + SA1101
14:21:38seletzok. what mem range does the SA1101 use?
14:21:47FareI have no idea
14:22:00Fareshould I put it around here
14:22:12Fareif it's the jornada*map_io, then it doesn't get called
14:22:13seletzok, comment the SA1111, flash and epson fb regions out
14:22:22FareI removed them indeed
14:22:33Farehere's my map io w/o printk:
14:22:44Faresa1100_map_io();
14:22:57Fareiotable_init(jornada820_io_desc); (but the desc is empty)
14:23:09Faresa1100_register_uart(0, 3);
14:23:17Faresa1100_register_uart(1, 1);
14:23:17seletzFare: you left in the LAST_DESC?
14:23:20Fareyup
14:23:32Farebut the printk before each line doesn't show
14:23:53seletznot one printk from thios func shows up??
14:24:01Fareso it must be wrong in memtable_init
14:25:00seletzFare: debug the mi ptr, the page_nr and the pte
14:25:15that is the point you dumb idiot
14:25:15Farewhat's that?
14:26:16Sorry, seletz, I'll keep my mouth shut.
14:26:16seletzibot: shut up
14:26:27Sorry, Fare, I'll keep my mouth shut.
14:26:27Fareibot: shut up
14:26:40seletzFare: vars in memtable_init()
14:26:43Fareok
14:26:48seletzi feear its the alloc call.
14:27:30Farein FORTH or LISP, it's easy to turn on a trace mode so that all the calls you want are traced.
14:27:37seletzFare: but i really have no deep inight into those routines at all, so beware.
14:27:39Farewithout your having to add printk's everywhere
14:28:03seletzFare: the're interpreted languages, aren't they?
14:28:43seletzaskins something on kernelnewbies
14:32:50seletzugh
14:33:03seletzman, its sooo hot in here...
14:33:25seletzis dehydrated
14:33:48Fareseletz: there are C interpreters, too
14:33:54Fareand forth and lisp compilers
14:34:06Farethey are *dynamic*, *interactive* languages
14:34:15Farethat doesn't mean they are not compiled
14:35:28seletzyup. once you interactively compile things you can add generic debug code, like in "sh -x script".
14:36:18Farerecursive debugging: it dies while clearing some entries
14:36:32Fareyup
14:36:34seletzFare: link all my (userspace) progs against a libdebug.a, then i can switch on/off _dynamically_ at _runtime_ trace logs. Nicely indented, with function names, vars etc.
14:37:01Farehow does it instrument code?
14:37:11seletzFare: i have to use some macros, though. That saved a hell lot of time.
14:37:15Fareyou cannot do that just by linking
14:37:22seletzmacros
14:37:30Faresure, but you cannot add it like that to an existing program.
14:37:35seletzno
14:37:44seletzthats right
14:37:56seletzthats what strace is for
14:38:02Farewhereas with lisp or forth macros, you can
14:38:08Farestrace is only for system calls
14:38:15Fareltrace does library calls for you
14:38:30Farestill
14:38:45seletzagreed. Btw, you run in open doors ....
14:39:34Farethe doors are open, but no one seems to care
14:39:46Fareanyway, I'm through with it for now
14:39:50seletzI definitely see your arguments. THats why i get used to the following model: 1) program little C core utilities and 2) wrap them with scrips
14:39:52Faregot other things to do
14:39:54seletzor
14:40:31seletz3) write a big C program with _lots_ of script calling functions (pre/post style scripts). That way you can
14:40:44seletztweak things w/o recompiling the core.
14:41:14seletzanyway, that does'nt help with existing plain C code.
14:42:33seletzmaybe if one tweaked gcc to somehow insert a generic function call on enter/exit of all compiled functions, then you'd come a little closer to what you want.
14:42:56seletzbut that would be a ugly hack at most. sigh.
14:43:38seletzFare, ok, so long. I'm off. Sorry i could'nt help more, though.
14:45:32seletz_leavingsee ya
14:55:34Fare(thanks for all)
15:40:44prpplaguemorning all
15:40:59prpplagueFare: that page on printascii help ya?
15:42:02Farevery much
15:42:04Farethanks a LOT
15:42:18prpplagueFare: great
15:42:21Farenow I know better where the kernel dies
15:42:25Fareunhappily it is very soon
15:42:31Fareor maybe not
15:42:42prpplagueFare: i try to document as many things as i can
15:42:45Farei.e. maybe printascii also helps it die sooner
15:43:00Fareprp: this bit was great - just what I was looking for
15:43:57Farecurrently, printk/printascii ceases to work when the kernel unmaps the io in mm/mm-armv.c, and from then on, nothing works anymore :(
15:44:36Farewhat should I do, then?
16:05:47prpplagueFare: hmm, thats odd, because, printk/printascii should work all the time because its hardcoded output to the serial port
16:06:20prpplagueFare: sounds like something is being mapped incorrectly and hosing the kernel
16:27:25Faremaybe
16:27:32Fareprobably
16:27:54Farermk says that it's normal that printascii would fail at that very moment
16:28:06Farebut not that it wouldn't come back after the end of the function
16:29:15FareI have no idea what I hosed and how
19:26:20Russ|werkhas anyone tested the new amd32.c yet?
19:26:31Russ|werker, its just fare and prpplague
19:28:41Faregimme a board, I'll test it :)

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.