**** BEGIN LOGGING AT Wed Feb 15 10:59:56 2006 Feb 15 13:54:57 NAiL, Pong Feb 15 13:55:06 uhm.. yes... Feb 15 13:55:10 eFfeM-log, Good news! I have an OE package for flite. Feb 15 13:55:11 I was going to ask you something Feb 15 13:55:25 ah, do you know much about usb in the kernel? :) Feb 15 13:55:30 let me guess: you forgot? ... :) Feb 15 13:55:52 not enough. Feb 15 13:56:09 hehe, ok Feb 15 13:56:15 I read the USB section of the LINUX KERNEL book but real quickly. Feb 15 13:56:20 why? Feb 15 13:56:55 I wondered if you could give me a hint on lighting up a led when something is plugged into a specific port Feb 15 13:57:21 good one! Feb 15 13:57:26 hehe Feb 15 13:57:44 I guess the usbfs/sysfs would have something to do with that. Feb 15 13:58:19 In fact, you might be able to write a quick script that monitors the sysfs. Feb 15 13:58:32 Or better a hotplug script. Feb 15 13:58:53 yeah, I just haven't found a udev identifier which tells me where it's been plugged in Feb 15 13:59:13 The problem I think is that it's non-specific to the port it's plugged in. Feb 15 13:59:42 try and see if the sysfs ID is related to the port it's on. Feb 15 14:01:43 \/sys/bus/usb/devices/ should be your guide with dmesg. Feb 15 14:05:28 yeah Feb 15 14:05:30 NAiL, I would try it for you but I don't have physical access to my slug from work (here). Feb 15 14:05:38 the numbering just makes me confused Feb 15 14:06:09 me too! Feb 15 14:06:36 especially when you plug a hub in there! :) Feb 15 14:06:52 yeah Feb 15 14:11:14 The important numbers are M-N ones. representing device/port and anything after ':' represents one of several (i applicable) configuration for the device in question. (I think) Feb 15 14:11:59 for example in my /sys/bus/usb/devices/1-2/ there is a manufacturer file which contains APLUX for my USB2 camera. Feb 15 14:12:16 the other 1-2 entries are subconfigs of this device. Feb 15 14:13:03 My cheap USB1.0 hub shows up as 2-1 w/ a manufacturer name of ALCOR. Feb 15 14:13:26 And then there's a bunch of sub-entries under it 2-1:* as it's a hub... Feb 15 14:13:38 yeah Feb 15 14:14:00 now the question is wether or not these represent actual ports. Feb 15 14:14:45 USB1 is the EHCI one (USB2.0) and the USB2/3 ones are OHCI ports. Feb 15 14:17:24 Yep. and anything under (2-1.n) is a device plugged in my hub. as such my 2-1.1 is my kingston flashdisk Feb 15 14:18:33 I do believe the numbers represent fixed physical ports as my home made USB-to-I2C device is in fact in the 3rd port and it shows under 2-1.3 Feb 15 14:19:01 so the Hotplug script should be able to use the variables it's passed to determine where it's plugged. Feb 15 14:19:47 hmm Feb 15 14:19:56 ok, I'll look at it a bit later today I think Feb 15 14:20:02 I'm kinda tired now ;) Feb 15 14:20:11 cool. Feb 15 14:20:19 (and I've got ds101j-support to add to the kernel) Feb 15 14:20:43 There's a good howto somewhere on google for hotplug scripts. Feb 15 15:48:46 hi, is there a way to change the ip address permanently with a running openslug? Feb 15 15:50:03 I get this on 'make update': ( cd optware ; cvs -q update -d -P ) Feb 15 15:50:03 cvs [update aborted]: end of file from server (consult above messages if any) Feb 15 15:50:03 make: *** [update-optware] Error 1 Feb 15 17:13:01 VoodooZ, saw your flite msg in the log Feb 15 17:13:06 is this already on the head? Feb 15 17:13:27 btw for everyone interested in my audio adventures; something odd happened today Feb 15 17:14:24 Yesterday I played with this ebay c-media dongle and got it working without any hassle Feb 15 17:14:55 today I bought a new hub (different brand from the one I have) and I decided to give my previous sound card a try Feb 15 17:15:52 and lo-and-behold, it worked as well. No idea yet if this is caused by alsa being initialised before by the audio dongle, or if it is caused by the new hub, or if this is just coincidence (it worked at one moment in the past for me) Feb 15 17:16:07 thought this might be interested for the imic people. Feb 15 17:59:57 eFfeM, nope. It's just an experimental thing I made. Feb 15 18:00:59 If someone wants to add it to the repo I can send a copy. Feb 15 18:02:07 eFfeM, wait a second... I got confused. Flite was already in OE. that was something else. Feb 15 18:02:26 just add flite to the packages list and it should build. Feb 15 18:05:39 VoodooZ, found this out myself. I've just build it but haven't tried it yet. Feb 15 18:06:45 do you happen to have an idea how to carve a .bb file that accesses cvs Feb 15 18:07:14 i just bought this usb dongle with the expectation that it had a zydas chipset, but apparently it is a ralink one Feb 15 18:09:34 anyone knows a quick and dirty method to grep the content of some files in a directory including sub-directories? Feb 15 18:09:58 grep patter * */* */*/* */*/*/* Feb 15 18:10:03 s/patter/pattern Feb 15 18:10:08 s/patter/pattern/ Feb 15 18:10:09 eFfeM meant: s/pattern/pattern Feb 15 18:10:13 lol Feb 15 18:10:41 eFfeM, not too sure. the best way is to copy another package's bb file and learn from it. I never did cvs before. Feb 15 18:10:50 EvilDevil, wouldn't grep -r do it? Feb 15 18:11:05 find . -print | while read $i; do ; grep patter $i; done Feb 15 18:11:18 or something like that might need return Feb 15 18:11:34 i'm not sure.. i was thinking about foreach find ... | cat $1bla | grep "STRING" .... Feb 15 18:12:47 find . -print | while read $i; do grep pl2303 $i; done ? Feb 15 18:12:57 grep -r does recursive search but that might not work under the slug. Feb 15 18:14:48 eFfeM this lists the file with pattern it their filename only... it doesn't search their content Feb 15 18:14:49 I just checked and busybox grep doesn't have -r Feb 15 18:17:10 EvilDevil, no, find gives the name, and the while loop iterates over the names and greps the string; you might need some newlines in the string Feb 15 18:17:15 best try with echo first Feb 15 18:19:29 VoodooZ, cvs requires a module argument not too sure what to add to that; decided to try on the PC first Feb 15 18:19:55 find . -print | while read $i; do echo $i ; done <- this give me lots of newlines. no output at all Feb 15 18:21:43 * */* */*/* */*/*/* Feb 15 18:21:58 the grep pattern * */* */*/* */*/*/* did the job :) thanks Feb 15 18:25:47 anybody know how to add a kernel-module on debianslug? i need md-mod and raid1 to be loaded while booting from flash. i managed to build a flashimage with md-mod.ko and raid1.ko and mdadm, but i'm not sure what config-file needs to be edited to load the modules and create the /dev/md0 entry Feb 15 18:26:04 eFfeM, yeah. The trick is to find an existing package that uses cvs. Feb 15 18:26:56 ipkg-utils-native-1.6cvs20060106 for example Feb 15 18:27:55 SRC_URI = "${HANDHELDS_CVS};module=ipkg-utils" Feb 15 18:28:05 i've found such a package, np; but after the dir there should be something like module= Feb 15 18:28:06 yeah Feb 15 18:28:20 but I have no clue what to specify for module argument Feb 15 18:28:37 it should be the cvs module name Feb 15 18:28:47 anyway the thing seems to be up on my FC system Feb 15 18:28:52 browsing the cvs folder should tell you . Feb 15 18:28:53 not connected yet though Feb 15 18:28:59 ah, ok, will do Feb 15 18:29:08 later as I have to go in a few mins Feb 15 18:29:24 cool. good to hear your sound thing works finally. Feb 15 18:29:34 Let me know if you need help with flite. Feb 15 18:29:45 do you know the magic incantation to set the ssid and wep key Feb 15 18:29:59 euh? i guess not. Feb 15 18:30:20 think it is iwconfig Feb 15 18:30:25 checking the man Feb 15 18:30:26 * VoodooZ still doesn't have a wireless setup Feb 15 18:30:58 i know there's a iwconfig and iw[tab][tab] :) Feb 15 18:31:33 iw{list,priv,config,...} Feb 15 18:32:28 * VoodooZ huges bash's filename completion (and even more with argument completion now!) Feb 15 18:33:14 bash_completion package is awsome! Feb 15 18:35:07 argument completion is a little sluggish on the slug ;) Feb 15 18:35:48 yeah, that would be overkill but on my FC box I like it so much that I forgot i didn't have it before! Feb 15 18:35:55 beewoolie-afk, morning mate Feb 15 18:36:07 VoodooZ: hey man. Feb 15 18:36:21 VoodooZ: What do you have for JTAG hardware? Feb 15 18:37:08 I have none! Feb 15 18:37:13 * VoodooZ is a rebel! Feb 15 18:37:35 * VoodooZ thinks JTAG is for sissies! ;) Feb 15 18:37:46 hehe Feb 15 18:42:13 beewoolie-afk, why? Feb 15 18:42:40 Just curious. Feb 15 18:42:48 I've been working on code to drive JTAG adapters. Feb 15 18:43:02 I've got three working so far and plan to add at leas one more Feb 15 18:43:13 good. Feb 15 18:43:38 If I ever build one it would a quick and easy one like the one on your site. Feb 15 20:53:22 I'm trying to get BT installed and I am stumbling on the following issue: Feb 15 20:53:57 bluez-libs is in slugos-packages.conf, but not in the ipkg feed. how come. a local build runs fine Feb 15 20:56:20 *blush*; the pkg dir is called bluez, the bb file bluez-libs and the ipkg libbluetooth .... Feb 15 20:58:46 user error ;) Feb 15 20:59:19 yesss Feb 15 21:03:26 stashed away the wifi for a moment to focus on BT; need some more time to make a bb file for rt2570; also have problems with it on FC (I can install it, ping it locally and remote and if I ping it from the slug when installed on the PC it keeps replying even after I unplug it, but if I do unplug the PC becomes inoperable (but ping continues) Extremely puzzled.... Feb 15 21:10:54 anyone a suggestion how to recognize my BT device: Feb 15 21:10:58 dmesg says: Feb 15 21:10:58 usb 2-1: new full speed USB device using ohci_hcd and address 3 Feb 15 21:10:58 NET: Unregistered protocol family 31 Feb 15 21:10:58 Bluetooth: Core ver 2.8 Feb 15 21:10:58 NET: Registered protocol family 31 Feb 15 21:10:59 Bluetooth: HCI device and connection manager initialized Feb 15 21:11:02 Bluetooth: HCI socket layer initialized Feb 15 21:11:03 but no /dev/hci* Feb 15 21:11:23 I don't believe it shows up as a normal device. Feb 15 21:11:35 hciconfig shoudl give you the list of configured hci devices. Feb 15 21:12:19 VoodooZ this is what I get Feb 15 21:12:20 root@NSLU2:~# hciconfig Feb 15 21:12:20 root@NSLU2:~# hciconfig hci0 up Feb 15 21:12:20 Can't get device info: No such device Feb 15 21:12:38 then you're missing a module. Feb 15 21:12:44 hciusb I believe Feb 15 21:12:54 it seems the dependency is missing. Feb 15 21:13:00 ah ok sounds fair Feb 15 21:13:16 didn't see something like BlueZ Core ver 2.0 Copyright (C) 2000,2001 Qualcomm Inc Feb 15 21:13:26 more modules I might need? Feb 15 21:13:45 nope. I think that should be it. Feb 15 21:13:58 but you need the others for bnep, rfcomm ... Feb 15 21:15:00 I think I made my hciusb static to the kernel to prevent this dep issue. Feb 15 21:15:32 yup, just scrolling back your page and it says y for everything Feb 15 21:15:43 i'm still a noob wrt BT Feb 15 21:15:48 well, that's the lazy way out :) Feb 15 21:16:18 I'm using the modules now but the hciusb doesn't seem to get loaded automatically oddly enough. Feb 15 21:16:38 i won't tell anyone .... Feb 15 21:16:43 heheh Feb 15 21:17:01 but the log will be on the internet of course.... Feb 15 21:17:08 I saw you also set CONFIG_BT_HCIUSB_SCI Feb 15 21:17:10 yep :) Feb 15 21:17:13 what is this for ? Feb 15 21:17:36 yeah, I'm not sure if it's actually required as there was way too many combinations to try. Feb 15 21:17:47 Another bluetooth protocol i believe. Feb 15 21:18:01 hm. more nastyness. when installing rfcomm I get: Feb 15 21:18:02 Configuring kernel-module-rfcomm Feb 15 21:18:02 FATAL: Module rfcomm not found. Feb 15 21:18:12 but the ko file is there; will have to do this manually Feb 15 21:18:25 strange. Feb 15 21:18:50 probably is under another name? Feb 15 21:18:54 nope, had to do l2cap first; missing symbol; rdepends of this pckg is not very good Feb 15 21:19:07 ah! I forgot l2cap. Feb 15 21:20:39 the bluez package should insmod all these packages on startup depending on your /etc/default/bluetooth config Feb 15 21:21:13 yeah, but the modules were not loaded yet Feb 15 21:21:24 i smell a wiki update Feb 15 21:21:49 still. If the modules are present the startup script should load them all. Feb 15 21:22:55 I'm still installing the modules Feb 15 21:23:07 is this part of your wiki page ok? Feb 15 21:23:09 CONFIG_BT_SCI=y Feb 15 21:23:24 the current kernel has ..._SCO Feb 15 21:26:28 please feel free to massacre my wiki page as it's really basic and things are much more integrated now. Feb 15 21:26:41 SCO is for doing voice over bluetooth Feb 15 21:26:49 I think Feb 15 21:27:14 well as your page is about 2.6.7 i'm a little bit reluctant to change things. Feb 15 21:27:26 You can probably remove the SCI thing as I don't seem to need it for basic BNEP. Feb 15 21:27:29 will add a section on my experiences though, i've minuted everything I did Feb 15 21:27:37 good! Feb 15 21:28:09 maybe add which version of openslug you tried it on. Feb 15 21:28:26 success... Feb 15 21:28:28 root@NSLU2:~# hciconfig Feb 15 21:28:28 hci0: Type: USB Feb 15 21:28:28 BD Address: 00:80:5A:46:07:0A ACL MTU: 384:8 SCO MTU: 64:8 Feb 15 21:28:28 UP RUNNING PSCAN ISCAN Feb 15 21:28:28 RX bytes:77 acl:0 sco:0 events:9 errors:0 Feb 15 21:28:28 TX bytes:31 acl:0 sco:0 commands:8 errors:0 Feb 15 21:28:44 good Feb 15 21:28:53 hmm. which version; which version are we roughly? 3.3? I synced with the head last sunday Feb 15 21:28:54 also try hcitool Feb 15 21:29:07 hcitool scan in particular Feb 15 21:29:12 3.6 Feb 15 21:29:23 beta Feb 15 21:29:31 ah, ok Feb 15 21:29:48 probably this shoud be somewhere in /sys or /proc Feb 15 21:29:58 root@NSLU2:~# hcitool scan Feb 15 21:29:58 Scanning ... Feb 15 21:29:58 00:11:9F:77:94:AD Nokia 6260 Feb 15 21:30:01 very good Feb 15 21:30:10 btw your wiki mentions hcitool inq Feb 15 21:30:52 similar i think Feb 15 21:31:09 root@NSLU2:~# hcitool inq Feb 15 21:31:09 Inquiring ... Feb 15 21:31:09 00:11:9F:77:94:AD clock offset: 0x0d54 class: 0x50020c Feb 15 21:31:31 don't forget to tweak /etc/default/bluetooth and stuff in /etc/bluetooth/ Feb 15 21:31:54 l2ping works Feb 15 21:32:10 The class can be important for some operations. the different bits in the class define what a device can do. Feb 15 21:32:12 good Feb 15 21:32:51 I disabled the authentication and encryption on my bot as it complicated things. Feb 15 21:32:53 still figuring out how all of this works, until now I've only been a BT user Feb 15 21:32:54 brb Feb 15 21:33:01 the pin number is defined in /etc/bluetooth/pin Feb 15 21:34:41 back Feb 15 21:37:09 eFfeM, later. I have to go home now. (finally!) Feb 15 21:37:13 VoodooZ_Log, thanks for your help! Feb 15 21:37:30 will probably bother you about this tomorrow or so Feb 15 21:37:39 no problem. You'll be the new BT expert in no time! Feb 15 21:37:43 np. Feb 15 21:37:53 cu Feb 15 21:49:30 koen|sleep, VoodooZ_Log: got flite working on the slug without any problem. ran flite on the slug played the generated wav file on my pc (but I already played wav files on the slug as well) Feb 15 21:49:41 let's think of a nice use case for this Feb 15 22:16:25 Hi. Is it enough to change /linuxrc directly, or do I have to use turnup? Feb 15 22:19:26 ok, trial and error: changing that file is enough Feb 16 05:20:49 I was trying to set up my slug for a static ip and once I rebooted it I can't seem to find it in the routing table. Is there a way to undo the changes I've made? Like connecting the hard drive to another computer editing the config file? Feb 16 05:28:05 any thoughts? Feb 16 07:43:41 morning Feb 16 07:44:19 how i have to change the default ip address in my slug? after starting openslug it's always 10.20.10.100 Feb 16 07:44:38 i think i changed it a long time ago with the original firmware Feb 16 07:44:54 is it possible to change it with the redboot console? Feb 16 07:57:26 easiest way is to use upgrade mode to flash stock linksys firmware or unslung, and then set the networking stuff. the flash openslug back onto it and turnup again Feb 16 07:57:52 in recent openslug alpha firmware, there is a "sysconf" script which can write info back to the SysConf partition Feb 16 07:58:33 rwhitby-laid-off: is it possible to set the default server address with redboot too? Feb 16 07:58:53 there should be a command like "fconfig" but it's not callable within redboot console Feb 16 07:59:19 mr_claus: nslu2 redboot does not support fconfig Feb 16 07:59:29 nas100d does, loft does, nslu2 doesn't. Feb 16 07:59:38 rwhitby-laid-off: ok, i will try the alpha firmware Feb 16 07:59:49 if there is a binary available Feb 16 08:00:32 for alpha, there is never a binary available. Feb 16 08:01:12 can i get the sysconf script out of the sources and use it with 2.7beta? Feb 16 08:02:29 maybe. dunno. you may also need some other updated scripts Feb 16 08:05:54 do you know which package contains the script(s)? Feb 16 08:06:04 openslug-init Feb 16 08:06:17 ok, ty **** ENDING LOGGING AT Thu Feb 16 10:59:56 2006