I used balenaEtcher to transfer debian image (this one SolidRun Images) to microSD card.
Then I used this bootloader SolidRun Images — spl-imx6-emmc
and u-boot-imx6-emmc.img
I put this bootloader on this microSD card where debian is with
When I attach USB hub with card reader I get
[ 6156.523113] hub 1-4:1.0: USB hub found
[ 6156.526322] hub 1-4:1.0: 4 ports detected
[ 6156.862633] usb 1-4.4: new high-speed USB device number 27 using xhci_hcd
[ 6156.988363] usb 1-4.4: New USB device found, idVendor=05e3, idProduct=0751, bcdDevice=14.04
[ 6156.988370] usb 1-4.4: New USB device strings: Mfr=3, Product=4, SerialNumber=0
[ 6156.988373] usb 1-4.4: Product: USB Storage
[ 6156.988375] usb 1-4.4: Manufacturer: USB Storage
[ 6157.006438] usb-storage 1-4.4:1.0: USB Mass Storage device detected
[ 6157.006623] scsi host10: usb-storage 1-4.4:1.0
[ 6158.031650] scsi 10:0:0:0: Direct-Access Generic STORAGE DEVICE 1404 PQ: 0 ANSI: 6
[ 6158.032012] sd 10:0:0:0: Attached scsi generic sg0 type 0
[ 6158.247076] sd 10:0:0:0: [sda] 15122432 512-byte logical blocks: (7.74 GB/7.21 GiB)
[ 6158.249420] sd 10:0:0:0: [sda] Write Protect is off
[ 6158.249423] sd 10:0:0:0: [sda] Mode Sense: 21 00 00 00
[ 6158.251413] sd 10:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 6158.262696] sda: sda1
Then I put bootloader on card
sudo dd if=u-boot-imx6-emmc.img of=/dev/sda bs=1k seek=69 conv=sync
sudo dd if=spl-imx6-emmc of=/dev/sda bs=1k seek=1 conv=sync
I connected microUSB cable to Cubox and computer with linux. There was an message in dmesg
[ 2299.045375] usb 1-8.4: new full-speed USB device number 16 using xhci_hcd
[ 2299.425626] usb 1-8.4: New USB device found, idVendor=0403, idProduct=6015, bcdDevice=10.00
[ 2299.425632] usb 1-8.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2299.425635] usb 1-8.4: Product: FT230X Basic UART
[ 2299.425637] usb 1-8.4: Manufacturer: FTDI
[ 2299.425638] usb 1-8.4: SerialNumber: DN001I9J
[ 2299.444622] ftdi_sio 1-8.4:1.0: FTDI USB Serial Device converter detected
[ 2299.444661] usb 1-8.4: Detected FT-X
[ 2299.445413] usb 1-8.4: FTDI USB Serial Device converter now attached to ttyUSB0
I attached to this device with minicom
using /dev/ttyUSB0
as target. I power up device and there is nothing on screen via HDMI and nothing on serial.
When I mount this SD card I can see there are files there
╰─ ls
boot.scr debian-12.8.0-armhf-netinst.iso dtbs initrd.gz lost+found vmlinuz
╰─ more boot.scr
'VTdg'|'#d# Bootscript using the new unified bootcmd handling
# introduced with u-boot v2014.10
if test -n "${boot_targets}"; then
echo "Mainline u-boot / new-style environment detected."
else
echo "Non-mainline u-boot or old-style mainline u-boot detected."
echo "This boot script uses the unified bootcmd handling of mainline"
echo "u-boot >=v2014.10, which is not available on your system."
echo "Please boot the installer manually."
exit 0
fi
if test -z "${fdtfile}"; then
echo 'fdtfile environment variable not set. Aborting boot process.'
exit 0
fi
if test -n "${distro_bootpart}"; then
setenv partition "${distro_bootpart}"
else
setenv partition "${bootpart}"
fi
if test ! -e ${devtype} ${devnum}:${partition} dtbs/${fdtfile}; then
echo "This installer medium does not contain a suitable device-tree file for"
echo "this system (${fdtfile}). Aborting boot process."
exit 0
fi
# Some i.MX6-based systems do not encode the baudrate in the console variable
if test "${console}" = "ttymxc0" && test -n "${baudrate}"; then
setenv console "${console},${baudrate}"
fi
if test -n "${console}"; then
setenv bootargs "${bootargs} console=${console}"
fi
load ${devtype} ${devnum}:${partition} ${kernel_addr_r} vmlinuz \
&& load ${devtype} ${devnum}:${partition} ${fdt_addr_r} dtbs/${fdtfile} \
&& load ${devtype} ${devnum}:${partition} ${ramdisk_addr_r} initrd.gz \
&& echo "Booting the Debian installer..." \
&& bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}
Am I doing something wrong? How can I debug this?