Re: [GXemul-devel] NetBSD/hpcmips install fails under GXemul 0.6.1
Status: Alpha
Brought to you by:
gavare
From: Anders G. <ga...@gm...> - 2019-06-05 07:21:19
|
> Comparing the two, I see the bootstring has changed from "boot 5/rz0/ -a" to "boot 5/rz1/ -a". Yes, that's strange. The two patches that I did not apply from NetBSD's pkgsrc were a) the NOFPU stuff, and b) the patch at http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/emulators/gxemul/patches/patch-src_machines_machine__pmax.cc?rev=1.3&content-type=text/x-cvsweb-markup&only_with_tag=MAIN which essentially does this: - strlcpy(bootpath, "5/rz1/", sizeof(bootpath)); + strlcpy(bootpath, "5/rz0/", sizeof(bootpath)); However, the lines immediately below that in src/machines/machine_pmax.cc say: if (machine->bootdev_id < 0 || machine->force_netboot) { /* tftp boot: */ strlcpy(bootpath, "5/tftp/", sizeof(bootpath)); bootpath[0] = '0' + boot_net_boardnumber; } else { /* disk boot: */ bootpath[0] = '0' + boot_scsi_boardnumber; if (diskimage_is_a_tape(machine, machine->bootdev_id, machine->bootdev_type)) bootpath[2] = 't'; bootpath[4] = '0' + machine->bootdev_id; } so if you are not netbooting, it should overwrite bootpath[4] with the device ID of the boot device. I am confused as to what has happened. Can you add a printf statement next to that code and see what value machine->bootdev_id has when you run your scenario? 0 or 1? Anders |