20.04.2014 15:07, Frantisek Hanzlik пишет:
Hello, I just trying compile and run last dosemu devel branch, with dosemu dosemu-freedos-1.0-bin.tgz and it see as now dosemu starts dos from drive C: (resp from '~/.dosemu/drives/c', which is symlink to '~/.dosemu/drive_c' - where are only autoexec.bat, config.sys and tmp/). Thus dosemu will not find DOS and ends with message:Sorry, there is no operating system here: /home/hanzlik/.dosemu/drives/c Please try to install FreeDOS from dosemu-freedos-*-bin.tgz Just when I copy FreeDOS 'kernel.sys' (from 'D:', which is symlink '~/.dosemu/drives/d' pointing to '/usr/share/dosemu/drive_z', where dosemu-freedos-1.0-bin is installed/unpackaged) to 'C:' ('~/.dosemu/drives/c') and dosemu starts fine. Please, it is intended to be DOS started from C: now? IMO in earlier (maybe 'stable' version) was DOS started from drive D: (and this is perhaps still supposed in config.sys, where commands refer to D: and as lately as its end is DOS lredir-ed to Z:) Or I'm doing some mistake?
Does the attached patch help? If not, feel free to open bug report.
diff --git a/src/base/misc/fatfs.c b/src/base/misc/fatfs.c index d927099..d2d24c8 100644 --- a/src/base/misc/fatfs.c +++ b/src/base/misc/fatfs.c @@ -697,8 +697,10 @@ void scan_dir(fatfs_t *f, unsigned oi) char *libdir = getenv("DOSEMU_LIB_DIR"); if (libdir) { char *kernelsyspath = assemble_path(libdir, "drive_z/kernel.sys", 0); - if (access(kernelsyspath, R_OK) == 0) + if (access(kernelsyspath, R_OK) == 0) { + add_object(f, oi, "kernel.sys"); f->sys_type |= 0x20; + } free(kernelsyspath); } } @@ -828,7 +830,7 @@ void add_object(fatfs_t *f, unsigned parent, char *name) fatfs_deb("trying to add \"%s\":\n", s); if(stat(s, &sb)) { int found = 0; - if (strcmp(name, "KERNEL.SYS") == 0) { + if (strequalDOS(name, "KERNEL.SYS")) { char *libdir = getenv("DOSEMU_LIB_DIR"); fatfs_deb("does not exist\n"); if (libdir) {
------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech
_______________________________________________ Dosemu-devel mailing list Dosemu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dosemu-devel