This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: running eCos apllication from floppy
On Thu, 2005-02-24 at 07:11 +0530, Rohan Soman wrote:
> hello,
>
>
>
> i tried out executing an ecos application from the floppy:
>
> step1)
>
> i built an application with a startup type of FLOPPY, by selecting the
> FLOPPY option in the
> startup type field in the configtool. with default package for i386 pc.
>
>
> step2)
>
> [ron@localhost floppy_start_app]$ ls
> hello.c
> [ron@localhost floppy_start_app]$ i386-elf-gcc -fdata-sections -o
> hello -I/home/ron/ecos-work/rohan/floppy_start/floppyecc_install/include
> hello.c -L/home/ron/ecos-work/rohan/floppy_start/floppyecc_install/lib
> -Ttarget.ld -nostdlib
> [ron@localhost floppy_start_app]$ ls
> hello hello.c
> [ron@localhost floppy_start_app]$ i386-elf-objcopy -O binary hello hello.bin
> [ron@localhost floppy_start_app]$ ls
> hello hello.bin hello.c
> [ron@localhost floppy_start_app]$ dd conv=sync if=hello.bin of=/dev/fd0
> 95+1 records in
> 96+0 records out
> [ron@localhost floppy_start_app]$
>
> step3)
>
> booting from floppy. Nothing seems to go wrong ,
>
> but the screen, after booting, remains blank.
>
> What possibly cud be the problem?
Did you select the screen as your output device?
Set CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT to 2
>
> -Rohan
>
>
>
>
>
>
>
>
>
>
>
>
>
> On 23 Feb 2005 10:02:26 +0000, Nick Garnett <nickg@ecoscentric.com> wrote:
> > Rohan Soman <rohan.soman@gmail.com> writes:
> >
> > > Hello,
> > >
> > > This is with reference to the:
> > >
> > > appendix A: Target Setup: i386 PC Hardware Setup: Floppy Disk Support
> > >
> > > of eCos user guide.
> > >
> > > " $ i386-elf-objcopy -O binary app.elf app.bin
> > > (Here app.elf is the final linked application executable, in ELF format) "
> > >
> > >
> > > 1. how can the app.elf file be generated ?
> >
> > This is just the final linked executable you get as standard from the
> > GCC tools. Take a look a the user manual for detail on how to do this.
> >
> > >
> > >
> > > 2. how can an application be built with a startup type of FLOPPY,
> > > and be configured to be a self-booting image that must be written
> > > onto a formatted floppy disk using the dd command ?
> >
> > Just select the FLOPPY option in the startup type field in the
> > configtool. Then the resulting executable will be suitable for writing
> > to a floppy using the steps described in the documentation.
> >
> > --
> > Nick Garnett eCos Kernel Architect
> > http://www.ecoscentric.com The eCos and RedBoot experts
> > Besuchen Sie uns vom 22.-24.02.05 auf der Embedded World 2005, Stand 11-124
> > Visit us at Embedded World 2005, Nürnberg, Germany, 22-24 Feb, Stand 11-124
> >
> >
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss