Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: "bootinfo too big" netbooting amd64-8.0_BETA?



On Fri, 26 Jan 2018, John D. Baker wrote:

> I've bumped BTINFO_MAX to 64 and added the printf().  Once the build
> completes I'll try with the modified pxeboot_ia32.bin.

I haven't tried with the machine I originally wrote about as I can't
arrange the downtime yet.

I have tried with other machines that have, to date, had no problem.
One thing I discovered is that the "/boot.cfg" all the others were
using did NOT load the "scsiverbose" module, while the one that had the
problem did.

Thus the output of the debug printf() was instructive:

[booting "plextwo" (i386)]
>> NetBSD/x86 PXE boot, Revision 5.1 (Sat Nov 18 23:07:27 UTC 2017) (from NetBSD 8.99.7)
>> Memory: 574/521904 k
bi_add: what 0xeb40, type 6, size 32
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
9063732+119988+696140 [547779+409296+411011]=0xaba9dc
bi_add: what 0x18298, type 7, size 236
bi_add: what 0x17e84, type 9, size 132
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/i386/8.99.12/modules/acpiverbose/acpiverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/i386/8.99.12/modules/pciverbose/pciverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/i386/8.99.12/modules/usbverbose/usbverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/i386/8.99.12/modules/miiverbose/miiverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/i386/8.99.12/modules/nfs/nfs.kmod  
bi_add: what 0x15e38, type 11, size 476
bi_add: what 0x1a820, type 13, size 92
bi_add: what 0x2721c, type 8, size 20
bi_add: what 0xe320, type 12, size 56
[kernel Copyright display]


The above shows that "bi_add()" is called 29 times.  It appears that
it adds NETIF and BOOTPATH twice for each module to be loaded.  Without
the "load=scsiverbose" in "/boot.cfg", we're under the stock BTINFO_MAX.

With the loading of an additional module (load=scsiverbose):

[booting "avaya" (i386)]
>> NetBSD/x86 PXE boot, Revision 5.1 (Sat Nov 18 23:07:27 UTC 2017) (from NetBSD 8.99.7)
>> Memory: 546/3406272 k
bi_add: what 0xeb40, type 6, size 32
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
7166720+121012+703980 [460525+376592+379970]=0x8c8ea8
bi_add: what 0x17320, type 7, size 236
bi_add: what 0x16f0c, type 9, size 232
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/i386/8.99.12/modules/acpiverbose/acpiverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/i386/8.99.12/modules/pciverbose/pciverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/i386/8.99.12/modules/scsiverbose/scsiverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/i386/8.99.12/modules/usbverbose/usbverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/i386/8.99.12/modules/miiverbose/miiverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/i386/8.99.12/modules/nfs/nfs.kmod  
bi_add: what 0x14ec0, type 11, size 568
bi_add: what 0x13224, type 13, size 12
bi_add: what 0x27220, type 8, size 20
bi_add: what 0xe320, type 12, size 56
[kernel Copyright display]

The "bi_add()" function is called 33 times, which would cause failure
with the stock BTINFO_MAX value.  Again, note that BTINFO_NETIF and
BTINFO_BOOTPATH are added twice for each module.


Just in case there was some discrepancy between i386 and amd64, I booted
an amd64 host without and then with "load=scsiverbose" in its "/boot.cfg":

[booting "plex760" (amd64)]
>> NetBSD/x86 PXE boot, Revision 5.1 (Sat Nov 18 23:07:27 UTC 2017) (from NetBSD 8.99.7)
>> Memory: 549/3107776 k
bi_add: what 0xeb40, type 6, size 32
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
8354728+190092+1907060 [460215+614784+424743]=0xb6eb60
bi_add: what 0x175ec, type 7, size 460
bi_add: what 0x16ee8, type 9, size 292
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/amd64/8.99.12/modules/acpiverbose/acpiverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/amd64/8.99.12/modules/pciverbose/pciverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/amd64/8.99.12/modules/usbverbose/usbverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/amd64/8.99.12/modules/miiverbose/miiverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/amd64/8.99.12/modules/nfs/nfs.kmod  
bi_add: what 0x14e6c, type 11, size 476
bi_add: what 0x15e70, type 13, size 12
bi_add: what 0x27220, type 8, size 20
bi_add: what 0xe320, type 12, size 56
[kernel Copyright display]

[booting "plex760" (amd64), w/"load=scsiverbose"]
>> NetBSD/x86 PXE boot, Revision 5.1 (Sat Nov 18 23:07:27 UTC 2017) (from NetBSD 8.99.7)
>> Memory: 549/3107776 k
bi_add: what 0xeb40, type 6, size 32
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
8354728+190092+1907060 [460215+614784+424743]=0xb6eb60
bi_add: what 0x17624, type 7, size 460
bi_add: what 0x16f20, type 9, size 292
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/amd64/8.99.12/modules/acpiverbose/acpiverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/amd64/8.99.12/modules/pciverbose/pciverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/amd64/8.99.12/modules/scsiverbose/scsiverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/amd64/8.99.12/modules/usbverbose/usbverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/amd64/8.99.12/modules/miiverbose/miiverbose.kmod  
bi_add: what 0xe380, type 4, size 32
bi_add: what 0xe5a0, type 0, size 88
Loading /stand/amd64/8.99.12/modules/nfs/nfs.kmod  
bi_add: what 0x14ea4, type 11, size 568
bi_add: what 0x15ea8, type 13, size 12
bi_add: what 0x27220, type 8, size 20
bi_add: what 0xe320, type 12, size 56
[kernel Copyright display]

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645



Home | Main Index | Thread Index | Old Index