Adding support for the Intel SS4000-E NAS aka the EM-7210

Stanislav Sedov stas at FreeBSD.org
Fri Sep 25 14:14:31 UTC 2009


On Fri, 25 Sep 2009 13:54:05 +0000
Tom Judge <tom at tomjudge.com> mentioned:

> Stanislav Sedov wrote:
> > On Fri, 25 Sep 2009 13:07:54 +0000
> > Tom Judge <tom at tomjudge.com> mentioned:
> >
> >   
> >> Rui Paulo wrote:
> >>     
> >>> On 21 Sep 2009, at 17:02, Tom Judge wrote:
> >>>
> >>> <SNIP>
> >>> Are you sure 0x200000 is the correct load address?
> >>>
> >>> -- 
> >>> Rui Paulo
> >>>
> >>>
> >>>
> >>>       
> >> Hi Rui,
> >>
> >> First I would like to say thanks for replying, this is my first 
> >> experiment with trying to get freebsd to work on another platform so 
> >> please treat me a newbe to all this (thanks).
> >>
> >> Looking that where the linux kernel is loaded it seems the load address 
> >> is 0x01008000.
> >>
> >> However it seems like it could be loaded at 0x200000, as there is a 
> >> second copy of redboot on the unit, that supports the NIC, that is 
> >> loaded add this address.
> >>
> >> See this here for the details of what get loaded where on the unit:
> >> http://www.tomjudge.com/index.php/SS4000-E/FreeBSD_Install
> >>     
> >
> > The default load address of the AVILA FreeBSD kernel is 10200000 so
> > it expects to be loaded here.  As I see from your patch you changed
> > it to be 0x01008000 instead.  So you should probably either load the
> > kernel to this address, or change the corresponding KERNPHYSADDR
> > parameter to 0x200000.
> >
> >   
> 
> When I had KERNPHYSADDR and KERNVIRTADDR set to 0x01008000 I was unable 
> to make any progress on getting the system to boot.  Last night I was 
> working on the patch again, and started by using the std.aliva file as a 
> base for my std.em7210 rather than std.ep80219.  However I have not yet 
> had a chance to test this as I was working my way though making user the 
> devmap matched the devmap used by the linux kernel.
> 
> I have also been looking at alvia_machdep.c + eq80219_machdep.c and 
> comparing it to the em7210_machdep.c to remove magic numbers and replace 
> them with macros/defines as used in the aliva board.
> 
> Here is my current work: http://www.tomjudge.com/tmp/patch-em7210-round2

This looks better, but you're still using weird addresses
for phys_avail and dump_avail ARM_USE_SMALL_ALLOC case.  I don't know
the memory layout of this board, but using addresses starting from
0xa0000000 for page mappings looks really wrong to me.

BTW, I noticed you're using 0x0 address for the start address of the
physical memory?  Is it correct?  Usualy, this address is the CPU start
address and thus boot ROM gets mapped here so CPU can start executing
ROM code upon boot.  But your board may use different layout so you'd
need to check this.

> 
> > Does this board has JTAG port available?  It will make the debugging
> > much easier.
> >
> >   
> Yes there is a jtag port on the board, it seems to be a standard 20 pin 
> ARM header on the board (see image here: 
> http://www.kwaak.net/fotos/fotos-nas/slide_14.html).
> 
> Can anyone recommend a reasonably priced jtag cable? Preferable that 
> would work on FreeBSD.
> 

The choice of JTAG depends on the software that will be used.  For me,
OpenOCD works well.  I can recommend the FTDI based cables as they're
really fast and well supported (OpenMoko, for example, distributes one
of them; they're usually Jtagkey clones).  Simple Wiggler-like cables
are much clower and less reliable, but is very cheap and can be made
easily at home if not availble in shops (as it's merealy a pin-to-pin
conversion from JTAG to IEEE1284).  They requre the parallel LPT port to
be present, though.

-- 
Stanislav Sedov
ST4096-RIPE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20090925/b506c0d0/attachment.pgp


More information about the freebsd-arm mailing list