Hi, I have been trying to learn embedded systems and i am half way through. I choosed a board called viper-lite as my development target board. This board comes along with the redboot (Boot loader) and embedded Linux and Eco's OS's.
I wrote a program which actually configures the serial port. Since I initially decided to run this code on reboot, I was apply to refer UART registers directly. But when I try the same program on embedded Linux with some changed to the code, i get a seg fault. Well thats true, because i am trying to access the kernel space without any memory map UART registers.
My question here is, will I be able to run the same code which works on red boot on Linux. Will i be able to memory map the UART registers, and use struct overlay to configure UART registers? I tried one more solution, on Linux as well, by opening the ttyS0 file and writing on to the file. Which actually works.
But just curious to know how will make the other code to work on Linux.
Thank you
ssharish2005