[ipxe-devel] Freedos-Boot [Re: menu commands]

Robin Smidsrød robin at smidsrod.no
Sat Mar 31 15:02:25 UTC 2012


On 31.03.2012 14:34, Oliver Rath wrote:
>
> I see a freedos menu point in your example. How did you realize this over net?

Attached are the two iPXE scripts I use to load/install FreeDOS onto an
iSCSI target/volume. As you can see, they still contain a bit of
commented variations, but that is mostly because I started with this
experiment before sanhook existed, and sanbooting ISOs from HTTP wasn't
possible. Now it's mostly a matter of sanhooking the install volume as
0x80 and fdfullcd.iso as 0x81 and you're good to go.

fdfullcd.iso you can get from the FreeDOS website.

I use a Nexenta/Solaris COMSTAR iSCSI target, but AFAIK it should work
with any iSCSI target that works reliably with iPXE.

I have not tried to enable any kind of networking in my FreeDOS yet, but
from what I understand, there is supposed to be a network driver
available that is able to use the underlying UNDI.

Don't forget the "dhcp" command at start, I usually don't have it in
there, as I run all of my scripts through pxe-dispatcher,
https://github.com/robinsmidsrod/pxe-dispatcher.

If you use COMSTAR you might also be interested in this,
https://github.com/robinsmidsrod/comstar-soho-helper, to simplify
creation of iSCSI targets in a home environment.

-- Robin
-------------- next part --------------
#!ipxe

echo
echo Booting FreeDOS for ${hostname} from SAN
set root-path iscsi:nas.smidsrod.lan::::iqn.2011-02.lan.smidsrod:${hostname}.boot.freedos
# Old method
#set keep-san 1
#sanboot ${root-path} || goto failed
# New method
sanhook ${root-path} || goto failed
sanboot --keep

:failed
echo Boot from ${root-path} failed, dropping to shell
shell

-------------- next part --------------
#!ipxe

echo
echo Booting FreeDOS installer for ${hostname} from SAN
set root-path iscsi:nas.smidsrod.lan::::iqn.2011-02.lan.smidsrod:${hostname}.boot.freedos
sanhook ${root-path} || goto failed
#sanboot -d 0x81 iscsi:nas.smidsrod.lan::::iqn.2011-02.lan.smidsrod:fdfullcd.iso || goto failed
sanboot -d 0x81 http://boot.smidsrod.lan/freedos-1.0/fdfullcd.iso || goto failed

:failed
echo Boot from ${root-path} failed, dropping to shell
shell


More information about the ipxe-devel mailing list