rt-net / JetsonNano_DT_SPI

SPI1 enabled DTS and flash-tools for Jetson Nano
GNU General Public License v2.0
28 stars 9 forks source link
jetson-nano

__Due to the release of the Jetson-IO which is the tool to simplify the configuration of the I/Os exposed by the 40‑pin expansion header, this tool is not maintained anymore. L4T release 32.3 is the initial release containing the Jetson-IO.__

JetsonNano_DT_SPI

unofficial script for Jetson Nano(L4T Jetson-Nano-Tegra210_Linux_R32.1.0_aarch64) to enable SPI0 (SPI1 on Developer Kit's Pin 19, 21, 23 and 24)

Please don't forget to backup your data!
This script is tested only on L4T R32.1(not tested on > R32.1). Details: issue#5.

First, download this repository into your Ubuntu PC (not your Jetson Nano).
After downloading, just run:

./run.sh

The scripts shows the following after flashing.

*** The [DTB] has been updated successfully. ***

Usage

The script doesn't depend on the NVIDIA SDK Manager. It downloads the reqirements from the NVIDIA's server by itself. You don't have to install the NVIDIA SDK Manager to use this script.

  1. Setup the Jetson Nano to be able to boot
  2. Turn the Jetson Nano into Recovery Mode
  3. Connect the Jetson Nano and the Linux PC with a USB cable
  4. Download rt-net/JetsonNano_DT_SPI into the Linux PC (not Jetson Nano)
    • git clone https://github.com/rt-net/JetsonNano_DT_SPI
  5. Run run.sh and confirm that the file has flashed successfully
    • ./run.sh

Information

The difference between original and modified tegra210-p3448-0000-p3449-0000-a02.dts:

SPI1 on J40 of Developer Kit is available from /dev/spidev0.0. Accroding to "Jetson Nano Product Design Guide" which was published on June 10th, 2019, SPI1(Pin 19, 21, 23 and 24 on Developer Kit) is connected to SPI0 on Tegra X1, not SPI1. See section "9.2 SPI"(pp. 41).

このツールの詳細については以下の記事で紹介しています。
The details of these tools are written in Japanese on this page:
https://www.rt-shop.jp/blog/archives/11277

Acknowledgments

Special Thanks

This work was derived from jas-mx's information:

https://devtalk.nvidia.com/default/topic/1050427/jetson-nano/enabling-spidev-on-the-jetson-nano-is-hanging-when-flashing/post/5338398/#5338398

tegra210-p3448-0002-p3449-0000-a02.dts

/*
 * arch/arm64/boot/dts/tegra210-p3448-0002-p3449-0000-a02.dts
 *
 * Copyright (c) 2018-2019, NVIDIA CORPORATION.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 */

License

This repository is released under the GNU General Public License v2.0 because it includes the device tree source released under the GNU General Public License v2.0.