[ELDK] umount on jffs2 file system some times hangs

Yigal Goldberger yigal_gold at yahoo.com
Tue Jan 26 11:27:26 CET 2010


Hi,
Thanks for taking the time to answer so quickly .
I'm using S29GL256N and Am29LV256M (not on the same board) .

1. You're right , I think it does return after a few minutes .
   But successive umounts return quickly.
2. According to our HW guy , it's a NOR flash .
   The partition is 30MB , but the file system only occupies ~7.5MB .
3. ps (my ps doesn't support these options) shows :

...
...
993   root        3868  D     umount /mnt/mtd/
1003  root        4172  R     ps

4. strace not supported in my FS .
 
I hope I provided useful information.
Yigal.


--- On Tue, 1/26/10, Wolfgang Denk <wd at denx.de> wrote:

> From: Wolfgang Denk <wd at denx.de>
> Subject: Re: [ELDK] umount on jffs2 file system some times hangs
> To: "Yigal Goldberger" <yigal_gold at yahoo.com>
> Cc: eldk at lists.denx.de
> Date: Tuesday, January 26, 2010, 11:03 AM
> Dear Yigal Goldberger,
> 
> In message <672684.29335.qm at web38902.mail.mud.yahoo.com>
> you wrote:
> >
> > My system is a powerpc based board .(freescale QUICC2)
> .
> > My kernel is 2.6.29.4 with Xenomai - 2.4.8 .
> > To Update my firmware I perform the following
> operations :
> > 
> > busybox mount -t jffs2 /dev/mtdblock8 /mnt/mtd -o
> sync
> > busybox tar -zxvf /mnt/temp/xxx.tar.gz -C /mnt/mtd/
> >/dev/null 2>&1
> 
> Unrelated remark: Why do you add the "verbose" option
> ('-v') when you
> just throw away the output later ("> /dev/null") ? This
> is just
> wasting CPU cycles.
> 
> > busybox umount /mnt/mtd
> > 
> > 
> > The problem is with the last command - it sometimes
> hangs (never returns) .
> 
> Does it really never return, or just take very long?
> 
> How big is your JFFS2 partition? Is this on NAND or on NOR
> flash?
> 
> What does "ps axf" (or equivalent) show while the mount is
> hanging?
> 
> What does "strace umount /mnt/mtd" show in the same
> situation?
> 
> Best regards,
> 
> Wolfgang Denk
> 
> -- 
> DENX Software Engineering GmbH,     MD:
> Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194
> Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email:
> wd at denx.de
> Emotions are alien to me.  I'm a scientist.
>     -- Spock, "This Side of Paradise",
> stardate 3417.3
> 


      


More information about the eldk mailing list