ClockworkPi uConsole: "uConsole Keyboard Firmware Flash Program" を適用してみた記録

ClockworkPi uConsole: "uConsole Keyboard Firmware Flash Program" を適用してみた記録
Page content

気になる更新

uConsoleのフォーラムの次のページで、「uConsole Keyboard Firmware Flash Program」というものが紹介されておりました。

内容としては This firmware update fixes a bug related to the fn key and changes the volume key logic. となっていたので、実際に、キーボード関連と思われるこのファームウェア更新を実施してみたのが今回のメモです。更新実行手順は、次の公式OS Imageページに記載のものを用いました。

Step-1. tar.gzの取得と展開, 必要なパッケージの導入

hoge@uconsole:~/tmp $ wget https://github.com/clockworkpi/uConsole/raw/master/Bin/uconsole_keyboard_flash.tar.gz

hoge@uconsole:~/tmp $ ls -al ./uconsole_keyboard_flash.tar.gz 
-rw-r--r-- 1 hoge hoge 38282 Aug  6 23:30 ./uconsole_keyboard_flash.tar.gz
hoge@uconsole:~/tmp $ md5sum ./uconsole_keyboard_flash.tar.gz 
efc898b7bbd78d48f8d8e850c8480cfb  ./uconsole_keyboard_flash.tar.gz

hoge@uconsole:~/tmp $ tar zxvf uconsole_keyboard_flash.tar.gz
uconsole_keyboard_flash/
uconsole_keyboard_flash/README.md
uconsole_keyboard_flash/Makefile.armhf
uconsole_keyboard_flash/upload-reset/
uconsole_keyboard_flash/upload-reset/upload-reset.c
uconsole_keyboard_flash/upload-reset/upload-reset.o
uconsole_keyboard_flash/flash.sh
uconsole_keyboard_flash/Makefile
uconsole_keyboard_flash/upload-reset.elf
uconsole_keyboard_flash/uconsole_keyboard.ino.bin
uconsole_keyboard_flash/Makefile.aarch64
uconsole_keyboard_flash/maple_upload
uconsole_keyboard_flash/Makefile.amd64
uconsole_keyboard_flash/deb_packages/
uconsole_keyboard_flash/deb_packages/armhf/
uconsole_keyboard_flash/deb_packages/armhf/upload-reset.elf
uconsole_keyboard_flash/deb_packages/aarch64/
uconsole_keyboard_flash/deb_packages/aarch64/upload-reset.elf
uconsole_keyboard_flash/deb_packages/aarch64/.gitkeep

hoge@uconsole:~/tmp $ sudo apt install -y dfu-util
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  dfu-util
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 34.5 kB of archives.
After this operation, 119 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 dfu-util arm64 0.9-1+b1 [34.5 kB]
Fetched 34.5 kB in 0s (223 kB/s)
Selecting previously unselected package dfu-util.
(Reading database ... 106073 files and directories currently installed.)
Preparing to unpack .../dfu-util_0.9-1+b1_arm64.deb ...
Unpacking dfu-util (0.9-1+b1) ...
Setting up dfu-util (0.9-1+b1) ...
Processing triggers for man-db (2.9.4-2) ...

Step-2. flashの実行

hoge@uconsole:~/tmp $ cd uconsole_keyboard_flash
hoge@uconsole:~/tmp/uconsole_keyboard_flash $ cat ./flash.sh 
#!/bin/bash

sudo  ./maple_upload ttyACM0 2 1EAF:0003  uconsole_keyboard.ino.bin

hoge@uconsole:~/tmp/uconsole_keyboard_flash $ sudo ./flash.sh
Failed to open serial device.
/usr/bin/dfu-util -d 1EAF:0003 -a 2 -D uconsole_keyboard.ino.bin -R
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 1eaf:0003
Run-time device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Setting #2 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 0110
Device returned transfer size 1024
Copying data from PC to DFU device
Download	[=========================] 100%        33912 bytes
Download done.
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime mode
Waiting for /dev/ttyACM0 serial...Done

hoge@uconsole:~/tmp/uconsole_keyboard_flash $ echo $?
0

Step-3. 動作確認

OSのデスクトップ画面において、今回のファームウェア更新後は、

  • スピーカーマークがあるVolumeキーを単体で押すと音量が5ずつ下がり (-5)
  • FnキーとVolumeキーを同時に押すと音量が5ずつ上がる (+5)

という動作をすることが確認できた。ファームウェア更新前がどうだったか、記録を取り忘れていたが、Volumeキーを押した時の音量がどこか解せない変化をしていたような気もします。