Package: flash-kernel
Version: 3.20
Severity: wishlist
Tags: patch
The following patch adds support for the Cubox-i Dual/Quad, tested on a Cubox
i4pro.
It is a simplified version of the patches proposed by Steve Langasek in:
https://lists.debian.org/debian-arm/2014/05/msg00228.html
It works with the default u-boot environment in the u-boot package in Jessie.
It requires /etc/default/flash-kernel to define root= in LINUX_KERNEL_CMDLINE,
as u-boot doesn't set bootargs by default.
It only supports booting off of mmc, though in theory booting off of eSATA
might be possible.
Should work as long as /boot or / are on the first partition of the mmc.
commit 28430825f07136d6e9d8bcc38e8c2a6ae3e7b803
Author: Vagrant Cascadian <vagrant@debian.org>
Date: Sun Jun 8 14:10:22 2014 -0700
Add support for SolidRun Cubox-i Dual/Quad.
diff --git a/bootscript/bootscr.cubox-i b/bootscript/bootscr.cubox-i
new file mode 100644
index 0000000..f8c69bb
--- /dev/null
+++ b/bootscript/bootscr.cubox-i
@@ -0,0 +1,17 @@
+# boot script for CuBox-i
+
+setenv device mmc
+setenv partition ${mmcdev}:${mmcpart}
+setenv bootargs '@@LINUX_KERNEL_CMDLINE@@'
+
+image_locations='/boot/ /'
+kvers='@@KERNEL_VERSION@@'
+
+for pathprefix in ${image_locations}
+do
+ load ${device} ${partition} ${loadaddr} ${pathprefix}vmlinuz-${kvers} \
+ && load ${device} ${partition} ${fdt_addr} ${pathprefix}dtb-${kvers} \
+ && load ${device} ${partition} ${ramdiskaddr} ${pathprefix}initrd.img-${kvers} \
+ && echo "Booting Debian ${kvers} from ${device} ${partition}..." \
+ && bootz ${loadaddr} ${ramdiskaddr}:${filesize} ${fdt_addr}
+done
diff --git a/db/all.db b/db/all.db
index 0eb1e72..217c4cb 100644
--- a/db/all.db
+++ b/db/all.db
@@ -88,6 +88,14 @@ U-Boot-Script-Name: bootscr.sunxi
Required-Packages: u-boot-tools
Bootloader-Sets-Incorrect-Root: no
+Machine: SolidRun Cubox-i Dual/Quad
+Kernel-Flavors: armmp
+DTB-Id: imx6q-cubox-i.dtb
+Boot-Script-Path: /boot/boot.scr
+U-Boot-Script-Name: bootscr.cubox-i
+Required-Packages: u-boot-tools
+Bootloader-Sets-Incorrect-Root: no
+
Machine: D-Link DNS-323
Kernel-Flavors: orion5x
Machine-Id: 1542
Thanks!
live well,
vagrant
Attachment:
signature.asc
Description: Digital signature