History log of /haiku/src/system/boot/platform/u-boot/devices.cpp
Revision Date Author Comments
# 62f80a2a 04-Jul-2021 Jessica Hamilton <jessica.l.hamilton@gmail.com>

loader: fetch all potential boot partitions for device

This also keeps the functionality of hrev53848, which simplifies the
list of disks searched for bootable partitions; however, it maintains
the previous behaviour of platform_get_boot_partitions that continues
to iterate over a list of possible boot partitions, which should
allow finding a bootable BFS partition better in more circumstances.

Particularly, there are numerous reports of the UEFI loader entering
the boot menu despite it finding a bootable partition, which this
should address.

EFI's device_contains_partition is also structured such that it
compares the disk GPT table of the partition the loader is
querying of the EFI disk's GPT table, in the case that there are
multiple disks, as the most reliable method of comparison, with
a generic fallback for non-GPT disks, which will be less reliable.

This reverts commit 0d932a49ada8af6314cd3f20c3f597143f1f555d.

Change-Id: I5fac8608035d56b8bb4dc6c3d495ec6db42fa9b7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4149
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>


# 0d932a49 08-Feb-2020 Fredrik Holmqvist <fredrik.holmqvist@gmail.com>

Revert "loader: fetch all potential boot partitions for boot device."

This reverts commit e888217124fa9fb214ffa790e6a66dca3917f25e.

Change-Id: I06be82ac863f615796d9edc86f5ef903b8123a9d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2231
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# e1b41d44 13-Jun-2010 Andreas Faerber <andreas.faerber@web.de>

boot loader: Wire up net_stack_cleanup()

Add a platform cleanup hook before starting the kernel. The openfirmware
and PXE loaders clean up their network stack there, while the other
loaders currently do nothing.

This closes ticket #6166

Change-Id: I34765892dfd9b2310c6af97c9ff7d414afae49e5
Reviewed-on: https://review.haiku-os.org/c/50
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 856da1f3 19-Jun-2017 Pedro Pinto <pemdpinto@gmail.com>

Add missing include with Partition class definition

* Fixes a compilation error while compiling the u-boot loader for
the ARM platform.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>


# e8882171 13-May-2017 Jessica Hamilton <jessica.l.hamilton@gmail.com>

loader: fetch all potential boot partitions for boot device.

This allows the loader to skip BFS partitions that don't contain
a bootable system. Useful when you have a BFS data partition that
comes before the system partition when iterated over.

Currently, only the UEFI loader actually returns more than one
possible partition.


# 89f89a07 14-Sep-2013 Ithamar R. Adema <ithamar@upgrade-android.com>

ARM: boot: pass boot disk identifier

This to stop the vfs_boot.cpp code from complaining.


# 90742b59 14-Sep-2013 Ithamar R. Adema <ithamar@upgrade-android.com>

ARM: boot: pass boot disk identifier

This to stop the vfs_boot.cpp code from complaining.


# ef7bb168 01-Jan-2013 François Revol <revol@free.fr>

U-Boot: fix warnings


# 75e4ff02 20-Nov-2011 François Revol <revol@free.fr>

Style cleanup


# 5ce6cb5c 15-Aug-2009 François Revol <revol@free.fr>

[GSoC] [ARM] Patch by Johannes Wischert.
Some debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32416 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 01c8294c 12-Aug-2009 François Revol <revol@free.fr>

[ARM]
- don't clobber the parameter regs in the entry point,
- fix entry point address for netbsd loader emulation,
- added a gUImage global to point to the uimage blob with the tgz,
- added tgz info to platform stage2 args,
- add simple uimage support, just dumps the header and gets the nth blob in the image, (seems we have a bug in the math code, some infos don't print),
- made devices.cpp use them to publish the MemoryDisk,
- add an haiku_loader_nbsd.ub target which puts both the loader and kernel_arm for now (need to replace with the tgz).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32295 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 20cbef82 27-Jul-2009 François Revol <revol@free.fr>

[GSoC] [ARM] Patch by Johannes Wischert.
Stubbed u-boot platform code. Mostly copied from other platforms.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31818 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 89f89a07e173d8789fb916e88b00a6ec9f6f77d5 14-Sep-2013 Ithamar R. Adema <ithamar@upgrade-android.com>

ARM: boot: pass boot disk identifier

This to stop the vfs_boot.cpp code from complaining.


# 90742b59beae32ae47a3949339080a309f5a36f3 14-Sep-2013 Ithamar R. Adema <ithamar@upgrade-android.com>

ARM: boot: pass boot disk identifier

This to stop the vfs_boot.cpp code from complaining.


# ef7bb168f77d9d3537cc0b08bedbe70d50c86924 01-Jan-2013 François Revol <revol@free.fr>

U-Boot: fix warnings


# 75e4ff02d0c9d51f1d7f8331c666198484093677 20-Nov-2011 François Revol <revol@free.fr>

Style cleanup


# 5ce6cb5c32fbd136e82984ef2cf997677d5a5ab0 15-Aug-2009 François Revol <revol@free.fr>

[GSoC] [ARM] Patch by Johannes Wischert.
Some debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32416 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 01c8294cc732e3276c38365de2b69027582217b5 12-Aug-2009 François Revol <revol@free.fr>

[ARM]
- don't clobber the parameter regs in the entry point,
- fix entry point address for netbsd loader emulation,
- added a gUImage global to point to the uimage blob with the tgz,
- added tgz info to platform stage2 args,
- add simple uimage support, just dumps the header and gets the nth blob in the image, (seems we have a bug in the math code, some infos don't print),
- made devices.cpp use them to publish the MemoryDisk,
- add an haiku_loader_nbsd.ub target which puts both the loader and kernel_arm for now (need to replace with the tgz).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32295 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 20cbef82a43cbb7eeeaac16c85f4de15bcf9ef47 27-Jul-2009 François Revol <revol@free.fr>

[GSoC] [ARM] Patch by Johannes Wischert.
Stubbed u-boot platform code. Mostly copied from other platforms.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31818 a95241bf-73f2-0310-859d-f6bbb57e9c96