* RedBoot partition not @ end of flash...
@ 2006-05-02 8:50 Deepak Saxena
2006-05-02 12:56 ` David Vrabel
0 siblings, 1 reply; 2+ messages in thread
From: Deepak Saxena @ 2006-05-02 8:50 UTC (permalink / raw)
To: linux-mtd
I've got a board with a 32MiB flash (128K SectorSize) with the redboot table
only covering the first (32MiB - SectorSize) and the rest setup as OTP from
what I understand. What is the proper way to deal with this? What I'm doing
right now is a heinous hack:
ixp425_mtd->size -= ixp425_mtd->erasesize;
/* Try to parse RedBoot partitions */
npart = parse_mtd_partitions(ixp425_mtd, probes, &parsed_parts, 0);
if (npart > 0) {
res = add_mtd_partitions(ixp425_mtd, parsed_parts, npart);
} else {
printk("IXP425 Flash: Using static MTD partitions.\n");
res = add_mtd_partitions(ixp425_mtd, ixp425_partitions,
NB_OF(ixp425_partitions));
}
ixp425_mtd->size += ixp425_mtd->erasesize;
I tried setting the window size to (32MiB - SectorSize) before probing
but that failed miserably. One other thought I had was to create a
static partition map dividing the flash and then parse partitions
on the first region. Can the code handle recursive parsing?
I doubt I'm the first one to deal with this...
Tnx,
~Deepak
--
Deepak Saxena - dsaxena@plexity.net - http://www.plexity.net
I am not a consumer. My existence on this planet is not defined by my
relationship to a producer of goods. I was not put on this planet to
consume goods from a company for their profit. - Michael W.
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: RedBoot partition not @ end of flash...
2006-05-02 8:50 RedBoot partition not @ end of flash Deepak Saxena
@ 2006-05-02 12:56 ` David Vrabel
0 siblings, 0 replies; 2+ messages in thread
From: David Vrabel @ 2006-05-02 12:56 UTC (permalink / raw)
To: dsaxena; +Cc: linux-mtd
Deepak Saxena wrote:
> I've got a board with a 32MiB flash (128K SectorSize) with the redboot table
> only covering the first (32MiB - SectorSize) and the rest setup as OTP from
> what I understand. What is the proper way to deal with this? What I'm doing
> right now is a heinous hack:
'redboot.directory=-2' command line option?
David Vrabel
--
David Vrabel, Design Engineer
Arcom, Clifton Road Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK Web: http://www.arcom.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-02 12:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-02 8:50 RedBoot partition not @ end of flash Deepak Saxena
2006-05-02 12:56 ` David Vrabel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox