# Jetson Nano secureboot

**URL:** <https://forums.developer.nvidia.com/t/jetson-nano-secureboot/120665>\
**Category:** Jetson Nano\
**Tags:** security\
**Created:** [April 22, 2020, 2:37pm UTC](https://forums.developer.nvidia.com/t/jetson-nano-secureboot/120665 "2020-04-22T14:37:05Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![broothy](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/broothy/32/16654_2.png) [@broothy](https://forums.developer.nvidia.com/u/broothy)\
**Post date:** [April 22, 2020, 2:37pm UTC](https://forums.developer.nvidia.com/t/jetson-nano-secureboot/120665/1 "2020-04-22T14:37:05Z")

</div>

Hi,

I would like to use secureboot on Jetson Nano L4T 32.3.1.

I generated the RSA key pair with  
`$ openssl genrsa -out nano_priv.pem 2048`

Then I tried to burn the fuses:  
`sudo ./odmfuse.sh -i 0x21 -c PKC -k ../nano_priv.pem`

When I restarted the device I checked the fuses with sudo ./tegrafuse.sh (on the device):

```
arm_jtag_disable : 0x00000000
odm_lock : 0x00000000
odm_production_mode : 0x00000000
pkc_disable : 0x00000001
sec_boot_dev_cfg : 0x00000000
sec_boot_dev_sel : 0x00000000

```

As I see PKC is still disabled. What did I do wrong?

If I skip the device restart and try to flash the device right after burning the fuses I get the following error message:  
`sudo ./flash.sh -x 0x21 -y PKC -u ../nano_priv.pem jetson-nano-qspi-sd mmcblk0p1`

```
#########
# L4T BSP Information:# R32 , REVISION: 3.1
#########
Error: probing the target board failed.
Make sure the target board is connected through
USB port and is in recovery mode.

```

If I reset the device in recovery mode between burning the fuses and flashing the device I get the following error message:

```
#########
# L4T BSP Information:# R32 , REVISION: 3.1
#########
# Target Board Information:
# Name: jetson-nano-qspi-sd, Board Family: t210ref, SoC: Tegra 210, 
# OpMode: production, Boot Authentication: , 
#########
Error: The RSA key file is provided for non-PKC protected target board.

```

Could you help please what should I try?

Kind regards,  
Adam

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [April 23, 2020, 12:13am UTC](https://forums.developer.nvidia.com/t/jetson-nano-secureboot/120665/3 "2020-04-23T00:13:56Z")

</div>

Hi,  
Without _-p_ option, pkc\_disable fuse is programmed to 0x1 and the module is in NS mode. Please check

> [@What is the correct value of pkc\_disable for PKC?](https://forums.developer.nvidia.com/t/what-is-the-correct-value-of-pkc-disable-for-pkc/118476/6):
>
> Hi, We have clarified it and here is the correct value: | 1| pkc\_disable | PKC - 0x0, NS - 0x1 | For enabling secureboot, please burn all fuses with -p in one step. Such as: $ sudo ./odmfuse.sh -i 0x21 -c PKC -p -k …/emi\_pkc.pem -o 0x0000000000000000000000000000000000000000000000000000000100000000

In production line, please program all fuses in single command.

---

<div class="post-metadata">

**Author:** ![broothy](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/broothy/32/16654_2.png) [@broothy](https://forums.developer.nvidia.com/u/broothy)\
**Post date:** [April 23, 2020, 5:46am UTC](https://forums.developer.nvidia.com/t/jetson-nano-secureboot/120665/4 "2020-04-23T05:46:47Z")

</div>

Dear @DaneLLL,

I put the -p switch so my single command was (I did not deal with odm\_reserved because it remains programmable after the production bit is set):

```
sudo ./odmfuse.sh -i 0x21 -c PKC -k ../nano_priv.pem -p

```

It ran without error, the output was:

```
*** The fuse configuration is saved in bootloader/odmfuse_pkc.xml
*** The ODM fuse has been secured with PKC keys.
*** Flash "signed BCT and bootloader(s)".
*** done.

```

Then I restarted the device to check if it was going to refuse to boot (because I haven’t uploaded a signed image at that time so it contained an unsigned one), but it started without error. Then I ran sudo ./tegrafuse.sh (on the device) and I got the followings:

```
arm_jtag_disable : 0x00000000
odm_lock : 0x00000000
odm_production_mode : 0x00000001
pkc_disable : 0x00000001
sec_boot_dev_cfg : 0x00000000
sec_boot_dev_sel : 0x00000000

```

It is really sad because (as far as I know) I can not change the pkc\_disable fuse anymore. Could you help me what happened? I explicitly told odmfuse to use PKC (-c PKC) and provided the key (-k …/nano\_priv.pem), pkc\_disable should be 0x0. What did I do wrong?

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [April 23, 2020, 6:25am UTC](https://forums.developer.nvidia.com/t/jetson-nano-secureboot/120665/5 "2020-04-23T06:25:06Z")

</div>

Hi,  
The fuse bit is irreversible. The following is from _README\_secureboot.txt_:

```auto
Tegra devices contain multiple fuses that control different items for
security and boot. Programming a fuse, such as changing a value of a
fuse bit from 0 to 1, is non-reversible. Once a fuse bit is programmed
by setting to 1, you cannot change the fuse value from 1 to 0.
For example, a value of 1(0x01) can be changed to 3(0x03) or 5(0x5),
but not to 4(0x4) because the bit 0 is already programmed to 1.

```

You have to use another Nano production module.

---

<div class="post-metadata">

**Author:** ![broothy](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/broothy/32/16654_2.png) [@broothy](https://forums.developer.nvidia.com/u/broothy)\
**Post date:** [April 23, 2020, 6:36am UTC](https://forums.developer.nvidia.com/t/jetson-nano-secureboot/120665/6 "2020-04-23T06:36:53Z")

</div>

Dear @DaneLLL

Yes, I know that it is irreversible, but could you tell me what was my mistake? If I try the same command on a different board the outcome will be the same.

Before I ran the command odm\_production\_mode was 0x0 (the dev board was right out of the box).  
Then I ran the command (with the production flag):

```
sudo ./odmfuse.sh -i 0x21 -c PKC -k ../nano_priv.pem -p

```

Could you help please if this is the right command to put the module in production mode, enable PKC and specify the PKC key?

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [April 23, 2020, 7:13am UTC](https://forums.developer.nvidia.com/t/jetson-nano-secureboot/120665/7 "2020-04-23T07:13:24Z")

</div>

Hi,  
The command looks fine but I would need to confirm with teams. Please attach _bootloader/odmfuse\_pkc.xml_ for reference.

---

<div class="post-metadata">

**Author:** ![broothy](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/broothy/32/16654_2.png) [@broothy](https://forums.developer.nvidia.com/u/broothy)\
**Post date:** [April 23, 2020, 10:28am UTC](https://forums.developer.nvidia.com/t/jetson-nano-secureboot/120665/8 "2020-04-23T10:28:30Z")

</div>

Dear @DaneLLL,

Thank you for your answer, the content of _bootloader/odmfuse\_pkc.xml_:

```
<genericfuse MagicId="0x46555345" version="1.0.0">
<fuse name="JtagDisable" size="4" value="0x1" />
<fuse name="PublicKeyHash" size="32" value="0xd64e......." />
<fuse name="SecurityMode" size="4" value="0x1" />
</genericfuse>

```

Thank you: Adam

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [April 24, 2020, 12:05am UTC](https://forums.developer.nvidia.com/t/jetson-nano-secureboot/120665/9 "2020-04-24T00:05:39Z")

</div>

Hi,  
Would like to confirm the status.  
So you have two clean Nanos(not fused yet), One is fused with

```auto
sudo ./odmfuse.sh -i 0x21 -c PKC -k ../nano_priv.pem

```

The other is fused with

```auto
sudo ./odmfuse.sh -i 0x21 -c PKC -k ../nano_priv.pem -p

```

By executing _sudo ./tegrafuse.sh_, you can see _pkc\_disable =0x1_ on the two Nanos.

Please confirm above description is correct. Thanks.

---

<div class="post-metadata">

**Author:** ![broothy](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/broothy/32/16654_2.png) [@broothy](https://forums.developer.nvidia.com/u/broothy)\
**Post date:** [April 24, 2020, 5:35am UTC](https://forums.developer.nvidia.com/t/jetson-nano-secureboot/120665/10 "2020-04-24T05:35:16Z")

</div>

I had two clean Nanos (Dev kit A02 version). One the first I tried lots of odmfuse commands but did not set the production flag.

On the second board my first command was (right out of the box)

```
sudo ./odmfuse.sh -i 0x21 -c PKC -k ../nano_priv.pem

```

then after a reboot my second command was:

```
sudo ./odmfuse.sh -i 0x21 -c PKC -k ../nano_priv.pem -p

```

Executing `sudo ./tegrafuse.sh` shows that `pkc_disable : 0x00000001` on both devices, `odm_production_mode : 0x00000001` on the second device.

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [April 24, 2020, 5:58am UTC](https://forums.developer.nvidia.com/t/jetson-nano-secureboot/120665/11 "2020-04-24T05:58:41Z")

</div>

Hi,  
So you execute the two commands on the second board:

```auto
sudo ./odmfuse.sh -i 0x21 -c PKC -k ../nano_priv.pem
sudo ./odmfuse.sh -i 0x21 -c PKC -k ../nano_priv.pem -p

```

In the first command, _pkc\_disable_ is programmed to 0x1 already. It cannot be reverted by the second command.

And we only support the process on production module(jetson-nano-emmc). If you have production module, please programm all fuses in single step like:

```auto
sudo ./odmfuse.sh -i 0x21 -c PKC -p -k ../nano_priv.pem

```

---

<div class="post-metadata">

**Author:** ![todorcolovmobile](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@todorcolovmobile](https://forums.developer.nvidia.com/u/todorcolovmobile)\
**Post date:** [February 20, 2021, 9:27am UTC](https://forums.developer.nvidia.com/t/jetson-nano-secureboot/120665/13 "2021-02-20T09:27:41Z")

</div>

It is pitty to hear lack of SB support for the rest of Jetson Nano boards!

- What is the difference between jetson-nano-emmc and the rest of the nano variants?  
Is the CPU not the same? → Same fuses, same functionalities?

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [February 22, 2021, 4:17am UTC](https://forums.developer.nvidia.com/t/jetson-nano-secureboot/120665/14 "2021-02-22T04:17:12Z")

</div>

Hi,  
Please check information in module data sheet:  
[https://developer.nvidia.com/embedded/dlc/jetson-nano-system-module-datasheet](https://developer.nvidia.com/embedded/dlc/jetson-nano-system-module-datasheet)

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 15, 2021, 5:02am UTC](https://forums.developer.nvidia.com/t/jetson-nano-secureboot/120665/15 "2021-10-15T05:02:23Z")

</div>

Closed on October 15, 2021, 5:02am UTC


