public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* mtdblock module & I'm Back again
@ 2000-11-01 18:00 Gregory Schallert
  2000-11-01 19:37 ` Nicolas Pitre
  2000-11-02 10:09 ` mtdblock module & I'm Back again David Woodhouse
  0 siblings, 2 replies; 21+ messages in thread
From: Gregory Schallert @ 2000-11-01 18:00 UTC (permalink / raw)
  To: mtd@infradead.org

I'm back again with a couple of more generic questions...  As a reminder
this is my project.

I am currently working on a project that (will) store the linux
kernel/os on
flash.  We are using the ElanSC400 chip and a board that has 3 pairs of
AM29F016EC Flash Chips arranged such that the high byte of the data goes
to
one chip and the low byte goes to the other. I've been able to configure
the windows on the SC400 to allow me to see what is on the chips by
using the mmap() function.  I would like for the flash to emulate a
block device so I've started playing around with the mtdblock.c file.
My questions are these:

1)  when I compile the mtdblock.c file I get a referenced symbol
"invalidate_buffers"  Any Ideas why?

I have currently have a MTD release that is about a month old.  I'm
going to download the new one and see if I still get the same problem.

2)  What does mtdblock.c actually do? If I load mtd.o, mapped.o, and
mtdblock.o  what additional functionality do I need to program to get a
minix file system on the flash chips?

Thanx

Gregory Schallert
Dawning Technologies, Inc.



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 21+ messages in thread
* fdisk problems
@ 2006-05-24  3:46 superlidu
  2006-05-24  7:33 ` David Woodhouse
  0 siblings, 1 reply; 21+ messages in thread
From: superlidu @ 2006-05-24  3:46 UTC (permalink / raw)
  To: linux-mtd, linux-mtd


Now I am building my ARM board, and use the Samsung\'s nand flash as the main 

storage. I register the NAND flash as a general disk in to the system.after that I patition 



the disk with the following steps

/*****************************************************************/

fdisk /dev/sbulla

command : n

Command action

   e   extended

   p   primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-384, default 1):

Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-384, default 384): 256



Command (m for help): n

Command action

   e   extended

   p   primary partition (1-4)

p

Partition number (1-4): 2

First cylinder (257-384, default 257):

Using default value 257

Last cylinder or +size or +sizeM or +sizeK (257-384, default 384):

Using default value 384



Command (m for help): w

The partition table has been altered!

/****************************************************************/

after the above steps, I use the \'fdisk -l\', then print the result:



/dev/sbulla: 25 MB, 25165824 bytes

16 heads, 8 sectors/track, 384 cylinders

Units = cylinders of 128 * 512 = 65536 bytes



      Device Boot    Start       End    Blocks   Id  System

/dev/sbulla1             1         256       16380   83  Linux

/dev/sbulla2             257         384        8192   83  Linux

but I \\'cat /proc/partitions\\', the result is not the same with above

major minor  #blocks  name



  44     0      24576 sbulla

  44     1      16380 sbulla1



there is no sbulla2, why?

and more, after \\'mknod /dev/sbulla1 b 44 1\\', then I can use \\'mkfs.ext2 /dev/sbulla\\'. if  



\'mknod /dev/sbulla2 b 44 2\', I can not use \'mkfs.ext2 /dev/sbulla\', the result is 

mkfs.ext2: mke2fs 1.37 (21-Mar-2005)

mkfs.ext2: Could not determine filesystem size



anyone can help me? thanks a lot !



Br,

sword

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

end of thread, other threads:[~2006-05-24  7:33 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-01 18:00 mtdblock module & I'm Back again Gregory Schallert
2000-11-01 19:37 ` Nicolas Pitre
2000-11-01 22:43   ` David Woodhouse
2000-11-01 22:52     ` Nicolas Pitre
2000-11-02  7:51       ` David Woodhouse
2001-01-18 23:27   ` mtdblock: module -vs- kernel Gregory Schallert
2001-01-19  1:19     ` Nicolas Pitre
2001-01-24 15:42       ` compiling DOC  Brian Michalk
2001-01-24 16:07         ` David Woodhouse
2001-01-25 16:48           ` fdisk problems  Brian Michalk
2001-01-25 18:33             ` David Woodhouse
2001-01-25 18:56               `  Brian Michalk
2001-01-25 20:31                 `  Brian Michalk
2001-01-25 20:56                   ` David Woodhouse
2001-01-25 21:19                     `  Brian Michalk
2001-01-26 17:41                     `  Brian Michalk
2001-01-28 13:19                       ` David Woodhouse
2001-01-28 15:52                         ` Brian Michalk
2000-11-02 10:09 ` mtdblock module & I'm Back again David Woodhouse
  -- strict thread matches above, loose matches on Subject: below --
2006-05-24  3:46 fdisk problems superlidu
2006-05-24  7:33 ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox