Hi all! I'm a french student and I'm trying to make microwindows working under eCos. Here is the step i do . ecosconfig new pc After I'm searching in the ecos.ecc file the line "default donsole channel" and il erase the "#" before "user value" and replace the 0 by a 2, Then I'm searching startup type , I erase the "#" and replace ROM by floppy. After that I type ecosconfig template net ecosconfig add mw ecosconfig check ecosconfig tree make
After the compilation, I go to the directory with the source program and i modify the file target.ld. I add a "0" in the length value. Then I run i386-elf-gcc -g -D_ECOS -I ../ecos-pc/install/include helloNano.c -I /home/amira3/Desktop/ecos/packages/services/gfx/mw/current/include/microwin/ -L ../ecos-pc/install/lib -Ttarget.ld -nostdlib i386-elf-objcopy -O binary a.out dd conv=sync if=a.out of=/dev/fd0 When i launch the program on the disk i got a black screen. Can you help me? Have you ever tried Microwindows under eCos? If yes, please send me some informations. Here is the program I try to launch #define MWINCLUDECOLORS #include <stdio.h> #include "nano-X.h" int main(int ac,char **av) { GR_WINDOW_ID w; GR_EVENT event; if (GrOpen() < 0) { printf("Can't open graphics\n"); exit(1); } printf("Can open graphics\n"); w = GrNewWindow(GR_ROOT_WINDOW_ID, 20, 20, 100, 60, 4, WHITE, BLUE); GrMapWindow(w); for (;;) { GrGetNextEvent(&event); } GrClose(); return 0; } Thank you in advance. Antoine