Reviving the NVIDIA Jetson TK1 with a Hardened Mainline Debian Image
If you have an old NVIDIA Jetson TK1 board (I have a few…), you might wish it could be put to some productive use. You’re in luck! I just completed my own 100% up-to-date Debian image for the TK1 and shared all you need on GitHub. It even includes a complete open source build-and-install pipeline, allowing you to build a secure and reliable mainline image even after NVIDIA shuts down their own support.
I ended up with 15 Jetson TK1 boards…Read my entire Rabbit Cloud series
- Introducing Rabbit: I Bought a Cloud!
- Running Rabbits: More About My Cloud NUCs
- Tortoise or Hare? Nvidia Jetson TK1
- Powering Rabbits: The Mean Well LRS-350-12 Power Supply
- Reviving the NVIDIA Jetson TK1 with a Hardened Mainline Debian Image
Too Many Jetsons…
I bought a cloud back in 2020, and it’s been incredible to have 30 Intel NUCs to experiment with. But the 15 NVIDIA Jetson TK1 boards weren’t nearly as useful: The 2.3 GHz 4-core CPU and built-in gigabit Ethernet and SATA absolutely spanked any Raspberry Pi of the era. But the software was stuck in 2014, too flaky and insecure to expose to the internet 12 years later.
I always suspected that the Jetson TK1 could run a modern version of Linux, and others were able to upgrade despite the fact that NVIDIA’s last official release came in November of 2019. The company’s official flash procedure opened the doors to alternate operating systems, and I dabbled with newer versions on and off ever since.
But what if we could do way better than this? The success of the Raspberry Pi means that 32-bit armhf kernels are common, and support for the rest of the hardware has only improved over the years. What if we could build a modern, secure, and optimized version of Debian on the Jetson TK1? And what if we could entirely dispose of the old NVIDIA stack, including their flasher and eMMC partition layout? My stack of old “tortoises” could have a second life around my home and office network as UPS monitors, jump hosts, and network devices!
Armed with 30 years of experience as a UNIX admin and all-around nerd, I finally buckled down and made it happen. And this week I opened up my Jetson TK1 Debian repo on GitHub so you can build your own modern Debian 13 (Trixie) image and flash it using open-source tools with no NVIDIA downloads needed!
TL;DR: How to Flash Your TK1
Everything is up and running, and you can build your own image and flash your Jetson in a few easy steps. All you need is a modern x86 machine running Ubuntu or Debian and a micro-USB cable. You’ll clone my GitHub, build a Debian image, and flash it to the TK1, all using open-source tools and only a few simple commands!
- On your Linux machine, install the tools you’ll need:
sudo apt install mmdebstrap qemu-user-binfmt debian-archive-keyring zstd git cbootimage device-tree-compiler python3 tegrarcm gdisk - Clone the project:
git clone https://github.com/SFoskett/jetson-tk1-debian ; cd jetson-tk1-debian - Optionally, personalize your image with your own username, password, and SSH key. Copy
local.conf.exampletolocal.confand edit it per the comments - Build the image (this takes about 25 minutes):
sudo ./build.sh - Connect your TK1 to your Linux PC using a micro-USB cable, and connect it to your network with an Ethernet cable
- Plug in the TK1 then hold the FORCE RECOVERY button (closest to the corner) and tap the RESET button (next to it); release the buttons
- On your Linux machine, type
lsusb | grep -i nvidiaand you should see0955:7140, which means the TK1 is in recovery mode and ready to flash - Flash your new image to the TK1 (this takes about 2 minutes):
sudo ./flash-tk1.sh - Your TK1 will automatically reboot into Debian after flashing.
- If you skipped customization, connect an HDMI monitor and USB keyboard and log in using
tk1with passwordtk1. You’ll be asked to set a new password. SSH will automatically be enabled once you set a password. - If you set a password or added an SSH public key, you can just ssh into it!
- The TK1 will name itself using the Ethernet MAC address (e.g.
tk1-8e54). Find the IP address on your router or access it using this hostname and log in with SSH!
Important: If you skip customization you can not access the TK1 over the network! You MUST attach a monitor and keyboard and change the password before it will enable SSH.
A Look Back at the NVIDIA Jetson TK1
It might be hard to believe it now, but the Jetson TK1 was a hot little number when it was released in April of 2014. It used the latest NVIDIA Tegra K1 system-on-chip, which featured four Cortex-A15 ARMv7 cores running at 2.32 GHz backed by 2 GB of DDR3L. This doesn’t look like much today, but this was the era of the original Raspberry Pi, which only had 512 MB of RAM and a single-core 700 MHz ARM11 (no NEON) CPU. It wasn’t until 2019 that the Pi 4 surpassed the TK1 in CPU power and RAM.
SoCNVIDIA Tegra K1 (Tegra124)CPU4× Cortex-A15 (ARMv7, NEON) at 2.32 GHzGPUKepler GK20A (192 cores) at 950 MHzRAM2 GB DDR3L at 924 MHzStorage16 GB eMMC, SD slot, SATA IINetworkGigabit Ethernet (Realtek RTL8111G on PCIe)I/OOne USB 3.0 port, mini-PCIe, HDMIConsoleRS-232 DB9 serial portOtherHardware watchdog, AS3722 PMICThen there was the 192-core Kepler GPU. Essentially a cut-down GeForce GT 730M, it boasted 326 GFLOPS of CUDA performance and was more than 10 times faster than competing GPUs. Even the Pi 5 GPU is technically slower. Incredibly, this fast GPU is essentially useless today since NVIDIA ended CUDA support for it years ago.
Unlike many other single-board computers from the era, the Jetson TK1 included some serious connectivity: Realtek RTL8111G Gigabit Ethernet on PCIe, USB 3.0 (just one port), mini-PCIe, full-sized SATA-II with power, and a good old RS-232 DB9 serial console. The Pi didn’t get real Gigabit Ethernet or USB 3 until 2019, and only the 2023 Pi 5 had PCIe. The TK1 also has built-in eMMC flash drive for booting, making the SD slot mostly redundant. There’s even a hardware watchdog and programmable power management controller.
Not all of this has aged well. As mentioned, the much-vaunted GPU is entirely useless today. The CPU heatsink has a built-in fan, and most of mine are noisily failing. And I worry about the durability of the 10-year-old eMMC boot drive. The SD slot is slow, the serial console and Molex disk drive power connector are laughably outdated, and it’s hard to find Mini-PCIe cards anymore. The PMIC includes a real-time clock, but there’s no backup battery.
But we can work around most of these limitations. And the Jetson is still moderately interesting, with four respectable CPU cores, gigabit Ethernet, and SATA. And the watchdog makes it particularly interesting for an unattended device.
The Jetson TK1 Can Run a Modern Linux!
I wired up a crossover serial connection for debuggingI suspected that a mainline Linux distribution would run without any special contortions even as 32-bit ARM is a little out of date. The Tegra 124 is widely supported, with a TK1 in KernelCI’s test lab. Debian was particularly interesting since it includes an armhf kernel with Jetson support and the u-boot-tegra package includes a U-Boot for the platform. A bigger question was how to flash the board without using NVIDIA’s long-outdated toolchain and modernizing the boot environment.
I decided to take it in stages, starting out by figuring out how to test Debian’s modern Trixie armhf kernel. The Jetson has a very handy boot ROM with serial console and recovery mode, making it essentially un-brickable. The first step would be to expose the eMMC drive in USB mass storage mode over the micro-USB port using Debian’s modern U-Boot.
Starting with a random Jetson from my shoebox stash, I dug out a USB-to-DB9 serial port adapter and connected the three necessary pins to make a null modem connection. Although I long-since dumped all of my DB9 cables, RS232 is a simple 3-wire crossover. I scrounged an old motherboard chassis cable and crossed pins 2 and 3, with pin 5 going straight through. Connecting to the serial adapter with the screen command, I had a hard console connection at 115,200 baud.
lsusb | grep -i nvidia
# Bus 001 Device 003: ID 0955:7140 NVIDIA Corp. T124 [Tegra K1/Logan 32-bit]
screen /dev/ttyUSB0 115200Debian’s u-boot-tegra package includes a modern U-Boot built for the TK1, including a device tree identified by board’s nvidia,jetson-tk1 identifier. This was a real relief, since even the comparatively-ancient R21 releases didn’t boot when I tried them. Happily I was able to use NVIDIA’s flash.sh script to upgrade the U-Boot all the way from 2014 to 2026 in one jump, with the serial console dropping to a Tegra124 (Jetson TK1) # prompt after finding nothing to boot.
Next I used U-Boot’s ums 0 mmc 0 command to enable USB Mass Storage mode, exposing it over the micro-USB connector. It appeared as /dev/sda with all eight of the original NVIDIA Linux for Tegra partitions visible. Worried that these contained something important, I focused only on the large “APP” partition, which would be plenty to hold a full Debian boot environment. I formatted it as ext4 (visible from the U-Boot environment using the ext4ls command) and started on the next crazy task.
I would need a native Debian ARM boot environment, but I was using a spare Intel Celeron NUC from my Rabbit stash for this project. So I kept the eMMC mounted as a USB drive and built a debootstrap environment on it in QEMU. This was unfamiliar territory so I used Claude to research the proper configuration and commands. After laying down a Trixie base system I used chroot and QEMU to run the whole Debian install over USB to the eMMC partition. It was wild to see it all come together smoothly, with u-boot-menu writing the extlinux.conf file directly to avoid Debian’s flash-kernel trying to “help” by detecting the board it’s running on. We installed Debian’s linux-image-armmp kernel and we were off to the races!
My first boot even worked. Mostly. U-Boot found the boot environment, loaded the kernel, initramfs, and device tree, and started up over the serial console. Once I explicitly added the sdhci-tegra driver for the eMMC controller in /etc/initramfs-tools/modules and rebuilt initramfs the kernel was able to see the eMMC and mount the root. And just like that we were running Trixie on the Jetson TK1!
Fine-Tuning the Jetson TK1 Hardware
Now we move on to the fun part: Tuning our Debian install to make the most of the Jetson TK1 hardware.
The onboard Realtek RTL8111G Ethernet worked out of the box, but the boot log showed a firmware error. Adding Debian’s firmware-realtek package cleared the error. Debian’s firmware-misc-nonfree contained the right code for NVIDIA’s firmware for the USB 3.0 controller, and I was able to drive over 130 MB/s to a flash drive with no issues. Hopefully this modern firmware will address the issues I experienced with these devices when I first tried the Jetson.
I didn’t see any signal on the HDMI port, but was able to again use Claude to diagnosed the issue: The Tegra display driver was waiting for a second display controller and compositor to come up before enabling the port. The TK1 was built for dual-display devices but I only had one HDMI port. I was completely unfamiliar with all this but was able to build an overlay to the kernel’s device tree with Claude to disable the unused controller and compositor. Although there’s still a kernel error, the display now works fine in text mode.
This is totally separate from the Kepler GPU, which uses the nouveau driver. Since it’s effectively useless (I don’t plan to run a graphical environment on the board and CUDA is hopelessly out of date) I blacklisted the nouveau module, removed the regulator-always-on flag from its power rail, and completely disabled it. Farewell, Kepler, we hardly knew ye!
NVIDIA equipped the Jetson TK1 with a fan, but most of mine are noisily failing. I decided to see how well the tiny heatsink could cool the chip with the fan unplugged. It works fine in regular operation, but the chip reached over 98º C in under two minutes during a four-core stress test. Not wanting to cook the processor, I dove into the subject of frequency throttling. Once again I used Claude to design a “staircase” pattern that was able to keep the temperature under 85º C even after ten minutes of full load. This ought to work fine if the fan is left running, replaced, or even if the whole heatsink is removed! Sadly CONFIG_CPU_IDLE is off in Debian’s armmp kernel, so the CPU cores don’t power-gate.
I spent another day learning about memory timing. The board ran fine at the default 924 MHz, but I just couldn’t locate the proper timing tables. Claude let me down too, unable to extract and translate the original timings for the modern kernel. We’re sticking to the fixed default speed. Since Debian doesn’t include the I2S and AHUB drivers needed to enable audio, so I disabled these too.
With no backup battery, the PMIC resets to January 1, 2000 when left without power. While I’m not sure it’s a great idea, I made Claude design a system that sets the clock to a saved timestamp on cold start until it is able to properly sync over the network. I learned a bit about systemd (my nemesis) in this process and enabled the hardware watchdog to reset the board in case of a hang. Although the SD card slot only runs at “high-speed mode” (22 MB/s) rather than UHS, it seems to work fine. I tested the SATA II port to near its rated 3 Gbps and even found an old mini-PCIe Ethernet card to prove the slot works!
One of my biggest worries was the reliability of the onboard eMMC flash storage. After more than a decade, the SanDisk iNAND SSD is the weakest link after the fan. It’s 2-bit MLC but includes wear leveling and ECC to extend the endurance of the tiny 16 GB device. But there is a lot we can do in Linux to reduce writes! I moved the systemd journal to RAM (capped at 32 MB) since this is one of the biggest culprits, and se noatime and commit=60 on the root filesystem. Debian Trixie already keeps /tmp in RAM, and the weekly fstrim timer appears to be supported as well. Claude suggested skipping APT translations and compressing daily indices. I also stuck to a single locale (which you can set in the configuration file) rather than rewriting hundreds of megabytes with each glibc update. This (combined with light usage) ought to keep the TK1 running for years to come.
My Own Linux Distribution?
With everything working so well, I wondered if I could perhaps share it with anyone else who still had a Jetson TK1 sitting in a drawer. Spoiler: I did.
I’m an old school Unix admin, but I don’t know much about packaging and building modern Linux. So I leaned into Claude to help take the work done so far and transform it into a reproducible build script. I set up a git repository and set Claude loose to build Debian’s newer mmdebstrap tool to install all the packages in one pass under QEMU, copies in the necessary configuration files, and rebuilds anything that depends on my changes. Rather than a one-size-fits-all image, Claude suggested putting some settings into the local.conf file so the image won’t hard-code my own preferences.
tk1, forced changeKeys onlyPassword onlyYoursOn; passwords allowedNeithertk1, forced changeOff until changed at the consoleI was keenly worried about security, since exploits are appearing every day. So I insisted on a firewall and severely-restricted initial configuration with no possibility of access using a default password. The build only turns on SSH if a custom password or (better yet) SSH key is set in the configuration file. You may not like it, but a stock build requires a physical keyboard and monitor and forces the password to be re-set from the default tk1:tk1.
Since I have a dozen of these boards lying around, I also wanted each board to come up with a unique hostname. The startup script names the host using the last four bytes of the MAC address (e.g. tk1-8e54) and creates new SSH host keys and a machine ID. Since DHCP relies on the MAC address rather than the machine ID, each board gets a unique IP address but it persists through flashes.
No More NVIDIA Downloads
Although NVIDIA hasn’t updated their Linux for the Jetson TK1 in years, the original images and flashing tools remain online. But I didn’t want to rely on this, especially since the license restricted me from distributing these tools. Debian’s U-Boot documentation suggested that flashing the Jetson TK1 was still a work in progress, but Claude claimed to be able to finish the job. Who am I to argue with “super intelligence”? (That’s a joke; I argue with it all the time!)
It turned out that all the tools needed to build a complete boot image are already available:
- There is a USB recovery protocol documented in the Tegra boot ROM
- Debian’s packaged
cbootimagecan build a boot configuration table (BCT) and boot image - Debian’s built-in
tegrarcmcan send a BCT and bootloader straight into the eMMC - NVIDIA’s cbootimage-configs project includes a TK1 configuration under a permissive license
The next problem was to eliminate the need for the serial console, since most people don’t have a Linux machine with a DB9 port handy. Claude suggested leveraging U-Boot itself to reconfigure the eMMC by overriding the normal startup with the USB Mass Storage command. Since this mode automatically turns off once the connected host ejects the USB disk, the next boot would restart into the new install!
This process became the second key script in the repository, flash-tk1.sh, which does it all: It waits for a board in recovery mode to appear, loads the modified U-Boot, writes boot0, replaces NVIDIA’s eight-partition layout with a single tk1root partition aligned to the eMMC’s erase blocks, and streams the compressed image straight onto it. You can even script the FORCE RECOVERY buttons using systemctl reboot --reboot-argument=forced-recovery, which I leveraged while debugging this whole process remotely from a plane!
Why Bother?
This was a lot of work to update a decade-old ARM single-board computer. But it was worthwhile for a few reasons:
- Hands-on experimentation is the best way to learn, and I hadn’t gotten under the hood with a Linux distribution for over a decade
- Low-power single-board computers can be incredibly useful as “network appliances”
- The AI datacenter build-out has jacked up RAM, SSD, and CPU prices, making it more attractive than ever to “do more with less”
- I literally have a dozen of these boards sitting around
- It’s fun!
The Jetson TK1 isn’t as hot as it once was, but there are still good use cases for it:
- It’s a great platform for Network UPS Tools (NUT), monitoring old serial or USB devices
- The speedy CPU and watchdog timer make it a great SSH jump host
- It could be a router (especially with a mini-PCIe Ethernet adapter)
- Add a SATA drive and it would be a slick Torrent server
- It’s a nice Tailscale Peer Relay (though it’s not really fast enough to be an exit node)
Stephen’s Stance
Don’t ever tell a nerd not to nerd! My stash of unused Jetsons will haunt me no longer now that I know I can plug one in and have a modern and useful “network appliance” on a whim. Never mind that I haven’t used one of them for anything since I finished this project. They’re super useful, I tell you!
A note on AI use
I used Claude extensively in this project but never in my writing. I’m an AI realist, and see modern LLMs as an incredible research assistant. As Corey Doctorow would say, I’m a centaur! But I’m also painfully aware of the limitations of these tools, and this project showed just how wrong they can be. Without my deep knowledge and experience in UNIX it would have been a disaster. Be very careful when using LLMs lest your centaur situation reverse!
#Claude #Debian #GitHub #Jetson #NUC #NvidiaJetsonTK1 #Rabbit