**** BEGIN LOGGING AT Wed Nov 28 02:59:59 2012 Nov 28 03:22:20 I am looking for some help with the first i2c bus on the BeagleBone. Nov 28 03:24:40 diego: ok Nov 28 03:25:48 diego: I probably won't be able to help since I haven't messed with i2c on the bone, but if you state your problem more specifically, there's a better chance someone else might Nov 28 03:26:20 Hey Alan. I'm working on a school project and I need access to a second i2c bus. I spent a good portion of Thanksgiving trying to recompile the kernel. I failed. Nov 28 03:26:43 So, I tapped off the U7 chip on the BB. The SDA and SCL lines. Nov 28 03:27:06 Which one is u7? Nov 28 03:27:12 you mean you soldered right to one of the chips? Nov 28 03:28:30 Yes. I should state that I'm an EE student and part of my job is to solder under a microscope. So, that was the easy part for me. It's the Variable & MAC memory EEPROM. Nov 28 03:28:54 So, I can see the device now using i2cdetect. Nov 28 03:29:05 ok Nov 28 03:29:09 sounds like the hard part is done :) Nov 28 03:29:14 why didn't you use the bus on the connector? Nov 28 03:29:19 address conflict? Nov 28 03:30:05 looks like i2c1 and i2c2 are both on the expansion connector Nov 28 03:30:42 But I get read/write errors when I run the C program. I wrote this C program. So I just need to change the file /dev/i2c-3 to i2c-1. Nov 28 03:31:07 Yes, address conflicts. Nov 28 03:32:06 i2c-1 is I2C_0 on the schematics. They don't have headers for those. Nov 28 03:32:09 so I'm assuming you have two devices of the same type. Can you access one of them and not the other? Nov 28 03:32:50 or does it conflict with some other type of device? Nov 28 03:33:21 Yes. The one on bus 3 I can access. The same device on bus 1 I can not access. No other conflicts. Nov 28 03:33:29 hmm Nov 28 03:33:31 that's strange Nov 28 03:33:45 are the permissions the same on /dev/i2c* Nov 28 03:33:46 ? Nov 28 03:33:49 what eror are you getting? Nov 28 03:33:57 can you perror()? Nov 28 03:34:14 Yup. And I can see it with i2cdetect. So, I'm wondering if it's disabled on i2c-1. Nov 28 03:34:27 Let me check. I think the permissions were the same. Nov 28 03:35:00 Yes, permissions are the same. Nov 28 03:35:11 diego: can you read the eeprom? Nov 28 03:36:21 also, what is perror() telling you after the read/write that is failing? Nov 28 03:36:31 I haven't tried that. I get a perror.. Write error: Remote I/O error and Read error: Remote I/O error. Nov 28 03:36:45 I assume you didn't get the i2c lines crossed Nov 28 03:37:05 Nah, cause i2cdetect sees the device. 68. Nov 28 03:37:16 is the device bad? Nov 28 03:37:19 hmm Nov 28 03:37:35 Nope. Switched it to the third bus and it works fine. Nov 28 03:39:10 diego: is there a termination issue? Nov 28 03:39:21 since you're pulling it off another device? Nov 28 03:39:41 Also, I wrote a quick C program that just opens and closes the /dev/i2c-1 file and it doesn't give any errors. Nov 28 03:40:07 Mmmmm. I don't think i2c needs a termination? Nov 28 03:42:45 diego: a quick google for i2c termination yields some interesting results Nov 28 03:42:52 diego: I don't know the electrical details for sure Nov 28 03:43:47 Let me take a look. Nov 28 03:44:46 diego: check out the presentation and resources for "Board Bringup: You, Me and i2c" on this page http://elinux.org/ELCE_Europe_2012_Presentations Nov 28 03:44:51 prpplague: did that Nov 28 03:45:00 I mean, prpplague did that Nov 28 03:45:14 he has some stuff in there about termination Nov 28 03:48:10 diego: look at page 46 in the ELC-E slides on that page Nov 28 03:48:29 he shows 1k pull-ups from scl and sca to +vdd Nov 28 03:49:07 diego: I'm assuming those would be there, since the eeprom works Nov 28 03:49:26 Yeah, I believe those are there. I'm trying to find the schematics from ciruito. Nov 28 03:49:58 is it read error _and_ write error? Nov 28 03:50:04 or just write? Nov 28 03:50:11 and is it an eeprom? Nov 28 03:50:30 meaning does the write-protect have to be set (or un-set)? Nov 28 03:51:15 I'm trying to read from a gyro/accel. MPU6050. Nov 28 03:51:19 Both read and write. Nov 28 03:51:53 could the gyro be rejecting the write somehow? Nov 28 03:52:21 not sure exactly the number of things that Remote I/O Error could be caused by Nov 28 03:52:44 Yeah, 1.5k resistors are there. Nov 28 03:53:03 I don't see why. I can plug it into the bus 3 and read/write just fine. Nov 28 03:53:30 That's the only difference? Nov 28 03:53:40 just scl and sda in different holes? Nov 28 03:53:44 diego: many SoC's have internal resistors pull ups Nov 28 03:53:53 diego: as well as many level shifters Nov 28 03:54:02 diego: if you have too little the line will not pull high Nov 28 03:54:13 diego: if you have too much, it won't be able to be forced low Nov 28 03:54:36 oh Nov 28 03:54:41 Mmmmmm. Yeah, I usually use a 3k or 5k resistor. Nov 28 03:54:42 diego: the speed at which the i2c is configured will also be affected Nov 28 03:55:04 prpplague: doesn't the stuff on the expansion connectors have level shifters to 3.3v? Nov 28 03:55:05 diego: the rise/fall time will be affected by the value of the resistor Nov 28 03:55:06 I've checked the speed. They are both the same. Nov 28 03:55:18 prpplague: where the SOC is 1.8v? Nov 28 03:55:21 alan_o: just speaking in general Nov 28 03:55:23 stop screwing with userland Nov 28 03:55:27 i2c does not require terminaltion Nov 28 03:55:57 * prpplague looks Nov 28 03:55:58 It's connected to 3.3V. Nov 28 03:56:02 did they say termination? Nov 28 03:56:11 ahh right Nov 28 03:56:18 the am33x as bone configured has I/O at 3.3V Nov 28 03:56:18 diego: it is not terminal Nov 28 03:56:22 diego: termination Nov 28 03:56:40 I2C is open drain drivers, it needed to be treated as such. Nov 28 03:57:05 ds2: I thought jkridner told me that was external to the SOC. maybe I misunderstood. I haven't looked it up Nov 28 03:57:28 look at the schematics Nov 28 03:57:34 there are no external level shifters Nov 28 03:57:47 the DM37x chips are 1.8V I/O Nov 28 03:57:53 ds2: ok, I must have misunderstood him then. Nov 28 03:57:56 The beaglebone has 1.5k resistors. The device I am using has 10k resistors built in to the board. Nov 28 03:57:57 some AM35x can be configured for either Nov 28 03:58:14 I'm looking at the schmatics. It says 3.3V> Nov 28 03:59:10 I wonder if the pull is different though. Nov 28 03:59:23 on i2c0 vs i2c1 and 2 Nov 28 03:59:26 in the pinmux Nov 28 03:59:36 diego: which kernel/ Nov 28 03:59:36 ? Nov 28 03:59:57 ArchLinux 3.2.21-3 Nov 28 04:00:19 diego: hmm... i wonder if that's derived from the angstrom TI kernel Nov 28 04:01:28 diego: most likely the internal pullups are configured differently Nov 28 04:01:30 I have no idea on that one. At this point, I think the hardware is ok. I say this only cause I can see the device using i2cdetect. So I'm wondering if they have done something in the kernel that is stopping me. Nov 28 04:03:39 I only see i2c1 and i2c2 in the board-am335xevm.c file Nov 28 04:04:17 ugh... I hate this off-by-one stuff... Nov 28 04:04:40 i2c1, in the kernel anyway, is the one that the board eeprom is connected to Nov 28 04:06:24 Yeah, it threw me off. Yes, and i2c1 is I2C0 on the schematics. So if I do an i2cdetect on the /dev/i2c-1, I see the EEPROM, TPS65217, a few other devices, and my device 68. Nov 28 04:06:25 diego: i2c1 is pulled odwn Nov 28 04:06:45 and i2c2 is pulled up Nov 28 04:06:54 in the 3.2 TI kernel Nov 28 04:07:16 and I don't see anything about i2c3 Nov 28 04:07:48 We're talking about i2c1 on the OS which is I2C0 on the schematics? Nov 28 04:08:04 well.... Nov 28 04:08:26 I don't see how that could be true. It is pulled up on the schemtics with 1.5k resistors. Nov 28 04:08:54 I mean in the pinmux Nov 28 04:10:02 Let me see if i remember how to check the pinmux and can doubele check that. Nov 28 04:10:27 diego: it's in /sys, can't remember off hand exactly the path Nov 28 04:10:35 I think it's omap_mux or omap_pinmux or something like that Nov 28 04:10:39 I don't run that kernel Nov 28 04:12:18 Yes, it has them as pulldown. Nov 28 04:12:36 diego: and the other i2c where it works? Nov 28 04:13:35 Huh? Nov 28 04:13:47 you have 2 i2c buses, right? Nov 28 04:13:53 one where it works, and one where it doesn't Nov 28 04:14:04 what's the pinmux look like on each Nov 28 04:14:10 ? Nov 28 04:14:46 oh... hey, I see all 3 buses now... one is named funny in the board file, sorry Nov 28 04:14:58 let me check what the pinmux looks like on 3 in the kernel Nov 28 04:17:12 ok, i2c2 (/dev/i2c-3) is pulled up, that's what we saw before, and i2c0 (/dev/i2c-1) is pulled down. Nov 28 04:18:16 Yes. I see the same thing. And I think I've changed it correctly. Let me verify. Nov 28 04:18:18 actually wait.. sorry... it looks like i2c0 (/dev/i2c-1) is not pulled at all Nov 28 04:18:26 dang it Nov 28 04:18:29 scratch that Nov 28 04:18:43 negative logic. Nov 28 04:18:47 original was right Nov 28 04:19:13 to be clear, I'm asserting: i2c2 (/dev/i2c-3) is pulled up, that's what we saw before, and i2c0 (/dev/i2c-1) is pulled down. Nov 28 04:19:49 Correct. That is what I saw. So I've pulled the resistors rhight on i2c0. Nov 28 04:20:20 diego: you mean you changed the pinmux? Nov 28 04:20:32 or the physical resistors? Nov 28 04:20:56 Yes. I orginally thought this was my problem, so I learned how to change the pinmux. Nov 28 04:21:28 diego: it's still your problem, (in the sense that it's not _my_ problem) :-D Nov 28 04:22:21 diego: ok, so can you verify that the pinmux is the same between both buses? Nov 28 04:23:31 Ha. Yes, I have changed it to pull up. Just working on changing everything back to bus 1 for testing. Another minute or so. Nov 28 04:26:10 I'm not so sure that was a good idea. It's taking forever to do a i2cdetect scan. Nov 28 04:26:23 errrmm... Nov 28 04:26:40 I wonder if that messed up the eeprom that's on the board somehow Nov 28 04:26:51 I mean if that circuit is messing up with the pull in the other direction Nov 28 04:27:01 I mean given the assumption that it was pulled that way for a reason. Nov 28 04:27:37 Yeah. I'm thinking that maybe that was that way for a reason. Nov 28 04:27:54 if you look at the bone SRM Nov 28 04:27:58 page 52 Nov 28 04:28:07 shows the eeprom circuit Nov 28 04:28:20 looks like it's direct connected Nov 28 04:28:39 so mdp will hate me for this..... Nov 28 04:28:47 ever think of i2c-gpio ? Nov 28 04:28:49 * alan_o ducks Nov 28 04:32:06 I2C0 (schematics) is connected to the EEPROM, TPS6512, and one or two more things. With a 1.5k resistor. I'm wondeing if introducing that 10k from the gyro is causing the resistance to be too low? Nov 28 04:32:31 I spent about 2 days trying to recompile that kernel. I couldn't get it to work. Nov 28 04:33:11 diego: not sure what recompiling the kernel will get you Nov 28 04:33:37 diego: but... http://www.angstrom-distribution.org/building-angstrom Nov 28 04:33:43 rather then all this shannigans... Nov 28 04:33:57 why not just boot up kernel. and put a scope on SCL and SDA? Nov 28 04:34:10 ds2: that's a great idea Nov 28 04:34:12 software people. :) Nov 28 04:34:22 emeb_mac: I know... they're the _worst_ Nov 28 04:34:26 Recompiling should give me access to the second bus. I know a lot of the kernels have that enabled now. Nov 28 04:34:28 if it is floating or grounded, you have a problem Nov 28 04:35:13 I could run to school and try that. I wouldn't think that's the problem though. It can see the EEPROM chip on the bus. Nov 28 04:35:20 ds2: it's pull-down. not sure how it's working at all then, but I haven't looked at the schematics Nov 28 04:35:40 the pull's in the pinmux are weak Nov 28 04:35:46 they can be overriden by external ones Nov 28 04:36:01 and 1.5K is a relatively strong pull for I2C so it is probally overriding the internal stuff Nov 28 04:36:04 diego: are you asserting that you have only buses 0 and 2 (/dev/i2c-1 and /dev/i2c-3) ? Nov 28 04:37:00 ds2, do you think 1.3k is strong enough? I'm saying 1.3k cause of the 1.5k and 10k in parallel. That's how it's connected right now. Nov 28 04:37:12 That is correct alan. Nov 28 04:38:36 diego: I see that now Nov 28 04:38:38 argh Nov 28 04:38:47 i2c1 isn't turned on for beaglebone Nov 28 04:39:00 1.5K is too strong, IMO Nov 28 04:39:08 4K7 should suffice Nov 28 04:39:41 stronger would be good if you have a long cable but that isn't the case here Nov 28 04:40:51 Yes, i2c1 isn't on the headers. i2c2 is, but it requires a kernel recompile. Nov 28 04:41:00 4.7k? Nov 28 04:41:12 read the app notes from the I2C guys Nov 28 04:41:22 diego: with the instructions at the angstrom website I linked before, you should be able to build the kernel.. Nov 28 04:41:37 give that a go, and there are people here who can help with that if needed Nov 28 04:41:41 well... one guy :) Nov 28 04:42:04 diego: (and that guy isn't me) Nov 28 04:42:33 Yeah, I think they recomemded from 1.5k to 4.7k. Nov 28 04:43:01 Hahaha. Yeah, I just don't have the time to really try that again. Nov 28 04:43:32 Plus, at this point I really want to stick with Archlinux. We have done a lot of work already with that OS. Nov 28 04:43:45 diego: can run arch with angstrom kernel, most likely Nov 28 04:44:00 diego: no way to change the address of this gyro? Nov 28 04:44:14 diego: what part is it? Nov 28 04:44:37 I have no clue how to drop in the angstrom kernel and use that instead. Nov 28 04:44:54 It has two addresses. But I have 3 devices that use the same address. Nov 28 04:45:10 2x MPU6050 and a RTC. All on 68. Nov 28 04:45:20 gyro? Nov 28 04:45:26 ewwwwwwwwwwww MPU6050 Nov 28 04:45:37 Yes, 3 axis gyro/accel. Ha. Not a fan? Nov 28 04:45:41 ds2 hates everything :) Nov 28 04:45:44 not a fan of that part Nov 28 04:45:52 drivers are a pain on that part Nov 28 04:46:18 I'm not buying any parts that ds2 doesn't like. Nov 28 04:46:51 Drivers? They make drivers? I had to write all the i2c commands and convert an Arduino library over to use this part. And I'm an EE student. Not a programmer. Nov 28 04:46:54 why are you even using that part? Nov 28 04:47:12 do you need the low noise density on that or? Nov 28 04:48:47 The project is as following... We're putting all sorts of sensors (gyro/accel, 1 axis accel, temperature, heart rate, etc) on both a vehcile and driver of an offroad car the Mechicals engineers build. Nov 28 04:49:01 Then we are transmitting all the data to a pit computer. Nov 28 04:49:38 We chose it cause cause we knew we could interface it with the Arduino. Then we decided to use the BB for all the processing and make it wireless. Nov 28 04:52:01 why not use a L3G4200? Nov 28 04:52:09 drivers for those abound and they are relatively painless Nov 28 04:52:46 Honestly, cause I'm a student and didn't know better. There a million things I would of changed at this point. Nov 28 04:53:19 But the project is due in a few weeks. They know we won't it have 100%. It was a big project for 2 EE's and a computer engineer to take on. Nov 28 04:53:49 don't seem that complex... 1 EE and a CE should bea ble to have it done in a few weeks Nov 28 04:55:48 I wish. They don't teach much programming at our school. They focus on the power side. So I taught myself a lot of C in the past few months. The other EE had to learn to interface with a bluetooth device and reverse engineer the packet struture to get back heart rate, pulse, etc. Nov 28 04:56:16 We had to build a circuit board to connect everything to. Pick out sensors. Build the device. Nov 28 04:56:33 And our CE has been doing all the displaying. Nov 28 04:57:18 diego: for where you're at right now, I see a few options Nov 28 04:57:33 1. figure out the pull problems on i2c0 Nov 28 04:57:47 2. use i2c1 (requires kernel rebuild/modify) Nov 28 04:58:02 3. use spi-gpio (requires kernel rebuild/modify) Nov 28 04:58:15 and watch the configuration of the MPU6050 Nov 28 04:58:16 4. use a different part Nov 28 04:58:22 there are black magic in that chip Nov 28 04:59:25 that part can become a I2C master or switch out I2C buses Nov 28 04:59:58 diego: do what ds2 said too, and scope i2c0 Nov 28 05:01:23 I think I may run to work tomorrow and change out the 10k for 100M. That should be 1.5k. Or take it out competely. Nov 28 05:01:30 Or learn to recompile the kernel. Nov 28 05:02:31 just pop the resistor Nov 28 05:02:55 What should I look for if I connect the scope? I feel like if i2cdetect picks it up, it has to be see it. I think the resistance is too low and it can't keep up with the speed. Nov 28 05:03:09 what speed is the bus? Nov 28 05:03:11 100KHz? Nov 28 05:03:26 Yes. Nov 28 05:04:13 there might be registers on that part that isn't configured right Nov 28 05:04:20 you can get really really wierd on that part Nov 28 05:04:58 But I can disconnect it from bus 1 and connect it to bus 3 and communicate just fine with it. Nov 28 05:05:22 The only thing different is the pullup resistance at that point. Or something in the OS. Nov 28 05:06:05 reset timing matters Nov 28 05:06:44 Reseting the timer where? Nov 28 05:06:56 i need some help with the interrupt controller on the beagle xm Nov 28 05:07:08 reset timing Nov 28 05:07:10 not the timer Nov 28 05:07:24 I have seen behavior on that part where reset matters a lot Nov 28 05:08:15 Sorry, I'm confused about what timing you are talking about? Nov 28 05:08:23 reset timing Nov 28 05:08:27 timing of the reset of the device Nov 28 05:08:36 that sucker has internal microcontrollers on there Nov 28 05:09:14 Ahhhh. Gotcha. Yeah, the first thing I do when I enter the program I wrote is reset the timer and wait some time. Maybe bump that up? Nov 28 05:09:31 for some reason that doesn't always work Nov 28 05:09:45 I forgot the details on the 6050 but the 3050 had intersting 'stuff' Nov 28 05:10:08 there might be erratas Nov 28 05:10:17 Gotcha. I can try bumping that up. I think it's set at 200uS right now. Nov 28 05:10:45 you could be doing something that is not well defined ude to errats Nov 28 05:10:48 does anyone have good knowledge about the interrupt controller on the beagle xm? Nov 28 05:10:51 full docs for that chip is not available Nov 28 05:11:16 i am running an embedded os in beagle xm rev a, and i am using u-boot to boot into the os. Nov 28 05:11:30 but i can't enable interrupts! Nov 28 05:11:33 Even though it works fine on the other bus? Nov 28 05:11:34 the interrupt controller is in the DM3730 Nov 28 05:11:46 diego: yep. errata are funny like that Nov 28 05:11:46 the code hangs at the "msr cpsr.... Nov 28 05:11:53 instruction Nov 28 05:12:02 mrc Nov 28 05:12:03 mcr Nov 28 05:12:38 i can't reset the irq and fiq bits in the cpsr.. Nov 28 05:12:48 anyone has any idea why this might be happening? Nov 28 05:14:00 Nope. I changed the time after the reset. It right away gives me Write Error: Remote I/O error. Nov 28 05:14:17 anyone? Nov 28 05:14:19 As soon as it sends the command. Nov 28 05:14:45 beaglexmenthu: are you in supervisor mode? Nov 28 05:15:40 diego: 'sends' the command? Nov 28 05:15:57 [root@alarm i2c2]# ./gyro_accel Full reset Write Error: Remote I/O error Write Error: Remote I/O error Nov 28 05:16:26 that doesn't mean anythin gother then to the author of the program Nov 28 05:16:29 yes the os starts in supervisor mode Nov 28 05:16:46 i also tried system mode but that does not help Nov 28 05:17:01 how are you trying to clear it? Nov 28 05:17:21 Sorry. The program prints "Full reset" and then issues the command to reset it. As soon as the command is issued, it returns the error. Nov 28 05:17:25 using the " msr " instruction Nov 28 05:18:12 what is 'issues the command'? Nov 28 05:18:28 IIRC, it doesn't take 'commands'. it takes registers to configure Nov 28 05:19:14 checked the Linux arm code? Nov 28 05:21:50 I write to the power management register - device reset bit. Nov 28 05:23:11 okay, and how does that relate to the error? Nov 28 05:25:03 I've created a i2c header file that excutes my commands. this file opens /dev/i2c-1, reads or writes to the device, and closes the file. It gives me the error while reading or writing. Nov 28 05:27:04 hmmmm Nov 28 05:27:09 It can open and close the file without errors. But reading and writing gives me errors. Nov 28 05:27:40 hmmm Nov 28 05:27:50 look at it on the scope and see if there are electrical issues then Nov 28 05:27:55 i.e. run it, and do a capture Nov 28 05:28:37 If I try that in the next few minutes, will you still be around? Nov 28 05:29:22 maybe Nov 28 05:29:27 doing a bunch of stuff Nov 28 05:30:08 I can run to school. Or do this tomorrow. School is only a few minutes away. Nov 28 05:30:54 oh... you don't live in the lab? :D Nov 28 05:31:07 under the bench? Nov 28 05:31:29 I'm not joking when I say my apartment is a block away from the Eng building. It's basically my second home. Nov 28 05:31:58 back when I was in school, I lived in the lab :( Nov 28 05:32:29 What's your alma mater, ds2? Nov 28 05:32:42 some small school in SoCal Nov 28 05:32:51 and I used to live on campus too Nov 28 05:34:35 Tangerine Tech? Nov 28 05:34:41 Well, ds2 I'll leave it up to you if you can keep helping me tonight. If not, it's off to bed. Nov 28 05:35:01 heh... sure Nov 28 05:35:49 you guys have fun. I'm out. Nov 28 05:35:57 Thanks for the help alan. Nov 28 05:36:15 diego: no problem man. Wish I could have helped more, but ds2 knows way more than I do :) Nov 28 05:36:33 <--- clueless dummy Nov 28 05:37:05 still managed to save my bacon the other night Nov 28 05:37:13 Ha. Nov 28 05:37:13 (tickless kernel) Nov 28 05:40:52 Alright. Heading there now. Back in a few. Nov 28 05:55:17 Back. Nov 28 06:01:11 Is there a trick to getting bitbake to perform deploy? I'm following the example here: http://www.slimlogic.co.uk/2011/05/openembeddedangstrom-kernel-workflow/, and although I've forced recompile deploy doesn't think it needs to run (and -f doesn't seem to work with deploy) any other ideas? Nov 28 06:10:28 a Nov 28 06:23:28 ds2, still up? Nov 28 06:24:08 ds2, still up? Nov 28 06:27:08 ? Nov 28 06:28:20 Well... When I connect the scope to the SCL line, I can't see the device on when I run i2cdetect. Nov 28 06:28:59 what kind of probe? Nov 28 06:29:35 Standard tektronix 10x probe. Nov 28 06:29:43 Okay Nov 28 06:29:46 is it low or high? Nov 28 06:30:06 or what is the voltage on it Nov 28 06:32:45 I don't remember. Even more odd, there is some kind of noise on the line. It looks like a sawtooth wave. Let me unplug everything real fast and try again. Nov 28 06:34:22 sawtooth? Nov 28 06:34:33 it almost seem like you don't have any pull ups on there Nov 28 06:34:40 Yeah. Super odd. Nov 28 06:34:52 Well, the board has a 1.5k and device has a 10k. Nov 28 06:35:54 what speed are you running it at? Nov 28 06:36:17 No joke, 6V peak to peak crappy looking sawtooth shows on both SDA and SCL. Nov 28 06:36:23 100kHz. Nov 28 06:36:47 6V P-P? Nov 28 06:36:56 is this on a long long long cable? Nov 28 06:37:40 is it +3/-3? Nov 28 06:37:49 Nope. Maybe 3 inches. Nov 28 06:38:09 sure probe is sane? Nov 28 06:38:18 does it look good if you connect it to the scope's cal signal? Nov 28 06:38:20 you have enough pull up for that speed unless the capacitance is really high Nov 28 06:38:44 Ok, I grounded the scope and that went away. Nov 28 06:38:51 @#%$#@$@#$@#%@$%$@#%$@#%%^#$%#@$%@#$$@#$@#$%@#$@#$ Nov 28 06:38:57 is it high or low? Nov 28 06:42:02 High on sda. Nov 28 06:42:12 High on sda. Nov 28 06:42:35 and slc. Nov 28 06:43:55 what problem are you having with your i2c ? Nov 28 06:45:36 I keep getting remote i/o errors. Nov 28 06:46:19 okay Nov 28 06:46:27 set the scope to capture on an edge Nov 28 06:46:31 then run your program Nov 28 06:46:47 Currently doing that. Pulses look ok. Nov 28 06:46:50 use as slow of a rate as possible Nov 28 06:46:56 and capture a long train Nov 28 06:47:50 Currently doing that. Pulses look ok. Nov 28 06:48:02 Currently doing that. Pulses look ok. Nov 28 06:52:37 I take it you don't have a logic analyzer at hand. Do you know if the error is only during writes/read/both ? im not used to working with i2c in linux but have used it a lot with avr and smaller arm chips Nov 28 06:54:30 Sorry. Looks like wireless took a crap. Nov 28 06:54:37 Ok, I have a capture. Nov 28 06:55:53 repeat if you missed it: I take it you don't have a logic analyzer at hand. Do you know if the error is only during writes/read/both ? im not used to working with i2c in linux but have used it a lot with avr and smaller arm chips Nov 28 06:56:27 Nope, just an Oscope. It gives me both read and write. Nov 28 06:58:48 if you run it at a really slow speed does the problem go away? does it work sometimes and others not or is it always failing? Nov 28 06:59:21 If I just run i2cdetect over and over, it can't always find the device. I say 1 of 4 times, it disappears. Nov 28 06:59:44 Also if I connect the oscope to the SCL, it won't find the device at all. Nov 28 07:03:37 hmmmmm Nov 28 07:03:39 if you are able to slow the speed down to only a few Hz it should be able to cope with the scope attached while also making it easier to see whats going on if its not speed related error. Nov 28 07:03:50 reduce the pull up to 4K7 and see Nov 28 07:03:56 could be the drivers are not strong enough Nov 28 07:04:08 how's the slew rate and ringing look? Nov 28 07:04:49 I'm not sure I can go less than 100kHz. Nov 28 07:05:39 Slew rate looks fine. Not sure what to look for ringing? Nov 28 07:08:14 did i understand correctly that you have a 1.5k and a 10k pull up in parallel? if so that should be plenty for 100kHz, how long is the wireing? Nov 28 07:08:53 A few inches. Nov 28 07:12:20 is this professionally assembled or you guys did the soldering yourself? Nov 28 07:12:39 Straight from sparkfun Nov 28 07:13:02 what part? Nov 28 07:13:14 MPU6050 Gyro/accel Nov 28 07:15:52 this one https://www.sparkfun.com/products/11028 ? then you would have soldered a connector or wire maybe check if any joint is bad Nov 28 07:16:44 That's the part. It can't be that. If I switch i2c busses, it works fine. Nov 28 07:17:18 Well, I take that back. I've had to solder onto the BB to get access to the 1st i2c bus. Nov 28 07:23:08 which bus is not working, the one you soldered? Nov 28 07:24:08 Yes. When I run i2cdetect, it finds the device. But when I run the program it gives me rea/write errors. But if I move everything to the bus with headers, it all works fine. Nov 28 07:26:17 maybe its a bad joint, try redoing? Nov 28 07:27:32 i assume the problem is not in initialization as it should be almost the same as the other bus that works Nov 28 07:29:51 I don't think its the joint. I spent a few minutes tugging on wires while reading ohms across the wire. Never changes. .4Ohm Nov 28 07:30:05 I think that's a safe assumption. Nov 28 07:32:05 I'm out of ideas at this point. I might try taking out the 10k resistor tomorrow. Maybe redoing the soldering. But that looks fine. Nov 28 07:32:25 Thanks for the help you guys. Nov 28 08:05:38 Hmmm you have both VDD and VDDIO wired, right? Nov 28 08:46:44 gm Nov 28 08:48:09 mourning Nov 28 09:19:20 kalimera! Nov 28 09:21:46 callamari? Nov 28 09:22:10 Calimero! Nov 28 09:24:15 does anyone have that with original sound? Nov 28 09:30:45 in what language would that be? Nov 28 09:32:45 japanese Nov 28 09:32:55 what else could it be? ;) Nov 28 09:32:59 italian Nov 28 09:33:22 italians dont make any good cartoons Nov 28 09:33:32 yes, but calimero was italian first Nov 28 09:33:37 then the japanese ripped it off Nov 28 09:34:47 well.. if you think that a soap adv is being ripped off... Nov 28 09:35:41 av500: http://wtfqrcodes.com/image/21028188922 Nov 28 09:35:48 av500: do you use that on your kids? Nov 28 09:41:43 KotH: you mean in case the leash breaks? Nov 28 09:43:49 hey Nov 28 09:48:20 av500: i expect your children to be able to free themselves very soon Nov 28 09:51:49 lol.. professor bashing the tea party Nov 28 09:53:51 easy prey Nov 28 10:17:44 yeah... but usually profs refrain from bashing Nov 28 10:38:49 and now bashing workoholics Nov 28 10:57:43 hi i have two beaglebones A6 and i have compiled the kernel from https://github.com/beagleboard/kernel.git. But i don't get a reliable ethernet connection. Had it once but now it just fails. Same software... Nov 28 10:58:40 define reliable connection Nov 28 10:58:45 and kernel version please Nov 28 11:01:14 panto: i could ping, its 3.2.32 which i thought would be stable Nov 28 11:01:59 you still haven't defined what you mean by reliable Nov 28 11:02:06 ping works, but what fails? Nov 28 11:03:58 panto: ping worked one time, but after that the boards do not see any network packages, dhclient fails, i have these "CPSW phy found: id is : 0x7c0f1\nPHY 0:01 not found" messages but these where also there in the working case... Nov 28 11:04:54 hum Nov 28 11:05:52 check out branch from linux-ti33x-psp-3.2.30-r17h+gitr720e07b4c1f687b61b147b31c698cb6816d72f01 git://github.com/koenkooi/linux.git Nov 28 11:06:05 you could have some kind of wonky network interface Nov 28 11:06:13 panto: i just found out that by issuing a ifconfig eth0 down; ifconfig eth0 up i got a working connection ... Nov 28 11:06:37 is it a gigabit switch you connect to? Nov 28 11:06:40 and from which manuf? Nov 28 11:07:09 panto: don't know never had any problems... Nov 28 11:08:34 welcome to the wonderful world of ethernet negotiation Nov 28 11:08:50 got to head out Nov 28 11:10:03 panto: well it seems much like a driver problem to me, the ifconfig down/up seems to work everytime. Nov 28 11:10:17 it could very well be Nov 28 11:11:04 that's why you should either test that tree I pointed out, or something closer to mainline Nov 28 11:11:48 panto: tried lots of mainline stuff, failed to get mmc and network working... any pointers what to try? Nov 28 11:12:12 on that tree I gave there's a 3-7-rebase-for-panto branch Nov 28 11:12:26 try that, but remember it's using device tree Nov 28 11:12:44 panto: learn't that the hard way :-) Nov 28 11:12:46 so you have to generate the uImage-dtb.am335x-bone target Nov 28 11:13:10 that's pretty close to what I use, and most of everything works (sort of) Nov 28 11:16:22 really have to go now Nov 28 11:22:14 mru: http://www.sciencedaily.com/releases/2012/11/121127094111.htm Nov 28 11:24:08 well, english is clearly a hybrid of many different things Nov 28 11:24:13 panto: will report back in a while... compiling and eating Nov 28 11:28:54 also, in linguistics is easy to find specific examples to back up almost any theory Nov 28 12:05:37 can i run a jar file which is created on windows os, on beagleboard? Nov 28 12:06:15 if you mean the java things, a jar file is just a zip file Nov 28 12:06:27 and one does not "run" zip files Nov 28 12:06:50 presumably it contains a java program, and this is what you wish to run Nov 28 12:07:13 if that is the case, it doesn't matter where the zip was created Nov 28 12:07:38 the java code needs to be compatible with your jvm and your system at large Nov 28 12:07:43 which is rarely the case Nov 28 12:07:53 write once, debug everywhere and all that Nov 28 12:09:16 "the java code needs to be compatible with your jvm" does this mean, both machines need to have same jdk? Nov 28 12:09:24 no Nov 28 12:18:44 bugra: java as such is compatible with all JVMs in theory Nov 28 12:19:01 bugra: in practice, there is a lot of native OS dependant stuff in there Nov 28 12:19:11 bugra: if you are careful, you can have it compatible though Nov 28 12:19:32 bugra: what does the program do? Nov 28 12:20:07 jacekowski: My main concern is, beagleboard has arm architecture Nov 28 12:20:20 jacekowski: I have yet to see a non-trivial java program work outside the environment in which it was created Nov 28 12:20:35 so i think jar files i create on windows might be incompatible with beagleboard Nov 28 12:20:48 bugra: what does the program do? Nov 28 12:20:59 android x86 runs android arm SW just fine Nov 28 12:21:04 if you stick with java Nov 28 12:21:15 bugra: as long as it's pure java without native code, it will run Nov 28 12:21:20 lies Nov 28 12:21:41 av500: It will be pure java no native code Nov 28 12:21:57 bugra: and, is yours native? Nov 28 12:22:00 bugra: what does the program do? Nov 28 12:23:57 av500:i will plugin various sensors such as proximity sensors to beagleboard and display their value etc Nov 28 12:24:13 aha Nov 28 12:24:40 and how do you interface with those sensors from pure java, pray tell Nov 28 12:25:02 bugra: that will require native code Nov 28 12:25:07 or sysfs Nov 28 12:25:09 :) Nov 28 12:25:09 hmm Nov 28 12:25:13 yeah Nov 28 12:25:19 it will require something system-dependent Nov 28 12:25:23 yeah Nov 28 12:25:30 it may be architecture independent Nov 28 12:25:37 but it will be os dependent Nov 28 12:25:41 dependant* Nov 28 12:25:45 e or a? Nov 28 12:25:50 e Nov 28 12:26:27 a pendant is something else Nov 28 12:26:40 i believe each sensor is mounted on a file under for example /dev/sensors/sensor1 (i dont recall exact name, sorry) Nov 28 12:26:46 * av500 likes fondant Nov 28 12:26:51 so i will simply read from those files Nov 28 12:27:05 that could work Nov 28 12:27:07 basic file operation Nov 28 12:27:26 though, you need some code in kernel to present those sensors under those device nodes Nov 28 12:29:24 jacekowski: I am not sure how it is handled in the kernel but in a tutorial i watched on yourtube, it was done with a single mount command Nov 28 12:29:43 jacekowski: then several files are created on mounted directory Nov 28 12:30:02 such as /dev/sensors/sensor1/value Nov 28 12:30:49 that sounds more like sysfs Nov 28 12:47:37 mru: yes. i guess it is called sysfs. i found something similar to what i have in mind: http://bwgz57.wordpress.com/2012/04/01/beaglebone-how-hot-is-it/ Nov 28 12:48:31 mru: example program simply reads /sys/devices/platform/tsc/ain2's value indefintely Nov 28 12:53:11 bugra: no, only until the heat death of our sun Nov 28 12:54:12 av500: that is good enough for me :) Nov 28 12:54:39 I had a sun workstation once, but it overheated Nov 28 12:55:04 did it explode taking the solar system with it? Nov 28 12:55:04 did it collapse into a white dwarf? Nov 28 12:55:35 panto: I think the scsi controller was fried too Nov 28 13:16:10 Crofton|work: ping? Nov 28 13:30:14 panto: linux-ti33x-psp-3.2.30-r17h+gitr720e07b4c1f687b61b147b31c698cb6816d72f01 as the 3.7-for-panto-rebase fail to compile for me, do you possibly have a .config for me? Nov 28 13:31:18 isn't there a defconfig file in the root kernel directory? Nov 28 13:31:25 cp defconfig .config && make oldconfig Nov 28 13:33:06 panto: ok will try these... Nov 28 13:41:02 "Grievre: gordonDrogon: I would definitely not want to bang them from userland in this case" Nov 28 13:41:13 hrm...#rpi matures Nov 28 13:41:30 :) Nov 28 14:33:19 panto: it seems i am out of luck today. The 3.7-for-panto-rebase does not boot for me :-( Nov 28 14:48:01 panto: thanks , even if i didn't succeed.. Nov 28 15:22:16 jkridner: it appears that the logging bot is down Nov 28 15:22:47 http://www.beagleboard.org/irclogs/ doesn't have anything since 11/26 at 1304 UTC Nov 28 15:23:14 unless my HTTP is being cached somewhere..... Nov 28 15:23:50 * alan_o wants to know if ds2 helped diego get his i2c problem worked out last night after he went to bed. Nov 28 15:25:54 alan_o: thanks Nov 28 15:27:09 alan_o: http://pastebin.com/24dricNz Nov 28 15:27:21 er, wait Nov 28 15:27:31 now Nov 28 15:27:37 jkridner: howdy Nov 28 15:27:42 av500: thanks Nov 28 15:27:46 np Nov 28 15:27:58 that was in the scroll buffer Nov 28 15:28:12 jkridner: got a second in private? Nov 28 15:28:13 howdy LetoThe2nd Nov 28 15:28:27 wer flüstert..... Nov 28 15:28:27 as long as it isn't a support question. :) Nov 28 15:28:36 jkridner: not at all. Nov 28 15:28:36 LetoThe2nd: ask for teh codez! Nov 28 15:29:01 the code is 7 Nov 28 15:29:01 jkridner has the exact stepz Nov 28 15:29:08 not 42? Nov 28 15:29:33 that's just 6 x 9 Nov 28 15:29:41 hardly a secret. Nov 28 15:29:54 hehe Nov 28 15:30:33 LetoThe2nd: just got on a call. :( Nov 28 15:30:41 jkridner: np, i'll be around. Nov 28 15:31:25 mdp: jkridner has them? I've been barking up the wrong tree all along.... Nov 28 15:31:58 mdp: so my parents are hounding me about what I want for Christmas... I'm thinking an Openbench Logic Sniffer and some probes. Nov 28 15:32:29 mdp: maybe some bone capes :) Nov 28 15:32:31 spend your own money on that...think big..like a Challenger SRT8 or similar fun car ;) Nov 28 15:32:34 alan_o: no LEGO? Nov 28 15:32:56 av500: hehe... Nov 28 15:33:18 alan_o, run, don't walk away from the seeedstudio probes for the OLS Nov 28 15:33:55 read bert's probe reviews on the sigrok.org site and be sure to get some good ones Nov 28 15:34:35 mdp: ok, cool. I'll check that out. (I don't know much about scopes,probes, etc) Nov 28 15:34:38 * mdp gives in and heads to the office Nov 28 15:35:41 if you breadboard a lot of stuff like I do...just getting a few strips of 20cm ribbon cable with female<->male and male<->male pins is really handy Nov 28 15:36:00 couple good ebay stores with that stuff stocked in .us for quick ship Nov 28 15:36:32 alan_o, same stuff you saw running the data-buses on my 6502 breadboard Nov 28 15:36:39 mdp: yeah, I was envious of those on your demo Nov 28 15:37:04 I usually just have a bunch of telephone station wire jammed in the holes Nov 28 15:37:12 hehe Nov 28 15:37:34 * mdp really goes :( Nov 28 15:39:13 alan_o: if you get an openbench sniffer, please work on the software, please! Nov 28 15:39:36 KotH: is it bad? Nov 28 15:39:52 I have enough projects..... Nov 28 15:40:00 it's java crap that works, barely Nov 28 15:40:13 but the worst part is its intuitivity Nov 28 15:40:28 KotH: ugh.... I don't understand why people make Java programs. Nov 28 15:40:47 i bought an openbench just to find out whether a 50usd LA is worth anything Nov 28 15:40:49 There are so many better ways to make cross platform stuff. Nov 28 15:41:00 the hw is fine..more or less... but the software sucks balls the size of planets Nov 28 15:41:14 if i had the choice, i'd go for a sigma2 Nov 28 15:41:36 costs only 4 times as much, but has a usable software, better triggers and.... Nov 28 15:41:44 but no linux software though Nov 28 15:41:56 It has a picture of Tux on the main page... Nov 28 15:42:07 alan_o: the biggest problem for me are actually the triggers.. they are very non-intuitive Nov 28 15:42:31 alan_o: the sigma2 software runs in wine... thats enough linux support Nov 28 15:43:51 KotH: yeah, wine Nov 28 15:46:17 alan_o: oh.. and there specs for the logger are open, so there is support from the openbench guys as well Nov 28 16:04:57 back Nov 28 16:05:12 front Nov 28 16:06:03 left Nov 28 16:09:37 surround party? Nov 28 16:10:48 LetoThe2nd: I'm back. Nov 28 16:11:11 jkridner: great Nov 28 16:11:13 jkridner: we need more people front, you can't all be back Nov 28 16:14:27 for surround we also need a subwoofer Nov 28 16:15:10 no, technically it's surround as long as you have at least one rear element Nov 28 16:15:24 so 2f1r would count Nov 28 16:15:49 yeah, but its just half the fun Nov 28 16:16:11 subwoofers are great for annoying the downstairs neighbours Nov 28 16:16:20 pink floyd did 2f1r for ages at their concerts Nov 28 16:16:29 that too ! Nov 28 16:16:38 in my old flat, the ceiling lamps downstairs would shake if I turned up the volume Nov 28 16:16:57 haha Nov 28 16:27:04 neighbours suck Nov 28 16:31:00 i thought you dont swing that way? Nov 28 16:32:42 * bradfa 's reset enforcer for bone testing, GO Nov 28 16:34:46 howdy neighbour! Nov 28 16:48:29 <_av500_> SUBWOOFER!!! Nov 28 16:52:28 reset enforcer works! 100ms warm software reset :) Nov 28 16:53:09 bradfa: how goes the intern? Nov 28 16:55:33 mranostay, intern left, I wanted to see what he'd done... Nov 28 16:55:43 he was very successful in creating big git repo Nov 28 16:55:48 uh oh Nov 28 16:56:25 I'm running a script creating a git repo Nov 28 16:56:34 it'll have ~350k commits when done Nov 28 16:56:35 thankfully for me, it's all C# code so I don't have to touch it Nov 28 16:56:51 mru, put on github, I will fork Nov 28 16:58:47 118k commits done Nov 28 16:59:09 mru: you code fast Nov 28 16:59:19 it's a script Nov 28 16:59:25 importing a pile of data Nov 28 17:00:40 repo size presently 3.7G Nov 28 17:01:08 reset enforcer doesn't play super nice with fat fingers on the reset button... Nov 28 17:01:20 skinny little fingers work OK Nov 28 17:01:29 s/little/fast/ Nov 28 17:02:10 <_av500_> what does it do? Nov 28 17:02:42 _av500_, one shot monostable oscillator driving a fet to pull down SYSRESET_n when SYSRESET_n has a falling edge Nov 28 17:03:01 effectively, making stupid am335x reset line stay low for > 100 us like the SMSC PHY wants Nov 28 17:03:12 unlike how am335x warm software reset wants Nov 28 17:03:16 stupid reset circuit Nov 28 17:03:38 all so blinkin' lights on Ethernet go the right way, every time Nov 28 17:03:48 going on cape Nov 28 17:04:40 <_av500_> ah Nov 28 17:04:52 <_av500_> fixing silicon with more silicon Nov 28 17:04:54 quick note going to ml shortly with part number Nov 28 17:05:09 _av500_, that's how it should be! Nov 28 17:05:10 :) Nov 28 17:05:38 * _av500_ prefers SW fixes Nov 28 17:05:53 _av500_, wonderful am335x silicon makes that not reasonable Nov 28 17:06:02 if it can be fixed with a cap and a resistor, it's not really broken Nov 28 17:06:16 C-Media usb sound cards (the cheap $2 ones) not getting any voltage across the 5v rails. they pulling too much? anyone have experience trying these on a beaglebone? Nov 28 17:06:44 (i'm using external 5v power to the bone) Nov 28 17:06:44 could be taking without asking Nov 28 17:06:55 cheap usb gadgets sometimes do that Nov 28 17:07:44 i read 4.89V across C133 Nov 28 17:08:58 across +5v/gnd on the pins of the usb connector of the gadget, 0v Nov 28 17:09:57 plugged into a pc, 4.93V at the pins Nov 28 17:10:13 strata: that's within the specs Nov 28 17:10:19 seems like the bone is JUST under voltage or something maybe? Nov 28 17:10:23 strata: usb specs require at least 4.75V Nov 28 17:10:41 or was it 4.5? Nov 28 17:10:44 something like that... Nov 28 17:10:58 ah ok. could be something else then. Nov 28 17:11:09 unfortunately usb specs don't seem to require things to actually work Nov 28 17:11:16 maybe i have to turn the port on? Nov 28 17:11:30 i'm in an odd mux mode right now because i've been doing some serial communications with a zipit Nov 28 17:11:37 strata: the specs dont tell you whether the cheap designer actually designed according to the specs Nov 28 17:11:55 KotH: true. i'll be back in a while. figure this out later i guess :) Nov 28 17:12:53 strata: if it works in a pc and not on the beagle, i would first guess, that the rush in current of the gadget is too high, causing a voltage drop that brings it into an unknown condition Nov 28 17:13:05 strata: for more info, connect a beagle480 inbetween Nov 28 18:07:40 anyone in a layoff meeting Nov 28 18:08:38 who is moving forward? Nov 28 18:11:25 opportunities for advancement Nov 28 18:48:19 oddly enough i2c ie more popular today than opencv.. :) Nov 28 18:48:31 on the google mail list Nov 28 18:49:59 hi Nov 28 18:50:05 lo Nov 28 18:50:11 where are the Android 4.0 kernel sources for beagleboard located? Nov 28 18:50:13 lo +1 Nov 28 18:51:56 Crofton: yes, lots of people were in that "meeting" today Nov 28 18:58:44 Crofton: i endorsed your trolling btw Nov 28 19:26:59 awesome Nov 28 19:27:16 mdp, I hope thinks work out OK for everyone invovled Nov 28 19:28:19 Crofton: mdp is involved? Nov 28 19:28:30 Crofton: unfortunately, it's so many people that I think it will not work out OK for many of them Nov 28 19:28:45 long term ..... Nov 28 19:28:45 ds2, Sitara-land has no reductions Nov 28 19:29:04 mdp: that's what I thought... it is purely your cousins Nov 28 19:29:09 I ended up having to quit since they would not lay me off Nov 28 19:29:17 Crofton: yeah, I think it will be fine for all the good engineers caught in this Nov 28 19:29:19 ouch Nov 28 19:29:23 might even be a blessing Nov 28 19:29:27 heh Nov 28 19:29:28 yeah Nov 28 19:29:32 mdp: but you guys are not taking in people either, right? Nov 28 19:30:04 I saw that with several guy sI knew, rough at first, but they ended up doing better Nov 28 19:30:21 ds2, well, we're actually looking for a security expert in applications engineering Nov 28 19:30:32 so I guess that means we're taking in people Nov 28 19:31:09 our previous guy left to finish his PhD Nov 28 19:31:22 i wonder if it was like this when the TI 486 was nuked Nov 28 19:40:57 KotH: sure. because i have like 3 beagle 480's just laying around in my junk drawer. Nov 28 19:42:09 i had 4, but one of them got smashed because it was in my back pocket with my oversized wallet and i sat down on it. Nov 28 19:42:14 mranostay, thanks. Everyone in the room is helping Nov 28 19:43:56 strata: :-) Nov 28 19:44:12 strata: if you are doing anything with usb, an beagle480 is a must have Nov 28 19:45:25 i'm not analyzing protocols here. i'll stick with my $15 dmm and some experimentation. not all of us here are rich pricks. to even suggest that? *laughs* Nov 28 19:53:09 * KotH isnt rich Nov 28 19:53:12 * KotH is a poor student Nov 28 19:55:10 and i wouldnt trust a $15 dmm.. it doesnt even work as a guestimeter Nov 28 19:55:53 they can _usually_ give a reasonable indication of open/closed circuit Nov 28 19:57:06 yeah.. that's about what they can do Nov 28 19:58:07 maybe even differentiate between 5V and 12V Nov 28 19:59:12 that is, they give a roughly double reading for 12V compared to 5V Nov 28 19:59:37 my tounge can do that as well ;) Nov 28 20:03:49 koth only student? Nov 28 20:04:00 ah thats why you can chat the whole day at work Nov 28 20:04:04 he's a fake student Nov 28 20:04:12 like av500? Nov 28 20:04:16 nope Nov 28 20:04:21 i actually go to lectures Nov 28 20:04:21 worse Nov 28 20:04:29 he's studying psychology Nov 28 20:04:44 I think he's only doing it for the girls Nov 28 20:04:55 lectures are overrated Nov 28 20:05:12 just skip them and attend only the ones from the headmaster/dean/etc Nov 28 20:05:44 ds2: doesnt work if you have just a couple of pp slides and an exam you have to pass Nov 28 20:06:05 ds2: but what if the girls are at the lectures? Nov 28 20:06:08 and unlike anything hard science or engineering, there are hardly any books that you can use as reference Nov 28 20:06:26 mru: psst! dont blow my cover! Nov 28 20:08:14 mru: that'd be an exception Nov 28 20:08:41 it's the only reason I can think of for studying psychology in the first place Nov 28 20:09:11 mru: pharmacy would be better actually.. Nov 28 20:09:18 mru dont the women which study psychology needing a therapy themself? Nov 28 20:09:21 better looking girls too Nov 28 20:09:25 isn't that stuff obsolete quicker then CS? Nov 28 20:09:39 ds2: obsolete girls? Nov 28 20:10:04 woglinde: maybe, haven't investigated the matter Nov 28 20:10:10 woglinde: only half of them do, the other half are the ones who failed the numerus clausus for medicine Nov 28 20:10:19 koth haha Nov 28 20:10:22 either Nov 28 20:10:44 one of the local barmaids is a psychology student... Nov 28 20:10:53 ah barmaids again Nov 28 20:11:38 %#$#@!$#%@$ android dumps Nov 28 20:11:50 attributing things to a .so that isn't even within the .so Nov 28 20:12:39 mru: for my defence, i also take lectures in engineering Nov 28 20:12:40 n/m Nov 28 20:12:47 damn elf sections Nov 28 20:12:48 probably the nearest symbol was in that .so Nov 28 20:12:53 * KotH doesnt mind ds2 mumbling to himself Nov 28 20:13:12 mru: no, it turns out that address is PLTGOT Nov 28 20:13:24 i was just looking at objdump -d Nov 28 20:13:34 I always use readelf Nov 28 20:13:50 Crofton: wow you are more qualified in trolling than ARM now Nov 28 20:15:05 rofl Nov 28 20:15:11 mranostay: hm? Nov 28 20:15:15 I just had a roomfull of people endorse me Nov 28 20:16:17 Crofton: FPGAs coming up Nov 28 20:19:17 <_av500_> Crofton: Thomas works for ubiquity? Nov 28 20:19:57 I thought he was skiig Nov 28 20:20:08 <_av500_> well, when not skiing :) Nov 28 20:20:17 <_av500_> one of their network cameras is pretty cheap Nov 28 20:20:29 <_av500_> pondering to buy one Nov 28 20:20:50 Tsou? Nov 28 20:21:02 lunch Nov 28 20:21:05 <_av500_> yes Nov 28 20:21:07 <_av500_> no? Nov 28 20:21:22 <_av500_> somebody was working for them Nov 28 20:31:47 no Nov 28 20:32:42 <_av500_> ah Nov 28 20:32:44 <_av500_> hmm Nov 28 20:32:52 gah it sucks that you only use one channel of the ehrpwm with the current driver Nov 28 20:33:04 <_av500_> Crofton: ok, never mind then :) Nov 28 20:33:10 mranostay: bitbang the rest Nov 28 20:33:29 mmmm someone said bitbang Nov 28 20:33:42 hi beagleboard! quick question about the BOM for rev C — anyone here who can answer a hardware question? Nov 28 20:33:49 prpplague: do you have a highlight rule on that? :) Nov 28 20:34:08 star_: no, all hardware guys left with the second space ship Nov 28 20:34:17 bitbang, jtag, lvds and beer Nov 28 20:34:25 star_: they were saying something about a space goat or so... Nov 28 20:35:00 I'm trying to find online/decode the part number for the 2x17 header (F618-MG -D051-XX-CF358), so I can find the mating connector online (designing a beagleboard peripheral Nov 28 20:36:25 star_: isnt taht a standard 1.27mm pitch smd header pin? Nov 28 20:37:01 10 yrs ago, when I first started working here, I opened up a package of silica gel and poured it into a glass vial with a lid, and filled it with water Nov 28 20:37:23 why would you do that? Nov 28 20:37:35 impress the girls? Nov 28 20:37:38 I can now report that the silica gel is still not at all gel-like, and once you dry it off, it doesn't feel any different. Sadly, I forgot to weigh them before I immersed them, so I can't really tell how much moisture they absorbed. Nov 28 20:37:39 found it a bit dessicating? Nov 28 20:37:58 I can, however, report that they smell absolutely AWFUL Nov 28 20:38:03 rotfl Nov 28 20:38:16 Why? I have no idea why I did this. It was a decade ago! How can you expect me to remember that Nov 28 20:38:21 This is scienc! Nov 28 20:38:22 e Nov 28 20:39:24 prpplague: I've graduated from bitbanging to bitbanding Nov 28 20:39:26 Actually, I take it back, they do look a bit diferent. They are almost like a clear sphere now, with a white cloudy center Nov 28 20:39:29 SilicaGel: http://www.smbc-comics.com/index.php?db=comics&id=1202 Nov 28 20:39:49 mranostay, you have the source…patches are unwelcome Nov 28 20:39:50 yeay! Nov 28 20:39:50 mdp: has atomicity got you in a bunch? Nov 28 20:40:07 ds2, indeed Nov 28 20:40:38 I had one brief technical discussion today, it was refreshing after all the negative energy here Nov 28 20:41:01 if you want technical discussions and don't mind am35x.... ;) Nov 28 20:41:17 The "Do not Eat" warning is long, long gone. Should I eat it? Nov 28 20:42:07 Perhaps waht I should do is towel dry the beads, weigh them, then dry them out in a low temperature oven, then weigh them again Nov 28 20:42:12 SilicaGel: yes! try it! for science! Nov 28 20:43:27 * mranostay notes all his friends are as weird as KotH Nov 28 20:43:34 * mranostay *sighs* :) Nov 28 20:43:48 problem with the peninsula? Nov 28 20:43:48 Weird like a fox! Nov 28 20:44:01 https://www.youtube.com/watch?v=P9xwlK3PUf8&feature=g-upl Nov 28 20:44:42 mranostay: i'm not weird! Nov 28 20:44:50 mranostay: i'm a perfectly normal swiss geek! Nov 28 20:45:43 Crofton: c'est quoi ça? Nov 28 20:46:21 Fire Nov 28 20:46:29 er... yes.. Nov 28 20:46:34 and what is being burned? Nov 28 20:46:42 a ping pong ball Nov 28 20:46:54 mranostay, I have Tizened on Castro Street Nov 28 20:47:08 er not SF right? :) Nov 28 20:47:19 right Nov 28 20:47:45 Crofton: what block of Castro or do i have to find out? Nov 28 20:47:55 you have to find it Nov 28 20:48:13 Crofton: you'll wave as the ark passes through? Nov 28 20:48:21 yeah Nov 28 20:48:26 this rain is making me sad Nov 28 20:50:02 Crofton: turn that frown upside down! Nov 28 20:51:23 hmm Nov 28 20:52:04 am I still connected Nov 28 20:52:11 Crofton: no Nov 28 20:52:15 * KotH disconnects Crofton from reality Nov 28 20:52:20 _av500_: post some cat pics for Crofton Nov 28 20:52:35 KotH: like you are connected to that Nov 28 20:53:32 mranostay: i'm studying the axioms of my own selfbuild reality Nov 28 20:53:45 mranostay: in a way, i'm more connected to reality than you ever can hope to be Nov 28 20:54:14 I made a graph: https://docs.google.com/spreadsheet/ccc?key=0AguHvNGaLXy9dHVTNzJWREhGS2tmQlM4dk5WbjZ2UlE#gid=2 Nov 28 20:54:38 i have no desire to be connected to reality... real life is boring :) Nov 28 20:55:05 mru: is that #beagle usage? Nov 28 20:55:09 yes Nov 28 20:55:31 one chart per day, one rolling average over 30 days Nov 28 20:56:10 I see a clear trend Nov 28 20:56:22 and exponential groth! Nov 28 20:56:26 growth* Nov 28 20:56:35 bits has been banging more than ever Nov 28 20:56:41 *have Nov 28 20:58:14 mru, you need more to work on Nov 28 20:58:46 that was just a trivial grep through the logs Nov 28 20:59:54 bit bang! Nov 28 21:00:23 * mranostay trys to inflate the numbers Nov 28 21:01:05 <_av500_> mru: how can it be 0.5 bitbang??? Nov 28 21:01:19 only bang the 1s Nov 28 21:01:21 _av500_: average over 30 days Nov 28 21:01:24 <_av500_> is the bit banged or not? Nov 28 21:01:41 there were two bits, of which one was banged Nov 28 21:03:20 <_av500_> schroedingers bits Nov 28 21:03:45 scrödinger's bat Nov 28 21:04:05 <_av500_> #baturday Nov 28 21:05:42 Crofton: we are past FPGAs! Nov 28 21:22:46 mru: so did you do American date style, or did google detect my IP and show me what I wanted to see? Nov 28 21:22:59 I didn't do anything Nov 28 21:23:15 mru: in your graph Nov 28 21:23:18 the text file I uploaded has y-m-d style Nov 28 21:23:34 hmm.... it shows me mm/dd/yyyy Nov 28 21:23:40 google detects that as a date and marks the cells as such Nov 28 21:24:05 so google must be showing me what I want to see then Nov 28 21:24:26 no, google simply uses american style Nov 28 21:24:44 ok, so that was part of the question. Nov 28 21:24:50 alan_o: you dont want to use american style dates *jedi move* Nov 28 21:25:17 KotH: I like the ISO, personally. No confusion. Nov 28 21:25:35 KotH: and everything sorts it correctly Nov 28 21:25:43 alan_o: european has also no way for confusion :-) Nov 28 21:26:03 european is iso Nov 28 21:26:05 KotH: no more than American, you mean? Nov 28 21:26:05 alan_o: neither has japanese... unless you confuse it with usian style Nov 28 21:26:17 british is d/m/y Nov 28 21:26:25 mru: nope, most people in europe use DD.MM.YYYY which is different from iso Nov 28 21:26:26 only the British do that? Nov 28 21:26:41 KotH: that's what I had thought Nov 28 21:26:41 alan_o: no japanese do the same Nov 28 21:27:04 er.. no japanese do different Nov 28 21:27:05 sweden certainly uses y-m-d as standard Nov 28 21:27:12 interesting Nov 28 21:27:14 didnt know that Nov 28 21:27:26 then, i've never been in a country where bones are sexual objects Nov 28 21:28:01 <_av500_> lol Nov 28 21:28:02 then, i probably should be asleep by now Nov 28 21:28:18 <_av500_> sweden reminds me, sec Nov 28 21:29:22 <_av500_> done Nov 28 21:29:33 aha Nov 28 21:29:46 havent thought about that Nov 28 21:31:29 night boys... Nov 28 21:31:42 keep the guns under your beds dry! Nov 28 21:32:56 d/m/y is canada as well Nov 28 21:33:22 wmat: canada is technically part of britain :) Nov 28 21:33:31 mru: technically, it's not Nov 28 21:33:39 royally, it is Nov 28 21:34:04 we do still have her highness on all of our money Nov 28 21:34:21 but we don't have to send them beaver pelts and wheat anymore Nov 28 21:35:01 <_av500_> soon you will have to Nov 28 21:35:08 <_av500_> as UK is not in the EU, we will not bail them out Nov 28 21:35:44 * wmat goes to set some traps Nov 28 21:35:59 <_av500_> TARPS Nov 28 21:36:24 too big to fold my arse Nov 28 21:38:10 my wife is canadian Nov 28 21:39:51 she can stay then ;) Nov 28 21:48:00 Actually, according to her she's Canadien. heh Nov 28 21:51:55 is the internal boot ROM for the beagleboard replacable? Nov 28 21:52:09 the code that operates before xloader that is. Nov 28 21:52:59 no Nov 28 21:53:07 that is what ROM means Nov 28 21:53:13 Read only Nov 28 21:53:35 it's not stord in NAND? Nov 28 21:53:40 *stored, excuse me. Nov 28 21:54:03 then it would not be ROM Nov 28 21:54:44 huh. alright. Nov 28 21:55:27 *g* Nov 28 21:56:08 I'm planning on using the beagleboard for bare metal programming, and was just wondering if I could overwrite the initial bootloader. Nov 28 21:56:22 lol Nov 28 21:56:50 you dont even know what ROM means and want to do bare metal programming? Nov 28 21:56:53 good luck Nov 28 21:57:08 knock it off guys Nov 28 21:57:16 you all know dang well that ROM is often writeable Nov 28 21:57:21 mru don't be hasty Nov 28 21:57:28 like EPROM and EEPROM Nov 28 21:57:31 ^ Nov 28 21:57:35 I bet next question is "give me please exact steps" Nov 28 21:57:40 no, actually. Nov 28 21:57:54 if he's ordering a few 100k or so units from TI, it probably is only a matter of negotiation as far as custom roms go Nov 28 21:57:59 I'm just not familiar with the beagleboard and am wanting to pick a nice embedded system to toy around with for the winter months. Nov 28 21:58:00 alan_o: ROM is never writable, might be _erasable_ though Nov 28 21:58:01 hah Nov 28 21:58:17 I thought it was stored in NAND. Nov 28 21:58:22 lol Nov 28 21:58:28 read the manual more carefully Nov 28 21:58:37 Lizalfos better get an atmel Nov 28 21:58:46 that's what I have on my bench currently. Nov 28 21:58:49 isn't there a slide on elinux.org that shows the boot process? Nov 28 21:58:55 Lizalfos: some older beagleboards have NAND where the bootloader can be stored. Nov 28 21:59:04 rev Bs or the A1/2? Nov 28 21:59:19 b's and c's Nov 28 21:59:30 that's non -xM Nov 28 21:59:37 but some of the early -xM do also Nov 28 21:59:40 that's what I was asking, non XM. Nov 28 21:59:43 not a separate designation for those Nov 28 21:59:44 alan_o: we don't talk about those Nov 28 21:59:53 mru: hehe Nov 28 22:00:00 alan_o they are legend Nov 28 22:00:03 *g* Nov 28 22:00:07 only spoken of in myth. Nov 28 22:00:25 but no, I'm no newbie. just wanting to shop around for some new toys to buy myself. :) Nov 28 22:00:36 hm Nov 28 22:00:54 thought the beagleboard would be suitable since broadcom's chipset on the pi is an IP nightmare. Nov 28 22:01:32 and powervr is sexy. Nov 28 22:01:41 powervr is ip too Nov 28 22:01:49 why would anyone need to rewrite the rom? Nov 28 22:02:01 Russ: to fix the bugs in it Nov 28 22:02:03 russ as he wrote boring winter months Nov 28 22:02:06 for shits and giggles. Nov 28 22:02:22 just lie to yourself and tell your self it doesn't exist Nov 28 22:02:44 good night Nov 28 22:03:06 the boot rom is spoken of only in myth, operating on the spiritual sillicon plane. Nov 28 22:03:52 rewrite MLO and be happy Nov 28 22:04:05 the hell does MLO even stand for. Nov 28 22:04:26 malloc's lame offspring? Nov 28 22:04:39 <_av500_> +1 Nov 28 22:04:47 memory linked object? Nov 28 22:04:55 mru, remind me what the a9 unaligned load for neon penalty is/ Nov 28 22:05:07 Milo's Linux Output Nov 28 22:05:16 hah. Nov 28 22:05:18 Crofton, 30 lashings Nov 28 22:05:45 Neon penality is proportional to distance from Vegas Nov 28 22:06:04 what happens in cortex stays in cortex. Nov 28 22:07:34 Crofton: depends on the address you load from Nov 28 22:07:57 if you're crossing a page boundary, you could end up with two page faults Nov 28 22:08:48 loading with an unaligned-capable instruction from an _aligned_ address takes one cycle more than the equivalent aligned-only instruction Nov 28 22:08:59 mru: do you know off hand if the VFP on the Cortex A's are a superset of the VFP on a Cortex-M4? Nov 28 22:09:12 M4 does not have vfp Nov 28 22:09:28 the M4 has a totally different FP block? Nov 28 22:10:26 but the instruction set is mostly a subset of vfp, yes Nov 28 22:10:52 'k Nov 28 22:11:13 so a Cortex-A8 can completely simulate a M4 then? Nov 28 22:11:19 no Nov 28 22:11:46 what is missing on the A8 side? Nov 28 22:11:49 well, you can of course run a cortex-m4 simulator on an a8 Nov 28 22:12:01 but you can't expect to execute m4 code directly Nov 28 22:12:36 other then interrupt controllers, isn't it just the same thumb2 on both? Nov 28 22:14:42 the entire interrupt model is different Nov 28 22:15:31 obviously some sequences of instructions will behave the same Nov 28 22:15:40 yes, excluding that... application is the wrong term to use but that is the sort of stuff I am thinking of Nov 28 22:15:56 but armv7-a and armv7-m have separate arch ref manuals Nov 28 22:16:36 i noticed Nov 28 22:16:55 <_av500_> ds2: use a language that works on both, like java Nov 28 22:17:51 _av500_: u got a jvm for the M3? Nov 28 22:21:05 <_av500_> it was M4 five minutes ago Nov 28 22:21:15 <_av500_> if I say yes, will ask for M0 Nov 28 22:21:19 fine, M4 Nov 28 22:21:25 I can deal with that Nov 28 22:21:42 <_av500_> no idea, did you ask Oracle? Nov 28 22:22:10 of course not. I am an engineer... not a high priest Nov 28 22:22:20 oracle is for ancient obsoletes Nov 28 22:24:34 Oracle is evil Nov 28 22:27:34 M5>M4 Nov 28 22:40:29 _av500_: i demand some cat photos to lighten the day Nov 28 22:41:45 gah, stop it Nov 28 22:42:10 mdp: stop what? :) Nov 29 01:44:02 mru, does gcc 4.7 make you use fast-math to get neon? Nov 29 01:45:21 depends on what you mean Nov 29 01:45:54 so we are playing with some NEON stuff here Nov 29 01:46:18 you should only use -ffast-math if you're certain the things it does are safe with your code Nov 29 01:46:23 ans the guy doing the work said no neon until he turned on fast-math Nov 29 01:46:30 bullshit Nov 29 01:46:49 that is what I was was wondering Nov 29 01:46:57 some of the options -ffast-math enables are required for auto-vectoriser to be useful in some cases Nov 29 01:46:57 how close is gcc 4.7 to what you can get with armcc? Nov 29 01:47:04 basically, he is trying to do something with intrinsics Nov 29 01:47:07 ds2: who cares? Nov 29 01:47:21 ds2: both are a far cry from what you can do by hand Nov 29 01:47:24 and without fast-math and -O something, the NEON disappered Nov 29 01:47:34 I say bullshit Nov 29 01:47:43 heh Nov 29 01:47:55 intrinsics give you the instructions you say provided you have -mfpu=neon Nov 29 01:48:00 I wish I had a small example Nov 29 01:48:08 hmm, Nov 29 01:48:16 I thought armcc will do some basic stuff w/o using intrinsics? Nov 29 01:48:22 ds2: as will gcc Nov 29 01:48:30 some *very* basic stuff Nov 29 01:48:35 we'll look further Nov 29 01:48:48 in my testing, the auto-vectoriser does more harm than good Nov 29 01:48:58 I see Nov 29 01:49:19 hi all, I'm working with SPI, I need to do a pulse on Chip select per word by each TX, does the kernel support that option? Nov 29 01:50:22 Crofton: you do want to enable some of the options -ffast-math turns on Nov 29 01:51:49 tholm: CS should go down (active) and back up again (idle) around the call for each spi message Nov 29 01:51:59 yes alan_o Nov 29 01:53:33 tholm: not sure what you mean Nov 29 01:53:55 tholm: do you mean you need the CS to go down and back up again around each 4 bytes? Nov 29 01:53:57 Crofton: but you have to evaluate each one and make sure you're not doing something it breaks Nov 29 01:55:47 I am somewhat stumped by the compiler making NEON go away Nov 29 01:56:12 either someone is full of shit, or there's something you're not telling me Nov 29 01:57:14 for example alan_o I need to send 0xD000 (16 bit) and I will receive a data, but CS to go up and back down with the second word Nov 29 01:57:43 tholm: can you make a separate message for each time you need CS to go down and back up? Nov 29 01:58:19 tholm: then call spi_sync() or whatever you're doing on both messages? Nov 29 01:58:55 hold on alan_o I'll pastebin the code Nov 29 01:59:01 like I said, I am annoyed we do not have something easy to show this with Nov 29 01:59:02 tholm: I haven't seen a magic option to make it do what you're saying, but I haven't looked for it either. Nov 29 01:59:31 Crofton: if you can't come up with a simple demonstration, the cause is likely not simple either Nov 29 02:00:04 hang on Nov 29 02:00:13 we are going to pastebin Nov 29 02:00:30 runexe, patebin the code and the compiler outpit Nov 29 02:00:38 no barfing at the intrinsic Nov 29 02:00:50 :) Nov 29 02:00:51 http://pastebin.com/tBhxehCf Nov 29 02:01:07 shut it Crofton :P Nov 29 02:03:06 tholm: ok, so make each word a separate ioc_transfer. Nov 29 02:03:11 tholm: that may not be enough though Nov 29 02:03:20 might have to have a separate ioctl for each Nov 29 02:03:32 tholm: I'm less familiar with the userspace interface. Nov 29 02:03:47 Crofton, mru: http://pastebin.com/mrYAfTVm <- C code (two for loops, only the first should emit NEON instructions) Nov 29 02:04:39 can you pastebin the code built without O Nov 29 02:04:56 and the code with O and the compielr args Nov 29 02:05:01 Working on it it, pastbin == teh slow (at least from these internets) Nov 29 02:05:09 runexe: what are you seeing, what do you expect to see, and what would you like to see? Nov 29 02:05:47 those v*_f32() intrinsics should either give the corresponding instruction or a compiler error Nov 29 02:06:15 Ok - with these compiler flags: Nov 29 02:06:18 arm-oe-linux-gnueabi-gcc -S -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a9 -mtune=cortex-a9 -O3 -ftree-vectorize -ffast-math --sysroot=/opt/oecore-x86_64/sysroots/ettus_e200-oe-linux-gnueabi neon_test.c Nov 29 02:06:23 for plain C code nothing is ever promised Nov 29 02:06:30 I get: http://pastebin.com/ivpHC0u6 Nov 29 02:06:46 mru, he is typing as fast as he can on his ridiculous heavy laptop Nov 29 02:06:47 Which includes the vld, vmul's that I'm looking for Nov 29 02:07:43 he is cursing pastebin now Nov 29 02:07:55 oh, I can do that all day Nov 29 02:08:03 thankfully there are alternatives Nov 29 02:08:12 ok alan_o I think imma try to send only one word Nov 29 02:08:35 With: arm-oe-linux-gnueabi-gcc -S -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a9 -mtune=cortex-a9 -O3 -ftree-vectorize --sysroot=/opt/oecore-x86_64/sysroots/ettus_e200-oe-linux-gnueabi neon_test.c Nov 29 02:08:45 (i.e. everything else the same, but no -ffast-math) Nov 29 02:08:53 actually that works but the performance is not that good Nov 29 02:08:58 that code is not what produced that assembly Nov 29 02:09:02 more swearing Nov 29 02:09:23 tholm: looks from the spidev driver code that it cycles the CS one time per ioctl() call. Check it with scope (is what ds2 would say). Nov 29 02:09:23 hmm, that is an intersting theory .... Nov 29 02:09:27 I get: http://pastebin.com/4BnyEJiX Nov 29 02:10:07 oh, I see what's going on here Nov 29 02:10:20 the result of the first loop is never used so it's dropped entirely Nov 29 02:10:34 the second loop is partially auto-vectorised when -ffast-math is enabled Nov 29 02:10:37 ok imma try, thx alan_o Nov 29 02:10:38 but not otherwise Nov 29 02:10:41 thanks Nov 29 02:10:56 mru: Interesting Nov 29 02:10:57 tholm: no problem. Nov 29 02:12:42 runexe, is now contempplating the fact he made an error Nov 29 02:13:12 more swearing Nov 29 02:13:27 :) Nov 29 02:13:57 gcc splits the loop in one part for a multiple of the vector size and a second part for any remaining tail Nov 29 02:14:10 and _lots_ of surrounding junk code Nov 29 02:14:26 the scalar one is also used if the pointers alias Nov 29 02:14:36 you should restrict-qualify your pointers Nov 29 02:14:49 assuming they do not alias Nov 29 02:17:36 and if the pointers are 8/16-byte aligned, tell gcc about this using __builtin_assume_aligned() Nov 29 02:18:17 and _never_ count on the auto-vectorisation doing what you want Nov 29 02:18:40 mru: Ah! I was under the impression I could not use intrinsics and pass along alignment info - thanks very much! Nov 29 02:18:52 it's new in 4.7 Nov 29 02:18:59 sweet Nov 29 02:19:06 and intrinsics don't work before that anyway Nov 29 02:19:23 it might compile, but you don't want to see the result Nov 29 02:20:22 with 4.7 intrinsics can give pretty good code in simple cases Nov 29 02:20:24 thinnk training wheels Nov 29 02:20:54 the alternative is we take your brain and make milkshakes Nov 29 02:20:57 if you start running out of registers, things go downhill quickly Nov 29 02:21:18 most of the stuff we are looking at right now shouldn't run out of registers Nov 29 02:21:27 Output is looking *much* better now :) Nov 29 02:21:41 mru: same when you start running out of tape Nov 29 02:21:48 alan_o: yep Nov 29 02:23:01 Crofton: runexe: just keep an eye on what the compiler spits out Nov 29 02:23:20 if it starts doing things you can't easily follow, something is probably weird Nov 29 02:23:40 yeah Nov 29 02:23:49 and if you need help, my off-shore account is always accepting donations Nov 29 02:24:19 mru: Right :) - thanks very much! Nov 29 02:56:02 what does "!!" mean in C? Nov 29 02:58:51 what does ! mean in C? Nov 29 02:59:04 nope !! Nov 29 02:59:12 answer the question Nov 29 02:59:21 !!pointer->cs Nov 29 02:59:27 humour me Nov 29 02:59:31 what does ! mean? **** ENDING LOGGING AT Thu Nov 29 02:59:59 2012