The NetBSD Project

CVS log for src/sys/arch/evbarm/fdt/fdt_machdep.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / evbarm / fdt

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: netbsd-10


Revision 1.99.2.1 / (download) - annotate - [select for diffs], Fri Oct 20 16:13:04 2023 UTC (11 months ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.99: +38 -27 lines
Diff to previous 1.99 (colored) next main 1.100 (colored)

Pull up following revision(s) (requested by mrg in ticket #431):

	sys/arch/evbarm/evbarm/autoconf.c: revision 1.24
	sys/arch/evbarm/include/types.h: revision 1.16
	sys/arch/evbarm/fdt/fdt_machdep.c: revision 1.100
	sys/arch/evbarm/fdt/fdt_machdep.c: revision 1.101

fix root detection on evbarm when raid is involved

there are several problems solved in this change:
- - lots of work was re-done when we already have determined the
  device booted from, so several new early returns introduced
  if booted_device has been set
- - due to the lack of cpu_bootconf(), raidframe softroot would
  override "root=xxx" on the boot command line (note that
  platforms that use eg, device_register() to detect the boot
  device are not affected by this issue as they find the
  boot device much earlier.)
- - in the new cpu_bootconf(), switch the order of the platform
  boot-config with the set_root_device() call.  this avoids a
  problem where "root=xxx" is checked after automated methods,
  and is thus ignored.
- - in fdt_detect_root_device(), remove the code to add "root=xxx""
  string to the boot_args[] that would be later parsed by the
  set_root_device() call, and simply set booted_device and, for
  mbr installs, booted_partition directly.  also, for any
  successful call, perform an early return.
- - define __HAVE_CPU_BOOTCONF so early boot calls cpu_bootconf().

tested on:
- - rockpro64 booting from emmc, sata (big, and little endian)
- - rockpro64 loading kernel from msdos partition
- - rockpro64 booting from network (fails to auto-detect, with or
  without this change)
- - quartz64 booting from nvme
- - lx2k booting from nvme

Locate wedges as boot device and also match a partition GUID.

Revision 1.99 / (download) - annotate - [select for diffs], Fri Nov 4 10:51:17 2022 UTC (22 months, 2 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: netbsd-10-base
Branch point for: netbsd-10
Changes since 1.98: +4 -5 lines
Diff to previous 1.98 (colored)

Size boot_physmem with FDT_MEMORY_RANGES.

This effectively increases the size from 64 to 256 entries for Arm kernels.
It turns out on large systems that memory can be quite fragmented by UEFI.
Increasing the size of this just kicks the can down the road, we need a
better solution to deal with boot_physmem/fdt_memory/bootparams.dram
sizing.

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>