Blame view

Documentation/dell_rbu.txt 4.86 KB
6c54c28e6   Abhay Salunke   [PATCH] dell_rbu:...
1
2
3
4
5
6
  Purpose:
  Demonstrate the usage of the new open sourced rbu (Remote BIOS Update) driver
  for updating BIOS images on Dell servers and desktops.
  
  Scope:
  This document discusses the functionality of the rbu driver only.
3f6dee9b2   Matt LaPlante   Fix some typos in...
7
  It does not cover the support needed from applications to enable the BIOS to
6c54c28e6   Abhay Salunke   [PATCH] dell_rbu:...
8
9
10
11
12
13
14
15
  update itself with the image downloaded in to the memory.
  
  Overview:
  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).
  Please go to  http://support.dell.com register and you can find info on
  OpenManage and Dell Update packages (DUP).
e61c0e336   Abhay Salunke   [PATCH] dell_rbu:...
16
17
  Libsmbios can also be used to update BIOS on Dell systems go to
  http://linux.dell.com/libsmbios/ for details.
6c54c28e6   Abhay Salunke   [PATCH] dell_rbu:...
18

2fe0ae78c   Matt LaPlante   Fix typos in Docu...
19
20
  Dell_RBU driver supports BIOS update using the monolithic image and packetized
  image methods. In case of monolithic the driver allocates a contiguous chunk
6c54c28e6   Abhay Salunke   [PATCH] dell_rbu:...
21
22
23
24
25
  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.
  If the dell_rbu driver is unloaded all the allocated memory is freed.
e61c0e336   Abhay Salunke   [PATCH] dell_rbu:...
26
27
  The rbu driver needs to have an application (as mentioned above)which will
  inform the BIOS to enable the update in the next system reboot.
6c54c28e6   Abhay Salunke   [PATCH] dell_rbu:...
28
29
30
31
32
33
34
35
36
  
  The user should not unload the rbu driver after downloading the BIOS image
  or updating.
  
  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
ad6ce87e5   Abhay Salunke   [PATCH] dell_rbu:...
37
  /sys/devices/platform/dell_rbu/packet_size
6c54c28e6   Abhay Salunke   [PATCH] dell_rbu:...
38
39
40
41
42
  
  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.
6c28f2c0f   Matt LaPlante   Fix typos in Docu...
43
  In case of packet mechanism the single memory can be broken in smaller chunks
6c54c28e6   Abhay Salunke   [PATCH] dell_rbu:...
44
45
46
  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
e61c0e336   Abhay Salunke   [PATCH] dell_rbu:...
47
  changed to packets during the driver load time by specifying the load
6c54c28e6   Abhay Salunke   [PATCH] dell_rbu:...
48
49
  parameter image_type=packet.  This can also be changed later as below
  echo packet > /sys/devices/platform/dell_rbu/image_type
ad6ce87e5   Abhay Salunke   [PATCH] dell_rbu:...
50
51
52
53
  
  In packet update mode the packet size has to be given before any packets can
  be downloaded. It is done as below
  echo XXXX > /sys/devices/platform/dell_rbu/packet_size
992caacf1   Matt LaPlante   Fix typos in Docu...
54
  In the packet update mechanism, the user needs to create a new file having
ad6ce87e5   Abhay Salunke   [PATCH] dell_rbu:...
55
56
  packets of data arranged back to back. It can be done as follows
  The user creates packets header, gets the chunk of the BIOS image and
a2ffd2751   Matt LaPlante   Fix typos in Docu...
57
58
  places it next to the packetheader; now, the packetheader + BIOS image chunk
  added together should match the specified packet_size. This makes one
ad6ce87e5   Abhay Salunke   [PATCH] dell_rbu:...
59
60
61
62
63
  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.
  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
25985edce   Lucas De Marchi   Fix common misspe...
64
  the file and spreads it across the physical memory in contiguous packet_sized
ad6ce87e5   Abhay Salunke   [PATCH] dell_rbu:...
65
66
67
68
69
  space.
  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.
6c54c28e6   Abhay Salunke   [PATCH] dell_rbu:...
70
71
72
73
74
75
76
77
  
  Do the steps below to download the BIOS image.
  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.
1b68bfc18   Masanori Kobayasi   trivial: Document...
78
  echo -1 > /sys/class/firmware/dell_rbu/loading
ad6ce87e5   Abhay Salunke   [PATCH] dell_rbu:...
79
  Until this step is completed the driver cannot be unloaded.
1b68bfc18   Masanori Kobayasi   trivial: Document...
80
  Also echoing either mono, packet or init in to image_type will free up the
ad6ce87e5   Abhay Salunke   [PATCH] dell_rbu:...
81
  memory allocated by the driver.
0211a9c85   Frederik Schwarzer   trivial: fix an -...
82
83
  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.
e61c0e336   Abhay Salunke   [PATCH] dell_rbu:...
84
85
86
  The entries can be recreated by doing the following
  echo init > /sys/devices/platform/dell_rbu/image_type
  NOTE: echoing init in image_type does not change it original value.
6c54c28e6   Abhay Salunke   [PATCH] dell_rbu:...
87
88
  
  Also the driver provides /sys/devices/platform/dell_rbu/data readonly file to
ad6ce87e5   Abhay Salunke   [PATCH] dell_rbu:...
89
  read back the image downloaded.
6c54c28e6   Abhay Salunke   [PATCH] dell_rbu:...
90
91
  
  NOTE:
ad6ce87e5   Abhay Salunke   [PATCH] dell_rbu:...
92
93
  This driver requires a patch for firmware_class.c which has the modified
  request_firmware_nowait function.
992caacf1   Matt LaPlante   Fix typos in Docu...
94
95
96
97
  Also after updating the BIOS image a user mode application needs to execute
  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.
6c54c28e6   Abhay Salunke   [PATCH] dell_rbu:...
98