AMD Flash Interface for updating boot flash
Where do you set this up? If I want to use partitions, where do I put the info on how it is partitioned?
I modified the kernel .config and it gives me the following startup messages:
physmap flash device: 80000 at fff00000
CFI: Found no Physically mapped flash device at location zero
I'll check out the MTD list.
Chuck
Quoted 1 line
Quoted 1 line
Quoted 1 line
<[email protected]> 06/26/02 02:49PM >>>
I agree that MTD is the way to go, but with one small change to Michael's instructions.
configure MTD for char driver support, and do
dd if=bootloader of=/dev/mtd0
/dev/mtd0 is a raw char device that is best to write a binary boot image to flash,/dev/mtdblock0 is a block device that is best for file system images, which can then be mounted.
You can get expert advice from the MTD list:
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Jan
"Michael Meriin" <[email protected]>
Sent by: [email protected] 06/26/2002 12:17 PM
To: "Chuck Partridge" <[email protected]>,
<[email protected]>
cc:
Subject: Re: AMD Flash Interface for updating boot flash
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" <[email protected]>
To: <[email protected]>
Sent: Wednesday, June 26, 2002 17:09
Subject: AMD Flash Interface for updating boot flash
Quoted 4 lines
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.
Quoted 3 lines
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.
Quoted 1 line
I have seen references in the archives to Denx's
drivers/char/amd_flash.c
and to MTD drivers, or I can
Quoted 1 line
implement my own driver, but I'm not sure of the best (i.e. easiest and
cleanest) way.
Quoted 2 lines
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
Quoted 1 line
29LV004B and is setup for 8 bit interface. I am running a 2.4.17 kernel
on an 8245.
Quoted 8 lines
Any suggestions?
Thanks,
Chuck
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 11 lines · Chuck Partridge
Where do you set this up? If I want to use partitions, where do I put the info on how it is partitioned?
I modified the kernel .config and it gives me the following startup messages:
physmap flash device: 80000 at
fff00000
CFI: Found no Physically mapped flash device at location zeroI'll check out the MTD list.
Chuck
Have a look to
http://www.denx.de/doc/TQM8xxL/advanced-topics.html#FLASH-FILESYSTEMS
That's the way it is done for TQM8xxL. Maybe you just need to setup a mapping
for your board in drivers/mtd/maps.
Hope it helps,
Wolfgang.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/