On Tue, Apr 29, 2014 at 2:32 PM, milkyway <[email protected]> wrote:
> Hi
>>
>> I am using BeagleBoard Rev C3 runnign Ubuntu. I need to rebuild the kernel
>> in order to enable the i2c-2 channel. So I did the following changes to
>> 'arch/arm/mach-omap2/board-omap3beagle.c' file.
>
>
> a) in omap3_beagle_i2c_init(), added:
> omap_register_i2c_bus(2, 400, NULL, 0);
>
>
>
> b) in board_mux[], added:
> static struct omap_board_mux board_mux[] __initdata = {
>  OMAP3_MUX(I2C2_SCL, OMAP_MUX_MODE0),
>  OMAP3_MUX(I2C2_SDA, OMAP_MUX_MODE0),
>  { .reg_offset = OMAP_MUX_TERMINATOR },
> };
>
> But while building the kernel by using build_kernel.sh form
> https://github.com/RobertCNelson/stable-kernel

Ah.. so it's been awhile (more then a year) since i've personally
booted any of those kernels...  But you shouldn't have to patch that
file, i usually enabled that i2c port by default..  Note this is only
in reference to v3.7.x branches, as everything else is foggy and too
"old" for me..


> I am getting the following error.
> .......................................
> .......................................
> git tree is clean...
> error: invalid object 100644 7247178ac9ddf2fa53e7619865b423461545394d for
> 'arch/arm/mach-omap2/board-omap3beagle.c'
> error: invalid object 100644 7247178ac9ddf2fa53e7619865b423461545394d for
> 'arch/arm/mach-omap2/board-omap3beagle.c'
> error: Error building trees
>
> How would I solve it? Please help me

Looks like you corrupted the ./KERNEL directory or the orignal git
clone.. First try deleting the ./KERNEL directory, if that doesn't fix
it you may have disconnected the git objects..

Regards,

-- 
Robert Nelson
http://www.rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to