| moreil ( @ 2008-06-27 18:45:00 |
| Current mood: | Overdrawn at the karma bank |
karma debt!
Ok, I'm very worried now. I think I've just incurred a huge karma debt...
So I finally upgraded the kernel for the NGW100 board I have. And it worked without need to break out the JTAG programmer. Spooky.
And then I logged in and did 'modprobe i2c-gpio; modprobe i2c-dev'. Which just worked. Really spooky.
So I write a tiny program to send and I2C message on the bus. Which compiled using the AVR32 toolchain without any breakage or mysterious messages of complaint from the depths of gcc. And it generated a binary !!!! I'm getting pretty freaked out here.
So I plugged my new expansion board I'd soldered up into the NGW100. And it didn't catch fire!!?!!?!!
So I run my program. Words fail me.
/tmp # ./i2c opened device i2c-0 0x00000018
That's data! The first time I ran it, it give me data! Actually real data! The actual status register from the DS2482 chip! And it works every time I run it!
I need to go have a lie down, and morn the disaster that must surely be coming my way.