[ECOS] help with "hello world" over redboot
Jay Foster
jay@systech.com
Thu Jun 26 00:58:00 GMT 2003
I had RedBoot running on my SNDS100 board last year. There were a few
tweaks that I had to make to fix some things to get it to work. I submitted
some patches for these, but they never made it into the repository. My
experience was that no two SNDS100 boards are the same. They apparently
come with different size/kind of flash, SDRAM, SRAM, etc, and it also
depends on how it is jumpered. Mine had 16MB of SDRAM and the Winbond
W29EE011 flash chips. I also submitted a patch to add a flash driver for
this chip. I've attached what my recollection of the patches were, in case
you find them useful.
I also remember trying to change the .fixed_vectors from 0x200 to 0x20, but
it crashed. I seem to remember it was overlaying something else at 0x20, so
I left it at 0x200 and it seemed happy. I have since moved onto other
hardware, and am no longer using RedBoot, just eCos.
Jay
-----Original Message-----
From: Jonathan Larmour [mailto:jifl@eCosCentric.com]
Sent: Wednesday, June 25, 2003 12:36 PM
To: Kai Yu
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] help with "hello world" over redboot
Kai Yu wrote:
> Hi,
>
> I just started with eCos and Redboot. I have a Samsung SNDS board and I
> loaded redboot on it with tftp support.
That's good. The default setup for SNDS in current CVS doesn't have the
ethernet drivers.
> I can telnet and load image
> onto it. When building the "hello world", I got two problem: 1. After
> redboot boots up, the available ram is from 0x2exxx to 0x01000000, but
> my "hello" need to be loaded to 0x020000
>
> I changed the install/include/pkgconf/mlt_snds_ram.ldi: rom_vector from
> 0x0020000 to 0x0030000 to avoid this.
>
> Am I righ?
Yes, since the default redboot didn't bank on including eth drivers. If
you send a patch for the eth drivers you can include that too :-). But
more changes are needed than that...
> 2. After load the hello binary onto SNDS board in redboot, "go" command
> does not generate the expected result and I loss the redboot prompt
> afterward.
>
> What should I do the get the hello to run over the redboot?
It seems the SNDS has more problems with its MLT files than that. The
fixed vectors should be at 0x20 in the RAM startup. and rom vectors can
probably get away with being at 0x10000. Finally the data section should
be at something like 0x8000 for ROM startup.
Once you get it working, do please share your patches with us here on how
you made it work!
cd ecos/packages
cvs -q diff -u5 -p > snds.patch
would make something appropriate if you attach snds.patch to your mail.
Jifl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flash_arm_snds.pat
Type: application/octet-stream
Size: 14813 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20030626/c1f6253c/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: w29eexxx.tar
Type: application/octet-stream
Size: 30720 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20030626/c1f6253c/attachment-0001.obj>
-------------- next part --------------
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list