[MinnowBoard] GSOC'15 - Idea feedback - SMBus Kernel Support
Michael Jones
mike at proclivis.com
Fri Mar 27 16:48:19 UTC 2015
Subhashish,
I’m sure a demo board can be found for testing off SparkFun or Digikey, and a scope or Beagle from Total Phase will help.
But for sure, somehow it has to work with something real.
Mike
On Mar 27, 2015, at 12:58 AM, Subhashish Pradhan <sprkv5 at gmail.com> wrote:
> On Wed, Mar 25, 2015 at 1:22 AM, Michael Jones <mike at proclivis.com> wrote:
>> Subhashish,
>>
>> If you change the block read/write to 64 bytes and had a Beagle trace of it along with a patch, even if it was hacked, it would show you can:
>>
>> - Install Ubuntu
>
> I use Ubuntu :)
>
>> - Find the code in the i2c/smbus driver and modify it
>
> About that. In include/uapi/linux/i2c.h
> The block read/write size is determined by the block definition in
> union i2c_smbus_data:
> __u8 block[I2C_SMBUS_BLOCK_MAX + 2];
> ...and currently I2C_SMBUS_BLOCK_MAX is defined to the value 32.
> Increasing it to 64 should achieve the desired changes.
>
>> - Compile and run the kernel
>
> Compiled a kernel with the unmodified i2c-* modules.
>
>> - Write a simple SMBus application to test
>
> About this - I don't have any pointers on how to emulate a fake i2c
> device, to test the i2c_smbus_read/write_block_data() functions.
> Or is there any simple way to do this?
>
>> - Give the app and patch for review and testing
>>
>> If you can do that, you can probably succeed with a general improvement to SMBus.
>>
>
> Plus another request - My proposal would require help, as I found this
> project late, my bad.
> May I submit the drafts to melange or discuss here (I would like to
> have quickest feedback possible)?
>
>> Mike
>>
>> On Mar 23, 2015, at 5:07 PM, Subhashish Pradhan <sprkv5 at gmail.com> wrote:
>>
>>> Hello,
>>>
>>> I'm Subhashish Pradhan, a 3rd year CS undergrad from India. I am
>>> interested in the following idea: "SMBus Kernel Support".
>>>
>>> I see that this project requires C, some Linux driver and kernel
>>> skills. I believe I have these skills thanks to my GSoC project with
>>> GNU/Hurd last year and from writing
>>> basic kernel modules for the Eudyptula Challenge.
>>>
>>> Since this task is to be performed on the kernel source built on a
>>> MinnowBoard, what could be some basic work that can be done to
>>> demonstrate proficiency related to this project?
>>>
>>> Any helpful directions/commments will be appreciated.
>>>
>>> Cheers,
>>> Subhashish
>>> nick: sprkv5
>>> _______________________________________________
>>> elinux-MinnowBoard mailing list
>>> elinux-MinnowBoard at lists.elinux.org
>>> http://lists.elinux.org/mailman/listinfo/elinux-minnowboard
>>
>>
>> _______________________________________________
>> elinux-MinnowBoard mailing list
>> elinux-MinnowBoard at lists.elinux.org
>> http://lists.elinux.org/mailman/listinfo/elinux-minnowboard
> _______________________________________________
> elinux-MinnowBoard mailing list
> elinux-MinnowBoard at lists.elinux.org
> http://lists.elinux.org/mailman/listinfo/elinux-minnowboard
More information about the elinux-MinnowBoard
mailing list