--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: flash-kernel: Please add support for the original SolidRun CuBox (Dove)
- From: Josua Mayer <josua.mayer97@gmail.com>
- Date: Mon, 25 Sep 2017 17:58:10 +0000
- Message-id: <150636229001.682.3893554561366307423.reportbug@cubox>
Package: flash-kernel
Version: 3.79
Severity: wishlist
Tags: patch
Dear Maintainer,
The SolidRun CuBox has very good support in Mainline Linux.
Thus it is a great candidate for supporting it in Debian.
As I see it there are only 2 blockers right now:
- missing conifg options in the kernel package
- missing entry in flash-kernel
In this bug I'd like to solve the latter.
The board comes with a pretty old version of U-Boot that does support neither bootz nor distro_boot.
This is why we need:
- a custom boot.scr
- uImage with appended DTB
- uInitrd
- a way to set root= cmdline option
I have come up with the database entry below, and this preliminary boot-script:
setenv loadaddr 0x02000000
setenv loadaddrrd 0x20000000
setenv bootargs console=ttyS0,115200n8
${fstype}load ${device_name} 0:${partition} ${loadaddr} /boot/uImage
${fstype}load ${device_name} 0:${partition} ${loadaddrrd} /boot/uInitrd
bootm $loadaddr $loadaddrrd
I am running U-Boot 2009.08-dirty (Mar 09 2013 - 18:15:45) Marvell version: 5.4.4 NQ SR1.
It comes with a prepopulated bootcmd environment variable that tries out:
- usb sata(ide) mmc
- partitions 1,2
- directores / and /boot
to find a boot.scr.
At the time of loading it, these variables are set accordingly:
device_name, partition, directory, fstype
which can be used in our boot.scr.
One important thing that is missing, is bootargs!
We need to set: console, root, rootfstype, rootwait
- rootfstype could be gathered from fstype
- any ideas how to generate the root= option?
Ideally we could use UUID= there!
Or does Bootloader-Sets-Incorrect-Root: yes help here?
Please let me know if I can provide any additional details, or if you have something for me to test.
One note about testing: Can I get flash-kernel to work with a custom built kernel, as long as the necessary config options are not enabled in -armmp?
Yours sincerely
Josua Mayer
-- System Information:
Debian Release: 9.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: armhf (armv7l)
Kernel: Linux 4.9.45-dove-cubox (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages flash-kernel depends on:
ii debconf [debconf-2.0] 1.5.61
ii devio 1.2-1.2+b1
ii initramfs-tools 0.130
ii linux-base 4.5
ii mtd-utils 1:2.0.0-1
ii ucf 3.0036
Versions of packages flash-kernel recommends:
ii u-boot-tools 2016.11+dfsg1-4
flash-kernel suggests no packages.
-- Configuration Files:
/etc/flash-kernel/db changed:
Machine: SolidRun CuBox
Kernel-Flavors: armmp
DTB-Id: dove-cubox.dtb
DTB-Append: yes
Boot-Kernel-Path: /boot/uImage
Boot-Initrd-Path: /boot/uInitrd
U-Boot-Kernel-Address: 0x00008000
U-Boot-Initrd-Address: 0x0
Boot-Script-Path: /boot/boot.scr
U-Boot-Script-Name: bootscr.cubox
Required-Packages: u-boot-tools
Bootloader-Sets-Incorrect-Root: yes
Machine: SolidRun CuBox (Engineering Sample)
Kernel-Flavors: armmp
DTB-Id: dove-cubox-es.dtb
DTB-Append: yes
Boot-Kernel-Path: /boot/uImage
Boot-Initrd-Path: /boot/uInitrd
U-Boot-Kernel-Address: 0x00008000
U-Boot-Initrd-Address: 0x0
Boot-Script-Path: /boot/boot.scr
U-Boot-Script-Name: bootscr.cubox
Required-Packages: u-boot-tools
Bootloader-Sets-Incorrect-Root: yes
-- debconf information excluded
--- End Message ---
--- Begin Message ---
Source: flash-kernel
Source-Version: 3.91
We believe that the bug you reported is fixed in the latest version of
flash-kernel, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 876773@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Christian Perrier <bubulle@debian.org> (supplier of updated flash-kernel package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Thu, 01 Feb 2018 06:32:56 +0100
Source: flash-kernel
Binary: flash-kernel flash-kernel-installer
Architecture: source
Version: 3.91
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Christian Perrier <bubulle@debian.org>
Description:
flash-kernel - utility to make certain embedded devices bootable
flash-kernel-installer - Make the system bootable (udeb)
Closes: 839595 860304 873390 876773 887803
Changes:
flash-kernel (3.91) unstable; urgency=medium
.
[ Vagrant Cascadian ]
* Make ubootenv.d work on CuBox-i. Thanks to Rainer Dorsch.
* Do not install flash-kernel.in.
.
[ Heinrich Schuchardt ]
* flash-kernel: Provide hook to start EFI application (Closes: #873390).
.
[ Vagrant Cascadian ]
* Add support for SolidRun Clearfog Boards (Closes: #839595). Thanks to
Christoph Egger and Joshua Mayer.
* Add support for SolidRun CuBox (dove) (Closes: #876773). Thanks to
Josua Mayer.
* Fix when no Kernel-Flavors are defined (Closes: #887803).
* Add Boot-Kernel-Path-Version and Boot-Initrd-Path-Version to be used
to append the version to the generated kernel/initrd images.
* debian/control: Set Rules-Requires-Root: no.
.
[ Heinrich Schuchardt ]
* flash-kernel: support relative paths for DTB-Id (Closes: #860304).
.
[ Vagrant Cascadian ]
* Add compatibility symlink to dtb in vendor sub-directory.
* Add support for root device specified by PARTLABEL.
.
[ Andre Heider ]
* Add support for multiple scripts sources
.
[ Vagrant Cascadian ]
* Convert Wandboard and CuBox-i to use a shared imx-base plus
uboot-generic boot script.
* Adjust sunxi boot script to prefer prefix variable if defined to set
the locations to search for boot files.
.
[ Updated translations ]
* Tajik (tg.po) by Victor Ibragimov
Checksums-Sha1:
4be42438dd306e0415ef3cf04fad9bbb68f48e5f 1854 flash-kernel_3.91.dsc
6148176507ad6257a4732050f82686f4df0dbc46 71028 flash-kernel_3.91.tar.xz
Checksums-Sha256:
4e2244a6307e720d27bd1ab7a8e553cce981d1e6e7d9162ef293af11ab605562 1854 flash-kernel_3.91.dsc
8a3fa0b0b1476050e60b9cee5b4f4cf36b0d33dd80714e6cf9334ae290df6be1 71028 flash-kernel_3.91.tar.xz
Files:
609ae88d3e66a981f4322bcd59862545 1854 utils optional flash-kernel_3.91.dsc
cc46de9fdf9ad9ed787a4f07bbb59a79 71028 utils optional flash-kernel_3.91.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEE1cL5v8oSi7oip3IYhy9wLE1uJagFAlpyqX8ACgkQhy9wLE1u
JahfZhAAg5EBp596FJjBJ/0Of4sMx8aN8on9VZu7Bw9EZEkWyWirYT+Z1a2vEKTX
ct54ARkC3RhZrfLywf69UJWHwlx8zBwsD0o3SQdu30I3cqdsRIix8JDiQH73rmX/
Yr1suDnE/KxywOzUyosXlYs4sbQNLrklRsrh8zA3zz1uWjDYr5NQVcpvxV/Q1l3H
uLv2E8HK/00WCCQWIn85uZk/0q6smBw/9YJKXJuXlEwv9YzMeA9fqAOjtAhgRTY2
waXM4zzRNCcYMqdPRkJ9M9vP2+hXu0ipjKHlw0SMcxi2vYYiaNt3sr2aBxI4QoKb
2Dy2uGDT6FJ2HarA0qkD0bJX8FCYDixj1jdKDi6tMTidIOzrKkwpfQ9j1hYuWpPq
ehM6A7HLoyhMekU4sqd9PqMHW/OJz1mZ3UiHES8TxWxVfQCwq2nQrgsNPBcZjkP9
CZilNtyLYVW7J8JMlGWTcTuJzRwy34hFUe4lv9MET2GYEtJJ0f7sw/qnhRhTolN5
BDdd96HU2SkZwWdktnEGDLPZaCTcHnNL1lQWyFbTr/cfTA+Oc9PGXmAdNNuBEQaO
SN4kwBQJAOxQxsIRQcJ5zwwGa/Gt1NygLPBH1pDOsfcZpuQKCW/DMTpa3R2JsTKm
dN9XC685Gut+5SJRin3beT4m7xXNmpSKTzMdYob3WE/I7iNBB0s=
=xYZo
-----END PGP SIGNATURE-----
--- End Message ---