<div dir="ltr"><div>I seted up bitbake for building Angstrom  on Ubuntu 12.10. My new strategy is not to to build the kernel module using the same Angstrom  target system as host, but building it on Ubuntu targetting the "minnowboard environment". As I should pass KERNEL_SOURCE_DIR as make argument when building the module, what path should use in this case, if the directory structure is "/opt/minnowboard/ourbuild"?.<br>
<br></div>Thanks.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-23 14:57 GMT-05:00 Ferchu R <span dir="ltr"><<a href="mailto:chamac2@gmail.com" target="_blank">chamac2@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi Darren.<br><br></div>The driver's source code uses a struct named "fb_info" that is defined in fb.h (this file is part of the standard kernel. Within the definition of fb_info is the following code:<br>

<br>#ifdef CONFIG_FB_DEFERRED_IO<br>    struct delayed_work deferred_work;<br>    struct fb_deferred_io *fbdefio;<br>#endif<br><br></div>Because of that, when CONFIG_FB_DEFERRED_IO is not present, member fbdefio are not included in fb_info struct, thus I am getting the error at build time.<br>

<br>The manufacturer gave me the advice of running "make menuconfig" on the kernel source directory and add "Displaylink USB Framebuffer support" option. After that,  both files (.config and Kconfig) were automatically changed in a way all entries involving CONFIG_FB_DEFERRED_IO now are equal to those of their counterpart in Ubuntu. So I think the files at this time are not th problem. The manufacturer told me too that I should re-compile the kernel for the changes to take effect. How could I do this?. Should I only cd to the kernel source directory and run make?. I am running all this stuff in the same Angstrom Minnow system.<br>

<br>Thanks and best regards.</div></div><div><br></div><br><div><br><br> <div><div> <div><div><br><br></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-22 23:02 GMT-05:00 Darren Hart <span dir="ltr"><<a href="mailto:dvhart@linux.intel.com" target="_blank">dvhart@linux.intel.com</a>></span>:<div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 5/19/14, 21:03, Fernando wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The hardware manufacturer has told me that just adding CONFIG_FB_DEFERRED_IO<br>
to the .config file, is not going to work. It is necessary add a section<br>
which make reference to the CONFIG_FB_DEFERRED_IO feature in the KConfig<br>
file.<br>
<br>
I hope that someone can advice me if this is the right approach and if there<br>
is a template to add a new section to this KConfig file.<br>
</blockquote>
<br></div>
I'm not really sure how to answer your question. The structure you reference in the include/linux headers is impacted by whether or not CONFIG_FB_DEFERRED_IO is configured in or not.<br>
<br>
Does what you are trying to do work on a typical desktop Linux distribution? Ubuntu, Fedora?<br>
<br>
If so, can you compare the files - exactly how are things different?<span><font color="#888888"><br>
<br>
-- <br>
Darren Hart                     Open Source Technology Center<br>
<a href="mailto:darren.hart@intel.com" target="_blank">darren.hart@intel.com</a>                       Intel Corporation</font></span><div><div><br>
______________________________<u></u>_________________<br>
elinux-MinnowBoard mailing list<br>
<a href="mailto:elinux-MinnowBoard@lists.elinux.org" target="_blank">elinux-MinnowBoard@lists.<u></u>elinux.org</a><br>
<a href="http://lists.elinux.org/mailman/listinfo/elinux-minnowboard" target="_blank">http://lists.elinux.org/<u></u>mailman/listinfo/elinux-<u></u>minnowboard</a><br>
</div></div></blockquote></div></div></div><br></div>
</blockquote></div><br></div>