>
> *Hi William*
>
> *I actually used build_deb.sh to build the .deb files I used for the
> second try, wasn't really clear maybe, sorry. There I just ran into the
> architecture problem.*
>

Well, the top of that page for Robert's guide tells you how to deal with
64bit host systems. e.g. <package>:386, and dpkg add-architecture, etc.

On Sun, Dec 20, 2015 at 9:21 AM, Fabian Dalbert <[email protected]> wrote:

> Hi William
>
> I actually used build_deb.sh to build the .deb files I used for the second
> try, wasn't really clear maybe, sorry. There I just ran into the
> architecture problem.
>
>
> On Sunday, December 20, 2015 at 5:01:11 PM UTC+1, William Hermans wrote:
>>
>> Use build_deb.sh instead of build_kernel.sh, following the directions
>> exactly the same otherwise, and you should be presented with 3-4 debs in
>> the deploy directory when done. One of those will be a kernel headers *deb
>> for which you can easily move to the target, and dpkg -i <packagename> to
>> install.
>>
>> On Sun, Dec 20, 2015 at 7:47 AM, Fabian Dalbert <[email protected]> wrote:
>>
>>> Hi
>>>
>>> I am working on a kernel module for the beaglebone black and trying to
>>> make use of preempt rt to improve timing. I tweaked some settings in the
>>> 4.1.13-ti-rt-r36 kernel and compiled it using Robert Nelson's instructions
>>> here <https://eewiki.net/display/linuxonarm/BeagleBone+Black>.
>>> The kernel runs on the beaglebone, however I cannot seem to get the
>>> headers right to install my kernel module. I first installed the kernel
>>> directly to the sd-card using the install_kernel.sh script. This does not
>>> install the kernel headers. Installing the headers for the exact same
>>> version from the repository lets me compile my module, however not insert
>>> it:
>>>
>>> [ 1495.737241] UARTbbMod: disagrees about version of symbol module_layout
>>>
>>> Next I installed the kernel image along with headers and firmware image
>>> as .deb files, however now I cannot compile my module as I get the
>>> following error:
>>>
>>> root@beaglebone:~/UARTbbModule# make
>>> make -C /lib/modules/4.1.13-ti-rt-r36/build M=/root/UARTbbModule modules
>>> make[1]: Entering directory `/usr/src/linux-headers-4.1.13-ti-rt-r36'
>>> ./scripts/recordmcount: 1: ./scripts/recordmcount: Syntax error: end of
>>> file unexpected
>>> make[2]: *** [/root/UARTbbModule/UARTbitbangModule.o] Error 2
>>> make[1]: *** [_module_/root/UARTbbModule] Error 2
>>> make[1]: Leaving directory `/usr/src/linux-headers-4.1.13-ti-rt-r36'
>>> make: *** [all] Error 2
>>>
>>> according to some google research this seems to be a problem when
>>> cross-compiling headers on a different system architecture (my host pc has
>>> 64-bit Linux Mint 17.3 installed).
>>>
>>> Can somebody point me in the right direction on how to get the kernel
>>> headers working alongside a self-compiled kernel?
>>>
>>> Help is greatly appreciated, thanks!
>>>
>>> --
>>> 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.
>>>
>>
>> --
> 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.
>

-- 
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