[oe] [PATCH v2] beagleboard-test-scripts: Add a script flash-fs.sh for flashing NAND

Jason Kridner jkridner at beagleboard.org
Thu Jul 7 15:12:04 UTC 2011


On Thu, Jul 7, 2011 at 10:49 AM, Joel A Fernandes <agnel.joel at gmail.com> wrote:
> On Thu, Jul 7, 2011 at 9:35 AM, Jason Kridner <jkridner at beagleboard.org> wrote:
>> On Wed, Jul 6, 2011 at 12:15 PM, Joel A Fernandes <agnel.joel at gmail.com> wrote:
>>> This script flashes the NAND of a BeagleBoard if it exists, and if there is a valid image to flash
>>>
>>> Signed-off-by: Joel A Fernandes <agnel.joel at gmail.com>
>>
>> Acked-by: Jason Kridner <jkridner at beagleboard.org>
>>
>> I will eventually merge your changes into the mainline, but I believe
>> it is helpful to get these updates in OE for BeagleBoard users who
>> want to reproduce the shipping images.
>>
>
>> Can you update the process to only flash the boards if the USER button
>> is held or some other similar strategy?  It seems that enabling this
>> script would make the SD card image useless for non-flashing
>
> Since we cannot access user-button as its used as an input event, can
> I put in a message like "Press any key to flash", timeout if no key is
> hit and then normally boot?

You should be able to check the status similar to the way you do for
keyboards.  From what I've read[1][2], you can simply use the
EVIOCGKEY ioctl to check the state.

[1] http://andrey.thedotcommune.com/2010/02/heres-another-quick-linux-input-snippet.html
[2] http://www.linuxjournal.com/node/6429/print

>
> Regards
> Joel
>




More information about the Openembedded-devel mailing list