On 2020-12-23 10:17, Rafał Wojdyła wrote:
> Alright, after mounting the image and updating the kernel hash
> everything seems to work as expected.
>
> Merry Christmas! :)
>
Well, turns out it's not all good when I enabled secure boot ;)
From the debian host where I have the secure boot keys:
xxd -ps -c 32 $HAB_KEYS/SRK_1_2_3_4_fuse.bin
74554e436cb0eab1d5f8be638f035df4774bc50516cb181632edc731448da84c
Commands on armory that were used to fuse the keys and enable secure boot:
sudo -E go/bin/crucible -m IMX6UL -r 1 -b 16 -e little blow SRK_HASH
74554e436cb0eab1d5f8be638f035df4774bc50516cb181632edc731448da84c
sudo -E go/bin/crucible -m IMX6UL -r 1 -b 2 -e big blow SRK_LOCK 1
sudo -E go/bin/crucible -m IMX6UL -r 1 -b 2 -e big blow SEC_CONFIG 0b11
sudo -E go/bin/crucible -m IMX6UL -r 1 -b 2 -e big blow DIR_BT_DIS 1
sudo -E go/bin/crucible -m IMX6UL -r 1 -b 2 -e big blow SJC_DISABLE 1
sudo -E go/bin/crucible -m IMX6UL -r 1 -b 2 -e big blow JTAG_SMODE 0b11
sudo -E go/bin/crucible -m IMX6UL -r 1 -b 2 -e big blow JTAG_HEO 1
sudo -E go/bin/crucible -m IMX6UL -r 1 -b 2 -e big blow KTE 1
sudo -E go/bin/crucible -m IMX6UL -r 1 -b 2 -e big blow SDP_READ_DISABLE 1
sudo -E go/bin/crucible -m IMX6UL -r 1 -b 2 -e big blow
UART_SERIAL_DOWNLOAD_DISABLE 1
Now the armory won't boot, both LEDs are dimly lit.
I've tried to build signed armory-ums to check if that'll run, with no
results (HAB_KEYS is set):
make CROSS_COMPILE=arm-none-eabi- imx_signed
sudo dd if=armory-ums-signed.imx of=/dev/mmcblk0 bs=1M conv=fsync
Host with the armory plugged in shows just this in dmesg:
[ 2145.395358] xhci_hcd 0000:39:00.0: xHCI Host Controller
[ 2145.395364] xhci_hcd 0000:39:00.0: new USB bus registered, assigned
bus number 3
[ 2145.396499] xhci_hcd 0000:39:00.0: hcc params 0x200077c1 hci version
0x110 quirks 0x0000000200009810
[ 2145.396741] usb usb3: New USB device found, idVendor=1d6b,
idProduct=0002, bcdDevice= 5.04
[ 2145.396743] usb usb3: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 2145.396744] usb usb3: Product: xHCI Host Controller
[ 2145.396746] usb usb3: Manufacturer: Linux 5.4.0-58-generic xhci-hcd
[ 2145.396747] usb usb3: SerialNumber: 0000:39:00.0
[ 2145.396889] hub 3-0:1.0: USB hub found
[ 2145.396899] hub 3-0:1.0: 2 ports detected
[ 2145.397452] xhci_hcd 0000:39:00.0: xHCI Host Controller
[ 2145.397458] xhci_hcd 0000:39:00.0: new USB bus registered, assigned
bus number 4
[ 2145.397462] xhci_hcd 0000:39:00.0: Host supports USB 3.1 Enhanced
SuperSpeed
[ 2145.397518] usb usb4: New USB device found, idVendor=1d6b,
idProduct=0003, bcdDevice= 5.04
[ 2145.397519] usb usb4: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 2145.397521] usb usb4: Product: xHCI Host Controller
[ 2145.397522] usb usb4: Manufacturer: Linux 5.4.0-58-generic xhci-hcd
[ 2145.397524] usb usb4: SerialNumber: 0000:39:00.0
[ 2145.397660] hub 4-0:1.0: USB hub found
[ 2145.397673] hub 4-0:1.0: 2 ports detected