desktop: expand eeprom to 4k initial size

This commit is contained in:
Andrew Tridgell 2011-10-09 15:55:21 +11:00
parent b8dfdc293b
commit 65900dd1e0
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ static void eeprom_open(void)
{ {
if (eeprom_fd == 0) { if (eeprom_fd == 0) {
eeprom_fd = open("eeprom.bin", O_RDWR|O_CREAT, 0777); eeprom_fd = open("eeprom.bin", O_RDWR|O_CREAT, 0777);
ftruncate(eeprom_fd, 4096);
} }
} }