AMD Flash Interface for updating boot flash

2 messages, 2 authors, 2002-06-26 · open the first message on its own page

AMD Flash Interface for updating boot flash

From: Chuck Partridge <hidden>
Date: 2002-06-26 15:09:37

Hello all,

I have been searching the archives and I am a bit confused, so bear with me if this is too simple a question.

I need to provide a way to update my boot flash from user space.
Our user application will download an boot flash image and save it (to a file or a buffer), we must then write the flash.
I have seen references in the archives to Denx's drivers/char/amd_flash.c and to MTD drivers, or I can
implement my own driver, but I'm not sure of the best (i.e. easiest and cleanest) way.

I don't need to put a file system on the flash.  All it does is hold the PPCBoot image.  The flash part is an AMD
29LV004B and is setup for 8 bit interface.  I am running a 2.4.17 kernel on an 8245.

Any suggestions?

Thanks,

Chuck


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: AMD Flash Interface for updating boot flash

From: Michael Meriin <hidden>
Date: 2002-06-26 16:17:12

Just define your flash as a MTD device and then, from user space use dd
command to copy your bootloader to flash:

dd if=bootloader of=/dev/mtdblock0

Best Regards,
                     Michael Meriin


----- Original Message -----
From: "Chuck Partridge" <redacted>
To: <redacted>
Sent: Wednesday, June 26, 2002 17:09
Subject: AMD Flash Interface for updating boot flash

Hello all,

I have been searching the archives and I am a bit confused, so bear with
me if this is too simple a question.
I need to provide a way to update my boot flash from user space.
Our user application will download an boot flash image and save it (to a
file or a buffer), we must then write the flash.
I have seen references in the archives to Denx's drivers/char/amd_flash.c
and to MTD drivers, or I can
implement my own driver, but I'm not sure of the best (i.e. easiest and
cleanest) way.
I don't need to put a file system on the flash.  All it does is hold the
PPCBoot image.  The flash part is an AMD
29LV004B and is setup for 8 bit interface.  I am running a 2.4.17 kernel
on an 8245.
Any suggestions?

Thanks,

Chuck

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help