XIP kernel + MTD polling interest
Shane Nay
shane at agendacomputing.com
Tue Nov 28 02:00:07 EST 2000
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 at infradead.org
More information about the linux-mtd
mailing list