Hi All,
I tried to make the hello.c, following the link:
but I create new folder and new file called hellosan at /usr/src/minix/drivers/examples
>>>> My Makefile:
# Makefile for the hello driver.
PROG= hellosan
SRCS= hellosan.c
DPADD+= ${LIBCHARDRIVER} ${LIBSYS}
LDADD+= -lchardriver -lsys
MAN=
>>>> My hellosan.c
#include <stdio.h>
#include <stdlib.h>
#include <minix/syslib.h>
int main(int argc, char **argv)
{
sef_startup();
printf("Hello San C Cool!!!");
return EXIT_SUCCESS;
}
I run make clean, make, make install and No errors happpened.
>>>> I Configured /etc/system.conf:
service hellosan
{
system
UMAP # 14
IRQCTL # 19
DEVIO # 21
;
ipc
SYSTEM PM RS LOG TTY DS VM VFS
pci inet amddev
;
uid 0;
};
When I execute the service up /service/hellosan, the message print in loop and I cannot stop the process,
I need to restart my VirtualBox.
Anyone help me, please!
Regards,
Alessandro