From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicholas_Clarey@ivesco.co.uk To: ecos-discuss@sourceware.cygnus.com Subject: [ECOS] Building rommable images for the AEB-1C Date: Thu, 06 Jan 2000 04:38:00 -0000 Message-id: X-SW-Source: 2000-01/msg00011.html Howdy all, I've been trying to create an image that I can put into the Arm Evaluation Board flash rom so that I can take over the serial port and play with it. Unfortunately, it's not working. I have managed the first stage of producing the CVS gdb stubs and flashed them successfully, and have written test programs, downloaded them and played with them fine. I followed all the necessary instructions in the documentation to do this. Here's what I've done so far; - produced the build directory with the following command; tclsh BASE_DIR/packages/pkgconf.tcl --target=arm --platform=aebC--startup=rom which I figured would do what was necessary to give me libraries and stuff I could link with and place in ROM rather than RAM. - edited the pkgconf/serial_io.h header file to enable the serial port(s) by #defining the aeb serial port stuff - run "make" - wrote a simple c program that opened the serial port and dumped some trivial data to it When I try to compile the c program in the last step, I did the following; arm-elf-gcc -Iinstall/include testfile.c -Linstall/lib -Ttarget.ld -nostdlib and I get two errors and two warnings; testfile.c: In function `cyg_user_start': testfile.c:32: warning: passing arg 4 of `cyg_io_set_config' makes pointer from integer without a cast testfile.c:37: warning: passing arg 3 of `cyg_io_write' makes pointer from integer without a cast /usr/cygnus/ecosSWtools-arm-990321/i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.9 -ecosSWtools-arm-990321/../../../../arm-elf/bin/ld: address 0x40219ac of a.out section .text is not within region rom /usr/cygnus/ecosSWtools-arm-990321/i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.9 -ecosSWtools-arm-990321/../../../../arm-elf/bin/ld: address 0x4021c34 of a.out section .rodata is not within region rom /usr/cygnus/ecosSWtools-arm-990321/i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.9 -ecosSWtools-arm-990321/../../../../arm-elf/bin/ld: warning: no memory region specified for section `.glue_7' /usr/cygnus/ecosSWtools-arm-990321/i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.9 -ecosSWtools-arm-990321/../../../../arm-elf/bin/ld: warning: no memory region specified for section `.glue_7t' collect2: ld returned 1 exit status Can someone tell me what I have to do to produce an image that I can stick in flash rom and run instead of the gdb stubs? Also, what do the two *link* warnings mean? Thanks, Nick