This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Size of recompiled kernel modules much bigger

Hi,

i'm using a Beaglebone Black with SDK v02.00.00.00

i recompiled my kernel and my kernel modules and the resulting modules are much bigger in size that the precompiled modules, sometimes 10:1

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- tisdk-am335x-evm_defconfig

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules


What's the reason for this?

Best regards

Erich

  • Hi Erich,

    I will ask the S/W team to comment.
  • Hi Erich,

    I confirmed this on my side. Probably, when compiling the prebuilt images the modules were stripped after they were installed.

    See Documentation/kbuild/kbuild.txt (search for INSTALL_MOD_STRIP).

    Are the freshly built modules creating problems in your system?

    Best Regards,
    Yordan
  • Hi Yordan,

    i have noticed this , when i tried to build the omapdrm_pvr driver which did not work.
    I stepped back to the prebuilt binaries and only tried a rebuild of the omapdrm_pvr driver.

    What have i done:
    cd ~ti-processor-sdk-linux-am335x-evm-02.00.00.00/board-support/linux-4.1.6+gitAUTOINC+52c4aa7cdb-g52c4aa7/
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- tisdk_am335x-evm_defconfig
    cd ~/ti-processor-sdk-linux-am335x-evm-02.00.00.00/board-support/extra-drivers/omapdrm-pvr-1.9.2253347/eurasia_km/eurasiacon/build/linux2/omap335x_linux
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- KERNELDIR=/home/<user>/ti-processor-sdk-linux-am335x-evm-02.00.00.00/board-support/linux-4.1.6+gitAUTOINC+52c4aa7cdb-g52c4aa7/

    copied the kernel module to my board and reboot, driver loads but "/dev/omapdrm_pvr" could not be opened :-(

    Any hint?

    Best regards
    Erich
  • I've got it.
    I have to build it from the root directory in the SDK

    cd ~/ti-processor-sdk-linux-am335x-evm-02.00.00.00
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- omapdrm-pvr

    a hard fight to understand the details of the SDK and its environment

    Best regards
    Erich
  • Hi Erich,

    I usually build the pvr driver following the steps described in board-support/extra-drivers/omapdrm-pvr-1.9.2253347/eurasia_km/INSTALL file.
    After that I sync & insmod on the target & the pvr driver is usable.

    The other option to build the driver is, as you stated, to use the top level Makefile & build the omapdrm-pvr target from ~/ti-processor-sdk-linux-am335x-evm-02.00.00.00.

    Anyway, I'm glad to hear you've got it working. Thanks for updating the thread.

    Best Regards,
    Yordan