You could start with getting i2c-detect working, rather than your own
program.
By the way: I have just uploaded a new biffinitrd tarball, which uses
hush instead of ash, and job control now works, unfortunately ls -l
doesn't for some reason. This should allow you to use the standard
kernel config of mine, and fit more of your stuff on flash.
> Started to test i2c but spent some time re-wiring my breadboard.
> I've selected my digital temperature sensor DS1721 for the tests,
> since I've already explained how it works in my i2c topic!
>
> Still haven't moved any further, just to know if anyone else is testing it,
> to get some feedback on how the tests are going on.
>
> Here is what I've done:
>
> - Compiled OnFlashSystem for kernel 2.6.30.5 and removed 1-wire and spi
> support to gain some of space for extra apps. Used the kernel command line:
>
> *console=uart,io,0x3f8 i2c-gpio-custom.bus0=0,12,9*
>
> 1st command is only necessary for BIFFBOOT<=V2 (really need to upgrade this
> soon).
> I've separated the commands with space, didn't thought that comma would
> work!
>
> It seems to work, during boot I got this:
> *[ 0.948058] i2c-gpio i2c-gpio.0: using pins 12 (SDA) and 9 (SCL)*
>
> I have started to read i2c documentation but couldn't get the necessary
> concentration to make sense out of it, will need to review it another day.
>
> Have compiled my old C code that I used on the OpenWrt to communicate
> with the DS1721 and got it to compile under dietlibc to get some light apps.
> Have sent this to bifferboard but it didn't work! OK, really need to get
> back
> to documentation to sort that out!
>
> No tools available (i2cdetect) so will really need to rely on my digital
> protocol
> analyzer.
>
> If someone has some useful tips, please feel free to share !!!
>
> Regards,
> Nelson.
>
> On Sun, Sep 6, 2009 at 6:46 PM,
biffe...@yahoo.co.uk
> <
biffe...@yahoo.co.uk>wrote: