From: Jan Kiszka <jan.kiszka@domain.hid>
To: Florent Audebert <f.audebert@domain.hid>
Cc: adeos-main@gna.org
Subject: Re: [Adeos-main] Advice regarding MIPS port
Date: Tue, 06 May 2008 21:54:44 +0200 [thread overview]
Message-ID: <4820B784.3080306@domain.hid> (raw)
In-Reply-To: <5719c6f30805050943p31f3f5eew74d0f7ef3dd2b5a5@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 2117 bytes --]
Florent Audebert wrote:
> Hi,
>
> I am starting to work on a Xenomai port for MIPS architecture as part
Cool!
> of an internship at Open Wide (France). It is my first real diving
> into the kernel sources so I'm far from being an expert. The goal of
> this project is to be able to run it on a Broadcom BCM6448 board.
>
> My first objective is to be able to run an Adeos patched kernel. I
> have decided to work with QEMU (mips-malta board emulation) instead of
> my real target since it provides me an easy way to use GDB and thus to
> understand a little bit more what is going on. Furthermore, it
> provides an easy way of testing it for other people since it only
> requires QEMU and no specific real hardware.
Yes, a reasonable approach for arch bring-up. Specifically when using
low-end targets, QEMU is able to provide faster debug round-trip times
than real hw.
>
> I read as much as documents I can (Life with Adeos, Porting Adeos,
> ...) and finally started messing with the code. I managed to compile a
> MIPS kernel merging common Adeos code from latest x86 patch and
> adapting (see below) / commenting out. I guess my kernel is far from
> functional. My current issue seems to be related to the timer (see
> attached file).
>
> Here is a list of explicit changes I have done so far :
>
> - include/asm-mips/irqflags.h : added raw_local_*() and local_irq_*().
> - include/asm-mips/irq.h : do_IRQ() calls __ipipe_handle_irq()
> instead of generic_handle_irq().
> - arch/mips/kernel/ipipe.c : created __ipipe_do_IRQ() (used with
> __ipipe_enable_pipeline()) which calls generic_handle_irq().
>
> Do you think my approach is correct ? Are my few changes relevant ? I
> avoided to modify entry.S and genex.S, is this mandatory ?
I would be fairly surprised if you get away without touching them on
MIPS. Maybe you should study changes to those files (or comparable ones)
on other archs first - offline, but you may use QEMU here as well. Try
to understand some typical code paths from the hardware to the delivery
to some domain.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
next prev parent reply other threads:[~2008-05-06 19:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-05 16:43 [Adeos-main] Advice regarding MIPS port Florent Audebert
2008-05-06 19:54 ` Jan Kiszka [this message]
2008-06-19 16:00 ` Florent Audebert
2008-06-20 10:15 ` Gilles Chanteperdrix
2008-07-17 15:12 ` Florent Audebert
2008-07-23 12:55 ` Florent Audebert
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=4820B784.3080306@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=adeos-main@gna.org \
--cc=f.audebert@domain.hid \
/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.