Running Debian on a Graphing Calculator

While the ubiquitous TI-83 still runs off an ancient Zilog Z80 processor, the newer TI-Nspire series of graphing calculators uses modern ARM devices. [Codinghobbit] managed to get Debian Linux running on a TI-Nspire calculator, and has written a guide explaining how it’s done.

The process uses Ndless, a jailbreak which allows code to run at a low level on the device. Ndless also includes a full SDK, emulator, and debugger for developing apps. In this case, Ndless is used to load the Linux kernel.

The root filesystem is built on a PC using debootstrap and the QEMU ARM emulator. This allows you to install whatever packages are needed via apt, before transitioning to the calculator itself.

With the root filesystem on a USB flash drive, Ndless runs the Linux loader, which starts the kernel, mounts the root filesystem, and boots in to a Debian system in about two minutes. As the video after the break demonstrates, this leaves you with a shell on the calculator. We’re not exactly sure what to do with Linux on a graphing calculator, but it is a neat demonstration.

 

37 thoughts on “Running Debian on a Graphing Calculator

      1. Yup, that blog is fairly often unreachable, even when Hackaday doesn’t link it.

        BTW, @Hackaday… while Ivoah’s tutorial is an improvement (more detailed steps) over information posted over a year ago, the fact that someone managed to run Debian Linux on a Nspire thanks to debootstrap is in no way new ;)

        Let’s add that on all Nspire Clickpad and Nspire Touchpad calculators, as well as Nspire CX calculators manufactured before the spring of 2013 (hardware revision < J), nLaunch / nLaunch CX / nLaunchy can be used to single-boot Linux. TI's boot1 + boot2 remain, but TI's OS and Ndless are not mandatory on older calculators.

  1. “We’re not exactly sure what to do with Linux on a graphing calculator, but it is a neat demonstration.”

    Run a graphing calculator emulator, obviously!

    1. I just installed wp34s over my Nspire today and thought this is going to be the ultimate hypercalculator! Apparently I am wrong. The plan has changed: run a VM on top of of linux over the Nspire, and then install Win 7 and fire up the free HP Prime emulator.

      1. HP Prime (RPN mode) on Win7 on Bochs on Linux on nspire: It may seem like the long way around, but finally, a way to make a Ti usable!

      2. More seriously, this is the first I’ve heard that wp34s is ported to nspire, and that’s actually very interesting, so thanks!

  2. Still waiting for the day I can run Linux on my toaster. This is cool too. ;-) Curious to see how well the BB textmode demo runs.

        1. OpenBSD and FreeBSD…. I use OpenBSD on my edge devices and more exotic hardware while I prefer FreeBSD for all my other server uses. For desktops, I use FreeBSD and Win 8.1 (some win 7 based on hardware)… I also have some OS/2 Warp going on. I play with a lot of other OSes also.

  3. If I put my calculator online, will thousands of script kiddies across the world try and brute force hack root access to my calculator too? And if they are successful, will they display a “L0L I hack3d j00!” on the display using a mathematical function? I’m tempted to find out…

  4. I’m thinking hotplug and udev and probably lots of other stuff could be removed. They don’t have USB host do they? Brought down to pretty much a kernel, init and a shell that 2 minute boot time might be much better. Then what? I dunno, maybe Nethack?

  5. This sort of proves my suspicion that the makers of scientific calculators aren’t sure what to do to stay relevant. Anybody with a smartphone can get scientific and graphing apps. The TI-Nspire is essentially a handheld with smartphone guts, and old-school calculator buttons on the front. (Why didn’t they use qwerty for the alpha keys?!?! Dumb!!) TI can’t really afford to keep the tooling for a dedicated, proprietary calculator, hence they tap the ARM infrastructure (which they no doubt helped create). Expect to see more of this.

    1. QWERTY Keyboards are banned on US standardized tests so no calculator manufacturer is going to adopt them as a standard on calculators.

  6. While I happen to be waiting for my math class to start and have ndless running on my CX CAS (solely so I could port drugwars to it), I also have one of the real TI wifi cradles sitting in my glovebox, it is a neat combination with installing Debian after you get the thing to work. That said, why aren’t we covering things like Microsoft’s new wireless display adapter running LINUX+BusyBox or something slightly more exciting. I wager once people break into that the dongle will support more than just Miracast.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s