Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

Hector NevarezH

Hector Nevarez

@Hector Nevarez
ModalAI Team
Unfollow Follow
About
Posts
3
Topics
0
Shares
0
Groups
2
Followers
0
Following
0

Posts

Recent Best Controversial

  • VOXL 2 (M0054-1) secure boot: signing inputs, OEM ID and signed firehose
    Hector NevarezH Hector Nevarez

    Hi Ilan,

    Secure boot isn't something we've validated on VOXL 2 ourselves. To answer your questions, we did a one-off test: we re-signed the images from our flatbuild with a throwaway test key and checked that SecTools could sign and validate them. We haven't flashed re-signed images, booted them, or fused a board. Please treat the below as what we believe the path is, not a tested procedure.

    One caution before you blow any fuses: QFPROM fuses are one-time and can't be undone. A wrong key hash, OEM ID or Model ID, or any image in the boot chain signed with the wrong key, could permanently brick the board. We'd recommend flashing your signed images on an unfused board first and making sure everything boots and runs, then fusing a board for real.

    1. Unsigned boot images for the current VOXL 2 system image (XBL, TZ, devcfg, AOP, DSP and modem firmware, ABL), or a build path that produces them.

    You'll need to go to downloads.modalai.com to get the flatbuild for M0054-1. It's under downloads/Flat Builds/M0054(154)-1.zip. It has the boot images (XBL, TZ, devcfg, AOP, ABL), the DSP firmware (inside NON-HLOS.bin), and the firehose programmer.

    These images aren't unsigned. They're signed with Qualcomm's default SecTools test key, with OEM ID and Model ID set to 0x0000. We believe you can re-sign them with your own key rather than starting from unsigned images. In our test, SecTools replaced only the signature and the code stayed the same. A few images (TZ, QUP firmware, and part of XBL) also carry a Qualcomm production signature, and SecTools kept it when we re-signed.

    1. The OEM ID and Model ID used on VOXL 2, and any sec.dat or fuse settings you use or recommend.

    We don't sign the images with our own key. The flatbuild carries Qualcomm's default test signature with OEM ID and Model ID at 0x0000. We don't ship a sec.dat and don't blow any secure boot fuses, so we don't believe there's anything from our side you'd need to match. Whatever OEM ID and Model ID you choose should match between your fuse settings and the images you sign.

    1. A firehose programmer we can sign with our key, so fused units can still be flashed over EDL. Does the VOXL 2 flash flow (QDL, fastboot) work with a signed firehose?

    The firehose programmer is in the flatbuild as ufs/prog_firehose_ddr.elf, and we were able to re-sign it the same way as the other images. We haven't tested our flash flow on a fused board, so we can't say yet whether QDL or fastboot work there. Make sure you have a working signed firehose before you fuse, since that's likely your only way to recover a board over EDL.

    1. Are any QFPROM fuses blown on shipped units?

    No, we don't blow QFPROM fuses on shipped units.

    1. Does the current system image use ICE inline encryption (FBE) for /data? If yes, where are the keys held (TEE, RPMB)?

    No. /data isn't encrypted; it's a plain ext4 partition. The kernel has inline encryption support built in, but our image doesn't set it up, so there's no key storage to describe on our side.

    1. Does ABL support verified boot (AVB) for the kernel and root filesystem?

    Not at the moment. ABL has support for verified boot and dm-verity, but both are turned off in our build. The boot image has no AVB footer and the vbmeta partitions are empty, so ABL boots the kernel without checking it.

    Turning it on would mean rebuilding ABL with verified boot enabled and signing the boot image with your key. dm-verity also needs a read-only root filesystem, and VOXL 2's rootfs is read-write today, so that part would be a bigger change.

    1. Any known issues or guidance for secure boot on VOXL 2.

    The main one we expect is that PX4 on the DSP will likely stop working. VOXL 2 generates a per-device test signature at first boot so PX4 and our sensor code can run on the sensors DSP (SLPI). We don't expect test signatures to be accepted on a fused board, so those DSP libraries would need production signing before PX4 will load. Depending on the method, that may need a rebuilt SLPI firmware from our side, so please let us know before you fuse if you need PX4 running.

    Let me know if you have additional questions thanks!

    VOXL 2 and VOXL 2 Mini

  • Bots Unlimited Wifi Crash
    Hector NevarezH Hector Nevarez

    Hi John,

    I can help take a look at this issue. I'll first need to try and reproduce this issue, so give me a bit here to try and do so.

    Also just for my understanding can you send the output of voxl-wifi getmode so I can which wifi mode the device was configured in.

    General Questions

  • Request for How to use SPI (J10 port) in SDK 1.45-VOXL2-mini
    Hector NevarezH Hector Nevarez

    Hi Kim,

    There are a couple changes required here that will make this work:

    1. Rebuilding Kernel with SPI14 enabled
    You're going to have to rebuild and flash the kernel with QUP14 enabled as SPI. There is also a directional level shifter on GPIO67 that needs to be set to high in order for SPI on QUP 14 to work. I created this branch for you that should have the kernel changes that you need:

    • feature/voxl2-mini-spi-qup14 (link)

    In order to actually build and flash the kernel please follow the instructions from our public docs on how to build the kernel

    • https://docs.modalai.com/voxl2-kernel-build-guide/

    When building the kernel, after syncing but before building, make sure to go to the cloned meta-voxl2-bsp directory and checkout the branch that I created (feature/voxl2-mini-spi-qup14).

    Also there is a chance you may need to build a kernel variant depending on your device so also make sure to check this document to see if you have a -2 device which would require building the kernel with the -v var02 flag

    • https://docs.modalai.com/m0054-versions/#m0054-1-and-m0054-2

    2. Configuring Trustzone with Correct QUP
    I would recommend using the devcfg binary that comes from the `voxl2-mini_SDK_1.0.0.tar.gz. In order to flash devcfg you'll want to run the following command

    fastboot flash devcfg <path/to/voxl2-mini_SDK_1.0.0/devcfg>/devcfg.mbn
    

    You should flash the kernel and devcfg (Trustzone) during the same fastboot session to avoid running into any issues with the device booting.

    Let me know if you have any additional questions or run into any issues!

    VOXL SDK and Software voxl-sdk
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups