
Reviving CuBox-i (first gen) Marvell Sheeva with Debian
I have had an old SolidRun’s CuBox-i (first gen from around 2013) lying unused in my drawer for long time. A couple years ago I had tried to revive it, trying to reinstall Linux, but nothing seemed to work.
Now, maybe five years later, I decided to try again (Download the ready-made disk image, if you are in hurry).
First-gen original CuBox-i based on Marvell Sheeva
This is original CuBox-i manufactured by SolidRun with Marvell Sheeva (rev 5) CPU, 1 GB RAM and 88AP510 (A1) SOC. Notice that later Hummingboard-based (or IMX6 based) CuBoxes were built differently and their systems are incompatible. Unfortunately, SolidRun has stopped supporting this old version of hardware long time ago. They deleted their archives with images builds and wiki instructions. Nothing is left from that era and any info on how to run this CuBox is hard to find.

Finding First-gen CuBox Tutorials
I found couple of tips and old images, e.g. Kali Linux for ARM devices from 2017, but nothing seemed to work (see the unsuccessful log on the bottom).
After searching for long I found couple of old blog posts describing similar CuBox installs. One is by Gunnar Wold,. but that seems to be a later model. Another one is by Ben Ganne. I had contacted both authors and they responded, Ben was very helpful and emailed me some tips and corrections to his blog post.
Reviving Marvell CuBox-i using Debian 10
Following his instructions I was able to revive my old first-gen CuBox based on Marvell Armada (well, mine says Sheeva), i.e. ARM based CPUs (system-on-chip, SoC). So, thanks again, Ben!
Debian’s Debootstrap system for the win! It support both ARMel nd ARMhf and ARMhf works for this first generation CUBox-i.
Correction to his instructions is that this line:
debootstrap --foreign --arch=armhf buster /mnt/ http://deb.debian.org/debian
needs to be corrected to:
debootstrap --foreign --arch=armhf buster /tmp/cubox/ http://deb.debian.org/debian
Using USB Instead of SD Card
I also had to change boot process image creation from SD card to USB pendrive:
cat > "$TMPFILE" << EOF
setenv bootargs console=ttyS0,115200n8 console=tty1,115200 root=/dev/sda2 rootfstype=ext4 rootwait video=HDMI-A-1:1920x1080-32@60 debug=vc
ext4load usb 0 0x1000000 /uImage
ext4load usb 0 0x2000000 /uInitrd
bootm 0x1000000 0x2000000
EOF
After that it booted up successfully!
Cubox-i Debian Disk Image Download
Download ready-made image for USB pendrive from Archive.org.
HDMI Not Working
I received mail from Joshua Mayer who has been working on his Linux fork for CuBox devices. As per his email:
HDMI support never made it into the mainline kernel.
Not a lot of code is missing, you can see my last attempt below:https://github.com/Josua-SR/linux/commits/dove
You can always use SSH or Serial TTY connection via USB to microUSB, possibly also VNC, but I have not been able to run X properly.
Unsuccessful Boot Log (Before Tutorial by Ben)
This was my log from booting CuBox up, it could not find any boot partition image and ended with trying to boot via TFTP.
U-Boot 2009.08 (Apr 08 2013 - 17:25:54) Marvell version: 5.4.4 NQ SR1
BootROM:
Version on chip: 2.33
Status: OK
Retries #: 0
Board: CuBox
SoC: 88AP510 (A1)
CPU: Marvell Sheeva (Rev 5)
CPU @ 800Mhz, L2 @ 400Mhz
DDR3 @ 400Mhz, TClock @ 166Mhz
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
DRAM: 1 GB
CS 0: base 0x00000000 size 512 MB
CS 1: base 0x20000000 size 512 MB
Addresses 60M - 0M are saved for the U-Boot usage.
SF: Detected W25Q32 with page size 4 kB, total 4 MB
Streaming disabled
L2 Cache Prefetch disabled
L2 Cache ECC disabled
Modifying CPU/CORE/DDR power rails to 1.0(+2.5%) / 1.0(-5%) / 1.5(-5%)
USB 0: Host Mode
USB 1: Host Mode
Setting VPU power OFF.
Setting GPU power ON.
MMC: MV_SDHCI: 0, MV_SDHCI: 1
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 0
===> Executing ext4load usb 0:1 0x02000000 /boot.scr
(Re)start USB…
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices… 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning…
scanning bus for storage devices…
/snip…/
** Unable to use mmc 0:2 for fatload **
===> Executing ext4load ide 0:1 0x02000000 /boot.scr
Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
** Bad partition 1 **
===> Executing fatload ide 0:1 0x02000000 /boot.scr
Error No HD connection
** Can't read from device 0 **
** Unable to use ide 0:1 for fatload **
===> Executing ext4load ide 0:1 0x02000000 /boot/boot.scr
** Bad partition 1 **
===> Executing fatload ide 0:1 0x02000000 /boot/boot.scr
Error No HD connection
** Can't read from device 0 **
** Unable to use ide 0:1 for fatload **
===> Executing ext4load ide 0:2 0x02000000 /boot.scr
** Bad partition 2 **
===> Executing fatload ide 0:2 0x02000000 /boot.scr
Error No HD connection
** Can't read from device 0 **
** Unable to use ide 0:2 for fatload **
===> Executing ext4load ide 0:2 0x02000000 /boot/boot.scr
** Bad partition 2 **
===> Executing fatload ide 0:2 0x02000000 /boot/boot.scr
Error No HD connection
** Can't read from device 0 **
** Unable to use ide 0:2 for fatload **
egiga0 no link
Using egiga0 device
TFTP from server 192.168.15.100; our IP address is 192.168.15.223
Filename 'boot.scr'.
Load address: 0x2000000
Loading: *