public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Shane Nay <shane@agendacomputing.com>
To: mtd@infradead.org
Subject: XIP kernel + MTD polling interest
Date: Tue, 28 Nov 2000 07:00:07 +0000	[thread overview]
Message-ID: <20001128070007.E17376@www.easysolutions.net> (raw)

I've been working on getting MTD working with the XIP kernel in the Agenda
(dev.agendacomputing.com), and I was wondering if the MTD project was
interested in this.  It's a litte hacky because we can't compile PIC...,
well, I'll explain below.

When the kernel is running in XIP mode, aka, Execute in Place, in flash, in
order to write/query the flash, you need to copy all the stuff you need
while in that mode into memory, and execute it from there.  Which means a
couple of things..., you have to fool the compiler into doing PIC code
without compiling pic and you can't use _any_ kernel functions while the
flash is in query or write mode..., which changes the resulting code into
something rather messy.  This wasn't too bad with the version that's
presently in 2.4, but from the more recent snapshots (which I'm working off
of now), it's quite messy.

In any event, I've gotten successful flash probes via cfi_probe, and gotten
it to dump all the debugging info via print_cfi_ident.  I'm now moving to
working on the intel command set for our chips, and will have an XIPable
version of that towards the beginning of this week, hopefully tomorrow
night.  What I'm really wondering is whether I should move to make patches
off of the present versions of cfi_probe.c, cfi.h, cfi_cmdset_0001.c, or
whether I should just fork them?  (Basically, it follows the same logic, I
just use macros to build copies of functions in memory also the code gets
messy because I can't use else, can't use switch, and can't use return
until the bottom of the function.  Also can't use printk, or any kernel
function while the flash is in query, or write mode)

Anyway, I just wanted to see if this was a goal of MTD, and get a vibe for
the interest on that.

Thanks,
Shane Nay.



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

             reply	other threads:[~2000-11-28 13:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-28  7:00 Shane Nay [this message]
2000-11-28 14:08 ` XIP kernel + MTD polling interest David Woodhouse
2000-11-28  7:22   ` Shane Nay
2000-11-29  1:44 ` Nicolas Pitre
2000-11-28  8:53   ` Shane Nay
2000-11-28 15:58     ` David Woodhouse
2000-11-28  9:31       ` Shane Nay
2000-11-29 10:19       ` Shane Nay
2000-11-29 17:18         ` David Woodhouse
2000-11-29 11:19           ` Shane Nay

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=20001128070007.E17376@www.easysolutions.net \
    --to=shane@agendacomputing.com \
    --cc=mtd@infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox