**** BEGIN LOGGING AT Fri Feb 17 10:59:56 2006 Feb 17 14:02:59 NAiL, What are you doing up? Feb 17 14:03:20 I'm trying to wrap my brain around why the DoC isn't detected Feb 17 14:03:39 I see. Feb 17 14:04:02 I *have* slept (and it's 15:04 here) Feb 17 14:04:10 Don't forget that there's no better problem-solver than the good 'ole "sleep on it" Feb 17 14:04:20 Well, kinda Feb 17 14:04:26 oh. sorry. I thought you were on the opposite shift. Feb 17 14:04:33 must be eFfeM then Feb 17 14:04:44 heh, I'm on all shifts :-P Feb 17 14:04:49 hehehe Feb 17 14:05:46 I'm considering paying whoever gets the DoC working though Feb 17 14:06:09 I've spent most of this week sifting through code and tearing my hair out Feb 17 14:06:40 Unfortunately, I seem to be the only "developer" having a ds101 Feb 17 14:06:48 And I'm not much of a developer Feb 17 14:07:07 (although I've actually written a kernel module!) Feb 17 14:09:41 The two major tasks remaining on the ds101 is getting DoC working and getting network up. I don't think getting network up will be hard, but the mac-address is stored in flash, so it's blocked by the DoC stuff. Feb 17 14:13:28 cool. A kernel module! :) I've only modified an existing one but I've learned a whole lot. Feb 17 14:13:36 DOC are not exactly simple modules though. Feb 17 14:13:51 So there's a DOC on the DS101. Nice. Feb 17 14:14:01 no, it's not nice :-P Feb 17 14:14:05 I'd prefer CFI Feb 17 14:14:11 well, when it works that is. Feb 17 14:14:16 yeah Feb 17 14:14:24 It doesn't have USB? Feb 17 14:14:46 It's got three USB2-ports, plus one internal port Feb 17 14:14:56 the internal port is like the slugs internal ones ;) Feb 17 14:15:18 so you don't necessarily need the DOC then? Well, it would be nice to have anyways but... Feb 17 14:15:31 Well, I need the DoC to flash Feb 17 14:15:36 oh! Feb 17 14:15:50 Since redboot doesn't recognize the flash, I can't upgrade Feb 17 14:16:01 btw, is a simple 'svn update' in my slugos-3.6-beta folder enough to track your changes? Feb 17 14:16:04 I see. Feb 17 14:16:13 yes, svn update is enough Feb 17 14:16:49 svn is not decentralized like monotone right? so I can ci/co locally. Feb 17 14:17:20 you can't commit locally afaik Feb 17 14:17:35 ie, when you commit it sends stuff to the server Feb 17 14:19:21 ok. not a problem. Feb 17 14:19:29 So I can just make changes and leave them be. Feb 17 14:19:51 yeah Feb 17 14:19:57 I guess I'll wait for the release anyways so I don't waste my time as there's only 1 1/2 month before the competition. Feb 17 14:20:25 hopefully you guys we'll be able to release it before then. If not I'll just retrofit the old one. Feb 17 14:22:43 Yeah, there's not that much left. I just can't focus on it right now because of the darn ds101 :-P Feb 17 14:22:55 It's all Alan Cox' fault for the working IDE-driver ;) Feb 17 14:23:14 (or dwery) ;) Feb 17 14:24:46 hehe Feb 17 14:24:56 I wish I could help allevitate your pain. Feb 17 14:25:09 I could provide a gun? ;) Feb 17 14:25:18 nah Feb 17 14:28:47 just find me a kernel hacker :P Feb 17 14:30:24 hehehe. I wish I knew one! Feb 17 14:30:54 After my robot competition, I'm going to spend more time trying to learn the intricacies of the linux kernel. Feb 17 14:31:04 Writing drivers to help out. Feb 17 14:32:18 yeah Feb 17 14:33:12 * VoodooZ adds another item to his TODO list... Feb 17 14:34:14 heh.. I need an usb->gpio-adapter Feb 17 14:34:46 I also need to sleep a bit Feb 17 14:35:59 usb->gpio? Feb 17 14:36:23 That should be easy to do with a AVR mega8 and the USB stack. Feb 17 14:36:32 only 1.5mbps but easy to implement. Feb 17 14:36:51 Or you could go the integrated way with one of those USB i/f chip. Feb 17 14:38:44 NAiLzZz, good night. Feb 17 15:29:19 Great! I found a local source for a ZD1211 based USB dongle. A Airlink AWLL3026 for 30$!! yipee Feb 17 16:28:27 VoodooZ: Excellent book on linux device drivers (downloadable in pdf): http://lwn.net/Kernel/LDD3/ Feb 17 16:30:45 yep. I bought it. Just never got the time and motivation to read and experiment. Thanks though. Feb 17 16:31:12 although I did peruse select chapters. Feb 17 16:31:47 I also have the other oreilly classic "Understanding the Linux Kernel" Feb 17 16:32:38 Yeah. I've got that one too. Covers 2.4. Do you know if there is an updated on that covers 2.6? Feb 17 16:34:30 I'm not sure but I thought they did announce it recently. Feb 17 16:35:17 actually they did: http://www.oreilly.com/catalog/understandlk/index.html Feb 17 16:35:28 damn. another book I'll never use. Feb 17 16:36:53 cu-el :) Feb 17 17:33:04 Hello! Feb 17 17:33:39 I think I need help... I am trying to build/make a library and application on the slug and so far, I get many error messages... Feb 17 17:34:01 The latest from make is "curses.h not found" Feb 17 17:34:05 any ideas? Feb 17 17:35:34 install libcurses-dev :) Feb 17 17:36:07 "cannot find package" Feb 17 17:36:18 http://ipkfind.nslu2-linux.org Feb 17 17:36:44 http://ipkgfind.nslu2-linux.org Feb 17 17:37:05 http://ipkgfind.nslu2-linux.org/result.php?query=curses.h&searchtype=file§ion= Feb 17 17:40:06 I just installed ncurses-dev_5.4-r8 and I am still getting the same error... Feb 17 17:40:28 run ./configure again Feb 17 17:40:36 ok, one moment Feb 17 17:43:11 Ok, thanks, that nailed that error. Now I have some other errors I have to look into. Thanks again! Feb 17 17:50:15 no prob Feb 17 18:13:17 hi guys Feb 17 18:25:16 hey Feb 17 18:48:58 bah linksys is such a cheapskate, limiting the download speed :S Feb 17 18:49:41 bastards! Feb 17 18:51:46 strange when i try to make menuconfig on the linux sources it complains that ncurses cant be found, but they're installed Feb 17 18:59:54 neongrau: yeah, but do you have the headers? Feb 17 19:01:23 dunno, but one should think they're included with the unslung-devel package Feb 17 19:03:05 see if you can find ncurses-dev Feb 17 19:03:16 I don't think it's included by default Feb 17 19:05:38 but why does it need the headers at all? make menuconfig should use the libs as its acting like a normal app. nothing gets compiled in that moment Feb 17 19:06:30 no, make menuconfig compiles a ncurses app Feb 17 19:06:36 thus needs the headers Feb 17 19:06:45 if you do make config, it'll not need ncurses I think Feb 17 19:07:27 yep that works. but the times when it made sense using make config are long gone Feb 17 19:08:28 the sheer number of options in todays kernels make it useless (imho) Feb 17 19:10:39 and btw. the exact error is "Unable to find the Ncurses libraries". no word about headers Feb 17 19:12:46 install ncurses-dev and you're done Feb 17 19:13:30 there no such thing Feb 17 19:14:27 grr i thought i could just leave that and modify the .config file manually Feb 17 19:14:57 but the original kernel sources from linksys won't compile since they left garbage inside *grrrrr* Feb 17 19:15:12 make[2]: *** No rule to make target `/mnt/hdc2/CVS/NSLU2/linux-2.4.x/include/linux/stringify.h', needed by `/mnt/hdc2/CVS/NSLU2/linux-2.4.x/include/linux/spinlock.h'. Stop. Feb 17 19:15:34 neongrau: scroll up about 20 lines, re ncurses Feb 17 19:15:48 libncurses-dev ? Feb 17 19:16:09 nope Feb 17 19:16:24 what system are you developing on? Feb 17 19:16:46 unlsung Feb 17 19:17:17 i'm not developing is just wanted to build the f**king reiserfs module Feb 17 19:25:10 I'm sure that Hans would appreciate that :) Feb 17 19:27:07 hmm i think i should better dump unslung. too many basic tools are either missing or not working Feb 17 19:27:36 thats interesting comment... Feb 17 19:27:52 what tools are you refering to. Feb 17 19:28:09 first it was "uptime" Feb 17 19:28:27 i needed to manually compile coreutils to get it to work Feb 17 19:28:42 what part of coreutils? Feb 17 19:28:57 (what specifically did you need?) Feb 17 19:29:09 uptime Feb 17 19:29:30 and a proper grep since the busybox grep is useless Feb 17 19:29:46 so you could either use openslug or the new debianslug Feb 17 19:31:59 another thing is updatedb for the locate tool, locate works but without updatedb its useless too since the busybox updatedb doesnt work too Feb 17 22:55:15 just saw someone whine in #nslu2-linux Feb 17 22:55:34 hmm= Feb 17 22:55:35 ? Feb 17 22:57:08 i saw neongrau which seemed whiny, commented on it/asked people who use busybox more than me if they ever found it lacking, and when i stuck my screen i managed to say it in here onstead of there ;P Feb 17 23:35:41 busybox *is* lacking though Feb 17 23:35:56 It's a great tool, for some tasks Feb 17 23:47:10 NAiL: no DoC this night? :) Feb 17 23:48:11 heh, not yet Feb 17 23:48:19 I don't know where to start Feb 17 23:49:08 I'm considering paying someone to figure out what is different between the 2.4-sources and the 2.6-sources Feb 17 23:52:55 Since I know the 2.4-source works, it's gotta be possible to figure out what is different ;) Feb 18 00:07:33 I've looked through the diffs three or four times, and the only relevant stuff I see is CS0 setup, 16bit wide bus. Feb 18 00:07:40 (and the wildly differing driver) Feb 18 00:19:09 does someone here have a bit of free time and developper skills to spare? Feb 18 00:20:08 I am trying to compile a small proggie to use on my slug and so far, I am stuck... If anyone would care to lend me a hand... Feb 18 00:21:59 anyone? Feb 18 00:22:39 for those interrested, I am trying to make artnet-examples from here : http://www.nomis52.net/?section=projects§2=artnet&page=libartnet Feb 18 00:33:05 NAiL: paying? did you filled your paypal account: :-D Feb 18 00:33:27 Not by an enormous amount yet. I'm up to 51.25 :-P Feb 18 00:33:56 Going to fill it up a bit when I get money in the end of the month tho Feb 18 00:34:21 This is a bit annoying though. It appears that synology removed jtag and com1 from the ds101j... Feb 18 00:34:40 A tiny CN2 has shown up instead, with 6 pins. Feb 18 00:35:05 I need to dig up my multimeter and see if I can figure out what it is. Feb 18 00:35:30 btw, there's a chip next to the DoC that I cannot identify Feb 18 00:35:38 Which also is gone on the ds101j Feb 18 00:35:41 photo? Feb 18 00:36:31 I have a blurry one, but it's just like the RTC only with 14 legs. Feb 18 00:36:56 can you read the markings? Feb 18 00:37:06 It's a TI chip, 3[B8]AK7JK Feb 18 00:37:14 LVC14A Feb 18 00:37:24 Not sure if it's a B or an 8 Feb 18 00:38:58 (like the rtc, only longer of course) Feb 18 00:39:01 mm Feb 18 00:39:39 74LVC14 I'd say Feb 18 00:39:42 hex inverters Feb 18 00:40:00 Which doesn't tell the non-EE NAiL anything :-P Feb 18 00:40:23 you throw in a 0 and get out a 1 ;) Feb 18 00:40:27 and vice versa ;) Feb 18 00:41:28 heh, ok Feb 18 00:49:41 Anyway, looking at the differences in the code is as of yet a bit too much for my skills. Feb 18 00:50:35 I might be learning fast, but this is a bit too much of a steep learning curve ;) Feb 18 00:53:11 I think you spotted the biggest differences... Feb 18 00:53:18 there must be something subtle left... Feb 18 00:53:27 anyhow I can't explain why it doesn't work in redboot Feb 18 00:53:47 possibly. But finding this "subtle" part in a 7mb diff isn't the easiest thing :-P Feb 18 00:53:54 btw, do you have the sources there? Feb 18 00:54:08 I want you to look at a file and see if that's the missing bit :-P Feb 18 00:54:55 in drivers/mtd/maps/ixp425.c Feb 18 00:55:21 please send me a tar with the necessary files Feb 18 00:56:48 mail? Feb 18 00:57:23 dwery@nslu2-linux.org ;) Feb 18 00:58:41 512k tar.bz2 sent. It should be everything that would be relevant for interpretation, methinks Feb 18 00:59:38 ty Feb 18 00:59:40 n Feb 18 00:59:47 s/n/np/ Feb 18 00:59:47 NAiL meant: np Feb 18 01:00:00 my p and e keys are slow... Feb 18 01:03:22 ok, I'm in ixp425.c Feb 18 01:04:31 I'm just wondering about the B1/B0 stuff, and the ixp425_copy_from Feb 18 01:04:49 ixp425_read16/write16. Feb 18 01:04:51 yep.. byteswap due to endianness.. aren't those therein 2.6 ? Feb 18 01:05:56 hmm Feb 18 01:05:58 NAiL: the kernel you're trying now has by any chance other ptd types enabled? Feb 18 01:06:03 ptd? Feb 18 01:06:03 s/ptd/mtd/ Feb 18 01:06:04 dwery meant: NAiL: the kernel you're trying now has by any chance other mtd types enabled? Feb 18 01:06:28 My custom one? No. Switched off all the cfi stuff Feb 18 01:07:02 I can switch it back on when the DoC works ;) Feb 18 01:09:18 greate, as it seems other detections might interfere with the doc Feb 18 01:09:33 yeah, I read that comment from the ixp425.c earlier Feb 18 01:09:55 fl_init()... Feb 18 01:09:56 I basically disabled it almost from the start, to reduce the time spent compiling when I changed a header Feb 18 01:10:32 oh yeah.. fl_init, which calls fl_Init, which calls Fl_Init iirc Feb 18 01:10:42 they're great at naming their function calls Feb 18 01:15:05 did you noticed ioremap vs ioremap_nocache? Feb 18 01:16:01 yeah, tried swapping in the 2.6 sources Feb 18 01:16:03 no joy Feb 18 01:16:17 ok Feb 18 01:20:09 hmm Feb 18 01:20:15 haven't tried it with the latest changes Feb 18 01:20:19 * NAiL tries again Feb 18 01:20:29 If that's the problem, I'll shoot my foot off :-P Feb 18 01:21:40 i wouldn't bet on it Feb 18 01:23:11 the 2.6 driver is nand/diskonchip.c right? Feb 18 01:23:50 yeah Feb 18 01:26:29 hmm Feb 18 01:28:09 I broke my darn serial port Feb 18 01:28:16 Need to resolder Feb 18 01:29:00 And I don't have a soldering iron handy Feb 18 01:29:35 ach Feb 18 01:30:27 the ReadDOC define is the one in include/linux/mtd/doc2000.h ? Feb 18 01:30:41 yeah, but I later understood how it works Feb 18 01:30:51 isn't 32bit wide? Feb 18 01:31:00 huh? Feb 18 01:31:08 #define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)))) Feb 18 01:31:11 that's 32bit wide Feb 18 01:31:15 heh Feb 18 01:31:20 damn, I missed that Feb 18 01:31:51 check if it really thah one with a #error directive in the file Feb 18 01:31:52 hmm... any ideas on how to emergency solder? :-P Feb 18 01:32:15 yep.. heaten screwdriver Feb 18 01:32:47 uh Feb 18 01:32:53 I "fixed" that one Feb 18 01:33:05 ie, I switched the ppc and arm definitions Feb 18 01:33:11 that's when it stopped panic'ing Feb 18 01:34:39 uh good ;) Feb 18 01:34:47 ok. Feb 18 01:35:16 now, it seems there's no byte swap at all Feb 18 01:35:23 endianness is not taken in account Feb 18 01:38:52 so it will probably work only in LE mode Feb 18 01:39:52 well, it doesn't :-P Feb 18 01:40:04 I don't know if the cpld does some magic there Feb 18 01:40:23 nothing in the code suggests it is involved Feb 18 01:43:25 hmm Feb 18 01:44:25 can you check the ReadDOC define in 2.4? I don't have it Feb 18 01:45:18 it's not there Feb 18 01:45:22 oh Feb 18 01:46:17 looks like the same Feb 18 01:46:28 #define ReadDOC_(adr, reg) ((unsigned char)(*(__u16 *)(((unsigned long)adr)+((reg)<<1)))) Feb 18 01:46:31 #define WriteDOC_(d, adr, reg) do{ *(__u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d; wmb();} while(0) Feb 18 01:46:35 yep Feb 18 01:46:44 static inline unsigned char _ReadDOC_(unsigned long adr, int reg) Feb 18 01:46:44 { readb((adr ^ 0x04000000) & 0xf4000000); /* read other flash chip */ return(readb(((unsigned long)adr)+(reg))); Feb 18 01:46:47 } Feb 18 01:46:58 uh? Feb 18 01:46:59 "read other flash chip"? Feb 18 01:47:10 * NAiL goes *huh* Feb 18 01:47:29 can't fine that definition with grep in the code Feb 18 01:47:55 It's in include/linux/mtd Feb 18 01:48:01 (in the comĂplete tree) Feb 18 01:48:02 yes, I mean it seems not used in any .c Feb 18 01:48:14 oh Feb 18 01:48:23 anyway.. ReadDOc is the same.. Feb 18 01:48:30 probing code seems compatible Feb 18 01:50:12 it should have worked ;) Feb 18 01:50:51 exactly ;) Feb 18 01:51:16 where's the probing address specified in 2.4? Feb 18 01:52:38 drivers/mtd/msys/tffs2lnx.h:#define FL_DOC_PHYS_ADDR_LOW 0x50000000l Feb 18 01:53:07 in docprobe.c I can;'t find any reference toit Feb 18 01:53:34 maybe CONFIG_MTD_DOCPROBE_ADDRESS ? Feb 18 01:54:00 docprobe.c is the old driver Feb 18 01:54:17 in 2.4 I mean Feb 18 01:54:44 it's not using that driver in 2.4 I think. It's using the one under msys Feb 18 01:55:04 _docbdk.h:#define DOC_LOW_ADDRESS 0x50000000L Feb 18 01:55:04 tffs2lnx.h:#define FL_DOC_PHYS_ADDR_LOW 0x50000000l Feb 18 01:55:06 uh right Feb 18 01:58:19 IXP425_EXP_CS0 is set after detection in 2.4, right/ Feb 18 01:58:20 ? Feb 18 01:59:52 after detection? Feb 18 02:00:10 yep Feb 18 02:01:08 bit odd Feb 18 02:01:14 you confirm? Feb 18 02:01:50 i can't find the detection routine in the msys subdirectory Feb 18 02:02:47 yes, it's set after detection Feb 18 02:03:30 *grepping source* Feb 18 02:03:41 FLBoolean checkWinForDOC(unsigned socketNo, NDOC2window memWinPtr) Feb 18 02:04:20 wtf? Feb 18 02:04:27 Fl_Init is nowhere in the sources Feb 18 02:04:30 seems a detectio routine.. Feb 18 02:05:08 but for older devices Feb 18 02:05:15 you id should be 0x41? Feb 18 02:05:30 0x40 or 0x41, not sure Feb 18 02:06:18 ok, that's the one: FLBoolean checkWinForDOCPLUS(unsigned socketNo, NDOC2window memWinPtr) Feb 18 02:06:23 ah, the checkWinForDOC is Feb 18 02:06:25 heh Feb 18 02:06:29 it's the one :) Feb 18 02:06:44 which is quite different from the one in the 2.6 kernel Feb 18 02:07:17 03bzhou * 10unslung/make/lua.mk: lua 5.1 release upgrade Feb 18 02:07:59 hmm Feb 18 02:08:06 it does three reads, *then* one from 1fff Feb 18 02:08:13 I don't think that's what I've been doing Feb 18 02:08:21 NreleasePowerDown is 0x1FFF Feb 18 02:08:49 so i think is reading 4 times from 0x1fff Feb 18 02:09:09 /* perform 3 reads from anywhere + 1 from 0x1fff */ Feb 18 02:09:09 for(i = 0;( i < 4 ); i++ ) Feb 18 02:09:09 junk += flRead8bitRegPlus(flash,NreleasePowerDown); Feb 18 02:09:18 That will read four times? Feb 18 02:09:28 yes Feb 18 02:09:36 junk == ... bleah!!!! Feb 18 02:09:37 aha, bit rusty on that kind of loop ;) Feb 18 02:09:38 += Feb 18 02:10:01 uh... why do they do that? Feb 18 02:10:11 then junk = DOC_CNTRL_DEFAULT | DOC_CNTRL_MODE_RESET; Feb 18 02:10:14 dunno.. but they know.. the chip is theirs Feb 18 02:10:24 :D Feb 18 02:10:36 I assume that NreleasePowerDown just returns zero Feb 18 02:10:54 NreleasePowerDown is a #define Feb 18 02:11:17 yeah, but reading from 1fff I meant Feb 18 02:11:25 probably Feb 18 02:11:45 before that, the setDOCPlusBusType is called Feb 18 02:12:10 to configure the bus in 8 bit mode i think Feb 18 02:13:26 I think you just need to clone that detection function Feb 18 02:15:24 hmm Feb 18 02:15:48 I'll have to look at it tomorrow. I don't think it'll be nice code though :-P Feb 18 02:16:12 and, obviously, the whole bus setup which also choices the appropriate functions to read/write on the bus Feb 18 02:16:29 but you might be able to detect it using everything in 8bit mode Feb 18 02:17:31 but once detected.. does the kernel support that trueffs thingy? Feb 18 02:17:58 Dunno Feb 18 02:18:42 One should think so, since it's kindof a part of the chip design Feb 18 02:18:50 ok... Feb 18 02:18:51 so Feb 18 02:18:55 I Feb 18 02:19:04 I'm confident you will detect it tomorrow Feb 18 02:19:18 Yeah, I'll have to go home and solder and see :) Feb 18 02:35:50 nite, I'll report tomorrow afternoon ;) Feb 18 02:36:02 nite :) **** ENDING LOGGING AT Sat Feb 18 10:59:56 2006