From: Tim Cussins <timcussins@domain.hid>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Marvell sheeva support
Date: Wed, 11 Aug 2010 17:44:35 +0100 [thread overview]
Message-ID: <1281545075.2246.167.camel@domain.hid> (raw)
In-Reply-To: <1281544161.1730.23.camel@domain.hid>
On Wed, 2010-08-11 at 18:29 +0200, Philippe Gerum wrote:
> On Wed, 2010-08-11 at 17:24 +0100, Tim Cussins wrote:
> > On Wed, 2010-08-11 at 17:28 +0200, Philippe Gerum wrote:
> > > On Wed, 2010-08-11 at 15:58 +0100, Tim Cussins wrote:
> > > > Hi guys,
> > > >
> > > > Managed to get started on the Sheevaplug/xenomai stuff:
> > > > Used mkrootfs. Cool.
> > > > Massaged the mv88fxxxx patch so that it builds with 2.6.33.
> > > > Can't log into the device to run tests. Augh.
> > > >
> > > > Details below! :P
> > > >
> > > > On Wed, 2010-07-21 at 08:23 +0200, Gilles Chanteperdrix wrote:
> > > > > Tim Cussins wrote:
> > > > > >>> We can also provide you with a root filesystem for validating this platform.
> > > > > >
> > > > > > That would be brilliant. I imagine I'll be iterating though uImages on
> > > > > > an SD card loaded with your rootfs. Sound ok? Let me know how to obtain
> > > > > > the rootfs (or better, show me how you prefer to do it, so I learn
> > > > > > something! Ta.)
> > > > >
> > > > > You will find the rootfs for orion SOCs, here:
> > > > > http://www.xenomai.org/~gch/pub/rootfs-orion.tar.bz2
> > > > >
> > > > > Edit etc/inittab to modify the serial console it needs (if it is not
> > > > > /dev/ttyS0 running at 115200 bauds). The rootfs is meant to be booted by
> > > > > NFS with the kernel IP auto-configuration, so, if you want to boot it on
> > > > > an SD card, you will have to connect to the serial console once the
> > > > > board is booted, and run "udhcpc" to configure the network by DHCP, or
> > > > > use ifconfig to configure it by hand, then launch "telnetd" to be able
> > > > > to connect to that board through telnet (if the kernel booted by NFS,
> > > > > the telnet server will have been launched automatically)
> > > > >
> > > > > In a first telnet session, run:
> > > > > latency
> > > > > In a second telnet session, if you have FCSE disabled, run:
> > > > > dohell
> > > > > if you have FCSE enabled, run:
> > > > > noltp_hell 14400
> > > > > (14400 means that you will generate some load during 14400s, that is 4
> > > > > hours).
> > > > > When either noltp_hell or dohell displays the line:
> > > > > Listening on any address 5566
> > > > > On the host, run:
> > > > > netcat <target-ip> 5566 > /dev/null
> > > > >
> > > > > Now you can return to the telnet session running latency. When the test
> > > > > is finished the latency program should stop.
> > > > >
> > > > > As for generating the root filesystem, it is not that it is really hard,
> > > > > but it is a bit tedious. So, we made a tool to build a root filesystem
> > > > > which suits our needs, that is testing Xenomai under load. I have just
> > > > > finished working on a version of this tool (called mkrootfs, but I think
> > > > > we should find a better name, as this one already exists) user-friendly
> > > > > enough to be published. Currently, it is still lacking a documentation.
> > > > > You will find it here:
> > > > >
> > > > > http://www.xenomai.org/~gch/pub/mkrootfs.tar.bz2
> > > > >
> > > > > However, to use it, you will need a few explanations. It is based on
> > > > > Kbuild, the Linux kernel build system, so, it will build the same way.
> > > > > Create a build directory, cd to it, then run:
> > > > >
> > > > > make -C /path/to/mkrootfs O=`pwd` xconfig
> > > > >
> > > > > Tweak the configuration. Then run:
> > > > > make
> > > > >
> > > > > It should build everything.
> > > > >
> > > > > It does not download and patch the sources of the packages it uses, you
> > > > > have to do this yourself, then pass the path where to look for them to
> > > > > the configuration system. We use standard versions of the packages,
> > > > > except for LTP, which we modified a bit to run on low-end platforms, and
> > > > > which you can find here:
> > > > >
> > > > > http://www.xenomai.org/~gch/ltp-20081130-patched.tar.bz2
> > > >
> > > >
> > > > I've had a good play with mkrootfs - nice. I had to make a couple of
> > > > changes to meet my needs (and system, ubuntu 10.04). Is there a git repo
> > > > for mkrootfs that I can base my patches on? They're very small btw. More
> > > > on that off-list if you want.
> > > >
> > > > >
> > > > > >> You can also use the patch below as a starting point for your port:
> > > > > >> http://download.gna.org/adeos/patches/tmp/adeos-ipipe-2.6.29-mv88f6290.patch
> > > > > >
> > > > > > I've tried applying this to vanilla 2.6.29 and 2.6.29.6 - it doesn't
> > > > > > apply cleanly (well, fails :P). Am I approaching this the wrong way?
> > > > > > Also tried chucking the patch into the xenomai tree and gettingdev.txt (from mkrootfs) would imply that it is 4,64. Without being able to log in, I can't confirm though :) Unless you know a cunning trick? :D
> >
> > > > > > prepare_kernel.sh to try: still no joy.
> > > > >
> > > > > It probably does not apply to vanilla because vanilla has no support for
> > > > > the Sheevaplug board. Or am I missing something?
> > > >
> > > > Well, I don't think so. Some hunks are expecting lines of context that
> > > > simply don't exist in 2.6.29 == fail.
> > > >
> > > > I took the mv88f6290 patch and bullied it into applying to vanilla
> > > > 2.6.29. Built ok, but was at home and no way to test, so I just got on
> > > > with migrating it to 2.6.33. That seems to be done - check the 2.6.33
> > > > boot output:
> > > >
> > > > ...
> > > > I-pipe: Domain Xenomai registered.
> > > > Xenomai: hal/arm started.
> > > > Xenomai: scheduling class idle registered.
> > > > Xenomai: scheduling class rt registered.
> > > > Xenomai: real-time nucleus v2.5.4 (Sleep Walk) loaded.
> > > > Xenomai: starting native API services.
> > > > Xenomai: starting POSIX services.
> > > > Xenomai: starting RTDM services.
> > > > ...
> > > >
> > > > Full boot output is attached FYI.
> > > >
> > > > However, I've got a problem with busybox/getty and /dev/ttyS0 so I can't
> > > > log in via console OR telnet. Once that's solved, I'll be able to run
> > > > the xenomai tests. (In case you've seen it before - /var/log/messages is
> > > > slowly filling with:
> > > >
> > > > Aug 11 16:03:36 init: starting pid 638, tty '/dev/ttyS0': '/sbin/getty
> > > > 115200 ttyS0'
> > > > Aug 11 16:03:36 getty[638]: ttyS0: TCGETS: Inappropriate ioctl for
> > > > device
> > > >
> > > > )
> > > >
> > >
> > > Does /dev/ttyS0 have major=4, minor=64 on your rootfs?
> >
> > dev.txt (from mkrootfs) would imply that it is 4,64. Without being able
> > to log in, I can't confirm though :) Unless you know a cunning trick? :D
>
> Well, maybe. ls -l on the nfs server side exporting your rootfs :>
Pfff :D All the nodes appear as regular files that way - I assumed that
was normal, and that some special magic was happening in busybox to
replace them with nodes... Is there something I'm not doing right?
I've mounted a debian rootfs over nfs no problems - that tree has *real*
nodes in it, and the show up as such using the ls -l , uh, 'trick' :P
> >
> >
> > > > Cheers,
> > > > Tim
> > > >
> > >
> >
> >
>
next prev parent reply other threads:[~2010-08-11 16:44 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-12 14:10 [Xenomai-help] Marvell sheeva support Tim Cussins
2010-07-15 11:53 ` Gilles Chanteperdrix
2010-07-15 16:11 ` Philippe Gerum
2010-07-20 11:00 ` Tim Cussins
2010-07-21 6:23 ` Gilles Chanteperdrix
2010-08-11 14:58 ` Tim Cussins
2010-08-11 15:25 ` Gilles Chanteperdrix
2010-08-11 16:33 ` Tim Cussins
2010-08-11 15:28 ` Philippe Gerum
2010-08-11 16:24 ` Tim Cussins
[not found] ` <1281544161.1730.23.camel@domain.hid>
2010-08-11 16:44 ` Tim Cussins [this message]
2010-08-11 16:56 ` Gilles Chanteperdrix
2010-08-12 15:04 ` Tim Cussins
2010-08-12 15:11 ` Gilles Chanteperdrix
2010-08-11 16:30 ` Philippe Gerum
2010-08-12 15:45 ` Tim Cussins
2010-08-12 15:58 ` Philippe Gerum
2010-08-12 16:03 ` Philippe Gerum
2010-08-12 16:21 ` Tim Cussins
2010-08-16 11:00 ` Tim Cussins
2010-07-21 9:50 ` Philippe Gerum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1281545075.2246.167.camel@domain.hid \
--to=timcussins@domain.hid \
--cc=rpm@xenomai.org \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.