From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12983 invoked by alias); 30 May 2006 13:02:28 -0000 Received: (qmail 12967 invoked by uid 22791); 30 May 2006 13:02:27 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.itb.ac.id (HELO mx1.itb.ac.id) (167.205.23.6) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 30 May 2006 13:02:23 +0000 Received: from localhost (antivirus.itb.ac.id [167.205.1.75]) by mx1.itb.ac.id (Postfix) with ESMTP id 9DCF6FCBFA; Tue, 30 May 2006 20:02:44 +0700 (WIT) Received: from mx1.itb.ac.id ([167.205.23.6]) by localhost (antivirus.itb.ac.id [167.205.1.75]) (amavisd-new, port 10001) with ESMTP id 71733-06; Tue, 30 May 2006 20:02:34 +0000 (UTC) Received: from aariffianto (unknown [167.205.24.29]) by mx1.itb.ac.id (Postfix) with SMTP id 72276FC9E9; Tue, 30 May 2006 20:02:42 +0700 (WIT) Message-ID: <043601c56517$c54d2e30$6c44cda7@aariffianto> From: "Agus Ariffianto" To: "Andrew Lunn" Cc: "Mahmud Galela" , References: <20060530071313.2C71820E04C@gemmini.netco.de> <03e601c683de$e8dc5510$6c44cda7@aariffianto> <20060530120216.GN2876@lunn.ch> Date: Tue, 30 May 2006 13:02:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2900.2180 Virus-Scanned: antivirus-ITB X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] error: no memory region specified for loadable '.ram_vectors' X-SW-Source: 2006-05/txt/msg00254.txt.bz2 >> My questions are: >> >> 1. Why message: "...hello.bin": not in executable format: File format not >> recognized." turn up? > > > gdb wants the elf file, not the binary you produced. > >> 2. How to create 'the executable file'? I was successfully created ecos >> bootable disk (run in PC, showing hello ecos). I enter command (in cygwin >> environment): >> >> [cygwin-agus]$ dd conv=sync if=hello.bin of=/dev/fd0 >> >> What should I do to produce the same executable (or bootable ) >> file? > > How do you intend to get the image onto the system? Does it have a > floppy and a BIOS to boot it? Are you going to burn it into an EEPROM? > Do you have a JTAG interface to load the program into RAM? > > Andrew Then I use target board (Alter Stratix S40). First of all I load LEON into the board (via JTAG), then I load hello.out (via serial). Here is the result: Agus@aariffianto /opt/grmon-eval-1.1.3/win32/ecos/project-ecos $ ../../grmon-eval.exe -u -uart COM8 GRMON LEON debug monitor v1.1.3 (evaluation version) Copyright (C) 2004,2005 Gaisler Research - all rights reserved. For latest updates, go to http://www.gaisler.com/ Comments or bug-reports to support@gaisler.com This evaluation version will expire on 8/2/2006 try open device COM8 ###opened device COM8 GRLIB plug&play not found, switching to LEON2 legacy mode initialising .......... detected frequency: 50 MHz Component Vendor LEON2 Memory Controller European Space Agency LEON2 SPARC V8 processor European Space Agency LEON2 Configuration register European Space Agency LEON2 Timer Unit European Space Agency LEON2 UART European Space Agency LEON2 UART European Space Agency LEON2 Interrupt Ctrl European Space Agency LEON2 I/O port European Space Agency AHB Debug UART Gaisler Research LEON2 Debug Support Unit Gaisler Research Use command 'info sys' to print a detailed report of attached cores grmon> load hello.out section: .rom_vectors at 0x40000000, size 4864 bytes section: .text at 0x40001300, size 63996 bytes section: .rodata at 0x40010cfc, size 804 bytes section: .data at 0x40011020, size 1168 bytes total size: 70832 bytes (30.7 kbit/s) read 406 symbols entry point: 0x40001300 grmon> run IU in error mode (tt = 0x07) 400077bc d0026010 ld [%o1 + 0x10], %o0 grmon> 1. Is the error appear because of warning message which turn up when I compile the source using ecos-configtool? 2. What should I do? Thank you very much. Regards, Agus -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss