Skip to contentSkip to conversation

add Dell Systems Management Base Driver (dcdbas) with sysfs support

RFC PATCH Michael E Brown 2 participants 3 messages Aug 16, 2005

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines · Doug Warzecha
Quoted 4 lines
Quoted 3 lines

If this is supposed to be used with the RBU code to trigger a BIOS update, ...

Quoted 8 lines
Quoted 1 line

This driver is not needed by the RBU code.

Documentation/dell_rbu.txt says:

Quoted 2 lines

The rbu driver needs to have an application which will inform the BIOS to enable the update in the next system reboot.

Can the dcdbas code be used to implement that application?

No, dcdbas has nothing to do with this. I'll have to submit a patch against the docs. The program you need to use already exists and is open source. You can use libsmbios to do this.
http://linux.dell.com/libsmbios/main.

The binary you want to use is "activateCmosToken", under bins/output/ (after compilation). The command line syntax is like this:

	activateCmosToken 0x005C

If you want to cancel a BIOS update that has already been activated (per above), use:

	activateCmosToken 0x005D

Basically, follow the docs in the RBU docs as far as cat-ing the bios update image to the rbu sysfs files, then use the activateCmosToken program to tell BIOS to do the update on reboot.

Signature · 1 line
Michael
#1 lore raw
Quoted 4 lines · you

No, dcdbas has nothing to do with this. I'll have to submit a patch against the docs. The program you need to use already exists and is open source. You can use libsmbios to do this.
http://linux.dell.com/libsmbios/main.

Now I'm confoozled. Maybe - I suspect we're actually in violent agreement...

Quoted 7 lines · On Mon, 15 Aug 2005 17:58:56 CDT, [email protected] said:

Additionally, we are releasing an open source library (GPL/OSL dual
license) that can use these hooks to perform many systems management functions in userspace. See http://linux.dell.com/libsmbios/main/. We should have code in libsmbios to do SMI using this driver within about two weeks. We currently writing the SMI hooks in libsmbios using this posted version of the driver. I am the maintainer of this project, and it is my goal to have code in libsmbios for every Dell SMI call.

So dcdbas *is* intended as the kernel end of the userspace libsmbios, which is the suggested way of getting that BIOS updated. OK, I got it now.. ;)

(continuing on)

Quoted 11 lines

The binary you want to use is "activateCmosToken", under bins/output/ (after compilation). The command line syntax is like this:

	activateCmosToken 0x005C

If you want to cancel a BIOS update that has already been activated (per above), use:

	activateCmosToken 0x005D

Basically, follow the docs in the RBU docs as far as cat-ing the bios update image to the rbu sysfs files, then use the activateCmosToken program to tell BIOS to do the update on reboot.

Ahh... the missing piece I didn't have before. :)

#2 lore raw
Quoted 8 lines · On Tue, 2005-08-16 at 01:17 -0400, [email protected] wrote:
Quoted 4 lines · you

No, dcdbas has nothing to do with this. I'll have to submit a patch against the docs. The program you need to use already exists and is open source. You can use libsmbios to do this.
http://linux.dell.com/libsmbios/main.

Now I'm confoozled. Maybe - I suspect we're actually in violent agreement...

nope... :-)

Quoted 10 lines · On Mon, 15 Aug 2005 17:58:56 CDT, [email protected] said:
Quoted 7 lines

Additionally, we are releasing an open source library (GPL/OSL dual
license) that can use these hooks to perform many systems management functions in userspace. See http://linux.dell.com/libsmbios/main/. We should have code in libsmbios to do SMI using this driver within about two weeks. We currently writing the SMI hooks in libsmbios using this posted version of the driver. I am the maintainer of this project, and it is my goal to have code in libsmbios for every Dell SMI call.

Quoted 2 lines

So dcdbas *is* intended as the kernel end of the userspace libsmbios, which is the suggested way of getting that BIOS updated. OK, I got it now.. ;)

not quite... :-)

Basically, for the exact case of RBU, libsmbios _today_ has what is necessary to support this, without using dcdbas.

Today, libsmbios can set certain CMOS bits. _Some_ of the BIOS F2 screen options are represented in CMOS as bits. Also, other features are made available through CMOS that are not available through F2, and all of these bits (F2 bits and other bits) can be manipulated by libsmbios. It just so happens that RBU is implemented using a CMOS bit (represented by token 0x005C and 0x005D).

The addition of 'dcdbas' driver enables _extra_, _additional_ functionality that libsmbios does not today have. The rest of the BIOS F2 screen options that are not in CMOS are available through SMI. Also, lots of other interesting stuff that is not related to BIOS F2 screens is available through SMI.

To give an example: the Asset tag can be set through CMOS and SMI. Today, libsmbios can only set asset tag through CMOS. With the addition of dcdbas, libsmbios can use the SMI method to update asset tag.

SMI is a more reliable way to set asset tag, as it is dynamic and system flash is updated right away. Future systems may drop CMOS method completely as we start to run out of room in CMOS (there are only 256 _bytes_ available in CMOS, remember.)

Basically, I am positioning libsmbios as an open-source way to take advantage of all of the features of a Dell system that are available through the system smbios/dmi table (similar to dmidecode), system cmos, or through SMI calls.

Quoted 11 lines

(continuing on)

Quoted 8 lines

The binary you want to use is "activateCmosToken", under bins/output/ (after compilation). The command line syntax is like this:

	activateCmosToken 0x005C

If you want to cancel a BIOS update that has already been activated (per above), use:

	activateCmosToken 0x005D
Quoted 5 lines
Quoted 3 lines

Basically, follow the docs in the RBU docs as far as cat-ing the bios update image to the rbu sysfs files, then use the activateCmosToken program to tell BIOS to do the update on reboot.

Ahh... the missing piece I didn't have before. :)

I provided this info to Abhay when he posted RBU, and I thought he had already updated the rbu docs with this info. I suppose I should have checked. :-(

--
Michael