Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. so i'm looking at supporting ZFS boot on FreeBSD/powerpc64.

so i'm looking at supporting ZFS boot on FreeBSD/powerpc64.

Scheduled Pinned Locked Moved Uncategorized
freebsdpowerpc
2 Posts 1 Posters 7 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • lw@mastodon.bsd.cafeL This user is from outside of this forum
    lw@mastodon.bsd.cafeL This user is from outside of this forum
    lw@mastodon.bsd.cafe
    wrote last edited by
    #1

    so i'm looking at supporting ZFS boot on FreeBSD/powerpc64. i think this should actually be quite simple: we have a standalone utility library for the boot loaders called libsa which supports reading from ZFS, and we already have the glue to hook libsa up to OpenFirmware since loader(8) uses that for UFS boot.

    the current boot process is that OFW loads boot1.chrp from the prep-boot partition, then boot1.chrp finds the UFS partition, loads /boot/loader from there and starts it, then /boot/loader loads the kernel (+modules) and boots it.

    most of the work will be writing a new boot1.chrp that uses libsa instead of its own hand-rolled UFS code, which will automatically support reading ZFS as well once we enable ZFS in libsa for powerpc. the new boot1.chrp will be quite a bit larger (it's currently 31KB), but we have 800KB of physical address space to play with, so that should be fine. (to make it any larger, we'd have to change the kernel load address.)

    this doesn't cover the bsdinstall changes needed to support installing on ZFS, which i'm trying to avoid looking at since i dislike working on bsdinstall...

    #freebsd #powerpc

    lw@mastodon.bsd.cafeL 1 Reply Last reply
    1
    0
    • lw@mastodon.bsd.cafeL lw@mastodon.bsd.cafe

      so i'm looking at supporting ZFS boot on FreeBSD/powerpc64. i think this should actually be quite simple: we have a standalone utility library for the boot loaders called libsa which supports reading from ZFS, and we already have the glue to hook libsa up to OpenFirmware since loader(8) uses that for UFS boot.

      the current boot process is that OFW loads boot1.chrp from the prep-boot partition, then boot1.chrp finds the UFS partition, loads /boot/loader from there and starts it, then /boot/loader loads the kernel (+modules) and boots it.

      most of the work will be writing a new boot1.chrp that uses libsa instead of its own hand-rolled UFS code, which will automatically support reading ZFS as well once we enable ZFS in libsa for powerpc. the new boot1.chrp will be quite a bit larger (it's currently 31KB), but we have 800KB of physical address space to play with, so that should be fine. (to make it any larger, we'd have to change the kernel load address.)

      this doesn't cover the bsdinstall changes needed to support installing on ZFS, which i'm trying to avoid looking at since i dislike working on bsdinstall...

      #freebsd #powerpc

      lw@mastodon.bsd.cafeL This user is from outside of this forum
      lw@mastodon.bsd.cafeL This user is from outside of this forum
      lw@mastodon.bsd.cafe
      wrote last edited by
      #2

      the existing boot1.chrp + libsa + libofw is 254KB, so i think we're fine. also, it builds! just need to wait for qemu to build so i can test it...

      1 Reply Last reply
      0
      • stefano@mastodon.bsd.cafeS stefano@mastodon.bsd.cafe shared this topic
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups