Re: [Balloon] Accessing NOR flash from Linux

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Wookey
Date:  
To: balloon
Subject: Re: [Balloon] Accessing NOR flash from Linux
+++ Patrick Doyle [2011-06-07 14:41 -0400]:
> Is there any way to access the NOR flash from Linux on my BalloonBoard?


Not easily. It's not exposed as an mtdblock. It should be, but this is
probably disruptive becuse it'll bump the numbers of existing
/dev/mtdblock so bot config needs to change to match.

> I notice in balloon3.c that access to the entire NOR flash can be
> compiled in when CONFIG_MTD_PHYSMAP is defined.
>
> I also notice that CONFIG_MTD_PHYSMAP is not defined in my default build.
>
> Before I dive too deeply into this, I thought I should ask the question.
>
> What's the best way to access NOR flash from Linux on my BalloonBoard?
> I would like to be able to download and program new FPGA images into
> the NOR flash, reset the board, and see them work. (I'm not sure how
> much you folks can help me with that last part :-))


This can easily be done with bbl utility fro outside linux. I'm pretty
sre there is a way of accessing the NOR from code - it's just not easy.

Wookey
--
Principal hats: Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/