Browse Source

ROM firmware is optional now

ROM firmware is optional now and should be used only by user choice.
It should be named as 'FirmwareName.isarom' placed under 'drivers/' directory.
In the same directory placed an example firmware and some information.

Change-Id: I5841deacacacf39c9c654828c44a869ef996044b
Depends-On: Id1f0d9e32487bcd902940311ed8d8bef4129fdaf
Doc-Impact: ops-guide
Closes-Bug: 1528186
Closes-Bug: 1527474
Maksim Malchuk 3 years ago
parent
commit
a1bf0cf649

+ 7
- 5
actions/prepare-environment.sh View File

@@ -73,12 +73,14 @@ echo "OK"
73 73
 # Check for VirtualBox iPXE firmware
74 74
 echo -n "Checking for VirtualBox iPXE firmware..."
75 75
 if [ -z $pxe_path ]; then
76
-    echo "VirtualBox iPXE firmware is not found. Please put it under the 'drivers' directory."
77
-    exit 1
76
+    echo "SKIP"
77
+    echo "VirtualBox iPXE firmware is not found. Used standard firmware from the VirtualBox Extension Pack."
78
+    execute VBoxManage setextradata global VBoxInternal/Devices/pcbios/0/Config/LanBootRom
79
+else
80
+    execute VBoxManage setextradata global VBoxInternal/Devices/pcbios/0/Config/LanBootRom "$(pwd)/$pxe_path" 2>/dev/null
81
+    echo "OK"
82
+    echo "Going to use iPXE boot firmware file $pxe_path"
78 83
 fi
79
-execute VBoxManage setextradata global VBoxInternal/Devices/pcbios/0/Config/LanBootRom "$(pwd)/$pxe_path" 2>/dev/null
80
-echo "OK"
81
-echo "Going to use iPXE boot firmware file $pxe_path"
82 84
 
83 85
 # Check for ISO image to be available
84 86
 echo -n "Checking for Mirantis OpenStack ISO image... "

+ 1
- 1
config.sh View File

@@ -21,7 +21,7 @@ source ./functions/shell.sh
21 21
 iso_path=`ls -1t iso/*.iso 2>/dev/null | head -1`
22 22
 
23 23
 # get the first available iPXE boot firmware from the directory 'drivers'
24
-pxe_path=`ls -1t drivers/*.isarom 2>/dev/null | head -1`
24
+pxe_path=`ls -1t drivers/*.*rom 2>/dev/null | head -1`
25 25
 
26 26
 # Every Mirantis OpenStack machine name will start from this prefix
27 27
 vm_name_prefix=fuel-

drivers/8086100e.isarom → drivers/Intel 82540EM Gigabit Ethernet [8086100e]/8086100e.isarom View File


BIN
drivers/Intel 82540EM Gigabit Ethernet [8086100e]/8086100e.mrom View File


BIN
drivers/Intel 82540EM Gigabit Ethernet [8086100e]/8086100e.rom View File


+ 52
- 0
drivers/Intel 82540EM Gigabit Ethernet [8086100e]/README.md View File

@@ -0,0 +1,52 @@
1
+# iPXE - open source boot firmware for VirtualBox
2
+
3
+This is a prebuilt binary version of **iPXE** as an **VirtualBox PXE ROM**.
4
+
5
+The **iPXE** source code is maintained in a git repository. You can check out a copy of the code using:
6
+
7
+```
8
+git clone git://git.ipxe.org/ipxe.git
9
+```
10
+
11
+and build it using:
12
+
13
+```
14
+cd ipxe/src
15
+make
16
+```
17
+
18
+You will need to have at least the following packages installed in order to build **iPXE**:
19
+
20
+```
21
+* gcc (version 3 or later)
22
+* binutils (version 2.18 or later)
23
+* make
24
+* perl
25
+* syslinux (for isolinux, only needed for building .iso images)
26
+* liblzma or xz header files
27
+* zlib, binutils and libiberty header files (only needed for EFI builds)
28
+```
29
+
30
+to build this **Intel 82540EM Gigabit Ethernet PXE ROM** for VirtualBox use:
31
+
32
+```
33
+make CONFIG=vbox bin/8086100e.isarom
34
+```
35
+
36
+Max size of a VirtualBox ROM is 56KB (57344 bytes).  
37
+There should be no need to pad the image as long as the binary is smaller or equal to this size.
38
+
39
+To use the ROM in VirtualBox you need to enable it using this command:
40
+
41
+```
42
+vboxmanage setextradata global VBoxInternal/Devices/pcbios/0/Config/LanBootRom \
43
+  /absolute/path/to/8086100e.isarom
44
+```
45
+
46
+NB: If you build the ROM using the .rom prefix then it'll be built as a PCI  
47
+ROM, which won't work properly in VirtualBox.  The error message you'll see  
48
+is "No more network devices", which is somewhat confusing.  If you enter the  
49
+shell and use the "autoboot" command things will work as intended.  Remember  
50
+to always build as a .isarom to avoid this issue.
51
+
52
+You can find **iPXE** at the official site of the project: <http://ipxe.org/>.

+ 1
- 52
drivers/README.md View File

@@ -1,52 +1 @@
1
-# iPXE - open source boot firmware for VirtualBox
2
-
3
-This is a prebuilt binary version of **iPXE** as an **VirtualBox PXE ROM**.
4
-
5
-The **iPXE** source code is maintained in a git repository. You can check out a copy of the code using:
6
-
7
-```
8
-git clone git://git.ipxe.org/ipxe.git
9
-```
10
-
11
-and build it using:
12
-
13
-```
14
-cd ipxe/src
15
-make
16
-```
17
-
18
-You will need to have at least the following packages installed in order to build **iPXE**:
19
-
20
-```
21
-* gcc (version 3 or later)
22
-* binutils (version 2.18 or later)
23
-* make
24
-* perl
25
-* syslinux (for isolinux, only needed for building .iso images)
26
-* liblzma or xz header files
27
-* zlib, binutils and libiberty header files (only needed for EFI builds)
28
-```
29
-
30
-to build this **Intel 82540EM Gigabit Ethernet PXE ROM** for VirtualBox use:
31
-
32
-```
33
-make CONFIG=vbox bin/8086100e.isarom
34
-```
35
-
36
-Max size of a VirtualBox ROM is 56KB (57344 bytes).  
37
-There should be no need to pad the image as long as the binary is smaller or equal to this size.
38
-
39
-To use the ROM in VirtualBox you need to enable it using this command:
40
-
41
-```
42
-vboxmanage setextradata global VBoxInternal/Devices/pcbios/0/Config/LanBootRom \
43
-  /absolute/path/to/8086100e.isarom
44
-```
45
-
46
-NB: If you build the ROM using the .rom prefix then it'll be built as a PCI  
47
-ROM, which won't work properly in VirtualBox.  The error message you'll see  
48
-is "No more network devices", which is somewhat confusing.  If you enter the  
49
-shell and use the "autoboot" command things will work as intended.  Remember  
50
-to always build as a .isarom to avoid this issue.
51
-
52
-You can find **iPXE** at the official site of the project: <http://ipxe.org/>.
1
+Put ROM firmware in this folder

Loading…
Cancel
Save