To run these tools, follow these steps. Note that this example assumes that the "~/bin/" directory is on the PATH. Some utilities need to be copied to a directory on the $PATH to work properly.
./get_hdr_files.sh -i ~/downloaded/bios/dir/ -o ~/output/hdr/dir/
Extracting the .hdr file from a Dell Update Package (DUP) is relatively simple. Download the Linux DUP, and use the "--extract" command line parameter. See the example below:
# mkdir /var/tmp/PE6650 # PE6650-BIOS-LX-A17.bin --extract /var/tmp/PE6650 # ls -la /var/tmp/PE6650/*.HDR -r-xr-xr-x 1 root root 524380 Jan 21 2005 PE6650-BIOSA17.HDR
# UNTAR THE DOSEMU SOURCES $ tar xvzf ./dosemu-1.2.2-bin.tgz dosemu/ dosemu/README.bindist dosemu/COPYING ... # UNTAR THE FREEDOS SOURCES $ tar xvzf ./dosemu-freedos-b9r5a-bin.tgz dosemu/ dosemu/freedos/ dosemu/freedos/appinfo/ ... # COPY BIOS .EXE FILE TO DOSEMU C:\> DRIVE $ cp ~/download/D500_A10.exe dosemu/freedos/ $ # RUN DOSEMU $ cd dosemu $ ./dosemu Creating symbolic link for bootdirectory as /home/username/.dosemu/drives/c DOSEMU will run on _this_ terminal. To exit you need to execute 'exitemu' from within DOS, because <Ctrl>-C and 'exit' won't work! Now type ENTER to start DOSEMU or <Ctrl>C to cancel # PRESS ENTER The Linux DOSEMU, Copyright (C) 2003 the 'DOSEMU-Development-Team'. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more details. Use this program at your own risk! By continuing execution of this program, you are stating that you have read the file COPYING and the above liability disclaimer and that you accept these conditions. Enter 'yes' to confirm/continue: yes Linux DOS emulator 1.2.2.0 \$Date: 2004/07/11\$ Last configured at Sun Jul 11 19:33:45 NZST 2004 on linux This is work in progress. Please test against a recent version before reporting bugs and problems. Submit Bug Reports, Patches & New Code to linux-msdos@vger.kernel.org or via the SourceForge tracking system at http://www.sourceforge.net/projects/dosemu DPMI-Server Version 0.9 installed FreeDOS kernel version 1.1.35 (Build 2035) [May 30 2004 22:09:36] Kernel compatibility 7.10 - WATCOMC - FAT32 support (C) Copyright 1995-2004 Pasquale J. Villani and The FreeDOS Project. All Rights Reserved. This is free software and comes with ABSOLUTELY NO WARRANTY; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. C: HD1, Pri[ 1], CHS= 0-1-1, start= 0 MB, size= 392 MB [dosemu EMS 4.0 driver installed] Kernel: allocated 39 Diskbuffers = 20748 Bytes in HMA FreeCom version 0.82 pl 3 XMS_Swap [Mar 06 2004 10:49:37] D: = LINUX\\FS/HOME/USERNAME attrib = READ/WRITE "Welcome to dosemu 1.2.2.0!" C:\> # RUN THE DOWNLOADED BIOS TO CREATE .HDR FILE C:\>d500_a10 -writehdrfile Flash BIOS Update Program - Version A10 Copyright 1990-2005 Dell Computer Corporation. All Rights Reserved. Loading... D500_A10.HDR written. C:\>exitemu # DONE! COPY THE FILE (from Linux) $ cp freedos/d500_a10.hdr ~/ $