From: Tom Rini <trini@ti.com>
To: "Cooper Jr., Franklin" <fcooper@ti.com>
Cc: "meta-arago@arago-project.org" <meta-arago@arago-project.org>
Subject: Re: [PATCH 5/6] mount-sdcard: Update to use new udev entry
Date: Tue, 3 Dec 2013 07:43:44 -0500 [thread overview]
Message-ID: <529DD200.2040500@ti.com> (raw)
In-Reply-To: <8F29D6B095ED194EA1980491A5E029710C5CB341@DFLE08.ent.ti.com>
On 12/02/2013 08:20 PM, Cooper Jr., Franklin wrote:
>
>
>> -----Original Message-----
>> From: Rini, Tom
>> Sent: Monday, December 02, 2013 6:20 PM
>> To: Cooper Jr., Franklin
>> Cc: Dmytriyenko, Denys; meta-arago@arago-project.org
>> Subject: Re: [meta-arago] [PATCH 5/6] mount-sdcard: Update to use new udev
>> entry
>>
>> On 12/02/2013 06:23 PM, Cooper Jr., Franklin wrote:
>>>
>>>
>>>> On Dec 2, 2013, at 3:31 PM, "Dmytriyenko, Denys" <denys@ti.com> wrote:
>>>>
>>>>> On Fri, Nov 22, 2013 at 09:15:45PM -0500, Tom Rini wrote:
>>>>>> On Fri, Nov 22, 2013 at 10:27:06PM +0000, Cooper Jr., Franklin wrote:
>>>>>>
>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Tom Rini [mailto:tom.rini@gmail.com] On Behalf Of Rini, Tom
>>>>>>> Sent: Friday, November 22, 2013 2:00 PM
>>>>>>> To: Cooper Jr., Franklin
>>>>>>> Cc: meta-arago@arago-project.org
>>>>>>> Subject: Re: [meta-arago] [PATCH 5/6] mount-sdcard: Update to use
>>>>>>> new udev entry
>>>>>>>
>>>>>>>> On Fri, Nov 22, 2013 at 09:45:20AM -0600, Franklin S. Cooper Jr
>> wrote:
>>>>>>>>
>>>>>>>> * Patch 1c1b695310309ec3526f1b6b415c5e1b74a567e1 added a
>> udev
>>>>>>> entry to
>>>>>>>> automatically mount sd card partition.
>>>>>>>> * For some reason that udev entry isn't automatically ran.
>>>>>>>> * As a workaround manually trigger udev to run twice (not sure
>>>>>>>> why thats
>>>>>>> needed)
>>>>>>>> for the udev rule to run correctly.
>>>>>>>>
>>>>>>>> Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
>>>>>>>
>>>>>>> This issn't right. Have you added debugging steps to the mount.sh script?
>>>>>>> We're saying, with this change "lets trigger all block devices 3
>>>>>>> times", and on the 3rd attempt we finally do mount things. I've
>>>>>>> seen some partitions NOT be auto- mounted due to being dirty and
>>>>>>> needing an fsck prior to mounting them. If we need to do this
>>>>>>> type of change at the end as a "we can't figure out the root cause, but we
>> need to release", OK.
>>>>>>> But I don't think we're there yet. Thanks!
>>>>
>>>>>> [Franklin] Just to give an update it looks like fsck is required to
>>>>>> be ran to fix this problem however it wouldn't be safe to run fsck
>>>>>> and let it auto fix the problem since that could cause potential
>>>>>> issues. So if fsck is really the proper solution then I'm not sure
>>>>>> that would work for something that needs to automatically work at
>> bootup.
>>>>>
>>>>> Well, dirty cards shouldn't be auto-mounted. Or there's some option
>>>>> to mount we should be passing to say "no, it's OK".
>>>>
>>>> So, what is the agreement here? I don't think forcing fsck for
>>>> mounting a card is a good idea. I agree with Tom that if the card is
>>>> dirty (could be corrupted), then user intervention is required anyway.
>>>>
>>>> I'm planning on skipping these 2 patches, if nobody objects.
>>> We need to figure this out but feel free to skip the patches.
>>
>> Well, lets step back. Did we confirm that the problem is that it's dirty (in which
>> case, trying to mount it N times should give N failures, not "3rd time is the
>> charm!") or just that fsck'ing one particular card fixed that part of the card that
>> wasn't mounting (but the rest of it
>> was?) or what?
> [Franklin] I'm not sure why by forcing it to run a third time it ran without a problem when the card is dirty. However, I did determine it was an issue with the card being dirty and that is what was preventing it from mounting automatically at boot up. Running fsck revealed there were indeed problems and after fixing those issues and trying it again without my extra script the partitions successfully mounted the first time. Although the rootfs partition doesn't mount automatically but that is probably expected.
No, all partitions on the card should be mounted.
--
Tom
next prev parent reply other threads:[~2013-12-03 12:43 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-22 15:45 [PATCH 1/6] qt4-embedded-gles: Add support for new version of the Graphics SDK Franklin S. Cooper Jr
2013-11-22 15:02 ` Denys Dmytriyenko
2013-11-22 15:13 ` Cooper Jr., Franklin
2013-11-22 18:51 ` Denys Dmytriyenko
2013-11-22 19:00 ` Cooper Jr., Franklin
2013-11-22 15:45 ` [PATCH 2/6] arago-prefs.inc Use version 05.00.00.01 of the Graphics SDK for am335 and am43x Franklin S. Cooper Jr
2013-11-22 15:45 ` [PATCH 3/6] branding-core: Dont remove SGX from MACHINE_FEATURES Franklin S. Cooper Jr
2013-11-22 15:45 ` [PATCH 4/6] Revert "packagegroup-arago-tisdk-amsdk.bb, mount-sdcard: Remove mount-sdcard" Franklin S. Cooper Jr
2013-11-22 15:45 ` [PATCH 5/6] mount-sdcard: Update to use new udev entry Franklin S. Cooper Jr
2013-11-22 20:00 ` Tom Rini
2013-11-22 22:27 ` Cooper Jr., Franklin
2013-11-23 2:15 ` Tom Rini
2013-12-02 21:31 ` Denys Dmytriyenko
2013-12-02 23:23 ` Cooper Jr., Franklin
2013-12-03 0:20 ` Tom Rini
2013-12-03 1:20 ` Cooper Jr., Franklin
2013-12-03 12:43 ` Tom Rini [this message]
2013-11-22 15:45 ` [PATCH 6/6] packagegroup-arago-tisdk-amsdk-sdk-host: Don't bother packaging blank uEnv.txt Franklin S. Cooper Jr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=529DD200.2040500@ti.com \
--to=trini@ti.com \
--cc=fcooper@ti.com \
--cc=meta-arago@arago-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.