Forum Discussion
Altera_Forum
Honored Contributor
11 years agoEmbedded Linux and HAL
Hello, I'd like to make a question about the peripheral when Linux is installed on a FPGA with NIOS. If I want to access to a peripheral register, I think that I have to make a driver in a Linux m...
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- The best way to make a Linux driver for something that isn't used to boot the kernel is to use a kernel module. You can link the HAL functions in when you create your kernel module. There information on doing this on the net. Just search for "writing Linux device drivers". --- Quote End --- Thank you for the answer. But, if I make a kernel module, is the linking of the hal's function mandatory to access the register or I can access to the peripheral in the classic Linux manner, i.e. with inb and outb?