I am trying to build a multiple file module. The child file is empty. Just stubs. I am seeing the following syntax for the make file online.
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.
I am trying to build a multiple file module. The child file is empty. Just stubs. I am seeing the following syntax for the make file online.
Hello,
Can you please tell us what is the question here?
What are you trying to do? Are you adding your module?
Thanks.
Yes, I am trying to add additional files to the module. Just to keep things simple, the additional file just has a bunch of stubs. It seems to compile fine, but when I load it I don't see any of my debug messages nor does it successfully reserve a device number. Although, when I list all loaded modules, my module is there. When I don't add the additional file, it loads correctly.
Thanks. What you are trying to do is a generic Linux question and we are not sure why it is dependent on TDA4VM or the TI platform. Suggest checking Linux open source forum or online tutorial for the solution.
Thanks.
Because I am using ti-processor-sdk-linux-rt-evm. All examples I am finding on the web say I am doing this right but still it is not working.
The Linux kernel provided with the TI SDK ti-processor-sdk-linux-rt-evm is the same as the standard TI SDK ti-processor-sdk-linux-evm. They are built from the same code base.
We are unsure why you would say it happens only on the TI SDK - what is it that has a dependency on the TI SDK? Have you tried on any other vendor SDK?
Thanks.
So I was able to compile, load the module, and see my printk messages. Progress! I broke the system when I tried accessing GTC registers using the physical addresses. Next step - getting the virtual addressing working.
So after looking over some other threads, I might be reinventing the wheel. It appears that TI RT Linux uses the GTC counter for some timers already. I haven't found any definitive information on it. Which timers? Do these timers manipulate the counter data in any way?
This information must be in the device tree. I suggest checking there.
Thanks.
I didn't see anything in the dev tree that looked like GTC. I am going to start a new thread. I am trying to map the GTC registers into virtual memory in my module. ioremap, readl, and ioread32 don't seem to work.
Ok, We are not sure what you are trying to do. Please give us more details regarding the address value you are trying to map and from where are you doing this - Kernel or user space?
Thanks.
I have two paths, One, find out if the Linux kernel already has access to the GTC. Two, build my own module for this purpose.