答复: flash_rom start and size

YhLu YhLu at tyan.com
Wed Apr 21 12:17:00 CEST 2004


It could only process 64k block.

YH

-----邮件原件-----
发件人: ron minnich [mailto:rminnich at lanl.gov] 
发送时间: 2004年4月21日 10:29
收件人: YhLu
抄送: Li-Ta Lo; LinuxBIOS
主题: Re: flash_rom start and size

for the Alphas long ago I modified flash_rom as follows:

flash_rom e <start block #> <length in blocks>

Erase the blocks

flash_rom r <start block #> <length in blocks>

read the blocks

flash_rom p <file name> <start block #>

program with file name starting at start block #. Program up to the limit
of the file size or the flash size, whichever is small. This was for 
partial programming.

flash_rom s <start block #> <lenght in blocks>

program using stdin as the data, starting at start block # and for length
blocks OR eof on stdin, whichever was smaller. 

This was pretty handy for the DS10, which had 2 MB of flash in 64KB 
blocks, and had areas of flash we could not rewrite.

maybe we need this for the general case?

ron



More information about the coreboot mailing list