May 2017
Beginner to intermediate
470 pages
10h 49m
English
Before the ROM image can be used, the ROM image has to be updated due to VirtualBox having the following requirements on ROM image size:
Let's check the image size first and make sure that it is not larger than 65,536 bytes (64K):
$ ls -l bin/1af41000.rom | awk '{print $5}'62464
We can see that it is less than 64K. Now we have to pad the image file to a 4K boundary. We can do this using the following commands:
$ python>>> 65536 - 62464 # Calculate padding size3072>>> f = open('bin/1af41000.rom', 'a')>>> f.write('\0' * 3072) # Pad with zeroes>>> f.close()
We check the image file size again:
$ ls -l bin/1af41000.rom | awk ...
Read now
Unlock full access