News for hackers. Stuff that matters.
Re:I have come to bury the BIOS, not to open it: The need fo... by catiopatio on Sunday October 09, 2022 @06:12PM (#33145807)
Historically, OpenFirmware provided exactly what you were asking for — self-describing devices, device driver methods hanging off the device nodes, and portable, architecture-independent bytecode-based option ROM drivers on expansion cards.

Devicetree is a paired down version of OF; they retained the tree containing key/value device metadata, and dropped all the good bits.

Re:I have come to bury the BIOS, not to open it: The need fo... by tremon on Sunday October 09, 2022 @06:24PM (#33145883)
How are architecture-independent bytecode-based option ROM drivers the good bits in the context of open source systems?
Re:I have come to bury the BIOS, not to open it: The need fo... by catiopatio on Sunday October 09, 2022 @06:26PM (#33145907)
You could ship bootable PCI cards that worked on any OF-capable architecture.

Open source doesn’t mean not shipping binaries.

Re:I have come to bury the BIOS, not to open it: The need fo... by vetinari on Sunday October 09, 2022 @06:47PM (#33146060)
It was Forth bytecode; the disassembly was pretty readable, without any fancy tools, straight from the OF console (at least on PPC Macs).
Re:I have come to bury the BIOS, not to open it: The need fo... by anthk on Monday October 10, 2022 @06:48AM (#33149856)
I wonder if anyone could implement an OF binary for the Z-Machine. Can OF read files? I mean, not just booting them into memory at $ADDRESS, but read/parse them. I know a Tetris it's doable.
Re:I have come to bury the BIOS, not to open it: The need fo... by eschaton on Sunday October 09, 2022 @09:55PM (#33147060)
How are they NOT the BEST bits? With Open Firmware you can build Open Source systems that boot on hardware that you’ve not only never seen but never will see. Open Firmware + ELF can still be our future if we embrace it.
Re:I have come to bury the BIOS, not to open it: The need fo... by calvin_ on Tuesday October 11, 2022 @02:55PM (#33167564)
Except no one wants to write drivers in Forth.
Re:I have come to bury the BIOS, not to open it: The need fo... by bpye on Sunday October 09, 2022 @07:28PM (#33146291)
> architecture-independent bytecode-based option ROM drivers on expansion cards.

UEFI still has this doesn't it? EFI byte code [0].

[0] - https://edk2-docs.gitbook.io/edk-ii-uefi-driver-writer-s-gui...

Re:I have come to bury the BIOS, not to open it: The need fo... by mjg59 on Monday October 10, 2022 @01:11AM (#33148006)
Microsoft won't sign EBC drivers, but even before Secure Boot made that difficult I think we'd found a total of 2 EBC UEFI drivers in the real world. It's honestly easier to just embed an x86 emulator.
Re:I have come to bury the BIOS, not to open it: The need fo... by II2II on Sunday October 09, 2022 @10:10PM (#33147125)
> and dropped all the good bits.

Something like the missing Forth interpreter would be invaluable on development boards as well as for diagnostics on embedded devices. Or simply for fun. I used to spend hours exploring PowerMacs and Forth programming, all thanks to OpenFirmware.