ludev-4.16.00.00 已经正常编译,生成了libticmem.a和cmemk.ko文件。
但是还有这个文件ludev-4.16.00.00/src/cmem/module/kernel/drivers/cmem/cmemk_stub.c,文件里面的注释如下图:
也就是让把这个文件直接编译进内核,并且添加.reserver = xx,但是实际情况是 对应的目录和文件下已经添加了 .reserver = xx一个类似的操作,也就是说TI默认已经把这个工作做了,cmemk_stub.c这个文件不需要编译进内核了?
李大闲:
如果还需要添加cmemk_stub.c的话,那么原来已经有个函数了,要怎么办呢?整个项目就差这么一点了,感觉搞不定了,求各位大牛解疑。
Shine:
回复 李大闲:
看注释里是要添加的。* This file must be builtin to the kernel, since it contains a function* that must be called extremely early in the boot procedure.** It is suggested that this file be placed according to the directory* structure as placed in the linuxutils product, in*<kernel>/drivers/cmem/cmemk_stub.c*<kernel>/drivers/cmem/Makefile*<kernel>/include/linux/cmemk_stub.h – more than a suggestion to place*this file here, as the loadable portion of CMEM, cmemk.ko, expects*it here* In doing so, the contents of*<linuxutils>/drivers/Makefile* should be copied to the existing*<kernel>/drivers/Makefile