Date: Wed, 10 Nov 2010 08:44:37 +0100 From: Monthadar Al Jaberi <monthadar@gmail.com> To: freebsd-fs@freebsd.org, olli@lurza.secnetix.de Subject: Re: problem mounting from flash [Invalid sectorsize] [g_vfs_done() ??error=22] Message-ID: <AANLkTimBPD1ma6OnUyvaMb0sjKPKM8Hm4jD5Om4APH2p@mail.gmail.com> In-Reply-To: <201011091726.oA9HQngL088174@lurza.secnetix.de> References: <AANLkTi=MuiB6Xt3uztB7Yz82TvA2GJ9q6ncquU1=HTj9@mail.gmail.com> <201011091726.oA9HQngL088174@lurza.secnetix.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> =A0> Would it help me if I changed the flash driver to work with 4K? > > Yes, definitely. Ok, I will look into. > > =A0> Or do I still need to either, mdconfig, gnop or play UFS/UFS2 code > =A0> (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=3D64k ...") > and mount it from there. =A0That's not hard. Yepp, works like a charm, Thank you =3D) My board have 128MB ram and 16MB flash. > > =A0> Basically I have a cross compiled kernel+mdroot with tinyBSD wireles= s > =A0> configuration, zipped and stored on the flash. So I am trying to hav= e > =A0> a filesystem on the flash that will shadow changes. > =A0> > =A0> When I zipp it takes ~10M instead of 47M! > > Wait a second ... =A0I don't understand ... =A0Are you saying > that you've put a compressed FS image on the flash? =A0Is > that the file system that you're trying to mount? =A0Or are > we talking about two distinct pieces of flash? No its another filesystem that I want to mount. The root filesystem is inside the kernel image (MD_ROOT option) , the kernel will mount from it (/dev/md0) When the kernel image was generated I zipped it and stored it on the flash, so a bootloader like Redboot will unzipp to ram and run the kernel. So I guess its messy to touch the filesystem that is inside a zipped kernel image. Filesystem itself is not zipped. So idea is to create another directory in the flash FIS (Flash Image System) where I store new versions of somefiles. And your tar advice works nicely, that makes it easier than having a filesystem on flash and it will be zipped too!!!!! Thank you :) Maybe no need to fidle with the flash driver and UFS code, who knows... :P I guess ideal scenario is having a direct read/write separate filesystem for some paths like /etc on the flash, while /var and /tmp are mounted as /dev/mdX and the rest is read-only. Thank you! > > -- > Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. > Handelsregister: Registergericht Muenchen, HRA 74606, =A0Gesch=E4ftsfuehr= ung: > secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M=FC= n- > chen, HRB 125758, =A0Gesch=E4ftsf=FChrer: Maik Bachmann, Olaf Erb, Ralf G= ebhart > > FreeBSD-Dienstleistungen, -Produkte und mehr: =A0http://www.secnetix.de/b= sd > > "The last good thing written in C was > Franz Schubert's Symphony number 9." > =A0 =A0 =A0 =A0-- Erwin Dieterich > --=20 //Monthadar Al Jaberi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimBPD1ma6OnUyvaMb0sjKPKM8Hm4jD5Om4APH2p>