ts-7000
[Top] [All Lists]

[ts-7000] Re: Getting NetBSD up and running on TS7200 - general question

To:
Subject: [ts-7000] Re: Getting NetBSD up and running on TS7200 - general questions
From: "Bill Landolina" <>
Date: Fri, 12 May 2006 17:48:34 -0000
I've successfully built TS7200 and TS7200 install kernels on a PC
based NetBSD system following the steps in the NetBSD Guide.

The next thing I needed was a file system image to put in the RAM
file system of my install kernel...   I finally found a great guide
to making that critical piece:

http://www.bsdnewsletter.com/2003/09/Features102b.html

This is "Building tiny systems with embedded NetBSD", an article
that specifically addresses how to build the critical RAM file
system needed to bring up the rest of the system.

For everyone else the steps are:

1. Follow the NetBSD Guide and build the cross tool chain and your
TS7200 and TS7200_INSTALL kernels (hint: the architecture you want
is "evbarm")

2. Following the instructions from the link above, build the RAM
file system (which contains basic utilities needed to format your
flash file system and install files on it) and merge it into the
INSTALL kernel.

3. Follow Jesse's (www.embeddedarm.com/~joff) instructions for
loading the INSTALL kernel via TFTP or HTTP.

4. Use the INSTALL kernel and utilities in the RAM file system to
setup the flash memory on your board (including copying the "normal"
TS7200 kernel to the first flash partition).

5. Run it!

I'm actually still working on step four, but the instructions seem
clear so far.

I'm keeping a diary of what I've done which I'll publish along with
the various configuration files needed for step 4 once I prove out
the procedure.

[Thanks to christos.eleftheriadis for his reply to my questions]

Bill Landolina

(678) 596-3625

--- In  "Christos Eleftheriadis"
<> wrote:
>
> hello,
>
> Clarify me something ...have you installed NetBSD on your TS72000?
>
> >
> >  The intention is to install the kernel, a minimal set of
daemons and
> >  my application on the on-board flash of the TS7200.  In normal
> >  operation my product won't have a CF card present.
> >
> >  Questions:
> >
> >  1. How to go about building and loading a primordial file system
> >  (containing configuration and application files) into the non-
kernel
> >  part of the TS7200 flash.
> >
> >  2. How to prep (should it be gzipped? etc) and install my custom
> >  kernel into the boot area of the TS7200.
>
> The general steps of cross compiling a kernel are : ( the example I
> use will be for booting the root partition on the CF... exactly
same
> steps can be used if want to have the root on a ram disk instead)
>
> 1) you must have all the source tree under /usr/src on your PC
> 2) run the command in /usr/src
>
> ./build.sh -m evbarm -T /usr/cross_tools tools
>
> this will build the cross compile toolchain.. the same tool chain
can
> be used later for cross compiling applications.
>
> 3) go to /usr/src/sys/arch/evbarm/conf and
> cp TS7200 MYKERNEL
>
> edit the MYKERNEL file according to your needs
>
> then go back to /usr/src and run
>
> ./build.sh -m evbarm -T /usr/cross_tools kernel=MYKERNEL
>
> 4) if everything finishes errorless then your newly kernel is in
> /usr/src/sys/arch/evbarm/compile/obj
>
> You should see 3 or 4 executable files you need something like
> NetBSD-flash-wd0.bin
>
> wd0 is a kernel which mounts root partition on CF...
>
> 5) gzip -9 netbsd-flash-wd0.bin
> 6) then you need the gzboot binary to be attached in front of the
> netbsd-flash-wd0.bin.gz
> the gzboot uncompresses the gziped kernel just after the redboot
> loader... the gzboot relavant to the amount of flash you have on
the
> board, so, there are two files one for 8MB and one for 16MB
>
> the command is
> cat gzboot netbsd-flash-wd0.bin.gz > mykernel_20060512.gz
>
> 7) then you upload the file mykernel_20060512.gz to the flash using
> the redboot environment.. and the instructions from Jesses' page
>
> http://www.embeddedarm.com/~joff/
>
> If everything is OK you can boot the board with no problem by
typing in redboot
> go
>
> These are in general the steps... I can upload later the two
gzboot binaries
> or you can produce them yourself ... if you build the distribution
like
>
> cd /usr/src/
> ./build.sh -m evbarm -T /usr/cross_tools distribution
>
> >
> >  3. Is there a central repository somewhere of configuration
options
> >  for the NetBSD kernel?  I'd like to RTFM, but I don't know quite
> >  where to look for the manual.
>
> run
>
> man options
>
> (although that some options are undocumented......)
>
> Now, for your application I would check how the TS7200_INSTALL
kernel
> is configured
> and I would do it the same way... This kernel configuration mounts
the
> root partition on a ram disk and runs from there the setup scripts
>
> What I like NetBSD in favour of Linux is that it is clean and you
can
> build everything for all architectures from a single source tree...
>
> christos
>
> ps maybe i have misstyped a directory... I wrote all this by
memory...
>






------------------------ Yahoo! Groups Sponsor --------------------~-->
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/CFFolB/TM
--------------------------------------------------------------------~->


Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/




<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU