export DEVROOT=/path/to/your/vmm-dev
export LOCATION=$DEVROOT/devtools
-cd $DEVROOT/vmm-hack1/build
+cd $DEVROOT/build
export PATH=$PATH:$LOCATION/bin
make world
-This should succeed, leaving you with a vmm.img file.
+This will build a vmm.img floppy image in geekos/build. You can also build a boot ISO image by running:
+
+> make geekos-iso
+
+Which will generate a test.iso image in $DEVROOT/build
struct cdrom_state {
uchar_t * image_addr; //memory address
- ulong_t capacity_B;
+ ulong_t capacity_in_bytes;
ulong_t head; //current position
struct vm_device * ide_dev;
static uint32_t cdrom_capacity(void * private_data) {
struct cdrom_state * cdrom = (struct cdrom_state *)private_data;
- PrintDebug("[cdrom_capacity] s_ramdiskSize = %d\n", cdrom->capacity_B);
+ PrintDebug("[cdrom_capacity] s_ramdiskSize = %d\n", cdrom->capacity_in_bytes);
if (cdrom->lba) {
- if (cdrom->capacity_B % 2048) {
- PrintDebug("\t\t capacity in LBA is %d\n", (cdrom->capacity_B / 2048) + 1);
- return (cdrom->capacity_B / 2048) + 1;
+ if (cdrom->capacity_in_bytes % 2048) {
+ PrintDebug("\t\t capacity in LBA is %d\n", (cdrom->capacity_in_bytes / 2048) + 1);
+ return (cdrom->capacity_in_bytes / 2048) + 1;
} else {
- PrintDebug("\t\t capacity in LBA is %d\n", cdrom->capacity_B / 2048);
- return cdrom->capacity_B / 2048;
+ PrintDebug("\t\t capacity in LBA is %d\n", cdrom->capacity_in_bytes / 2048);
+ return cdrom->capacity_in_bytes / 2048;
}
} else {
PrintError("Unsupported CDROM mode in capacity query\n");
memset(cd, 0, sizeof(struct cdrom_state));
cd->image_addr = (uchar_t *)ramdisk;
- cd->capacity_B = ramdisk_size;
+ cd->capacity_in_bytes = ramdisk_size;
cd->ide_dev = ramdisk_dev;
PrintDebug("Creating RamDISK CDROM\n");