Patlock 0.0.1 RC1 Released
Posted: Sun Jul 06, 2008 9:39 am
Well, the Patlock 0.0.1 "release candidate" version is now available for public
It's a hybrid monolithic kernel (currently single tasking), running in 32-bit pmode. It's aimed for stability, so please check if everything works alright 'under pressure'. It's programmed in FASM, the "spiral" part is in FreePascal, linked together to the kernel by using PARTCOPY and offsets.
For successful run, you need at least 80486 with math coprocessor and 4 MB RAM. I know no one has 386's these days, but it's just a remark.
For a whole list of supported commands, type 'help' after booting, here are only some of them:
exit - Displays a menu where you can choose to turn off, halt or restart the machine.
hello - Swithces to real mode, prints a hello message and switches back to pmode and prints another hello world message.
spiral - This is the pascal subprogram inside the kernel. This will display a spinning spiral in 256 colors for a while.
beep - This will play a short 6bit sound through the PC speaker. The same used for booting.
cmosinv - Invalidates the CMOS RAM. In other words, destroys the checksum, leaving the system clock and some settings in BIOS after reboot, zeroed.
cmospwddel - No comment.
keyb [lang]- Switches between keyboard layouts. [lang] can be SK, US or UK.
Known bugs:
- PATLOCK DOESN'T WORK PROPERLY ON MS VPC 2007. Use another emulator instead. As far as I know, in VPC there are: floppy reads broken, SPIRAL command sets corrupted palette and CMOSPWDDEL does the same operation as CMOSINV. EXIT command, choosing to halt the system results in a "unrecoverable error". On the other side BEEP seems to work like on a real HW.
- QEMU, VMWare: The SPIRAL command works way too fast.
- Bochs, QEMU, VMWare: The BEEP command doesn't work, because the speaker's "PWM" isn't emulated in these emulators.
- The CPU speed detecting routine will return weird results if you are on a emulator (it's normal, because the CPU is emulated of course.)
- If you choose to triple fault the system, the real machine reboots and so does Bochs. But if you are running the Bochs debugger, you must (after the triple fault) switch to the console and press C - it's not a bug, just for explaining.
That should be all. I would like your opinions and even critics!
Anyways, the floppy image can be downloaded here:
http://patlock.xf.cz/release/candidate/english.img
or if you prefer the self-extracting one:
http://patlock.xf.cz/release/candidate/english.exe
NOD32 seems to report "a unknown TSR.BOOT" virus in the "english.img" file , or on the floppy boot sector. I have informed Eset about this, so for the nod32 users: nothing is infected and just ignore the warning. If NOD32 prevents you from accessing the image file, try downloading the self extracting one and disable boot sector checking in NOD32 control center.
I'll update the site patlock.xf.cz someday when I'll have spare time.
Again, I'm welcome for your opinions.
Regards
inflater
It's a hybrid monolithic kernel (currently single tasking), running in 32-bit pmode. It's aimed for stability, so please check if everything works alright 'under pressure'. It's programmed in FASM, the "spiral" part is in FreePascal, linked together to the kernel by using PARTCOPY and offsets.
For successful run, you need at least 80486 with math coprocessor and 4 MB RAM. I know no one has 386's these days, but it's just a remark.
For a whole list of supported commands, type 'help' after booting, here are only some of them:
exit - Displays a menu where you can choose to turn off, halt or restart the machine.
hello - Swithces to real mode, prints a hello message and switches back to pmode and prints another hello world message.
spiral - This is the pascal subprogram inside the kernel. This will display a spinning spiral in 256 colors for a while.
beep - This will play a short 6bit sound through the PC speaker. The same used for booting.
cmosinv - Invalidates the CMOS RAM. In other words, destroys the checksum, leaving the system clock and some settings in BIOS after reboot, zeroed.
cmospwddel - No comment.
keyb [lang]- Switches between keyboard layouts. [lang] can be SK, US or UK.
Known bugs:
- PATLOCK DOESN'T WORK PROPERLY ON MS VPC 2007. Use another emulator instead. As far as I know, in VPC there are: floppy reads broken, SPIRAL command sets corrupted palette and CMOSPWDDEL does the same operation as CMOSINV. EXIT command, choosing to halt the system results in a "unrecoverable error". On the other side BEEP seems to work like on a real HW.
- QEMU, VMWare: The SPIRAL command works way too fast.
- Bochs, QEMU, VMWare: The BEEP command doesn't work, because the speaker's "PWM" isn't emulated in these emulators.
- The CPU speed detecting routine will return weird results if you are on a emulator (it's normal, because the CPU is emulated of course.)
- If you choose to triple fault the system, the real machine reboots and so does Bochs. But if you are running the Bochs debugger, you must (after the triple fault) switch to the console and press C - it's not a bug, just for explaining.
That should be all. I would like your opinions and even critics!
Anyways, the floppy image can be downloaded here:
http://patlock.xf.cz/release/candidate/english.img
or if you prefer the self-extracting one:
http://patlock.xf.cz/release/candidate/english.exe
NOD32 seems to report "a unknown TSR.BOOT" virus in the "english.img" file , or on the floppy boot sector. I have informed Eset about this, so for the nod32 users: nothing is infected and just ignore the warning. If NOD32 prevents you from accessing the image file, try downloading the self extracting one and disable boot sector checking in NOD32 control center.
I'll update the site patlock.xf.cz someday when I'll have spare time.
Again, I'm welcome for your opinions.
Regards
inflater