Technical:
1/5 multitools: Mastering boot records and boot loaders
Booting:
4/5 boots: This talk was made for bootin' and that's just what we'll do
A basic DOS-era disk layout defines contiguous blocks of storage called partitions
|
|
The traditional way to dual-boot
|
The first 512 bytes of the hard disk are essential
MBR points to the boot loader
Boot loaders let you run multiple operating systems. Maybe something:
TempleOS is:
TempleOS has:
public I64 class CDate
{
  U32 time;
  I32 date;
};
Western secular timekeeping is based on the Gregorian calendar.
Vice - God's Lonely Programmer
![]() |
"We've all got our switches, lights, and knobs to deal with, Stryker. I mean down here there are literally hundreds and thousands of blinking, beeping, and flashing lights, blinking and beeping and flashing. They're flashing and they're beeping... I can't stand it anymore, the blinking and beeping and flashing!" |
Find and change $$BK,1$$ to $$BK,0$$ in:
Rebuild the kernel and restart
/Doc/Tips.DD contains helpful hints, print one with TipOfDay;
Merge("C:/*","D:/*","+r+d"); to check my changes.
TempleOS is a platform for coding, gaming, learning, and exploring, but:
Solution? Add another operating system!
Option #1
|
Option #2
|
|
|
Multiple alternative OSes considered:
Pre-reqs: must be (a) tiny, (b) FAT32-support in core
"And David prevailed over the Philistine, with a sling and a stone"
Tiny Core Linux: http://tinycorelinux.net
|
|
syslinux: the bootloader you could always use but never have
UI menu.c32 PROMPT 1 MENU TITLE Boot Menu MENU ROWS 2 LABEL TempleOS MENU LABEL TempleOS BOOT /Kernel.BIN.C LABEL tc MENU LABEL Tiny Core Linux KERNEL /tce/boot/vmlinuz64 INITRD /tce/boot/corepure64.gz APPEND loglevel=3 vga=789 lang=en_US.UTF-8
LABEL Win98 MENU LABEL Windows 98 BOOT sda1.bss
Advantages to merging TempleOS with Linux
But what about data integrity?
All TempleOS data is stored in either RedSea or FAT32.
TempleOS needs a file checksum tool. Linux has plenty!
Read every byte of a file & compute a mathematical equation with those bytes. If any of the bytes change, or their order changes, the result of the equation will be different. Example (don't do this):
"DOG" => 268 + 379 + 571
42,351,647,362,764,286,563,220,907,008,715,940,411,151,060,669,848
"CAT" => 267 + 365 + 584
51,698,788,284,564,229,679,463,043,264,673,729,808,888,368,337,868,155,321,396
"GOD" => 271 + 379 + 568
338,813,178,950,989,745,432,110,977,071,734,429,657,507,013,340
Some algorithms make reversing output back into input difficult
Multiple checksum utilities
These are old & insecure algorithms, but still functional, still useful for file checking
But there are no TempleOS equivalents!
Checksums are only part of the equation:
mtree is a BSD utility, ported to Linux
"OSS maxim: Is there something you are looking for and it's not available? Then build it."
UNIX utilities are still lacking native TempleOS ports
Porting third-party programs to TempleOS - jwhitham.org
Tiny Core NTFS integration - yalis.fr via Wayback Machine