2018年7月25日水曜日

「アレクサ」と「トヨタ」「レクサス」

AmazonのスマートスピーカーであるEcho/Echo Dotは、利用する前に「アレクサ」と呼びかけ、その後に聞きたいこと、たとえば「今日の天気は?」と訊きます。「アレクサ」と呼びかけない限り、Echo/Echo Dotは反応しないようになっています。

ある日、「アレクサ」と呼びかけていないのにEcho/Echo Dotが「そのことはわかりません」と返事をすることがありました。その前に何を話したか思い出してみると、
トヨタ レクサス
と言っていたような気がします。そこで、
トヨタ レクサス どこにいるの?
と話してみると、Echo/Echo Dotが置かれている位置を答えてくれました。どうも、トヨタの最後の「タ」の母音部分の「ア」と、「レクサス 」の「レクサ」に反応しているようです。確かに間違えそうですが、確かに間違えてしまうのですね。

2018年7月21日土曜日

Update the BIOS of SuperServer SYS-1018R-WC0R(X10SRW-F)

I now configure SuperMicro SYS-1018R-WC0R(X10SRW-F)
SuperServer 1018R-WC0R
https://www.supermicro.com/products/system/1u/1018/sys-1018r-wc0r.cfm
as a sever for my depertment. SuperMicro series are better than HPE series for me, because of following reasons:
  • SuperMicro provide many configurations.
  • SuperMicro provides all trays for HDDs
    (In case of HPE, we should buy HDD and its tray, can not buy only a tray of HDD)
  • In case of SuperMicro, I can easily update BIOS
    (In case of HPE, HPE require HPE account and HPE maintenance contract)
  • In case of SuperMicro, remote KVM feature is included with a standard package
    (In case of HPE, remote KMV is option)
Update procedure of 1018R-WC0R is following.

At first, I dowloaded the BIOS from supermicor's WWW site and I checked its release note.
Release Note:     X10SRW-F_BIOS_3_1_release_notes.pdf
https://www.supermicro.com/support/resources/getfile.php?SoftwareItemID=5532&&type=releasenote
This release note says:
Enhancements
1. Updated CPU microcode to address ‘Spectre’ derivatives (CVE-2018-3639 & CVE-2018-3640) security issue.
2. Changed BIOS version to 3.1.
3. Added support for IPMI IPV6.
4. Removed unsupported memory frequency options from setup menu.
5. Updated Broadwell-EP RC 4.4.0 release.
I also checked the BIOS updating procedure,"Readme for UP X10 AMI BIOS.txt" that are included in the BIOS update package:
================================================
Standard BIOS Update Procedure
================================================
1. Save this BIOS update package to your computer.
2. extract the files from the BIOS package to a DOS bootable device (such as a bootable USB stick, or CD).
3. Boot to a DOS prompt and type FLASH.BAT BIOSname.### to start the BIOS update.
4. The FLASH.BAT script will compare Flash Descriptor Table (FDT) code in the new BIOS with the existing one in the motherboard:
   a. If a different FDT is found, a new file, AUTOEXEC.BAT, will be created, and the system reboot will start in 10 seconds if no key is pressed.  Press "Y" to go into system reboot right away.  Continue BIOS upgrade with FDT programmed in next booting and schedules to reset system with 10-sec timeout message prompted. User can press <Y> for immediate reboot.  After the reboot, the BIOS update will be continued.
   b. If the FDT is the same, the BIOS update will be started right away.  No reboot will be needed.
5. Do not interrupt the process until the flashing is complete.
6. After the message indicating BIOS update has completed, do the A/C power cycle.
7. Go to the BIOS configuration, and restore the BIOS setting.
They requre a DOS bootable USB memory, so I used Rufus:
Rufus
https://rufus.akeo.ie/
After booting from the USB memory, I submitted the dos command as following:
C:\>flash.bat X10SRW8.606(←BIOS file)

Supermicro SYS-1018R-WC0R(X10SRW-F)のBIOSを更新する

サーバーとしてSupermicro SYS-1018R-WC0R(X10SRW-F)
SuperServer 1018R-WC0R
https://www.supermicro.com/products/system/1u/1018/sys-1018r-wc0r.cfm
を設定しています。これは、HPEなどのものと比べて
  • ラインナップが豊富なこと
  • HDDのトレイが標準ですべてのベイの分が付属している
    (HPEの場合は、HDDとセットでないと買えないものが増えています)
  • BIOSのアップデートも比較的容易
    (HPEの場合はHPEのアカウントが必要だったり、なおかつ製品の保守期間内である必要があるものも多い)
  • IPMIからのBIOS画面のアクセスはHTML5準拠ツールで可能
    (HPEの場合は、オプションでなおかつJavaもしくはWindowsクライアントが必要)
といったことから、最近は、Supermicroのものを使っています。

この1018R-WC0RのBIOSの更新をしたので、その手順を以下に示します。

まずBIOSをsupermicroのWWWページから入手します。BIOSは、上のWWWページのBIOSというリンクの先にあります。
なにが起きても知らへんで
In no event shall Supermicro be liable for direct, indirect, special, incidental,or consequential damages arising from a BIOS/firmware update. 
とあるので、
Release Note:     X10SRW-F_BIOS_3_1_release_notes.pdf
https://www.supermicro.com/support/resources/getfile.php?SoftwareItemID=5532&&type=releasenote
を読んでみます。すると、Spectreに対応したもの:
Enhancements
1. Updated CPU microcode to address ‘Spectre’ derivatives (CVE-2018-3639 & CVE-2018-3640) security issue.
2. Changed BIOS version to 3.1.
3. Added support for IPMI IPV6.
4. Removed unsupported memory frequency options from setup menu.
5. Updated Broadwell-EP RC 4.4.0 release.
があり、アップデートをしたほうがよいように思えます。

そこでBIOSをダウンロードし、アップデート方法(Readme for UP X10 AMI BIOS.txtを読んでみます。
================================================
Standard BIOS Update Procedure
================================================
1. Save this BIOS update package to your computer.
2. extract the files from the BIOS package to a DOS bootable device (such as a bootable USB stick, or CD).
3. Boot to a DOS prompt and type FLASH.BAT BIOSname.### to start the BIOS update.
4. The FLASH.BAT script will compare Flash Descriptor Table (FDT) code in the new BIOS with the existing one in the motherboard:
   a. If a different FDT is found, a new file, AUTOEXEC.BAT, will be created, and the system reboot will start in 10 seconds if no key is pressed.  Press "Y" to go into system reboot right away.  Continue BIOS upgrade with FDT programmed in next booting and schedules to reset system with 10-sec timeout message prompted. User can press <Y> for immediate reboot.  After the reboot, the BIOS update will be continued.
   b. If the FDT is the same, the BIOS update will be started right away.  No reboot will be needed.
5. Do not interrupt the process until the flashing is complete.
6. After the message indicating BIOS update has completed, do the A/C power cycle.
7. Go to the BIOS configuration, and restore the BIOS setting.
なんと、DOSで起動する必要があるようです。そこで、
Rufus
https://rufus.akeo.ie/
を使い、boot可能なUSBメモリを作り、そこへ、ダウンロードしたBIOSを入れます。そして、このUSBメモリで起動し(起動はUEFIではなくLegacyモードにしておく必要があります)、
C:\>flash.bat X10SRW8.606(←BIOSのファイル名)
とします。FDT(Flattened Device Tree)が違っていたら再起動後にアップデート、そうでなければすぐにアップデートが始まります。
FDTは以下のWWWページで少し説明されています。
What is all of this OF, FDT, UEFI and ACPI about?
https://www.embedded.com/electronics-blogs/virtual-prototyping-tales/4429788/What-is-all-of-this-OF--FDT--UEFI-and-ACPI-about-