From: <Use...@zo...> - 2008-03-17 15:09:33
|
Hello .\colinux-daemon.exe -v 3 --status-driver do not deliver an errorlevel anymore, if the loaded driver is not working. The batch sequence shown below worked flawlessly for some time: If the driver was wrong, the batch unloads the old and installs the current. But now error level is always 0, but conlinux now dies with: C:\coLinux>.\colinux-daemon.exe -t NT @colinux.conf -v 3 Cooperative Linux Daemon, 0.8.0 Daemon compiled on Fri Mar 14 05:26:03 2008 using 'vmlinux' as kernel image configuring 128 MB of virtual RAM mapping cobd0 to \??\C:\colinux.. mapping cobd1 to \??\C:\colinux... mapping cobd4 to \Device\Cdrom0 mapping hda to cobd0 mapping hdb to cobd1 mapping hdc to cobd4 configured PCAP bridge at 'LAN-ADM851X' device as eth0 MAC address: 0A:C0:71:65:08:00 mapping cofs0 to \??\C:\colinux.... using 'initrd.gz' as initrd image mapping cofs31 to \??\C:\coLinux mapping ttys0 to COM2 kernel boot parameters: 'root=/dev/cobd0' error initializing daemon: exit code 83278801 daemon: error - CO_RC_ERROR_ERROR, line 482, file src/colinux/user/daemon.c (25) snip--------------------> set COLINUXEXE=.\colinux-daemon.exe :testdriver echo on %COLINUXEXE% --status-driver if %ERRORLEVEL% == 0 goto noproblem installnewdriver: echo ERROR: Wrong driver! net stop colinux %COLINUXEXE% --remove-service %COLINUXEXE% --remove-service colinux %COLINUXEXE% --remove-driver %COLINUXEXE% --install-driver %COLINUXEXE% --status-driver if %ERRORLEVEL% == 0 goto noproblem pause goto testdriver :noproblem <-------------------snap Maybe 3 states, binary combinable? a) 0 All is well 1 ? 2 ? 4 ? 8 ? b) 16 Old driver c) 32 Wrong linux API d) 64 Wrong periphery API e) 128 ? C:\coLinux>.\colinux-daemon.exe -v 3 --status-driver Cooperative Linux Daemon, 0.8.0 Daemon compiled on Fri Mar 14 05:26:03 2008 checking if the driver is installed current state: 4 (fully initialized) current number of monitors: 0 current linux api version: 11 current periphery api version: 21 Driver compiled on: Sun Feb 24 18:39:07 2008 C:\coLinux>echo %ERRORLEVEL% 0 C:\coLinux>net stop colinux Systemfehler 1060 aufgetreten. Der angegebene Dienst ist kein installierter Dienst. C:\coLinux>.\colinux-daemon.exe --remove-service Cooperative Linux Daemon, 0.8.0 Daemon compiled on Fri Mar 14 05:26:03 2008 daemon: removing service 'Cooperative Linux' daemon: failed to remove service. OpenService failed: Der angegebene Dienst ist kein installierter Dienst. C:\coLinux>.\colinux-daemon.exe --remove-service colinux Cooperative Linux Daemon, 0.8.0 Daemon compiled on Fri Mar 14 05:26:03 2008 daemon: removing service 'colinux' daemon: failed to remove service. OpenService failed: Der angegebene Dienst ist kein installierter Dienst. C:\coLinux>.\colinux-daemon.exe --remove-driver Cooperative Linux Daemon, 0.8.0 Daemon compiled on Fri Mar 14 05:26:03 2008 C:\coLinux>.\colinux-daemon.exe --install-driver Cooperative Linux Daemon, 0.8.0 Daemon compiled on Fri Mar 14 05:26:03 2008 loading C:\coLinux\linux.sys daemon: driver installed C:\coLinux>.\colinux-daemon.exe --status-driver Cooperative Linux Daemon, 0.8.0 Daemon compiled on Fri Mar 14 05:26:03 2008 checking if the driver is installed current state: 4 (fully initialized) current number of monitors: 0 current linux api version: 11 current periphery api version: 21 Driver compiled on: Fri Mar 14 05:26:03 2008 Now it runs! Rainer |
From: H. N. <hen...@ar...> - 2008-03-17 18:29:16
|
Hello Rainer, if I'm right, you can not ask for "==" in Windows batch. Errorlevel is not a variable. The errorelevel can only ask for a level equal or grater, that is implizit. I native CMD.EXE you can do such colinux-daemon --status-driver if errorlevel 14 goto error14 if errorlevel 3 goto error3 if errorlevel 1 goto error1 goto noproblem :error14 echo error 14 or grater detected goto exit :error3 echo error 3 to 13 detected goto exit :error1 echo error 1 or 2 detected goto exit :noproblem ... Please read your file NEW (verion 0.7.1): - Return errorlevel procedures (return from running, --install-driver, --status-driver, ...) Errorcodes: 0=OK, 3=driver version mismatch, 14=driver no installed, 255=general fail (-1) The errors are level coded (no binary mask). Only listed codes will be returned. -- Henry Rainer Zocholl wrote: > Hello > > .\colinux-daemon.exe -v 3 --status-driver > do not deliver an errorlevel anymore, > if the loaded driver is not working. > > The batch sequence shown below worked flawlessly for some time: > If the driver was wrong, the batch unloads the old and > installs the current. > But now error level is always 0, > but conlinux now dies with: > > C:\coLinux>.\colinux-daemon.exe -t NT @colinux.conf -v 3 > Cooperative Linux Daemon, 0.8.0 > Daemon compiled on Fri Mar 14 05:26:03 2008 > > using 'vmlinux' as kernel image > configuring 128 MB of virtual RAM > mapping cobd0 to \??\C:\colinux.. > mapping cobd1 to \??\C:\colinux... > mapping cobd4 to \Device\Cdrom0 > mapping hda to cobd0 > mapping hdb to cobd1 > mapping hdc to cobd4 > configured PCAP bridge at 'LAN-ADM851X' device as eth0 > MAC address: 0A:C0:71:65:08:00 > mapping cofs0 to \??\C:\colinux.... > using 'initrd.gz' as initrd image > mapping cofs31 to \??\C:\coLinux > mapping ttys0 to COM2 > kernel boot parameters: 'root=/dev/cobd0' > error initializing > daemon: exit code 83278801 > daemon: error - CO_RC_ERROR_ERROR, line 482, file src/colinux/user/daemon.c > (25) > > snip--------------------> > > set COLINUXEXE=.\colinux-daemon.exe > :testdriver > echo on > %COLINUXEXE% --status-driver > if %ERRORLEVEL% == 0 goto noproblem > installnewdriver: > echo ERROR: Wrong driver! > net stop colinux > %COLINUXEXE% --remove-service > %COLINUXEXE% --remove-service colinux > %COLINUXEXE% --remove-driver > %COLINUXEXE% --install-driver > %COLINUXEXE% --status-driver > if %ERRORLEVEL% == 0 goto noproblem > pause > goto testdriver > > :noproblem > > <-------------------snap > > > Maybe 3 states, binary combinable? > > a) 0 All is well > 1 ? > 2 ? > 4 ? > 8 ? > b) 16 Old driver > c) 32 Wrong linux API > d) 64 Wrong periphery API > e) 128 ? > > > > > > C:\coLinux>.\colinux-daemon.exe -v 3 --status-driver > Cooperative Linux Daemon, 0.8.0 > Daemon compiled on Fri Mar 14 05:26:03 2008 > > checking if the driver is installed > current state: 4 (fully initialized) > current number of monitors: 0 > current linux api version: 11 > current periphery api version: 21 > Driver compiled on: Sun Feb 24 18:39:07 2008 > > C:\coLinux>echo %ERRORLEVEL% > 0 > > C:\coLinux>net stop colinux > Systemfehler 1060 aufgetreten. > > Der angegebene Dienst ist kein installierter Dienst. > > > C:\coLinux>.\colinux-daemon.exe --remove-service > Cooperative Linux Daemon, 0.8.0 > Daemon compiled on Fri Mar 14 05:26:03 2008 > > daemon: removing service 'Cooperative Linux' > daemon: failed to remove service. OpenService failed: Der angegebene Dienst > ist > kein installierter Dienst. > > C:\coLinux>.\colinux-daemon.exe --remove-service colinux > Cooperative Linux Daemon, 0.8.0 > Daemon compiled on Fri Mar 14 05:26:03 2008 > > daemon: removing service 'colinux' > daemon: failed to remove service. OpenService failed: Der angegebene Dienst > ist > kein installierter Dienst. > > C:\coLinux>.\colinux-daemon.exe --remove-driver > Cooperative Linux Daemon, 0.8.0 > Daemon compiled on Fri Mar 14 05:26:03 2008 > > > C:\coLinux>.\colinux-daemon.exe --install-driver > Cooperative Linux Daemon, 0.8.0 > Daemon compiled on Fri Mar 14 05:26:03 2008 > > loading C:\coLinux\linux.sys > daemon: driver installed > > C:\coLinux>.\colinux-daemon.exe --status-driver > Cooperative Linux Daemon, 0.8.0 > Daemon compiled on Fri Mar 14 05:26:03 2008 > > checking if the driver is installed > current state: 4 (fully initialized) > current number of monitors: 0 > current linux api version: 11 > current periphery api version: 21 > Driver compiled on: Fri Mar 14 05:26:03 2008 > > > Now it runs! > > Rainer Jetzt komfortabel bei Arcor-Digital TV einsteigen: Mehr Happy Ends, mehr Herzschmerz, mehr Fernsehen! Erleben Sie 50 digitale TV Programme und optional 60 Pay TV Sender, einen elektronischen Programmführer mit Movie Star Bewertungen von TV Movie. Außerdem, aktuelle Filmhits und prickelnde Erotik in der Arcor-Videothek. Infos unter www.arcor.de/tv |
From: Henry N. <Hen...@Ar...> - 2008-03-17 20:39:38
|
Rainer Zocholl wrote: > Cooperative Linux Daemon, 0.8.0 > Daemon compiled on Fri Mar 14 05:26:03 2008 > > [...] > error initializing > daemon: exit code 83278801 > daemon: error - CO_RC_ERROR_ERROR, line 482, file src/colinux/user/daemon.c (25) Please be very carefully with *autobuild* version! There dosn't exist a proper API versions check. The API was changed last steps, but version was not increment. That means: Please remove and install driver any time you used a new build. Also, if the --status-driver give "no version conflicts"! -- Henry N. |