Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Dec 2011 15:40:46 -0800
From:      Craig Rodrigues <rodrigc@crodrigues.org>
To:        Andrew Boyer <aboyer@averesystems.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Idea for change to boot0
Message-ID:  <CAG=rPVc6vimPo-zK0ppBsET_Vsf-8C29ZpSE5awSPw14jbw4kQ@mail.gmail.com>
In-Reply-To: <94847CD1-4361-424C-A2F6-75CAE918E2A9@averesystems.com>
References:  <94847CD1-4361-424C-A2F6-75CAE918E2A9@averesystems.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

This is interesting.  I wrote some newer documentation for PXE booting
here:
http://www.freebsd.org/doc/handbook/network-pxe-nfs.html

In 32.8.4, bullet item 1, I mentioned that it is necessary to
configure network booting in the BIOS menu.

With your change, is entering the BIOS menu to configure network booting
still necessary?

--
Craig Rodrigues
rodrigc@juniper.net

On Thu, Dec 15, 2011 at 1:21 PM, Andrew Boyer <aboyer@averesystems.com> wro=
te:
> These two changes allow you to set PXE as the default MBR boot selection,=
 which enables you to write a 'reboot to the network' script. =A0We've foun=
d it to be very useful. =A0What do people think?
>
> Thanks,
> Andrew
>
>> Index: usr.sbin/boot0cfg/boot0cfg.c
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>> --- usr.sbin/boot0cfg/boot0cfg.c =A0 =A0 =A0(revision 228359)
>> +++ usr.sbin/boot0cfg/boot0cfg.c =A0 =A0 =A0(working copy)
>> @@ -169,7 +169,7 @@
>> =A0 =A0 =A0 =A0 =A0 =A0 o_flag =3D 1;
>> =A0 =A0 =A0 =A0 =A0 =A0 break;
>> =A0 =A0 =A0 =A0 case 's':
>> - =A0 =A0 =A0 =A0 =A0 =A0s_arg =3D argtoi(optarg, 1, 5, 's');
>> + =A0 =A0 =A0 =A0 =A0 =A0s_arg =3D argtoi(optarg, 1, 6, 's');
>> =A0 =A0 =A0 =A0 =A0 =A0 break;
>> =A0 =A0 =A0 =A0 case 't':
>> =A0 =A0 =A0 =A0 =A0 =A0 t_arg =3D argtoi(optarg, 1, 0xffff, 't');
>> @@ -472,6 +472,8 @@
>> =A0 =A0 printf("default_selection=3DF%d (", mbr[OFF_OPT] + 1);
>> =A0 =A0 if (mbr[OFF_OPT] < 4)
>> =A0 =A0 =A0 printf("Slice %d", mbr[OFF_OPT] + 1);
>> + =A0 =A0else if (mbr[OFF_OPT] =3D=3D 5)
>> + =A0 =A0 =A0 =A0print("PXE");
>> =A0 =A0 else
>> =A0 =A0 =A0 printf("Drive 1");
>> =A0 =A0 printf(")\n");
>> Index: sys/boot/i386/boot0/boot0.S
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>> --- sys/boot/i386/boot0/boot0.S =A0 =A0 =A0 (revision 228359)
>> +++ sys/boot/i386/boot0/boot0.S =A0 =A0 =A0 (working copy)
>> @@ -413,6 +413,7 @@
>> =A0 =A0 =A0 3:
>> #endif /* ONLY_F_KEYS */
>> #endif /* SIO */
>> +check_selection:
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 cmpb $0x5,%al =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 # F1..F6 or 1..6 ?
>> #ifdef PXE /* enable PXE/INT18 using F6 */
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 jne 1f;
>> @@ -421,7 +422,6 @@
>> #endif /* PXE */
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 jae beep =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 =A0 =A0# Not in F1..F5, beep
>>
>> -check_selection:
>> =A0 =A0 =A0 /*
>> =A0 =A0 =A0 =A0* We have a selection. =A0If it's a bad selection go back=
 to complain.
>> =A0 =A0 =A0 =A0* The bits in MNUOPT were set when the options were print=
ed.
>
> --------------------------------------------------
> Andrew Boyer =A0 =A0aboyer@averesystems.com
>
>
>
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org=
"



--=20
Craig Rodrigues
rodrigc@crodrigues.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG=rPVc6vimPo-zK0ppBsET_Vsf-8C29ZpSE5awSPw14jbw4kQ>