2019-12-01 15:45:54 +00:00
|
|
|
=========================================
|
|
|
|
Dell Remote BIOS Update driver (dell_rbu)
|
|
|
|
=========================================
|
2017-05-17 17:25:05 +00:00
|
|
|
|
|
|
|
Purpose
|
|
|
|
=======
|
|
|
|
|
2019-10-12 17:11:12 +00:00
|
|
|
Document demonstrating the use of the Dell Remote BIOS Update driver
|
2005-09-06 22:17:14 +00:00
|
|
|
for updating BIOS images on Dell servers and desktops.
|
|
|
|
|
2017-05-17 17:25:05 +00:00
|
|
|
Scope
|
|
|
|
=====
|
|
|
|
|
2005-09-06 22:17:14 +00:00
|
|
|
This document discusses the functionality of the rbu driver only.
|
2006-10-03 20:45:33 +00:00
|
|
|
It does not cover the support needed from applications to enable the BIOS to
|
2005-09-06 22:17:14 +00:00
|
|
|
update itself with the image downloaded in to the memory.
|
|
|
|
|
2017-05-17 17:25:05 +00:00
|
|
|
Overview
|
|
|
|
========
|
|
|
|
|
2005-09-06 22:17:14 +00:00
|
|
|
This driver works with Dell OpenManage or Dell Update Packages for updating
|
|
|
|
the BIOS on Dell servers (starting from servers sold since 1999), desktops
|
|
|
|
and notebooks (starting from those sold in 2005).
|
2017-05-17 17:25:05 +00:00
|
|
|
|
2005-09-06 22:17:14 +00:00
|
|
|
Please go to http://support.dell.com register and you can find info on
|
|
|
|
OpenManage and Dell Update packages (DUP).
|
2017-05-17 17:25:05 +00:00
|
|
|
|
2005-09-17 02:28:04 +00:00
|
|
|
Libsmbios can also be used to update BIOS on Dell systems go to
|
2020-06-27 07:29:35 +00:00
|
|
|
https://linux.dell.com/libsmbios/ for details.
|
2005-09-06 22:17:14 +00:00
|
|
|
|
2006-10-03 20:50:39 +00:00
|
|
|
Dell_RBU driver supports BIOS update using the monolithic image and packetized
|
|
|
|
image methods. In case of monolithic the driver allocates a contiguous chunk
|
2005-09-06 22:17:14 +00:00
|
|
|
of physical pages having the BIOS image. In case of packetized the app
|
|
|
|
using the driver breaks the image in to packets of fixed sizes and the driver
|
|
|
|
would place each packet in contiguous physical memory. The driver also
|
|
|
|
maintains a link list of packets for reading them back.
|
2017-05-17 17:25:05 +00:00
|
|
|
|
2005-09-06 22:17:14 +00:00
|
|
|
If the dell_rbu driver is unloaded all the allocated memory is freed.
|
|
|
|
|
2019-10-12 17:11:12 +00:00
|
|
|
The rbu driver needs to have an application (as mentioned above) which will
|
2005-09-17 02:28:04 +00:00
|
|
|
inform the BIOS to enable the update in the next system reboot.
|
2005-09-06 22:17:14 +00:00
|
|
|
|
|
|
|
The user should not unload the rbu driver after downloading the BIOS image
|
|
|
|
or updating.
|
|
|
|
|
2017-05-17 17:25:05 +00:00
|
|
|
The driver load creates the following directories under the /sys file system::
|
|
|
|
|
|
|
|
/sys/class/firmware/dell_rbu/loading
|
|
|
|
/sys/class/firmware/dell_rbu/data
|
|
|
|
/sys/devices/platform/dell_rbu/image_type
|
|
|
|
/sys/devices/platform/dell_rbu/data
|
|
|
|
/sys/devices/platform/dell_rbu/packet_size
|
2005-09-06 22:17:14 +00:00
|
|
|
|
|
|
|
The driver supports two types of update mechanism; monolithic and packetized.
|
|
|
|
These update mechanism depends upon the BIOS currently running on the system.
|
|
|
|
Most of the Dell systems support a monolithic update where the BIOS image is
|
|
|
|
copied to a single contiguous block of physical memory.
|
2017-05-17 17:25:05 +00:00
|
|
|
|
2006-10-03 20:46:31 +00:00
|
|
|
In case of packet mechanism the single memory can be broken in smaller chunks
|
2005-09-06 22:17:14 +00:00
|
|
|
of contiguous memory and the BIOS image is scattered in these packets.
|
|
|
|
|
|
|
|
By default the driver uses monolithic memory for the update type. This can be
|
2005-09-17 02:28:04 +00:00
|
|
|
changed to packets during the driver load time by specifying the load
|
2017-05-17 17:25:05 +00:00
|
|
|
parameter image_type=packet. This can also be changed later as below::
|
|
|
|
|
|
|
|
echo packet > /sys/devices/platform/dell_rbu/image_type
|
2005-10-11 15:29:02 +00:00
|
|
|
|
|
|
|
In packet update mode the packet size has to be given before any packets can
|
2017-05-17 17:25:05 +00:00
|
|
|
be downloaded. It is done as below::
|
|
|
|
|
|
|
|
echo XXXX > /sys/devices/platform/dell_rbu/packet_size
|
|
|
|
|
2006-10-03 20:52:05 +00:00
|
|
|
In the packet update mechanism, the user needs to create a new file having
|
2019-10-12 17:11:12 +00:00
|
|
|
packets of data arranged back to back. It can be done as follows:
|
2005-10-11 15:29:02 +00:00
|
|
|
The user creates packets header, gets the chunk of the BIOS image and
|
2006-10-03 20:49:15 +00:00
|
|
|
places it next to the packetheader; now, the packetheader + BIOS image chunk
|
|
|
|
added together should match the specified packet_size. This makes one
|
2005-10-11 15:29:02 +00:00
|
|
|
packet, the user needs to create more such packets out of the entire BIOS
|
|
|
|
image file and then arrange all these packets back to back in to one single
|
|
|
|
file.
|
2017-05-17 17:25:05 +00:00
|
|
|
|
2005-10-11 15:29:02 +00:00
|
|
|
This file is then copied to /sys/class/firmware/dell_rbu/data.
|
|
|
|
Once this file gets to the driver, the driver extracts packet_size data from
|
2011-03-31 01:57:33 +00:00
|
|
|
the file and spreads it across the physical memory in contiguous packet_sized
|
2005-10-11 15:29:02 +00:00
|
|
|
space.
|
2017-05-17 17:25:05 +00:00
|
|
|
|
2005-10-11 15:29:02 +00:00
|
|
|
This method makes sure that all the packets get to the driver in a single operation.
|
|
|
|
|
|
|
|
In monolithic update the user simply get the BIOS image (.hdr file) and copies
|
|
|
|
to the data file as is without any change to the BIOS image itself.
|
2005-09-06 22:17:14 +00:00
|
|
|
|
|
|
|
Do the steps below to download the BIOS image.
|
2017-05-17 17:25:05 +00:00
|
|
|
|
2005-09-06 22:17:14 +00:00
|
|
|
1) echo 1 > /sys/class/firmware/dell_rbu/loading
|
|
|
|
2) cp bios_image.hdr /sys/class/firmware/dell_rbu/data
|
|
|
|
3) echo 0 > /sys/class/firmware/dell_rbu/loading
|
|
|
|
|
|
|
|
The /sys/class/firmware/dell_rbu/ entries will remain till the following is
|
|
|
|
done.
|
2017-05-17 17:25:05 +00:00
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
echo -1 > /sys/class/firmware/dell_rbu/loading
|
|
|
|
|
2005-10-11 15:29:02 +00:00
|
|
|
Until this step is completed the driver cannot be unloaded.
|
2017-05-17 17:25:05 +00:00
|
|
|
|
2009-06-04 12:12:29 +00:00
|
|
|
Also echoing either mono, packet or init in to image_type will free up the
|
2005-10-11 15:29:02 +00:00
|
|
|
memory allocated by the driver.
|
|
|
|
|
2008-12-29 21:14:56 +00:00
|
|
|
If a user by accident executes steps 1 and 3 above without executing step 2;
|
|
|
|
it will make the /sys/class/firmware/dell_rbu/ entries disappear.
|
2017-05-17 17:25:05 +00:00
|
|
|
|
|
|
|
The entries can be recreated by doing the following::
|
|
|
|
|
|
|
|
echo init > /sys/devices/platform/dell_rbu/image_type
|
|
|
|
|
2019-10-12 17:11:12 +00:00
|
|
|
.. note:: echoing init in image_type does not change its original value.
|
2005-09-06 22:17:14 +00:00
|
|
|
|
|
|
|
Also the driver provides /sys/devices/platform/dell_rbu/data readonly file to
|
2005-10-11 15:29:02 +00:00
|
|
|
read back the image downloaded.
|
2005-09-06 22:17:14 +00:00
|
|
|
|
2017-05-17 17:25:05 +00:00
|
|
|
.. note::
|
|
|
|
|
2018-05-10 20:08:49 +00:00
|
|
|
After updating the BIOS image a user mode application needs to execute
|
2017-05-17 17:25:05 +00:00
|
|
|
code which sends the BIOS update request to the BIOS. So on the next reboot
|
|
|
|
the BIOS knows about the new image downloaded and it updates itself.
|
|
|
|
Also don't unload the rbu driver if the image has to be updated.
|
2005-09-06 22:17:14 +00:00
|
|
|
|