Page MenuHomeFreeBSD

ofw: Load initrd file
ClosedPublic

Authored by breno.leitao_gmail.com on Jun 8 2018, 2:27 PM.
Tags
None
Referenced Files
F94332795: D15705.diff
Mon, Sep 16, 10:41 PM
Unknown Object (File)
Sat, Sep 14, 10:40 AM
Unknown Object (File)
Wed, Sep 4, 10:36 AM
Unknown Object (File)
Sun, Sep 1, 12:16 AM
Unknown Object (File)
Mon, Aug 26, 4:09 AM
Unknown Object (File)
Mon, Aug 26, 4:09 AM
Unknown Object (File)
Mon, Aug 19, 5:56 AM
Unknown Object (File)
Aug 15 2024, 11:24 AM
Subscribers

Details

Summary

This is an OFW initrd module that would load the initrd from device tree
parameters and give the to the md driver.

With this patch, it is possible to pass as rootfs through kexec in PowerNV
mode (powerpc64).

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 17442
Build 17274: arc lint + arc unit

Event Timeline

Change OF_getencprop() to OF_hasprop() on probe() function.

sys/powerpc/ofw/ofw_initrd.c
80

This should be a ||, since both are needed.

137

Since only one initrd should be here, you can limit it here with:

if (device_find_child(parent, "initrd", -1) != NULL)
  return;

Adding Justin's suggestions and removing an unused variable.

Just one minor nit, but otherwise good to go.

sys/powerpc/ofw/ofw_initrd.c
83

One nit: add parentheses around the return value. Then good to go.

This revision is now accepted and ready to land.Jun 27 2018, 12:50 AM
This revision was automatically updated to reflect the committed changes.