built NVIDIA driver into the kernel

:lol:

After 2 hours of research and test, finnal I made it!
Yes, I hate to have module .... I want to disable all modules ....., but .... OK, fine ... but nvidia GPU driver
must be built as module ....


$cat /proc/modules
nvidia 10025615 42 - Live 0xffffffffa0007000 (P)


The only module I got on my machine .....

So, since I'm a hacker , let's do something to make nvidia.ko disappear ....

First , make a dir in kernel source to put nvidia's kernel module source code.

mkdir drivers/gpu/drm/nvidia

Then Edit drivers/gpu/drm/Kconfig too add NVIDIA opthin
And , copy nvidia's kernel module source code to nvidia subdir (do make module on that source dir before copy to generate some file )

Edit drivers/gpu/drm/nvidia/Makefile  to make it build 

run make menuconfig and make . enjoy

now , it is the attached path

 NOTE: this only works on X86_64  since I copyed X86_64 versions of NVIDIA source code

此日志的引用地址
GB2312 http://microcai.gsalex.net/trackback.php?id=14&encode=gb2312
UTF-8 http://microcai.gsalex.net/trackback.php?id=14&encode=utf-8

发表评论

Required


Categories

Others