bool copy_bootrom(void) {
int line = 0;
const int size 8*1024
int i;
unsigned char buf[size];
int fd, w;
memset(buf2, 0, size);
fd = creat("/bootrom.bin", 0666);
if (fd < 0) {
return false;
}
else {
w = write(fd, buf, size);
if (w < 0)
return false;
close(fd);
}
return true;
}