How to compile kernel module for T2080rdb

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to compile kernel module for T2080rdb

527 Views
hongyuanzhao
Contributor I

driver$ make ARCH=powerpc CROSS_COMPILE=$CROSS_COMPILE CC="${CC}" LD="${LD}" AR="${AR}" OBJCOPY="${OBJCOPY}"
make -I . ARCH=powerpc CROSS_COMPILE=powerpc64-fsl-linux- -C /home/ast/QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/work/t2080rdb_64b-fsl-linux/linux-qoriq/4.1-r0/build/ M=/mnt/work/7900/ALTHEA7910/driver modules
make[1]: Entering directory `/home/ast/QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/work/t2080rdb_64b-fsl-linux/linux-qoriq/4.1-r0/build'
CC [M] /mnt/work/src/driver/test_drvr.o
powerpc64-fsl-linux-ld: unrecognized option '-Wl,-O1'
powerpc64-fsl-linux-ld: use the --help option for usa

 

0 Kudos
Reply
4 Replies

452 Views
June_Lu
NXP TechSupport
NXP TechSupport

Have you follow the

 FAQ | QorIQ SDK v2.0-1703 Documentation | NXP Semiconductors

 "How do I use standalone toolchain to build kernel?".

0 Kudos
Reply

484 Views
June_Lu
NXP TechSupport
NXP TechSupport

Please refer to FAQ | QorIQ SDK v2.0-1703 Documentation | NXP Semiconductors

Find the "How do I use standalone toolchain to build kernel?".

0 Kudos
Reply

472 Views
hongyuanzhao
Contributor I

Compile your own defined kernel module and compile to generate ko

0 Kudos
Reply

473 Views
hongyuanzhao
Contributor I

hi June_Lu ,

Write your own kernel module; 

0 Kudos
Reply