| 5b042fcb | 23-Feb-2021 |
Marcin Wojtas <[email protected]> |
Disable PIE for powerpc bootloaders.
Bootloaders for powerpc are not built as position independent code. Since bsd.prog.mk is used for building, when PIE is enabled, the PIE flags are added and that
Disable PIE for powerpc bootloaders.
Bootloaders for powerpc are not built as position independent code. Since bsd.prog.mk is used for building, when PIE is enabled, the PIE flags are added and that causes the build to fail. Adding MK_PIE=no stops bsd.prog.mk from adding PIE specific flags.
Submitted by: Dawid Gorecki <[email protected]> Reviewed by: emaste Obtained from: Semihalf Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D28893
(cherry picked from commit 3aa023643e9db78f4da314ff9bfb1643533c004f)
show more ...
|
| afd4a494 | 12-Feb-2021 |
Marcin Wojtas <[email protected]> |
Disable PIE for MIPS ubldr
When performing buildworld for MIPS with PIE enabled, the build fails with "position-independent code requires '-mabicalls'" message. -mno-abicalls and -fno-pic flags are
Disable PIE for MIPS ubldr
When performing buildworld for MIPS with PIE enabled, the build fails with "position-independent code requires '-mabicalls'" message. -mno-abicalls and -fno-pic flags are explicitly set in MIPS ubldr makefile, so to work around this problem, set MK_PIE=no for MIPS ubldr.
Submitted by: Dawid Gorecki <[email protected]> Reviewed by: emaste Obtained from: Semihalf Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D28370
(cherry picked from commit cd992885bcdfb3c2c6b761f5c3bf1c86949acdc3)
show more ...
|
| b47fc941 | 05-Jul-2021 |
Emmanuel Vadot <[email protected]> |
loader: Fix dtb loading
When calling file_findfile with only a type it returns the first file matching the type. But in fdt_apply_overlays we then iterate on the next files and try loading them as d
loader: Fix dtb loading
When calling file_findfile with only a type it returns the first file matching the type. But in fdt_apply_overlays we then iterate on the next files and try loading them as dtb overlays. Fix this by checking the type one more time.
Sponsored by: Diablotin Systems Reported by: Mark Millard <[email protected]>
(cherry picked from commit b464c459eaf4e63a3abaaa1ecf51c9d6e9f7521e)
show more ...
|
| 7f08e54f | 15-Nov-2021 |
Emmanuel Vadot <[email protected]> |
loader: Do not force comconsole for arm and arm64
This makes GOP not probed on some situation (AMD Card on PCIe slot with EDK2 as we have a SERIAL_IO_PROTOCOL compatible uart).
Reviewed by: imp Dif
loader: Do not force comconsole for arm and arm64
This makes GOP not probed on some situation (AMD Card on PCIe slot with EDK2 as we have a SERIAL_IO_PROTOCOL compatible uart).
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D32992 Sponsored by: Beckhoff Automation GmbH & Co. KG
(cherry picked from commit 123b5b8763778e83b6816ad9db62a9b956055c32)
show more ...
|
| 50af79ac | 15-Nov-2021 |
Emmanuel Vadot <[email protected]> |
loader: lsefi: Print more information
Printing the EFI_HANDLE pointer isn't very useful. If the handle have a IMAGE_DEVICE_PATH or a DEVICE_PATH protocol print it. This makes it easier to see which
loader: lsefi: Print more information
Printing the EFI_HANDLE pointer isn't very useful. If the handle have a IMAGE_DEVICE_PATH or a DEVICE_PATH protocol print it. This makes it easier to see which devices are present and what protocol they expose.
Reviewed by: imp, tsoome Differential Revision: https://reviews.freebsd.org/D32991 Sponsored by: Beckhoff Automation GmbH & Co. KG
(cherry picked from commit 2e0d67c3ed7ec760b2d54f8258304b2e6359418b)
show more ...
|
| 14f0497a | 14-Nov-2021 |
Emmanuel Vadot <[email protected]> |
loader: Add more bus name to pnpautoload
Add ofwbus, iicbus and spibus to pnpautoload so modules under those buses will be loaded. On my rockpro64 now : OK pnpautoload -v Autoloading modules for sim
loader: Add more bus name to pnpautoload
Add ofwbus, iicbus and spibus to pnpautoload so modules under those buses will be loaded. On my rockpro64 now : OK pnpautoload -v Autoloading modules for simplebus Using DTB provided by EFI at 0x8100000. Autoloading modules for ofwbus /boot/kernel/rk_spi.ko text=0x14b2 text=0xd4c data=0x4d0+0x8 syms=[0x8+0xa98+0x8+0x807] /boot/kernel/dwwdt.ko text=0x12e2 text=0x78c data=0x4c8+0x10 syms=[0x8+0x990+0x8+0x6e1] Autoloading modules for iicbus Autoloading modules for spibus /boot/kernel/mx25l.ko text=0x1613 text=0x114c data=0x6e8+0x8 syms=[0x8+0xa08+0x8+0x665] loading required module 'fdt_slicer' /boot/kernel/fdt_slicer.ko text=0x95e text=0x340 data=0x290 syms=[0x8+0x6c0+0x8+0x4a0]
(cherry picked from commit 4c0c353d0e48d06f82cae16aba02e5923794ba98)
show more ...
|
| 9418a626 | 13-Jan-2022 |
Emmanuel Vadot <[email protected]> |
stand: Don't build readtest command on mips
MIPS doesn't have getsecs which is used in this command. Simply don't include it for this arch.
This is a direct commit to stable/13.
Sponsored by: Beck
stand: Don't build readtest command on mips
MIPS doesn't have getsecs which is used in this command. Simply don't include it for this arch.
This is a direct commit to stable/13.
Sponsored by: Beckhoff Automation GmbH & Co. KG
show more ...
|
| d37a33f5 | 30-Dec-2021 |
Emmanuel Vadot <[email protected]> |
loader: tftp: Copy the first block into the cache
tftp_open reads the first block so copy it in the cached data. If we have more than one block (i.e. we called tftp_read before tftp_preload) simply
loader: tftp: Copy the first block into the cache
tftp_open reads the first block so copy it in the cached data. If we have more than one block (i.e. we called tftp_read before tftp_preload) simply just reset the transfer.
Reported by: mmel Reviewed by: mmel, tsoome MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33697
(cherry picked from commit dfc9c1d4937d0e2eab2910665069faba814bca1e)
show more ...
|
| 28d2b8b7 | 13-Dec-2021 |
Emmanuel Vadot <[email protected]> |
loader: lua: test that /boot exists first
Otherwise on fs like tftp where no directory listing is possible we fail on the .dir method.
Reviewed by: imp, kevans MFC after: 2 weeks Sponsored by: Beck
loader: lua: test that /boot exists first
Otherwise on fs like tftp where no directory listing is possible we fail on the .dir method.
Reviewed by: imp, kevans MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33414
(cherry picked from commit c4dc907254a4275d8f3ecd9a6b615c6e2a2438e9)
show more ...
|
| c95afea4 | 13-Dec-2021 |
Emmanuel Vadot <[email protected]> |
loader: bcache: Fix debug printf
Use %j to it works on 64 and 32 bits system.
Reviewed by: imp, tsoome MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: http
loader: bcache: Fix debug printf
Use %j to it works on 64 and 32 bits system.
Reviewed by: imp, tsoome MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33430
(cherry picked from commit 8ed8b4203a2f9b1bd337b8af26021ae2240a0ee8)
show more ...
|
| d8525255 | 10-Dec-2021 |
Emmanuel Vadot <[email protected]> |
loader: tftp: Add preload method
The preload method will transfer the whole file in a buffer and cache it so read/lseek operations are faster.
Reviewed by: imp, tsoome MFC after: 2 weeks Sponsored
loader: tftp: Add preload method
The preload method will transfer the whole file in a buffer and cache it so read/lseek operations are faster.
Reviewed by: imp, tsoome MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33410
(cherry picked from commit 3eb019000c9eba6dafad6741a88f627b4d4fcd8a)
show more ...
|
| 37e1449d | 10-Dec-2021 |
Emmanuel Vadot <[email protected]> |
loader: Add preload operation to fs_ops
When we load an ELF file (kernel or module) we do seek(2) a lot to parse/load the different sections of the ELF file. Protocol like TFTP suffers a lot from th
loader: Add preload operation to fs_ops
When we load an ELF file (kernel or module) we do seek(2) a lot to parse/load the different sections of the ELF file. Protocol like TFTP suffers a lot from this as there is no resume or a way to start the tranfer from a specified offset in the file. fs_preload is added to help those protocol. Call preload just after opening the ELF file that we need to load so the underlying method can cache the hole file and then read/lseek operations are faster.
Reviewed by: imp MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33409
(cherry picked from commit c25d9aff4607e7f1c378b0b7853e49c07c0af91a)
show more ...
|
| bc9154a2 | 12-Aug-2021 |
Toomas Soome <[email protected]> |
loader: implement mount/unmount rootfs
We want to keep our root file system open to preserve bcache segment between file accesses, thus reducing physical disk IO.
Reviewed by: imp, allanjude, kevan
loader: implement mount/unmount rootfs
We want to keep our root file system open to preserve bcache segment between file accesses, thus reducing physical disk IO.
Reviewed by: imp, allanjude, kevans (previous version) Differential Revision: https://reviews.freebsd.org/D30848 MFC after: 1 month
(cherry picked from commit b4cb3fe0e39a31e60292018dc9fb7510b3de92bf)
show more ...
|