The NetBSD Project

CVS log for src/sys/stand/efiboot/efifdt.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / stand / efiboot

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.35 / (download) - annotate - [select for diffs], Sun Aug 14 11:26:41 2022 UTC (5 months, 2 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.34: +6 -4 lines
Diff to previous 1.34 (colored)

Align output of "version" command.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Mar 25 21:23:00 2022 UTC (10 months ago) by jmcneill
Branch: MAIN
Changes since 1.33: +16 -1 lines
Diff to previous 1.33 (colored)

efiboot: Add support for 'userconf' command.

Add support for the 'userconf' command at the boot prompt and in boot.cfg,
and for FDT based booting, pass the commands as a string list property
named "netbsd,userconf" on the /chosen node.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Nov 6 19:44:22 2021 UTC (14 months, 3 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.32: +2 -6 lines
Diff to previous 1.32 (colored)

Revert part of previous commit that broke DT booting.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Nov 3 22:02:36 2021 UTC (14 months, 3 weeks ago) by skrll
Branch: MAIN
Changes since 1.31: +8 -7 lines
Diff to previous 1.31 (colored)

Provide the ablity to ignore ACPI with an 'acpi' command:

acpi [{on|off}]

Revision 1.31 / (download) - annotate - [select for diffs], Wed Oct 6 10:15:20 2021 UTC (15 months, 3 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.30: +3 -1 lines
Diff to previous 1.30 (colored)

Fix bootarm build.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Oct 6 10:13:19 2021 UTC (15 months, 3 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.29: +316 -7 lines
Diff to previous 1.29 (colored)

efiboot: Make FDT support optional on a per-arch basis.

Revision 1.28.4.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:36 2021 UTC (19 months, 2 weeks ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

Sync w/ HEAD.

Revision 1.28.6.1 / (download) - annotate - [select for diffs], Mon May 31 22:15:22 2021 UTC (20 months ago) by cjep
Branch: cjep_staticlib_x
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

sync with head

Revision 1.29 / (download) - annotate - [select for diffs], Fri May 21 21:53:15 2021 UTC (20 months, 1 week ago) by jmcneill
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

Disable ACPI support when booting big endian kernels.

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Sun Jan 3 16:35:05 2021 UTC (2 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.27: +25 -17 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync w/ HEAD.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Dec 19 08:09:31 2020 UTC (2 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base, thorpej-cfargs, cjep_staticlib_x-base
Branch point for: thorpej-i2c-spi-conf, cjep_staticlib_x
Changes since 1.27: +25 -17 lines
Diff to previous 1.27 (colored)

Various clean ups
 - cache node where possible
 - remove a compiler warning
 - improve a comment (the round_page might not be needed)

Revision 1.27 / (download) - annotate - [select for diffs], Thu Oct 22 09:28:30 2020 UTC (2 years, 3 months ago) by jmcneill
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.26: +6 -10 lines
Diff to previous 1.26 (colored)

Fix previous.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Oct 22 09:14:40 2020 UTC (2 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.25: +8 -2 lines
Diff to previous 1.25 (colored)

If the framebuffer node already exists, we don't need to create one

Revision 1.25 / (download) - annotate - [select for diffs], Sat Oct 10 19:17:39 2020 UTC (2 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.24: +42 -13 lines
Diff to previous 1.24 (colored)

Support EFI runtime and GOP FB for devicetree (non-ACPI) setups.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jun 21 17:24:26 2020 UTC (2 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.23: +16 -1 lines
Diff to previous 1.23 (colored)

Add module support.

Revision 1.23 / (download) - annotate - [select for diffs], Thu May 14 19:21:53 2020 UTC (2 years, 8 months ago) by riastradh
Branch: MAIN
Changes since 1.22: +22 -33 lines
Diff to previous 1.22 (colored)

Deduplicate lazy /chosen node creation logic.

Revision 1.22 / (download) - annotate - [select for diffs], Thu May 14 19:20:08 2020 UTC (2 years, 8 months ago) by riastradh
Branch: MAIN
Changes since 1.21: +25 -1 lines
Diff to previous 1.21 (colored)

Pass EFI RNG output via /chosen/netbsd,efirng-{start,end}.

This is separate from /chosen/netbsd,rndseed-{start,end}, which
specifies NetBSD's persistent on-disk seed; efirng is the firmware's
RNG device.

Revision 1.15.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:19 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.15.2.2: +114 -2 lines
Diff to previous 1.15.2.2 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.17.2.3 / (download) - annotate - [select for diffs], Wed Feb 12 20:10:09 2020 UTC (2 years, 11 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE
Changes since 1.17.2.2: +23 -1 lines
Diff to previous 1.17.2.2 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

Pull up following revision(s) (requested by riastradh in ticket #705):

	sys/arch/aarch64/aarch64/aarch64_machdep.c: revision 1.35
	sys/stand/efiboot/efifdt.c: revision 1.20
	sys/stand/efiboot/efifdt.h: revision 1.7
	sys/arch/aarch64/include/machdep.h: revision 1.9
	sys/stand/efiboot/efiboot.h: revision 1.11
	sys/arch/arm/arm32/arm32_machdep.c: revision 1.129
	sys/arch/arm/include/arm32/machdep.h: revision 1.30
	sys/stand/efiboot/exec.c: revision 1.12
	sys/arch/evbarm/fdt/fdt_machdep.c: revision 1.65
	sys/stand/efiboot/version: revision 1.14
	sys/stand/efiboot/boot.c: revision 1.19

New function cpu_startup_hook on arm.

Called at end of cpu_startup.  Can be defined in, e.g., evbarm to do
additional stuff after cpu_startup.  Defined as a weak alias to a
function that does nothing, so optional.
ok jmcneill

Implement rndseed support in efiboot and fdt arm.

The EFI environment variable `rndseed' specifies the path to the
random seed.  It is loaded only for fdt platforms at the moment.
Since the rndseed (an rndsave_t object as defined in <sys/rndio.h>)
is 536 bytes long (for hysterical raisins), and to avoid having to
erase parts of the fdt tree, we load it into a physical page whose
address is passed in the fdt tree, rather than passing the content of
the file as an fdt node directly; the kernel then reserves the page
from uvm, and maps it into kva to call rnd_seed.

For now, the only kernel that does use efiboot with fdt is evbarm,
which knows to handle the rndseed.  Any new kernels that use efiboot
with fdt must do the same; otherwise uvm may hand out the page with
the secret key on it for a normal page allocation in the kernel --
which should be OK if there are no kernel memory disclosure bugs, but
would lead to worse consequences than simply loading the seed late in
userland with /etc/rc.d/random_seed otherwise.

ok jmcneill

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jan 3 14:14:56 2020 UTC (3 years ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.20: +9 -2 lines
Diff to previous 1.20 (colored)

Fix EFIBOOT_DEBUG build on arm

Revision 1.20 / (download) - annotate - [select for diffs], Wed Dec 18 21:46:03 2019 UTC (3 years, 1 month ago) by riastradh
Branch: MAIN
Changes since 1.19: +23 -1 lines
Diff to previous 1.19 (colored)

Implement rndseed support in efiboot and fdt arm.

The EFI environment variable `rndseed' specifies the path to the
random seed.  It is loaded only for fdt platforms at the moment.

Since the rndseed (an rndsave_t object as defined in <sys/rndio.h>)
is 536 bytes long (for hysterical raisins), and to avoid having to
erase parts of the fdt tree, we load it into a physical page whose
address is passed in the fdt tree, rather than passing the content of
the file as an fdt node directly; the kernel then reserves the page
from uvm, and maps it into kva to call rnd_seed.

For now, the only kernel that does use efiboot with fdt is evbarm,
which knows to handle the rndseed.  Any new kernels that use efiboot
with fdt must do the same; otherwise uvm may hand out the page with
the secret key on it for a normal page allocation in the kernel --
which should be OK if there are no kernel memory disclosure bugs, but
would lead to worse consequences than simply loading the seed late in
userland with /etc/rc.d/random_seed otherwise.

ok jmcneill

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Sun Sep 1 13:25:22 2019 UTC (3 years, 5 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.17.2.1: +9 -6 lines
Diff to previous 1.17.2.1 (colored) to branchpoint 1.17 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #142):

	sys/stand/efiboot/efifdt.c: revision 1.19

Only set #address-cells and #size-cells properties on /chosen if we are
fabricating a devicetree (ACPI mode). Fixes PR# 54494

Revision 1.19 / (download) - annotate - [select for diffs], Fri Aug 30 00:01:33 2019 UTC (3 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.18: +9 -6 lines
Diff to previous 1.18 (colored)

Only set #address-cells and #size-cells properties on /chosen if we are
fabricating a devicetree (ACPI mode). Fixes PR# 54494

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Sun Aug 4 11:37:56 2019 UTC (3 years, 5 months ago) by martin
Branch: netbsd-9
Changes since 1.17: +6 -6 lines
Diff to previous 1.17 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #3):

	sys/stand/efiboot/efiacpi.c: revision 1.4
	sys/stand/efiboot/efifdt.c: revision 1.18
	sys/stand/efiboot/version: revision 1.12
	sys/arch/arm/acpi/acpi_machdep.c: revision 1.7
	sys/arch/arm/acpi/acpi_machdep.c: revision 1.8

Add full UEFI memory map to the /chosen node.

 -

acpi_md_OsMapMemory can be used for both normal and device memory. Use the
UEFI memory map to determine how to map a given region.

Always map ACPI table memory as normal memory. Always map device memory as device memory.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Aug 1 13:11:16 2019 UTC (3 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.17: +6 -6 lines
Diff to previous 1.17 (colored)

Add full UEFI memory map to the /chosen node.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Jul 25 11:44:14 2019 UTC (3 years, 6 months ago) by skrll
Branch: MAIN
CVS Tags: netbsd-9-base
Branch point for: netbsd-9
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Fix arm build

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jul 24 11:40:36 2019 UTC (3 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.15: +82 -2 lines
Diff to previous 1.15 (colored)

Add support for simple framebuffers when booting in ACPI mode.

Revision 1.15.2.2 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:56 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.15.2.1: +302 -0 lines
Diff to previous 1.15.2.1 (colored) to branchpoint 1.15 (colored)

Sync with HEAD

Revision 1.15.2.1, Sun Apr 21 22:30:41 2019 UTC (3 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.15: +0 -302 lines
FILE REMOVED

file efifdt.c was added on branch phil-wifi on 2019-06-10 22:09:56 +0000

Revision 1.15 / (download) - annotate - [select for diffs], Sun Apr 21 22:30:41 2019 UTC (3 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20190609
Branch point for: phil-wifi
Changes since 1.14: +49 -1 lines
Diff to previous 1.14 (colored)

- Add support for a boot configuration file, defaulting to /etc/efiboot.plist.
- Add support for pre-loading EFI environment variables from efiboot.plist.
- Add support for device tree overlays specified in efiboot.plist.

(Man page for efiboot forthcoming.)

Revision 1.7.2.4 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:52 2018 UTC (4 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.7.2.3: +19 -11 lines
Diff to previous 1.7.2.3 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.14 / (download) - annotate - [select for diffs], Thu Nov 15 23:52:33 2018 UTC (4 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, isaki-audio2-base, isaki-audio2
Changes since 1.13: +4 -1 lines
Diff to previous 1.13 (colored)

Add support for loading kernels over NFS.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Nov 2 01:22:39 2018 UTC (4 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.12: +1 -7 lines
Diff to previous 1.12 (colored)

Add a "mem" command to print the EFI memory map.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Nov 1 00:43:38 2018 UTC (4 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.11: +14 -1 lines
Diff to previous 1.11 (colored)

Add GPT support.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Oct 31 12:59:43 2018 UTC (4 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.10: +3 -1 lines
Diff to previous 1.10 (colored)

When building /memory, skip EFI runtime memory ranges

Revision 1.10 / (download) - annotate - [select for diffs], Wed Oct 31 09:13:32 2018 UTC (4 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.9: +1 -5 lines
Diff to previous 1.9 (colored)

No longer need to delete reserved memory ranges.

Revision 1.7.2.3 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:58 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.7.2.2: +51 -1 lines
Diff to previous 1.7.2.2 (colored) to branchpoint 1.7 (colored)

Ssync with HEAD

Revision 1.9 / (download) - annotate - [select for diffs], Sun Sep 9 13:37:54 2018 UTC (4 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-1020, pgoyette-compat-0930
Changes since 1.8: +11 -1 lines
Diff to previous 1.8 (colored)

Add "dtb" command for loading a custom .dtb file.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Sep 7 17:30:58 2018 UTC (4 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.7: +41 -1 lines
Diff to previous 1.7 (colored)

Add initrd support.

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:47 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.7.2.1: +196 -0 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.7.2.1, Mon Sep 3 00:17:00 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.7: +0 -196 lines
FILE REMOVED

file efifdt.c was added on branch pgoyette-compat on 2018-09-06 06:56:47 +0000

Revision 1.7 / (download) - annotate - [select for diffs], Mon Sep 3 00:17:00 2018 UTC (4 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-0906
Branch point for: pgoyette-compat
Changes since 1.6: +22 -1 lines
Diff to previous 1.6 (colored)

Print FDT model and compatible strings with "version" command

Revision 1.6 / (download) - annotate - [select for diffs], Sun Sep 2 23:54:25 2018 UTC (4 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.5: +7 -1 lines
Diff to previous 1.5 (colored)

Dump memory map if EFI_MEMORY_DEBUG is defined

Revision 1.5 / (download) - annotate - [select for diffs], Tue Aug 28 01:24:39 2018 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.4: +1 -3 lines
Diff to previous 1.4 (colored)

Remove call to fdt_pack, it is causing problems with memory detection

Revision 1.4 / (download) - annotate - [select for diffs], Mon Aug 27 22:51:55 2018 UTC (4 years, 5 months ago) by alnsn
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Fix typo in a panic string.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Aug 27 09:51:32 2018 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.2: +29 -2 lines
Diff to previous 1.2 (colored)

Pass a hash of the MBR and the booted partition to the kernel.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Aug 24 23:20:41 2018 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.1: +28 -8 lines
Diff to previous 1.1 (colored)

Sanitize the memory map passed to the kernel.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Aug 24 02:01:06 2018 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN

Add MI EFI bootloader and AArch64 glue.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>