Leanpub Header

Skip to main content

Three Essays on NetBSD

This book collects three essays I wrote in 2022 about the NetBSD operating system about binary formats and upgrades by building from source.

Minimum price

Free!

$1.99

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
WEB
APP
About

About

About the Book

This book collects three essays I wrote in 2022 about the NetBSD operating system.

In the first, we examine the transition between the a.out and ELF binary formats. We upgrade a system from one to the other.

In the second essay, we install a NetBSD 1.0 system on a virtual machine, then progressively upgrade it to version 9.3. We do this from the source code, using the compiler.

In the third essay, we perform an experiment and convert a NetBSD system to OpenBSD.

Share this book

Author

About the Author

Chris Pinnock

Chris Pinnock is an IT professional living in Essex in the UK. He obtained a PhD in Mathematics in 2000.

He spent 18 years in the Telecommunications industry working on IT Systems before moving to consultancy and hosting. He has been working on the Tezos blockchain at the Tezos Foundation since 2021.

He has written a book on Russian verbs and is currently writing two books on blockchain.

The Leanpub Podcast

Episode 307

An Interview with Chris Pinnock

Contents

Table of Contents

Preface

Acknowledgements

Disclaimer

  1. Transitioning from a.out to ELF

Abstract

Introduction

NetBSD background

  1. History
  2. Navigating the source code

Binary object formats

  1. a.out
  2. ELF

Recreating the experience

  1. Overview
  2. Setting up QEMU
  3. Installation from ISO
  4. Orientating the virtual machine
  5. Backups and preserving the a.out libraries
  6. Building a new kernel
  7. Setting up to build user-land
  8. Build variables
  9. Building the toolchain
  10. Rebuilding the key libraries
  11. Finalising userland
  12. Finishing with an ELF kernel

Exercise

Going forward

  1. NetBSD from 1.0 to present

Abstract

Introduction

NetBSD Background

Setting up and getting ready

  1. Conventions
  2. VirtualBox
  3. Obtaining the media
  4. Installing NetBSD 1.0
  5. Converting to QEMU
  6. Approach to upgrading by source

Upgrading NetBSD 1.0 to 1.1

Upgrading NetBSD 1.1 to 1.2

Upgrading NetBSD 1.2 to 1.2.1

Upgrading NetBSD 1.2.1 to 1.3.3

Upgrading NetBSD 1.3.3 to 1.4.3

Upgrading NetBSD 1.4.3 to 1.5.3

New virtual hardware for Amnesiac

  1. New network card
  2. Bigger hard disc

Upgrading NetBSD 1.5.3 to 1.6.2

Upgrading from 1.6.2 to 2.0.3

Later releases

  1. Upgrading from 2.1 to 3.1
  2. Upgrading from 4 to 5.2
  3. Upgrading from 7.2 to 8.2
  4. Miscellaneous problems
  5. Building 9.2 directly from earlier releases

Things I might have done differently

  1. NetBSD 0.8 and 0.9
  2. Root Disc

Amnesiac, the living VM

  1. Forking NetBSD

Abstract

Introduction

Preparation

Migrating NetBSD 1.1 to OpenBSD 2.0

Exercises

  1. Bibliography

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub