Bug 257018 - pxeboot Invalid VM86 Request (BTX halted) - lua too big? 4th works.
Summary: pxeboot Invalid VM86 Request (BTX halted) - lua too big? 4th works.
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Some People
Assignee: Warner Losh
URL:
Keywords: loader
: 259939 264439 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-07-06 12:17 UTC by Bjoern A. Zeeb
Modified: 2024-09-27 10:38 UTC (History)
17 users (show)

See Also:


Attachments
0001-stand-i386-fix-booting-over-TFTP-or-NFS.patch (4.12 KB, patch)
2023-09-05 19:45 UTC, Pierre Pronchery
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bjoern A. Zeeb freebsd_committer freebsd_triage 2021-07-06 12:17:54 UTC
On a recently updated amd64 machine I get this now:

Intel(R) Boot Agent GE v1.5.13
Copyright (C) 1997-2013, Intel Corporation

CLIENT MAC ADDR: 0C C4 7A A8 C2 40  GUID: 00000000 0000 0000 0000 0CC47AA8C240
CLIENT IP: 192.168.5.175  MASK: 255.255.255.0  DHCP IP: 192.168.5.1
PXE Loader 1.00                                        
 
Building the boot loader arguments
Relocating the loader and the BTX
Starting the BTX loader
 
BTX loader 1.00  BTX version is 1.02
Invalid VM86 Request
 
int=31e58955  err=31e58900  efl=00200207  eip=0000004e
eax=74000007  ebx=304c0d8b  ecx=0025833a  edx=00000798
esi=2d3f808a  edi=478a1275  ebp=3c8b1a7d  esp=0007976c
cs=002b  ds=0033  es=0033    fs=0033  gs=0033  ss=0033
cs:eip=e8 0a 00 00 00 83 c4 04-ff 35 dc d9 07 00 c3 87
       6c 24 04 87 45 18 87 4d-1c 87 55 20 87 5d 24 50
ss:esp=c1 19 03 00 f4 e3 02 00-02 00 00 00 8c 97 07 00
       55 e3 02 00 00 00 00 00-00 00 00 00 00 00 00 00
BTX halted
Comment 1 Ed Maste freebsd_committer freebsd_triage 2021-07-06 13:39:11 UTC
Do you have the last working version available?
(Before/after the Clang 12 update maybe?)
Comment 2 Bjoern A. Zeeb freebsd_committer freebsd_triage 2021-07-06 13:56:10 UTC
(In reply to Ed Maste from comment #1)

No, not really anymore; last known I used was Thu Oct 22 17:06:20 EDT 2020.
I can do a semi-strategic bisect.

I wonder why no one else sees these though .. I would have assumed there's a lot more pxeboot setups.
Comment 3 Ed Maste freebsd_committer freebsd_triage 2021-07-07 18:02:35 UTC
> I wonder why no one else sees these though .. I would have assumed there's a
> lot more pxeboot setups.

At least for me I've been using only UEFI network boot for some time.
Comment 4 Bjoern A. Zeeb freebsd_committer freebsd_triage 2021-07-07 18:05:34 UTC
(In reply to Ed Maste from comment #3)

Yes me too.  On arm64 especially;  this is a machine (or machines) in the netperf cluster.
Comment 5 Bjoern A. Zeeb freebsd_committer freebsd_triage 2021-11-06 11:04:25 UTC
Doing a git disect was too tedious;  so I finally built all versions of src/stand/ between the last good from one in 2020 and late October 2021;  it's then very easy to find the right ones to test (just check the size increase); for the old ones it wasn't even invalid VM86 request but just a hang.

I found that from the last known working hash to the first non-working hash a LUA import happens and size goes up again.
I also found the same hashes built wiith 4th instead of lua work (they are smaller, which is what I currently think the problem is):

pxe-manual-5c33c546344dce086f79ada373d19872b1a0f072-LOADER_DEFAULT_INTERP-4th/boot/pxeboot.good (topish of the tree)
pxeboot-manual-0495ed398c4f64013bab2327eb13a303e1f90c13-LOADER_DEFAULT_INTERP=4th.good (massively smaler)
pxeboot-manual-0495ed398c4f64013bab2327eb13a303e1f90c13-without-lua (didn't work in the subdir it seems as size stayed the same; should od a full buildworld but I think defeats the point given the above)
pxeboot-139-0495ed398c4f64013bab2327eb13a303e1f90c13.bad (contrib/lua: update to 5.4.2)
pxeboot-manual-7ae27c2d6c4fe4f21e1219bb5d8a37cfc932337b.good (13.0-ALPHA1, commit before the 139.bad)
pxeboot-140-fdaf9cb942d995969b79eb8ad3fa91b7592198cd.good
pxeboot-161-3630506b9daec9167a89bc4525638ea45a00769e.good
pxeboot-162-670d2ad820c7584e6592d2a6d748dda0758d2ec5.start-good


Here's a full list for reference (with one old one I found for comparison):

215040  pxeboot.freebsd7.x

size    build-hash
440320  pxe-manual-5c33c546344dce086f79ada373d19872b1a0f072-LOADER_DEFAULT_INTERP-4th/boot/pxeboot
432128  pxe-manual-0495ed398c4f64013bab2327eb13a303e1f90c13-LOADER_DEFAULT_INTERP-4th/boot/pxeboot
493568  pxe-manual-0495ed398c4f64013bab2327eb13a303e1f90c13-no-lua/boot/pxeboot
473088  pxe-manual-7ae27c2d6c4fe4f21e1219bb5d8a37cfc932337b-13.0-ALPHA1/boot/pxeboot
497664  pxe-001-a23e18ea545675aca7551ef2395f6df40a3acb29/boot/pxeboot
497664  pxe-002-f83288645cd9726c24ca67292fbc3abb4eb65a36/boot/pxeboot
497664  pxe-003-98e805b4a18d6ef4d3c9924166e1217e0430290d/boot/pxeboot
497664  pxe-004-8ecf9a8bab608c26cb100f393b24e883a706ff03/boot/pxeboot
497664  pxe-005-d586c978b9b4216869e589daa5bbcc33225a0e35/boot/pxeboot
497664  pxe-006-248682a589159619aa5f2019e415a423e849e327/boot/pxeboot
497664  pxe-007-04b9b7c507c52daf7b2999329a50825db098151f/boot/pxeboot
497664  pxe-008-b841148bbbdc967c871e8742a6f0b7b17b2d1d91/boot/pxeboot
497664  pxe-009-ce73f768b76486b1562f207a6fc1cef87065418a/boot/pxeboot
497664  pxe-010-8ea95b2fbab8eb891c4191c1879199685951b1f6/boot/pxeboot
497664  pxe-011-9aa29457d55e4c9c4eac72785886eff756fef22c/boot/pxeboot
497664  pxe-012-9e1dc7bec331b4d120d4b0687cfd54692e4fddcb/boot/pxeboot
497664  pxe-013-7457840230c5a470ee5df8abed6ab59c4d008a45/boot/pxeboot
497664  pxe-014-19e4f2f289fb8d2b14576a65ca9e6f931dbb6a02/boot/pxeboot
497664  pxe-015-0a35c4b3cab563e3ab1bf5b7b49bf26e0bb7cb04/boot/pxeboot
497664  pxe-016-242923eb848a94d657344c2ff45c4f15433cdf3c/boot/pxeboot
497664  pxe-017-1a25c51e38a7c9f46ec195836233636616741f06/boot/pxeboot
497664  pxe-018-680ca739458ba8cba221ea74794c2cd9771c77f8/boot/pxeboot
497664  pxe-019-0e3ce6d082b34154e41e220757c03d66d881a47b/boot/pxeboot
497664  pxe-020-5a01dea7e8c9640605e5731a9fc7f600c07ace61/boot/pxeboot
497664  pxe-021-a58abcde2c83b71e5bf19575750564f7bff78833/boot/pxeboot
497664  pxe-022-ed107537b43cabf7a18e73a17856a9d9e170c6e9/boot/pxeboot
497664  pxe-023-e19d9a9b6e44e15087a140a26ab3e24b07f6ba56/boot/pxeboot
497664  pxe-024-763bcebe0b6d5e53e5c8940a677de662e5652b6d/boot/pxeboot
497664  pxe-025-b4cb3fe0e39a31e60292018dc9fb7510b3de92bf/boot/pxeboot
497664  pxe-026-c90cab0d668af5d947054e47184d4f8dcb874ec8/boot/pxeboot
497664  pxe-027-4c7a3a70e047fbba2a3ce4a0168eaf2baddca76b/boot/pxeboot
497664  pxe-028-005fe24f2a4c873a96f446604e0453cf99e9bcd7/boot/pxeboot
497664  pxe-029-b54eec8366605d9c2303277cf2ab4b605289910a/boot/pxeboot
497664  pxe-030-b850806921a735f3f307bc4b2634c7e9008f5a9c/boot/pxeboot
497664  pxe-031-3daa8e165c661c1b45e759f4997f447384c15446/boot/pxeboot
497664  pxe-032-6032b6ba9596927aba15a8004ade521a593a7d58/boot/pxeboot
497664  pxe-033-7b0d05d56dfaad4e1d5a19727e34252072913d17/boot/pxeboot
497664  pxe-034-e5a50b03297fa09652b3cf319bc6e863392554e0/boot/pxeboot
497664  pxe-035-0d13f5343fafbf3067ffc33a507ffca0375c4417/boot/pxeboot
497664  pxe-036-3ec0714d6db0060113f6cadac6f4e44640603e8f/boot/pxeboot
497664  pxe-037-fa7a635f7ee277960eb37b9102a3aef76b36b825/boot/pxeboot
497664  pxe-038-5d5a6216645a6aefa8665c79bb761b754d74c067/boot/pxeboot
497664  pxe-039-5e4279a8f35aa4b46debf728d3f743d64f15aaf8/boot/pxeboot
497664  pxe-040-97cbd5e722389a575e820c4e03f38053308f08ea/boot/pxeboot
497664  pxe-041-879675e9a0d84880cad9834e2ef98e8724c5532c/boot/pxeboot
497664  pxe-042-f75caed644a5c8c342a1ea5e7a6d5251f82ed0b1/boot/pxeboot
497664  pxe-043-61ed578ee66648eff206ee5622b66727bfb52e78/boot/pxeboot
497664  pxe-044-5e9226f063bc43574e2168b4aafad8232f08002a/boot/pxeboot
497664  pxe-045-1b1bb6f178802a4522824e0268634a99cdbda098/boot/pxeboot
497664  pxe-046-bbb539b83ceced2d355893ead5987193737833fd/boot/pxeboot
497664  pxe-047-de0c7fbe280a1e0946afb111cf7a9811364c4bd6/boot/pxeboot
497664  pxe-048-6b51baf6a8de7241a4e1b0c8436d70299cd55270/boot/pxeboot
497664  pxe-049-07c4b78d0a1d26b6441cf3e52b917f20c932b9d0/boot/pxeboot
497664  pxe-050-dbdf2b52f59df7374eb1f799b4df1b54e4502e40/boot/pxeboot
497664  pxe-051-4783fb730fa1cfdbe5c905bb23ac74f681e2df6b/boot/pxeboot
497664  pxe-052-2b720db8d409f6fcdffa7f06b1d8c1b981435a83/boot/pxeboot
497664  pxe-053-7a0c0ff7ee25ff1efa3dbedcb20d2c80178639cc/boot/pxeboot
497664  pxe-054-9873c807dac1f8b83b9f7bc9a8d4e318ea295b55/boot/pxeboot
497664  pxe-055-13c98cd06b80afd0d062211ee8f1bfeb8c6cb065/boot/pxeboot
497664  pxe-056-29c8295312dc5eef8a0573bccdacd56167859cb2/boot/pxeboot
497664  pxe-057-0ca9f1d4a3b772036309fb1c14262ec77c674c5d/boot/pxeboot
497664  pxe-058-297e9f364b5aa243572ee52b1faef9b3542c1c9e/boot/pxeboot
497664  pxe-059-71f6aea4150c66784cbad42c1e1ff908d909c2ec/boot/pxeboot
497664  pxe-060-9c1c02093b90ae49745a174eb26ea85dd1990eec/boot/pxeboot
497664  pxe-061-b464c459eaf4e63a3abaaa1ecf51c9d6e9f7521e/boot/pxeboot
497664  pxe-062-e6caac717b4fc2b87cf93f67109884e768253e77/boot/pxeboot
497664  pxe-063-313724bab940c1844fda3d797cf88cd46780e62a/boot/pxeboot
493568  pxe-064-537a44bf281559d304850b5e28b6f8b8e44fd593/boot/pxeboot
493568  pxe-065-f49381ccb6bc8a5733f1aa505e716eddae299986/boot/pxeboot
493568  pxe-066-c4b65e954f0f4754941f5b37436231f611b76d67/boot/pxeboot
493568  pxe-067-c8dfc327db2373c721a35efe857cf07262fd7dd0/boot/pxeboot
493568  pxe-068-e193d3ba337757a27148a38494d3df106b826d1c/boot/pxeboot
493568  pxe-069-60a978bec9123fcb9c74bd925e06dd3f4faddac6/boot/pxeboot
493568  pxe-070-1ea87e2a70c31454a8696ab2979d13d21c5575d2/boot/pxeboot
493568  pxe-071-0a0d6ce34d6be89cb356c7815648e455fabe3151/boot/pxeboot
493568  pxe-072-3df4c387d2e3ca4c2391fb837540b048f60a11c2/boot/pxeboot
493568  pxe-073-5365af662c78d7bded3bf83c7271d6bff17229a9/boot/pxeboot
493568  pxe-074-93f7be080f3ad0bd71190d87aa2043d714270206/boot/pxeboot
493568  pxe-075-e713d3a013882893fceb84dd14569052271497a9/boot/pxeboot
493568  pxe-076-eda28feb2e070e21db3d50b3fc177f88380b8fb4/boot/pxeboot
493568  pxe-077-4ba91fa0736bb0672d475b6b56d9e7b06e78ff69/boot/pxeboot
493568  pxe-078-7497dd58890131251441ab992016c9457295094b/boot/pxeboot
493568  pxe-079-5984246f9626fbc3d356ee2d3b3cd159f6d0a7c2/boot/pxeboot
493568  pxe-080-42cd37dfbd1b2feff8f7aba32d2577e08b058231/boot/pxeboot
493568  pxe-081-d36341f7b8ddc2457a1e9e4a721d27d2e66cb39a/boot/pxeboot
493568  pxe-082-556e66b7b0763d36ddf5af98d06a1a13090bb729/boot/pxeboot
493568  pxe-083-e7ccd5b4187d15cd91697f1f4e12cf40e3ce86c3/boot/pxeboot
493568  pxe-084-59b2caef0537661397caf2ce1398cf802cb864b4/boot/pxeboot
493568  pxe-085-62ffcaab8f3ccba6053d4a5622c5ef2de9f636b5/boot/pxeboot
493568  pxe-086-c8c62548bffb83f3d25e062929c45d66fea755f1/boot/pxeboot
493568  pxe-087-7b1b5aad95df671aba3192f1669a8d96da481939/boot/pxeboot
493568  pxe-088-5666643a95389e3ea7637b86cc556d411242f71e/boot/pxeboot
493568  pxe-089-d708f23ebb06cfc9cf8f96f17a43eb63653b818a/boot/pxeboot
493568  pxe-090-6a3095aa6d0350dda89bac66d26f22a01e2257c4/boot/pxeboot
493568  pxe-091-773fc43fb060149f8e59c183e5da79feaf118c8c/boot/pxeboot
000000  pxe-092-did-not-build
493568  pxe-093-7f72497ef756ff7d03d5560c2d1c1f92f73fcb52/boot/pxeboot
493568  pxe-094-becaac3972f1fde4e3c44516399468ba5ca65c9b/boot/pxeboot
493568  pxe-095-19cd12a32afe801dc5e753013993e15e924ceb39/boot/pxeboot
493568  pxe-096-3aa023643e9db78f4da314ff9bfb1643533c004f/boot/pxeboot
493568  pxe-097-cd992885bcdfb3c2c6b761f5c3bf1c86949acdc3/boot/pxeboot
493568  pxe-098-0eaa97f0e8629bcf678ff4de2678e4cba00f1c91/boot/pxeboot
493568  pxe-099-ab379c15af6fd7c2b94f0e91769fe7e1a4102e25/boot/pxeboot
493568  pxe-100-61c50cbc096d28e44cb8b627e524ae58158c423a/boot/pxeboot
493568  pxe-101-ba27dd8be821792e15bdabfac69fd6cab0cf9dd3/boot/pxeboot
493568  pxe-102-d23b583dfdd5669aeeb0693bdf3b30bfde98d4b4/boot/pxeboot
493568  pxe-103-97527e9c4fd37140da3129bc12003172edbf7a23/boot/pxeboot
493568  pxe-104-adda2797eb2a29487fe26640a9c990fea7e6585d/boot/pxeboot
493568  pxe-105-7d3259775cb69f250df3e7fe51d6fff2283c6f20/boot/pxeboot
493568  pxe-106-ed87efbe24a5734c7150153cf201f3db42b6ddab/boot/pxeboot
493568  pxe-107-c90fb7acf099f1dc982f8d6087aa92809ae43727/boot/pxeboot
493568  pxe-108-5d8c062fe3ee7b2d6aed0b46d22f62c7771c0af8/boot/pxeboot
493568  pxe-109-a26f7358583174f2fe0df3e979f7b8b02069278c/boot/pxeboot
493568  pxe-110-96bef2053a87c8d01ce08ea88857e4657489c8e7/boot/pxeboot
493568  pxe-111-2bd4ff2d8911009283e4e615ca4aad35a845f48b/boot/pxeboot
493568  pxe-112-45ecda8ebf80bb341aa3b4955810518ae6fab158/boot/pxeboot
493568  pxe-113-b24872cf7b13314669ed2136c0262bb2eb007695/boot/pxeboot
493568  pxe-114-d51cc252a062411a1656960eb5d47e954c6c835d/boot/pxeboot
493568  pxe-115-e25ee296c919d6567aa76058a7049eac974797fb/boot/pxeboot
493568  pxe-116-b6d85a5f51e4147452b35d76478fb9e191b7734b/boot/pxeboot
493568  pxe-117-4e76e4c301c72698e111580e278872a8323fba50/boot/pxeboot
493568  pxe-118-9b388ac30375ad4e0259b264a006753edcb2bd3c/boot/pxeboot
493568  pxe-119-6e26189be406a9a3799074b16925e6cd63cc703b/boot/pxeboot
493568  pxe-120-7012461c9bf6375cd0b14de16b3b4a753c5c1c7a/boot/pxeboot
493568  pxe-121-6c7a932d0b8baaaee16eca0ba061bfa6e0e57bfd/boot/pxeboot
493568  pxe-122-576562856efbec31520aca6a1f72f2b11298e9a7/boot/pxeboot
493568  pxe-123-6c789c55c4ba11014bfd1b59942c204615412ba6/boot/pxeboot
493568  pxe-124-f6f0b849fb2683feebf2416a793964be0bd05cc5/boot/pxeboot
493568  pxe-125-4bbfe4bf08d6d16ae65729bb22159c8dbd1027bd/boot/pxeboot
493568  pxe-126-52e3a7300d817002d3b7f8336ba1716c9c2621a3/boot/pxeboot
493568  pxe-127-1caed70c62646a5978bbeb4562bc3ae2dabc874a/boot/pxeboot
493568  pxe-128-d002814d6b8edc9cf85f1653ebb568e59f72f9ad/boot/pxeboot
493568  pxe-129-0f2434ea000e02e6b1f7f40f489c346c64445242/boot/pxeboot
493568  pxe-130-52ec89a93c796ca3f3f3da2eec867804fcdd1a4d/boot/pxeboot
493568  pxe-131-9adce1aedd2e4a97478503b99f6c15f5b19e9f2a/boot/pxeboot
493568  pxe-132-fb3a792a8827415735dda4ece2028439ce385ffb/boot/pxeboot
493568  pxe-133-ef698fabe42827bad43bf046143ef26e47d57514/boot/pxeboot
493568  pxe-134-3ddf7eade0e9e770a78f190bee00c2a7ba256ef5/boot/pxeboot
493568  pxe-135-ad1ebbe5cea8ffac0037966990ddf0f80faa55d5/boot/pxeboot
493568  pxe-136-994e1f40f6db059290cf4a8203c2b9eea22d9a38/boot/pxeboot
493568  pxe-137-0974bfa3a8da2201b0a415e72593552f5ac59379/boot/pxeboot
493568  pxe-138-b14cfecbf0ed04c841aa594dede3668b0a36344a/boot/pxeboot
493568  pxe-139-0495ed398c4f64013bab2327eb13a303e1f90c13/boot/pxeboot
473088  pxe-140-fdaf9cb942d995969b79eb8ad3fa91b7592198cd/boot/pxeboot
473088  pxe-141-98c15d4dc28450688dcee6c6082d3a4d417b5d5d/boot/pxeboot
473088  pxe-142-8b18395487506d3602205e5844e0b67ba0c0dc80/boot/pxeboot
473088  pxe-143-50180d2b52cc16ecb6a6617fdc53f5d83c71a8b4/boot/pxeboot
473088  pxe-144-1a816c75600335c4482070df055add6f96885d54/boot/pxeboot
473088  pxe-145-89632acb50f1a0bcc6ce82b9921f779cafaa9468/boot/pxeboot
473088  pxe-146-20fb2ea2c7c9834d6ca5ab2664961afaba6a8596/boot/pxeboot
473088  pxe-147-27e90f70e09d9d003bdea09c41be64a7ec2ece9a/boot/pxeboot
473088  pxe-148-e41367e3ae1246c2b086f9f920a175108aa72380/boot/pxeboot
473088  pxe-149-79eca6520e0a516a2c217d8c9faedb58ad5db204/boot/pxeboot
473088  pxe-150-1790f5e654ff20e61d8d83f16773dc0ef3f7da01/boot/pxeboot
473088  pxe-151-3efe9b3e77c3943fc791d305f4f6043b05ff1eeb/boot/pxeboot
473088  pxe-152-babda0952f8355a89b3241d5e8943c7da0fa4f6b/boot/pxeboot
473088  pxe-153-31c2bcad7e440fbba547c8557b29c34871b53648/boot/pxeboot
473088  pxe-154-99870c70bac7440bb2224d990a503d87c5488323/boot/pxeboot
473088  pxe-155-58661b3ba9ebe82f889cbc336afe618ad7f7940a/boot/pxeboot
473088  pxe-156-8c1dda11711ec0dba5b34291d29a360029e6fdf6/boot/pxeboot
473088  pxe-157-b2a8d7a9b52d588338ded70cb101899e32c1d352/boot/pxeboot
473088  pxe-158-e24d4e72c03bd7b089c0189cdb460450177c53fc/boot/pxeboot
473088  pxe-159-4f9139397e709a106a73f362654ce245321e4a77/boot/pxeboot
473088  pxe-160-a3479cfd2217d133d49aa7159ea23faf901dc586/boot/pxeboot
473088  pxe-161-3630506b9daec9167a89bc4525638ea45a00769e/boot/pxeboot
444416  pxe-162-670d2ad820c7584e6592d2a6d748dda0758d2ec5/boot/pxeboot
444416  pxe-163-8b4c3a03f933b77b65c78fdef976831d27942d9d/boot/pxeboot
444416  pxe-164-ac5f382a9d0a26685b92b49abb845d3b30ea5f91/boot/pxeboot
444416  pxe-165-72cf7db3aaf17db412183886f19320e5074dc8b7/boot/pxeboot
444416  pxe-166-2ae58414722b613f5e73be8e01602c2c9991f42a/boot/pxeboot
444416  pxe-167-29842cb36e74037989b7a7f0bf38a47f342bac91/boot/pxeboot
444416  pxe-168-7ed84fa14b00cdacfe9b43019cba7a14b33af352/boot/pxeboot
444416  pxe-169-4d6047edb675e52b8fad57135ab3ded8e66d0dac/boot/pxeboot
444416  pxe-170-d3eae37553cd23d5ca8addc4818aec9d8a71ec81/boot/pxeboot
444416  pxe-171-eba724f361693a52721b2626d800a7e117af67ac/boot/pxeboot
444416  pxe-172-f32672272f37100dfa23f1f01c16d6388543ba64/boot/pxeboot
444416  pxe-173-c46f7610d4c5a57fdb2aac5fcbf66aa7124ec703/boot/pxeboot
444416  pxe-174-0a0d522b368b31ec51611b798047a75b52855f39/boot/pxeboot
444416  pxe-175-10aeb6cdab8fb09e2cc3ee2d8b2c68c395481c23/boot/pxeboot
444416  pxe-176-4634bb1f4052ff5f1c0a423fd8cce11396ca7fd2/boot/pxeboot
444416  pxe-177-eb2f5fa4dcbf452b94f8431e51d224f0315ad9a0/boot/pxeboot
444416  pxe-178-9de6a13e0f492954612bb7d9752bdd3a1102d17a/boot/pxeboot
444416  pxe-179-cc7b5411e6d3423e3ff39f6a7ae07e6c51195c65/boot/pxeboot
444416  pxe-180-34602358c02f929b9baffd9f84eb82e772e6defb/boot/pxeboot
444416  pxe-181-78599c32efed3247d165302a1fbe8d9203e38974/boot/pxeboot
444416  pxe-182-abbf48c558528fff4e967e557e8aebc7463e6fe5/boot/pxeboot
444416  pxe-183-454f1fdec11f42808360abb62729bba1c15de1d4/boot/pxeboot
444416  pxe-184-1784a6d64af89efaff30f4322d298a627e3100ec/boot/pxeboot
444416  pxe-185-cd56ababd3ceddec64395aac66fa49b08f0f06af/boot/pxeboot
444416  pxe-186-dba7640e44c5ec148a84b0d58c6c9a3c9e5147f3/boot/pxeboot
444416  pxe-187-fd2ef8ef5a054d9f26b6b36ea56a5414c7683e39/boot/pxeboot
444416  pxe-188-a2dd1caade2f9cb829261a42812431781c685d46/boot/pxeboot
444416  pxe-189-fc7cf7241f89a3d3ccc20cb49c5bf61e154b7a1b/boot/pxeboot
444416  pxe-190-3e9f0f1d298f7f1e535831cdf697f5884a6d07dc/boot/pxeboot
444416  pxe-191-83a252c6a15d44cd574a9ef9ba37a77a3464296f/boot/pxeboot
444416  pxe-192-90b307a8975327b195e4549b9b0745bcc684f646/boot/pxeboot
444416  pxe-193-1ef64e3da5fb023436893a635e336e591aba120a/boot/pxeboot
444416  pxe-194-e416eecbb9f7a5275d1d059ae720adc24af4d337/boot/pxeboot
444416  pxe-195-5b5438c6f3e82f56564e17f3b2497798a2d4099e/boot/pxeboot
Comment 6 terehovv 2021-11-21 15:37:08 UTC
Also affected for me on amd64: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259939
The problem is reproduced both when booting over the network via PXE and NFS, and when booting the iso image of mfsbsd via iPXE. 

I looked at the commits here: https://cgit.freebsd.org/src/log/stand?h=stable/13&ofs=100

Last commit I was able to boot with: 670d2ad820c7584e6592d2a6d748dda0758d2ec5 by Eric van Gyzen ("efi loader: fix typos in a comment", 2021-01-01).

Since commit 3630506b9daec9167a89bc4525638ea45a00769e from Toomas Soome ("loader: implement framebuffer console", 2021-01-02) I have no image on the display and I don't know if I'm having any other problems.

Since commit 0495ed398c4f64013bab2327eb13a303e1f90c13 by Kyle Evans ("contrib / lua: update to 5.4.2", 2021-01-14) I got an image on the display and a "BTX halted" error.
Comment 7 terehovv 2021-11-21 15:38:14 UTC
*** Bug 259939 has been marked as a duplicate of this bug. ***
Comment 8 terehovv 2021-11-29 15:00:30 UTC
(In reply to Ed Maste from comment #1)

Also I checked the last commit to the /stand, compiled with clang 11 and 12 - the problem remains.
Comment 9 Hans Petter Selasky freebsd_committer freebsd_triage 2022-02-21 15:08:00 UTC
FYI:

So I did this after buildworld:

cd /usr/src/stand
make WITHOUT_LOADER_ZFS=YES clean
make WITHOUT_LOADER_ZFS=YES all
make WITHOUT_LOADER_ZFS=YES install

And now it works, with my old GigaByte mainboard!

--HPS
Comment 10 Gabor Papp 2022-06-04 05:52:10 UTC
*** Bug 264439 has been marked as a duplicate of this bug. ***
Comment 11 Graham Perrin freebsd_committer freebsd_triage 2023-06-17 05:55:17 UTC
<https://github.com/bsdjhb/devsummit/blob/main/14.0/planning.md#axe-candidates> identifies this bug as to be solved first, if (a possibility) 14.0 is to deprecate boot loader 4th support. 


^Triage: 

* open
* keyword
* duplicates need not remain in the see also area.
Comment 12 Bjoern A. Zeeb freebsd_committer freebsd_triage 2023-06-17 12:20:51 UTC
Adding imp and stevek as they are listed as "Owner" for axing it in 15 at https://hackmd.io/@jhb/ByWrxQmr2 .
Comment 13 Warner Losh freebsd_committer freebsd_triage 2023-06-17 14:28:29 UTC
Too big is too big. I have no plans to fix this. you need to build a smaller lloader to be the pxe payload. Though tsoome has mad the loader a bit smaller by removing the graphics ftom it
Comment 14 Pierre Pronchery 2023-09-05 19:45:24 UTC
Created attachment 244666 [details]
0001-stand-i386-fix-booting-over-TFTP-or-NFS.patch

With this patch, it becomes possible again to boot the kernel over TFTP or NFS as expected. This is achieved by providing an additional subfolder and corresponding binary target for every loader supported, but where ZFS support is always disabled. (As suggested in #c9)

The kernel loaded over the network can then provide ZFS support and boot a local system over ZFS if desired. (I think)
Comment 15 Pierre Pronchery 2023-09-06 00:08:08 UTC
(In reply to Pierre Pronchery from comment #14)
I have submitted this patch for review at review D41750.
Comment 16 Pierre Pronchery 2023-10-30 13:36:04 UTC
(In reply to Pierre Pronchery from comment #15)
An alternative patch is now available as review D42146 instead.
Comment 17 Warner Losh freebsd_committer freebsd_triage 2024-07-29 22:33:38 UTC
I claim that with my latest commit to make loader smaller, this is fixed.
I plan on MFCing it ASAP.

commit 195a96f0b303345818e09ad1d79dc80122804de8
Author: Warner Losh <imp@FreeBSD.org>
Date:   Wed Jul 24 21:15:28 2024 -0600

If anybody can test this, that would be great.
Comment 18 Bjoern A. Zeeb freebsd_committer freebsd_triage 2024-07-29 23:12:48 UTC
(In reply to Warner Losh from comment #17)

I'll start a build and test first thing in the morning (it's 1AM here now).

Though I have to admit having gzipped md_images saves a lot of "fetch" time over tftp when doing pxeboot.
Comment 19 Bjoern A. Zeeb freebsd_committer freebsd_triage 2024-07-30 17:18:39 UTC
pxeboot came out as:

root@:/ # ls -l /boot/pxeboot*                                                                                                                                                                                                                                                                                          
-r--r--r--  1 root wheel 477184 Jul 30 17:00 /boot/pxeboot                                                                                                                                                                                                                                                              
-r--r--r--  1 root wheel 497664 Jul  6  2021 /boot/pxeboot.kaput                                                                                                                                                                                                                                                        

and from all I can say it worked on this previously "kaput" machine.

root@:/ # kenv loaddev                                                                                                                                                                                                                                                                                                  
net0:        

Unfortunately I have no console from PXE times on this remote machine.

Thank you Warner for fixing it.  At least I can start losing old pxeboot binaries now :)
Comment 20 Pierre Pronchery 2024-08-01 16:14:28 UTC
(In reply to Warner Losh from comment #17)
It works for me too; tested in VirtualBox when booting in BIOS mode, with a bridged virtual adapter (Intel PRO/1000 MT Desktop) and a physical FreeBSD DHCP server.
Comment 21 commit-hook freebsd_committer freebsd_triage 2024-08-01 21:32:02 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=46ea2ffc3fbc42089d8322a65fdee8476d2b00d6

commit 46ea2ffc3fbc42089d8322a65fdee8476d2b00d6
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-08-01 21:24:51 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-08-01 21:30:26 +0000

    stand: Reduce limit to 500k for x86 loader

    The largest loader that works for PXE boot is about 500k. PXE needs low
    memory for packets and other driver state, so the largest safe size for
    the loader is about 500k. Reduce the size from 560k to 500k so we don't
    accidentally break PXE in the future.

    Add a comment for people with special needs. If you control the
    hardware, it can be safe to have boot loaders as large as 580k or 600k
    in some cases. Since the BIOS loader is becoming more and more of a
    legacy item, the build variable LOADERSIZE isn't documented. This change
    doesn't change that: there's been little demand for this documentation
    and in general, users shouldn't change it lightly.

    PR: 257018
    Sponsored by: Netflix

 stand/i386/loader/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Comment 22 Warner Losh freebsd_committer freebsd_triage 2024-08-01 21:34:56 UTC
We now limit /boot/loader to 500,000 bytes, which appears to be the cutoff line for working vs non-working for this.
This is a little small for some people, but its a tiny minority who know how
to cope. :). There's a lot more people that want pxeloader to work.
Comment 23 James Elstone 2024-09-27 10:38:35 UTC
TLDR: pxeboot (when booting through BIOS and not EFI) doesn't work in 14.0-RELEASE and 14.1-RELEASE base.txz files from https://download.freebsd.org/ for amd64 arch.

Just wanted to add to this report for others (as it is documented to use BIOS pxeboot in the handbook initially, section 34.10.2):

This fix was added/merged in Aug'24 into the FreeBSD codebase.

pxeboot in 13.4-RELEASE base.txz downloaded from download.freebsd.org works OK (released Sep'24).

But the pxeboot binary in the base txz files for 14.0-RELEASE (released Nov'23) and 14.1-RELEASE (released May'24) do not work as they pre-date the fix.

Am hoping that the upcoming 14.2-RELEASE in Dec'24 works OK, so PXE clients can be upgraded from 13.4 to 14.2 when BIOS booting on amd64 using release binaries out of the box.

Alternatively compile kernel and world from source with a date Sep'24 onwards and boot from those binaries.