jffs2_scan_medium effor
Nicolas Pitre
nico at cam.org
Thu Jun 21 13:55:41 EDT 2001
On Thu, 21 Jun 2001, Frederic Giasson wrote:
> Because my boot monitor is straigth in the middle of my flash and I can't
> move it for an hardware reason.
Hmmm...
Then what I would suggest is that you play tricks with offsets in your map
driver so the firmware sector appears at the end and the two separate parts
are seen as being contigous.
if (offset >= FIRMWARE_OFFSET + FIRMWARE_SECTOR_SIZE)
offset -= FIRMWARE_SECTOR_SIZE;
else if (offset >= FIRMWARE_OFFSET)
offset = offset - FIRMWARE_OFFSET + LAST_SECTOR_OFFSET;
Add this in your read/write/memcpy map functions, set your firmware
partition to be the last, and you're set.
Nicolas
More information about the linux-mtd
mailing list