#asahi · 2021-05-12 14:17
_andy_t_It seems to be spending time in usb_ether_receive#asahi · 2021-05-12 14:15
_andy_t_It can take over 1s#asahi · 2021-05-12 14:12
_andy_t_I've added timing info to u-boot & found r8152_eth_recv can be slow#asahi · 2021-05-12 11:42
_andy_t_This is in the middle of loading a few files from NFS, so there was a lot of network requests for the timers to be called#asahi · 2021-05-12 11:20
_andy_t_I've seen efi_net_transmit take over a second to complete. The call to efi_timer_check seems to be the problem.#asahi · 2021-05-12 11:10
_andy_t_Using the arm counter is better, but there's still a problem#asahi · 2021-05-12 11:10
_andy_t_The FreeBSD loader#asahi · 2021-05-12 11:10
_andy_t_I have a local patch to switch from an efi timer to the virtual counter for time#asahi · 2021-05-12 11:09
_andy_t_Within u-boot the network is good, it can load the efi bootloader fast enough, it's just from within this bootloader I have issues#asahi · 2021-05-12 10:58
_andy_t_As far as I can tell it's because running the timers is slow in the transmit path#asahi · 2021-05-12 10:55
_andy_t_kettenis: Have you tried netbooting from U-Boot? I have a usb nic attached and have updated the config so I can use it, but it's very slow when used by an efi application.#asahi · 2021-05-04 19:22
_andy_t_My plan is to switch to it, but found a development strategy that works for now#asahi · 2021-05-04 19:20
_andy_t_kettenis1: Yes, although there is support for building the kernel so it can be run with booti in u-boot#asahi · 2021-05-04 19:19
_andy_t_kettenis1: Thank you#asahi · 2021-05-04 18:57
_andy_t_The power code is also in the FreeBSD boot loader, not the kernel#asahi · 2021-05-04 18:56
_andy_t_I only know of it working on Power as Linux is used as a boot loader#asahi · 2021-05-04 18:39
_andy_t_It also expects a special structure from the boot loader to point to modules in memory, environment variables, etc#asahi · 2021-05-04 18:36
_andy_t_The normal kernel is an ELF file so I don't think that would work#asahi · 2021-05-04 16:09
_andy_t_openfirm is just the common device for open firmware and fdt#asahi · 2021-05-04 16:08
_andy_t_I use a shim that looks like Linux to m1n1. I then load the FreeBSD kernel as a ramdisk and a dtb using linux.py#asahi · 2021-05-04 15:14
_andy_t_I have an initial port of FreeBSD: https://twitter.com/zxombie/status/1389593264530014212