linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [MTD-Tests]- issue while inserting modules
@ 2009-09-15 11:34 Tadimarri Sarath Babu
  2009-09-17 11:54 ` Tadimarri Sarath Babu
  0 siblings, 1 reply; 3+ messages in thread
From: Tadimarri Sarath Babu @ 2009-09-15 11:34 UTC (permalink / raw)
  To: linux-mtd

Hi,
I am testing OneNAND on linux 2.6.31 using mtd-tests. I have built the modules for mtd-tests.
When i try to insert the mtd-test modules , i am facing the issue. Please find the log below.

LOG :
# insmod mtd_oobtest.ko
Using mtd_oobtest.ko

=================================================
mtd_oobtest: MTD device: 0
mtd_oobtest: MTD device size 131072, eraseblock size 131072, page size 2048, cou
nt of eraseblocks 1, pages per eraseblock 64, OOB size 64
mtd_oobtest: scanning for bad eraseblocks
mtd_oobtest: scanned 1 eraseblocks, 0 are bad
mtd_oobtest: test 1 of 5
mtd_oobtest: erasing whole device
mtd_oobtest: error -30 while erasing EB 0
mtd_oobtest: error -30 occurred
=================================================
insmod: cannot insert `mtd_oobtest.ko': Read-only file system (-1): Read-only fi
le system

Regards,
Sarath. 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [MTD-Tests]- issue while inserting modules
  2009-09-15 11:34 [MTD-Tests]- issue while inserting modules Tadimarri Sarath Babu
@ 2009-09-17 11:54 ` Tadimarri Sarath Babu
  2009-09-28 11:23   ` Artem Bityutskiy
  0 siblings, 1 reply; 3+ messages in thread
From: Tadimarri Sarath Babu @ 2009-09-17 11:54 UTC (permalink / raw)
  To: linux-mtd

Hi,

Now I am able to run MTD Tests on OneNAND.
MTD Tests by default takes the mtd0 as the device number as per the code.
I disabled the Writable Mask in the 0th partition in my architecture specific file and it started 
working.
I am using the mtd2 partition as the mtd device . So i initialized the "dev" variable in 
mtd_oobtest.c to the respective number and similarly all other test files.
I feel user should be prompted with the mtd device number he wants to run these tests.
Any comments?

Regards,
Sarath
----- Original Message ----- 
From: "Tadimarri Sarath Babu" <sarath.babu@samsung.com>
To: <linux-mtd@lists.infradead.org>
Sent: Tuesday, September 15, 2009 5:04 PM
Subject: [MTD-Tests]- issue while inserting modules


> Hi,
> I am testing OneNAND on linux 2.6.31 using mtd-tests. I have built the modules for mtd-tests.
> When i try to insert the mtd-test modules , i am facing the issue. Please find the log below.
>
> LOG :
> # insmod mtd_oobtest.ko
> Using mtd_oobtest.ko
>
> =================================================
> mtd_oobtest: MTD device: 0
> mtd_oobtest: MTD device size 131072, eraseblock size 131072, page size 2048, cou
> nt of eraseblocks 1, pages per eraseblock 64, OOB size 64
> mtd_oobtest: scanning for bad eraseblocks
> mtd_oobtest: scanned 1 eraseblocks, 0 are bad
> mtd_oobtest: test 1 of 5
> mtd_oobtest: erasing whole device
> mtd_oobtest: error -30 while erasing EB 0
> mtd_oobtest: error -30 occurred
> =================================================
> insmod: cannot insert `mtd_oobtest.ko': Read-only file system (-1): Read-only fi
> le system
>
> Regards,
> Sarath.
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/ 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [MTD-Tests]- issue while inserting modules
  2009-09-17 11:54 ` Tadimarri Sarath Babu
@ 2009-09-28 11:23   ` Artem Bityutskiy
  0 siblings, 0 replies; 3+ messages in thread
From: Artem Bityutskiy @ 2009-09-28 11:23 UTC (permalink / raw)
  To: Tadimarri Sarath Babu; +Cc: linux-mtd

On Thu, 2009-09-17 at 17:24 +0530, Tadimarri Sarath Babu wrote:
> Hi,
> 
> Now I am able to run MTD Tests on OneNAND.
> MTD Tests by default takes the mtd0 as the device number as per the code.
> I disabled the Writable Mask in the 0th partition in my architecture specific file and it started 
> working.
> I am using the mtd2 partition as the mtd device . So i initialized the "dev" variable in 
> mtd_oobtest.c to the respective number and similarly all other test files.
> I feel user should be prompted with the mtd device number he wants to run these tests.
> Any comments?

May be, but this is why we have "modinfo". But feel free to send
a patch.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-28 11:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-15 11:34 [MTD-Tests]- issue while inserting modules Tadimarri Sarath Babu
2009-09-17 11:54 ` Tadimarri Sarath Babu
2009-09-28 11:23   ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).