So far, my OS can print to the screen but that's about it. However, as I understand it there should be no special OS requirements as the driver can be compiled as stand alone, so nothing additional is required from the OS.
I downloaded the driver source, and compiled like this:
Code: Select all
make driver CONFIG=DEBUG TYPE=STANDALONE TARGET=RPI GNU=arm-none-eabi-
Code: Select all
extern UsbInitialise();
int main (void) {
kprintf ("Test\n");
UsbInitialise();
kprintf ("USB\n");
}
Code: Select all
CC=arm-none-eabi-gcc
AS=arm-none-eabi-as
CFLAGS=-nostartfiles -nodefaultlibs -fno-builtin -Wall -T linker.ld $(HEADERS)
objects=$(addprefix $(OBJDIR)/,main.o gpiopins.o framebuffer.o drawchar.o putchar.o intconv.o strlen.o kprintf.o kputchar.o)
kernel.img: $(objects)
arm-none-eabi-as -o crt0.o crt0.s
$(CC) -o kernel.img $(objects) libcsud.a $(CFLAGS)
Code: Select all
warning: libcsud.a(armv6.c.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
Is there something I'm missing?
Thank you