ts-7000
[Top] [All Lists]

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

To:
Subject: Re: [ts-7000] Getting NetBSD up and running on TS7200 - general questions
From: "Christos Eleftheriadis" <>
Date: Fri, 12 May 2006 13:44:26 +0200
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 --------------------~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/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