Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel include directory #77

Open
alimodarresi opened this issue Feb 16, 2020 · 6 comments
Open

Kernel include directory #77

alimodarresi opened this issue Feb 16, 2020 · 6 comments
Assignees
Labels

Comments

@alimodarresi
Copy link

Hi. I am following the https://github.com/open-switch/opx-build and building OPX for dell 4048ON. But in the installed OPX there is no include directory in kernel. actually kernel is not complete. I want to write a kernel module hello world and I can't do it. What I am missing here?

@gunasekaran-t
Copy link

@alimodarresi Generally header files are not included as part of installation. However any required package can be installed via apt.

For OPX compilation happens inside a docker and any dependency packages required to build a particular package should be mentioned as 'Build-Depends' in debian/control file. You can take a look at the existing opx repos for sample.

@alimodarresi
Copy link
Author

@gunasekaran-t Can you give me a link of the headers that I have to install. I want to install it manually.
Thanks

@gunasekaran-t
Copy link

@alimodarresi you can do apt-get install linux-headers-$(uname -r). It will install linux header files for the current linux kernel version which is 4.9.110 for opx.

@alimodarresi
Copy link
Author

Thanks @gunasekaran-t I have installed the headers by your help. Can you tell me which toolchain I can use to croos compile kernel module for OPX?
Or can you give me a guide on this topic?

@alimodarresi
Copy link
Author

@gunasekaran-t and also where can I find kernel source for OPX?

@gunasekaran-t
Copy link

@alimodarresi easiest approach is to use docker for compilation. opx packages are built using opxhub/build docker image.

For linux kernel details you can refer https://github.com/open-switch/opx-linux-config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants