ts-7000
[Top] [All Lists]

[ts-7000] 2.6.32 + matt4 can't use flash on TS7250

To:
Subject: [ts-7000] 2.6.32 + matt4 can't use flash on TS7250
From: "j.chitte" <>
Date: Wed, 02 Jun 2010 15:14:24 -0000
Hi,

I'm having some problems accessing mtd devices with 2.6.32.11 with Matthieu's 
patches .

All works well booting nfs but if I try to mount or erase the mtd devices , no 
go. 

# ls /dev/mtd* -ail                                                             
         
    138 crw-rw----    1 root     root       90,   0 Jun  2 13:50 /dev/mtd0      
         
    139 crw-rw----    1 root     root       90,   1 Jun  2 13:50 /dev/mtd0ro    
         
    140 crw-rw----    1 root     root       90,   2 Jun  2 13:50 /dev/mtd1      
         
    141 crw-rw----    1 root     root       90,   3 Jun  2 13:50 /dev/mtd1ro    
         
    142 crw-rw----    1 root     root       90,   4 Jun  2 13:50 /dev/mtd2      
         
    143 crw-rw----    1 root     root       90,   5 Jun  2 13:50 /dev/mtd2ro    
         
    118 brw-rw----    1 root     root       31,   0 Jun  2 13:50 /dev/mtdblock0 
         
    119 brw-rw----    1 root     root       31,   1 Jun  2 13:50 /dev/mtdblock1 
         
    120 brw-rw----    1 root     root       31,   2 Jun  2 13:50 /dev/mtdblock2 
    


# flash_eraseall /dev/mtd1
flash_eraseall: can't open '/dev/mtd1': Permission denied

Try to mount mtdblock1 spews lots of badness about bad erase blocks. 


>From dmesg:

Searching for NAND flash...                                                     
         
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 
8-bit)       
Scanning device for bad blocks                                                  
         
Bad eraseblock 0 at 0x000000000000                                              
         
cmdlinepart partition parsing not available                                     
         
Using static partition definition                                               
         
Creating 3 MTD partitions on "ts7250-nand":                                     
         
0x000000000000-0x000000004000 : "TS-BOOTROM"                                    
         
mtd: partition "TS-BOOTROM" doesn't end on an erase block -- force read-only    
         
0x000000004000-0x000007d04000 : "Linux"                                         
         
mtd: partition "Linux" doesn't start on an erase block boundary -- force 
read-only       
0x000007d04000-0x000008000000 : "RedBoot"                                       
         
mtd: partition "RedBoot" doesn't start on an erase block boundary -- force 
read-only   


Some digging indicates this seems to be due to incorrect page size , 2k on 
TS7250, but this is coming up at redboot so presumably nothing to do with yaffs 
but mtd.

I see nothing the mtd sections that relates this other than the single option 
to add specific support for ts boards. 

Is this option not aware of different page size or am I missing a trick?

TIA. 



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU