* [PATCH] [MTD-UTILS] ubiformat: reverse question about vid offset change
@ 2008-06-25 13:17 Bernard Blackham
2008-06-25 13:42 ` Artem Bityutskiy
0 siblings, 1 reply; 4+ messages in thread
From: Bernard Blackham @ 2008-06-25 13:17 UTC (permalink / raw)
To: linux-mtd
Users can pass the -O option to ubiformat to override the VID header
offset on the command-line. If for some reason, the new offset does
not match what is on flash, ubiformat currently prompts the user if
they'd rather use the *old* offsets. This means that calling
ubiformat with --yes will not do what was requested on the
command-line.
This patch reverses the question so --yes is actually useful for
running in batch-mode.
Signed-off-by: Bernard Blackham <bernard@largestprime.net>
diff --git a/ubi-utils/new-utils/src/ubiformat.c b/ubi-utils/new-utils/src/ubiformat.c
index dc5dc44..545630b 100644
--- a/ubi-utils/new-utils/src/ubiformat.c
+++ b/ubi-utils/new-utils/src/ubiformat.c
@@ -675,12 +675,13 @@ int main(int argc, char * const argv[])
"which is different to calculated offsets %d and %d",
si->vid_hdr_offs, si->data_offs, ui.vid_hdr_offs,
ui.data_offs);
- normsg_cont("use old offsets %d and %d? (yes/no) ",
+ normsg_cont("use new offsets %d and %d? (yes/no) ",
si->vid_hdr_offs, si->data_offs);
}
if (args.yes || answer_is_yes()) {
if (args.yes && !args.quiet)
printf("yes\n");
+ } else {
ui.vid_hdr_offs = si->vid_hdr_offs;
ui.data_offs = si->data_offs;
}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] [MTD-UTILS] ubiformat: reverse question about vid offset change
2008-06-25 13:17 [PATCH] [MTD-UTILS] ubiformat: reverse question about vid offset change Bernard Blackham
@ 2008-06-25 13:42 ` Artem Bityutskiy
2008-06-26 9:24 ` Getting Error in NOR MTD map driver Divyanshu Verma
0 siblings, 1 reply; 4+ messages in thread
From: Artem Bityutskiy @ 2008-06-25 13:42 UTC (permalink / raw)
To: Bernard Blackham; +Cc: linux-mtd
On Wed, 2008-06-25 at 21:17 +0800, Bernard Blackham wrote:
> Users can pass the -O option to ubiformat to override the VID header
> offset on the command-line. If for some reason, the new offset does
> not match what is on flash, ubiformat currently prompts the user if
> they'd rather use the *old* offsets. This means that calling
> ubiformat with --yes will not do what was requested on the
> command-line.
>
> This patch reverses the question so --yes is actually useful for
> running in batch-mode.
Pushed, thank you!
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Getting Error in NOR MTD map driver
2008-06-25 13:42 ` Artem Bityutskiy
@ 2008-06-26 9:24 ` Divyanshu Verma
2008-06-30 8:37 ` NOR MTD map driver up and running but name coming as NULL Divyanshu Verma
0 siblings, 1 reply; 4+ messages in thread
From: Divyanshu Verma @ 2008-06-26 9:24 UTC (permalink / raw)
To: linux-mtd
Hi,
I am developing NOR MTD map driver for SPANSION NOR. I am getting the
following error and hence not able to detect the device.
Kindly help me out.
Unknown Amd/Fujitsu Extended Query version 1.4.
gen_probe: No supported Vendor Command Set found
Regards,
Divyanshu
^ permalink raw reply [flat|nested] 4+ messages in thread
* NOR MTD map driver up and running but name coming as NULL
2008-06-26 9:24 ` Getting Error in NOR MTD map driver Divyanshu Verma
@ 2008-06-30 8:37 ` Divyanshu Verma
0 siblings, 0 replies; 4+ messages in thread
From: Divyanshu Verma @ 2008-06-30 8:37 UTC (permalink / raw)
To: linux-mtd
Hi,
I am able to bring up NOR flash succsfully. The reason for the error was
2.6.14.2 not supporting query version 1.4.
Anyway it is working fine and I can see the partitions on # cat
/proc/mtd.
Now for testing that device is it required that I need to put some fime
system on it, say jffs?
Also on doing cat /proc/mtd, I can see the partition names appearing
as "<NULL>" and not the ones that I declared in my map driver inside
instance of struct mtd_partitions
Following are my declarations and I aspire to see names as "BOOT" and
"Linux-Image".
Any help will be highly appreciated.
static struct mtd_partition BCM5892_nand_partition [] = {
{
.name = "BOOT",
.offset = 0,
.size = 0x0001000,
.mask_flags =MTD_WRITEABLE,
},
{
.name = "Linux-Image",
.size = MTDPART_SIZ_FULL,
.offset = MTDPART_OFS_NXTBLK,
},
};
Thanks and regards,
Divyanshu
-----Original Message-----
From: linux-mtd-bounces@lists.infradead.org
[mailto:linux-mtd-bounces@lists.infradead.org] On Behalf Of Divyanshu
Verma
Sent: Thursday, June 26, 2008 2:55 PM
To: linux-mtd@lists.infradead.org
Subject: Getting Error in NOR MTD map driver
Hi,
I am developing NOR MTD map driver for SPANSION NOR. I am getting the
following error and hence not able to detect the device.
Kindly help me out.
Unknown Amd/Fujitsu Extended Query version 1.4.
gen_probe: No supported Vendor Command Set found
Regards,
Divyanshu
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-06-30 8:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-25 13:17 [PATCH] [MTD-UTILS] ubiformat: reverse question about vid offset change Bernard Blackham
2008-06-25 13:42 ` Artem Bityutskiy
2008-06-26 9:24 ` Getting Error in NOR MTD map driver Divyanshu Verma
2008-06-30 8:37 ` NOR MTD map driver up and running but name coming as NULL Divyanshu Verma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox