•cs= to set the chip select
AST2050: 2; default: get from SCU trapping.
•flashtype=the flash chip type 2:SPI
•skip=type the skip size in bytes at the start of input file (default=0)
•offset = type the offset in bytes at the start of the flash (default=0)
•count= type the size in bytes copy to the flash (default=the size of the flash)
•option=f2c
–skip the comparison of flash data and force to update
–use chip erase instead of sector erase
–reset scratch
–two flash update support
AST2050: two SPI solution: 1st SPI is on CS2; 2nd SPI is on CS0 Examples:
Flash All without Saving user configuration Data:
C:\socflash \dosflash>socflash cs=2 option=fc if=firm.bin
Instructions for Linux SOCFLASH linux.sh:
Change directory to ./socflash
Execute sh ./linux.sh on Local System with Linux OS.
[root@localhost ~ socflash]# ./linux.sh
After the procedure is complete, wait 90 seconds for BMC to reset.
Instructions for DOS SOCFLASH dos.bat:
Change directory to .\socflash
Execute dos.bat on Local System with DOS.
c:\socflash\> dos.bat
After the procedure is complete, wait 90 seconds for BMC to reset.
Troubleshooting