problem mounting from flash [Invalid sectorsize] [g_vfs_done()
	??error=22]
    Oliver Fromme 
    olli at lurza.secnetix.de
       
    Tue Nov  9 17:27:07 UTC 2010
    
    
  
Monthadar Al Jaberi <monthadar at gmail.com> wrote:
 > I successfully tried mdconfig version, but gnop gives error message:
 > gnop: Invalid secsize for provider redboot/fs.
I'm sorry, I shouldn't have mentioned gnop.  It's probably
not helpful in this case.
 > I looked into datasheet for the flash (MX25125805D) and it seems like
 > it can work in both 64K and 4K? Confused.
 > (http://www.macronix.com/QuickPlace/hq/PageLibrary482576EF002A2699.nsf/h_Index/30D2368B704F50B9482576EF002D070F/?OpenDocument&Type=Serial%20Flash&Density=128Mb)
I'm not familiar with that kind of hardware, but if it can
be switched to 4k sector mode, then that would make things
a lot easier.
 > Would it help me if I changed the flash driver to work with 4K?
Yes, definitely.
 > Or do I still need to either, mdconfig, gnop or play UFS/UFS2 code
 > (hard for me)?
If everything else fails, I would simply create a memory
disk with mdconfig (if you have enough RAM), copy the file
system from flash to the memory disk (use "dd bs=64k ...")
and mount it from there.  That's not hard.
 > Basically I have a cross compiled kernel+mdroot with tinyBSD wireless
 > configuration, zipped and stored on the flash. So I am trying to have
 > a filesystem on the flash that will shadow changes.
 > 
 > When I zipp it takes ~10M instead of 47M!
Wait a second ...  I don't understand ...  Are you saying
that you've put a compressed FS image on the flash?  Is
that the file system that you're trying to mount?  Or are
we talking about two distinct pieces of flash?
If you just want to save changes (e.g. configuration files,
log files and similar) to the flash, you can also simply
use a tar archive:
# tar -cb 128 -f /dev/<your flash> <your files>
Best regards
   Oliver
-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart
FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd
"The last good thing written in C was
Franz Schubert's Symphony number 9."
        -- Erwin Dieterich
    
    
More information about the freebsd-fs
mailing list