I managed to get a working installation of Debian Bookworm running on my NiuBi. It's consumed a lot of time to get right so I thought I'd document the steps I needed to take to get it working.
- Install firmware
- https://neil.brown.name/gnubee/
- Download gnubee-6.1.1-gbpc2.bin
- Copy to USB drive (formatted to FAT32) as "gnubee.bin"
- Connect the USB drive to the NiuBi and boot
- Light blinks for about 5 or 6 minutes.
- Wait until it is solid.
- Boot firmware (reference)
- Disconnect SD card
- Disconnect USB drive
- Rename "gnubee.bin" to something else (or delete)
- Add a "gnubee-config.txt" file with "CONFIGURE_NET=yes".
- This is alternative to booting into the firmware with the physical button. I found timing it right to be too unreliable.
- Connect USB drive to NiuBi
- Connect Ethernet cable from the Blue port to a switch/router
- Boot
- Check router connected devices to find the assigned IP address.
- ssh root@{IP ADDRESS}
- Insert SD card
- Install Debian
- Get keys for Debian 12 (reference)
- On main computer, run
wget https://ftp-master.debian.org/keys/release-12.asc -qO- | gpg --import --no-default-keyring --keyring ./debian-release-12.gpg && ssh root@{IP ADDRESS} "cat > debian-release-12.gpg" < debian-release-12.gpg- Can't be done directly on the NiuBi because it doesn't have gpg installed.
-
Edit the debootstrap call in the /config file
-
Change the mirror URL to "http://ftp.us.debian.org/debian"
-
Change the version from "stable" to "bookworm"
-
Add "--keyring=debian-release-12.gpg" argument
- Run /config
- Switch Ethernet cable to black port
- Disconnect USB drive
- Reboot
- SSH into new system
- Login with the password set during /config
- Run `uname -a` to check expected kernel (6.1.1)
- Run `cat /etc/debian_version`
- Run 1.1.1.1 to confirm network access
As a last step, I highly recommend connecting the SD card to your computer and backing up the contents of GNUBEE-ROOT to a tar zip.
cd /mnt && tar -cJf GNUBEE-ROOT ~/GNUBEE-ROOT.tar.xz
(assuming the SD card partition is mounted to /mnt/GNUBEE-ROOT)
This will make recovery much easier if (when) you make a bad change.
Thanks to everyone else who's posted their experience, I gleaned a lot from many of the threads here, and thanks to Niel for producing such a great firmware!