For Ubuntu Host Computer:
-
Download the SDK Manager installation file from NVIDIA's official site.
-
Open a terminal and navigate to the directory where you downloaded the file.
-
Run the following command to install the SDK Manager:
sudo apt install ./sdkmanager_[version]-[build#]_amd64.deb
You can start SDK Manager using two methods:
-
From the Ubuntu launcher:
- Launch SDK Manager from the Ubuntu launcher.
-
From the terminal:
- Open a terminal and run the following command:
sdkmanager
-
Prepare your Jetson TX2 Developer Kit as follows:
- Connect an external HDMI display to the carrier board's HDMI port.
- Connect a USB keyboard and mouse to a USB hub and connect the hub to the developer kit's USB Type-A port.
- Insert the Micro-B end of the included USB Micro-B to USB A cable into the carrier board's USB Micro-AB port. Connect the other end to your Linux host computer.
- Connect the included AC adapter to the carrier board's power jack and plug the AC adapter into a suitable electrical outlet.
- Power off the developer kit.
-
To put the device into Force Recovery mode:
- Press and hold the Force Recovery button.
- Press and hold the Power button.
- Release the Power button, then release the Force Recovery button.
- Start SDK Manager and log in.
- Select your Jetson TX2 board and choose the appropriate JetPack version.
- Follow the steps to download the required software and start the flashing process.
- Once the flashing process is complete, your Jetson TX2 board will restart and prompt you to enter initial configuration information (such as keyboard layout, username, and password). If no display is connected, you will need to perform the initial configuration "headless" using a serial application (e.g., puTTY) on the Linux host computer.
(Screenshots of the steps have been shared in the attached PDF.)
This guide details how to install VSCodium (the open-source version of Visual Studio Code) on a TX2 board with ARM64 architecture.
First, we need to install the required dependencies to install VSCodium.
-
Open the Terminal: Open the terminal on your TX2 board.
-
Run the following commands to update the package list and install necessary dependencies:
sudo apt update sudo apt upgrade sudo apt install -y software-properties-common apt-transport-https wget
sudo apt update
: Updates the package list.sudo apt install -y software-properties-common apt-transport-https wget
: Installs necessary dependencies.software-properties-common
manages software properties,apt-transport-https
allows apt to work over HTTPS, andwget
is a file downloading tool.
VSCodium is the open-source version of Visual Studio Code and has suitable builds for ARM64 architecture.
-
Download VSCodium for ARM64:
wget https://github.com/VSCodium/vscodium/releases/download/1.70.2.22230/codium_1.70.2.22230_arm64.deb -O codium_arm64.deb
wget
: File downloading tool.https://github.com/VSCodium/vscodium/releases/download/1.70.2.22230/codium_1.70.2.22230_arm64.deb
: URL for the latest ARM64 build of VSCodium.-O codium_arm64.deb
: Renames the downloaded file tocodium_arm64.deb
.
-
Install the downloaded .deb package using dpkg:
sudo dpkg -i codium_arm64.deb
sudo dpkg -i codium_arm64.deb
: Installs the downloaded .deb package.
-
If there are dependency issues, fix the broken dependencies:
sudo apt --fix-broken install
sudo apt --fix-broken install
: Fixes broken or missing dependencies and installs necessary packages.
-
Start VSCodium:
After the installation is complete, you can start VSCodium from the terminal with the following command:
codium
codium
: Starts the VSCodium application.
This error occurs when trying to install a package built for AMD64 architecture on an ARM64 system. The solution is to use the appropriate builds for ARM64 architecture. In this guide, we used the ARM64 build of VSCodium.
If files in the /etc/apt/sources.list.d/
directory are ignored due to invalid extensions, you can either rename these files to have a .list
extension or remove unnecessary files:
sudo mv /etc/apt/sources.list.d/nodesource.list.save /etc/apt/sources.list.d/nodesource.list
sudo rm /etc/apt/sources.list.d/yarn.list.save
sudo mv /etc/apt/sources.list.d/nodesource.list.save /etc/apt/sources.list.d/nodesource.list
: Renames the file extension to.list
.sudo rm /etc/apt/sources.list.d/yarn.list.save
: Removes the file with an invalid extension.
Ubuntu Ana Bilgisayar için:
-
SDK Manager kurulum dosyasını NVIDIA'nın resmi sitesinden indirin.
-
Terminali açın ve indirdiğiniz dosyanın bulunduğu dizine gidin.
-
Aşağıdaki komutu çalıştırarak SDK Manager'ı kurun:
sudo apt install ./sdkmanager_[version]-[build#]_amd64.deb
SDK Manager'ı başlatmak için iki yöntem kullanabilirsiniz:
-
Ubuntu başlatıcısından:
- Ubuntu başlatıcısından SDK Manager'ı başlatın.
-
Terminalden:
- Terminali açın ve aşağıdaki komutu çalıştırın:
sdkmanager
-
Jetson TX2 Geliştirici Kitinizi şu şekilde hazırlayın:
- Harici bir HDMI ekranı taşıyıcı kartın HDMI portuna bağlayın.
- Bir USB klavye ve fareyi bir USB hub'a bağlayın ve hub'ı geliştirici kitin USB Tip-A portuna bağlayın.
- Dahil edilen USB Mikro-B'den USB A kablosunun Mikro-B ucunu taşıyıcı kartın USB Mikro-AB portuna takın. Diğer ucunu Linux ana bilgisayarınıza bağlayın.
- Dahil edilen AC adaptörünü taşıyıcı kartın güç jakına bağlayın ve AC adaptörünü uygun bir elektrik prizine takın.
- Geliştirici kiti kapatın.
-
Force Recovery moduna almak için:
- Force Recovery düğmesine basılı tutun.
- Güç düğmesine basılı tutun.
- Güç düğmesini bırakın, ardından Force Recovery düğmesini bırakın.
- SDK Manager'ı başlatın ve giriş yapın.
- Jetson TX2 kartınızı seçin ve ilgili JetPack sürümünü seçin.
- İleri adımları takip ederek gerekli yazılımları indirin ve flaşlama işlemini başlatın.
- Flaşlama işlemi tamamlandığında, Jetson TX2 kartınız yeniden başlatılacak ve ilk yapılandırma bilgilerini (klavye düzeni, kullanıcı adı ve şifre gibi) girmeniz istenecektir. Ekran bağlı değilse, ilk yapılandırma işlemini "headless" olarak bir seri uygulaması (ör. puTTY) kullanarak yapmanız gerekecektir.
(Yapılan adımlar da görülen ekranlar pdf olarak paylaşılmıştır.)
Bu rehber, TX2 kartı üzerinde ARM64 mimarisi için VSCodium'un (Visual Studio Code'un açık kaynaklı sürümü) nasıl yükleneceğini detaylandırmaktadır.
Öncelikle, VSCodium'u yükleyebilmek için gerekli olan bağımlılıkları kurmamız gerekiyor.
-
Terminali Açın: TX2 kartınızda terminali açın.
-
Aşağıdaki komutları çalıştırarak paket listesini güncelleyin ve gerekli bağımlılıkları kurun:
sudo apt update sudo apt upgrade sudo apt install -y software-properties-common apt-transport-https wget
sudo apt update
: Paket listesini günceller.sudo apt upgrade
: Paket listesini günceller.sudo apt install -y software-properties-common apt-transport-https wget
: Gerekli bağımlılıkları kurar.software-properties-common
yazılım özelliklerini yönetir,apt-transport-https
apt'nin HTTPS üzerinden çalışmasını sağlar vewget
dosya indirme aracıdır.
VSCodium, Visual Studio Code'un açık kaynaklı bir sürümüdür ve ARM64 mimarisi için uygun derlemeleri bulunmaktadır.
-
VSCodium'u ARM64 için indirin:
wget https://github.com/VSCodium/vscodium/releases/download/1.70.2.22230/codium_1.70.2.22230_arm64.deb -O codium_arm64.deb
wget
: Dosya indirme aracıdır.https://github.com/VSCodium/vscodium/releases/download/1.70.2.22230/codium_1.70.2.22230_arm64.deb
: VSCodium'un ARM64 için derlenmiş en son sürümünün URL'sidir.-O codium_arm64.deb
: İndirilen dosyanın adınıcodium_arm64.deb
olarak değiştirir.
-
İndirilen .deb paketini dpkg ile kurun:
sudo dpkg -i codium_arm64.deb
sudo dpkg -i codium_arm64.deb
: İndirilen .deb paketini kurar.
-
Eğer bağımlılık sorunları varsa, eksik bağımlılıkları düzeltin:
sudo apt --fix-broken install
sudo apt --fix-broken install
: Eksik veya kırık bağımlılıkları düzeltir ve gerekli paketleri kurar.
-
VSCodium'u başlatın:
Kurulum tamamlandıktan sonra VSCodium'u terminalden şu komutla başlatabilirsiniz:
codium
codium
: VSCodium uygulamasını başlatır.
Bu hata, AMD64 mimarisi için derlenmiş bir paketi ARM64 mimarisinde çalıştırmaya çalıştığınızda ortaya çıkar. Çözüm olarak ARM64 mimarisi için uygun derlemeleri kullanmanız gerekmektedir. Bu rehberde, ARM64 mimarisi için uygun olan VSCodium paketi kullanılmıştır.
Eğer /etc/apt/sources.list.d/
dizinindeki dosyalar geçersiz uzantılar nedeniyle yok sayılıyorsa, bu dosyaların uzantılarını .list
olarak değiştirin veya gereksiz dosyaları silin:
sudo mv /etc/apt/sources.list.d/nodesource.list.save /etc/apt/sources.list.d/nodesource.list
sudo rm /etc/apt/sources.list.d/yarn.list.save
sudo mv /etc/apt/sources.list.d/nodesource.list.save /etc/apt/sources.list.d/nodesource.list
: Dosya uzantısını.list
olarak değiştirir.sudo rm /etc/apt/sources.list.d/yarn.list.save
: Geçersiz uzantılı dosyayı siler.