Bug#845818: flash-kernel: Add support for Hardkernel Odroid-C2

2017-04-19 Thread Heinrich Schuchardt
On 03/19/2017 09:44 PM, Vagrant Cascadian wrote:
> On 2017-03-19, Vagrant Cascadian wrote:
>> On 2017-03-17, Martin Michlmayr wrote:
>>> * Heinrich Schuchardt  [2017-03-18 02:39]:
 U-Boot 2017-3 does not contain MMC support for the Odroid
 C2. I have seen a recent patch series for MMC support. But I
 did not yet build with it.
>>> 
>>> If they are accepted for 2017.05, maybe Vagrant could add them
>>> to the 2017.03 Debian package.
>> 
>> I also have an odroid-c2 I'd like to get working... I'd be happy
>> to look into it! Do you have a link to the patchset for MMC
>> support?
> 
> Found the v6 series, which needs some minor fixes and people to
> test it:
> 
> https://lists.denx.de/pipermail/u-boot/2017-February/thread.html#28194
3
>
> 
https://lists.denx.de/pipermail/u-boot/2017-March/282944.html
> https://lists.denx.de/pipermail/u-boot/2017-March/283633.html 
> https://lists.denx.de/pipermail/u-boot/2017-March/283634.html
> 
> But otherwise sounds promising...
> 
> 
> live well, vagrant
> 
The patch series is inside 2017.05-rc2.

You additionally need:

https://patchwork.ozlabs.org/patch/751082/
[U-Boot,v3,1/1] meson: gxbb: enable MMC as boot target

https://patchwork.ozlabs.org/patch/750920/
[U-Boot,v2,1/1] meson: gxbb: change ramdisk_addr_r

Best regards

Heinrich Schuchardt



Bug#845818: Re: Bug#845818: flash-kernel: Add support for Hardkernel Odroid-C2

2017-04-19 Thread Vagrant Cascadian
On 2017-03-17, Martin Michlmayr  wrote:
> * Heinrich Schuchardt  [2017-03-18 02:39]:
>> U-Boot 2017-3 does not contain MMC support for the Odroid C2.
>> I have seen a recent patch series for MMC support. But I did not yet
>> build with it.
>
> If they are accepted for 2017.05, maybe Vagrant could add them to the
> 2017.03 Debian package.

FWIW, u-boot 2017.05-rc2 in experimental now includes a u-boot-amlogic
package with MMC support (most of it mainlined).

Now if we can just get mmc working in the kernel (e.g. debian bug
#860222)...


live well,
  vagrant


signature.asc
Description: PGP signature


Bug#845818: Re: Bug#845818: flash-kernel: Add support for Hardkernel Odroid-C2

2017-03-19 Thread Vagrant Cascadian
On 2017-03-19, Vagrant Cascadian wrote:
> On 2017-03-17, Martin Michlmayr wrote:
>> * Heinrich Schuchardt  [2017-03-18 02:39]:
>>> U-Boot 2017-3 does not contain MMC support for the Odroid C2.
>>> I have seen a recent patch series for MMC support. But I did not yet
>>> build with it.
>>
>> If they are accepted for 2017.05, maybe Vagrant could add them to the
>> 2017.03 Debian package.
>
> I also have an odroid-c2 I'd like to get working... I'd be happy to look
> into it! Do you have a link to the patchset for MMC support?

Found the v6 series, which needs some minor fixes and people to test it:

  https://lists.denx.de/pipermail/u-boot/2017-February/thread.html#281943
  https://lists.denx.de/pipermail/u-boot/2017-March/282944.html
  https://lists.denx.de/pipermail/u-boot/2017-March/283633.html
  https://lists.denx.de/pipermail/u-boot/2017-March/283634.html

But otherwise sounds promising...


live well,
  vagrant


signature.asc
Description: PGP signature


Bug#845818: Re: Bug#845818: flash-kernel: Add support for Hardkernel Odroid-C2

2017-03-19 Thread Vagrant Cascadian
On 2017-03-17, Martin Michlmayr wrote:
> * Heinrich Schuchardt  [2017-03-18 02:39]:
>> U-Boot 2017-3 does not contain MMC support for the Odroid C2.
>> I have seen a recent patch series for MMC support. But I did not yet
>> build with it.
>
> If they are accepted for 2017.05, maybe Vagrant could add them to the
> 2017.03 Debian package.

I also have an odroid-c2 I'd like to get working... I'd be happy to look
into it! Do you have a link to the patchset for MMC support?


live well,
  vagrant


signature.asc
Description: PGP signature


Bug#845818: Re: Re: Bug#845818: flash-kernel: Add support for Hardkernel Odroid-C2

2017-03-18 Thread Martin Michlmayr
Ok, I'll add the following:

Machine: Hardkernel ODROID-C2
Kernel-Flavors: arm64
DTB-Id: meson-gxbb-odroidc2.dtb
Boot-Script-Path: /boot/boot.scr
U-Boot-Script-Name: bootscr.uboot-generic
Required-Packages: u-boot-tools


* Heinrich Schuchardt  [2017-03-18 07:12]:
>Please, go ahead with the generic script.
> 
>Am 18.03.17, 02:44, Martin Michlmayr  schrieb:
> 
>  Hi Heinrich,
>  * Heinrich Schuchardt  [2017-03-18 02:39]:
>  > U-Boot 2017-3 does not contain MMC support for the Odroid C2.
>  > I have seen a recent patch series for MMC support. But I did not
>  yet
>  > build with it.
>  If they are accepted for 2017.05, maybe Vagrant could add them to
>  the
>  2017.03 Debian package.
>  > You are right in that with MMC support in mainline u-boot we
>  should be
>  > able to use a generic boot script.
>  Are you ok with the approach I proposed (i.e. requiring users to
>  install a new u-boot, which hopefully weʼll have in Debian unstable
>  at
>  some point) or would you prefer your original solution that works
>  with
>  the built-in u-boot? My worries are about supporting upgrades from
>  the original u-boot to mainline u-boot. Going with the generic
>  u-boot
>  approach would avoid this issue.
>  --
>  Martin Michlmayr
>  [1]http://www.cyrius.com/
> 
> References
> 
>1. http://www.cyrius.com/

-- 
Martin Michlmayr
http://www.cyrius.com/



Bug#845818: Re: Bug#845818: flash-kernel: Add support for Hardkernel Odroid-C2

2017-03-17 Thread Martin Michlmayr
Hi Heinrich,

* Heinrich Schuchardt  [2017-03-18 02:39]:
> U-Boot 2017-3 does not contain MMC support for the Odroid C2.
> I have seen a recent patch series for MMC support. But I did not yet
> build with it.

If they are accepted for 2017.05, maybe Vagrant could add them to the
2017.03 Debian package.

> You are right in that with MMC support in mainline u-boot we should be
> able to use a generic boot script.

Are you ok with the approach I proposed (i.e. requiring users to
install a new u-boot, which hopefully we'll have in Debian unstable at
some point) or would you prefer your original solution that works with
the built-in u-boot?  My worries are about supporting upgrades from
the original u-boot to mainline u-boot.  Going with the generic u-boot
approach would avoid this issue.

-- 
Martin Michlmayr
http://www.cyrius.com/



Bug#845818: flash-kernel: Add support for Hardkernel Odroid-C2

2017-03-17 Thread Martin Michlmayr
* Heinrich Schuchardt  [2016-11-26 22:57]:
> As mainline u-boot support is still under construction boot.scr
> is build such that the stock u-boot can execute it.

As you know, I added your prerequisite patch but I never added this
patch and didn't explain why (apart from hoping someone else would
take ownership).

Basically, it seems to me like an hack to add this specific boot
script when work is going on to support Odroid-C2 properly upstream.

I don't have such a device, but I looked at the u-boot list a few
weeks ago and it seems there has been a lot of progress recently.

So I'm wondering whether this approach makes sense:

* In flash-kernel, add an entry that uses the generic boot script
* Get an u-boot-armlogic (or whatever) package into unstable using 2017.03
* Document the install process on wiki.deban.org, i.e. take the u-boot
  from unstable and then install stable.

What do you think about this approach?  Do you know how well u-boot
2017.03 works on this device?

-- 
Martin Michlmayr
http://www.cyrius.com/



Bug#845818: flash-kernel: Add support for Hardkernel Odroid-C2

2017-01-04 Thread Geert Stappers
On Wed, Jan 04, 2017 at 12:33:30PM +0100, Heinrich Schuchardt wrote:
> The prerequisite patch fixing #845779 has been applied to the
> flash-kernel git.
> 

URL to that bugreport https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845779



Bug#845818: flash-kernel: Add support for Hardkernel Odroid-C2

2017-01-04 Thread Heinrich Schuchardt
The prerequisite patch fixing #845779 has been applied to the
flash-kernel git.



Bug#845818: flash-kernel: Add support for Hardkernel Odroid-C2

2016-11-26 Thread Heinrich Schuchardt
Package: flash-kernel
Version: 3.71
Severity: wishlist

The appended patch provides support for the Hardkernel Odroid-C2.
It depends on a solution to
Bug #845779 flash-kernel: flashkernel uses mkimage -A arm on arm64

The Hardkernel Odroid C2 is a 64bit development board based on the
Amlogic S905 processor.

As mainline u-boot support is still under construction boot.scr
is build such that the stock u-boot can execute it.

Update the u-boot environment with
setenv bootcmd "ext4load mmc 0:1 0x107 boot.scr; autoscr 0x107"
saveenv

Separate ext4 partitions for '/boot' and '/' are assumed.
From 8483746841c140dc38784866c94a802f293cdb5b Mon Sep 17 00:00:00 2001
From: Heinrich Schuchardt 
Date: Sat, 26 Nov 2016 21:34:43 +
Subject: [PATCH 1/1] Add support for Hardkernel Odroid C2

The Hardkernel Odroid C2 is a 64bit development board based on the
Amlogic S905 processor.

As mainline u-boot support is still under construction boot.scr
is build such that the stock u-boot can execute it.

Update the u-boot environment with
setenv bootcmd "ext4load mmc 0:1 0x107 boot.scr; autoscr 0x107"
saveenv

Separate ext4 partitions for '/boot' and '/' are assumed.

Signed-off-by: Heinrich Schuchardt 
---
 bootscript/arm64/bootscr.hardkernel-odroid-c2 | 17 +
 db/all.db | 11 +++
 2 files changed, 28 insertions(+)
 create mode 100644 bootscript/arm64/bootscr.hardkernel-odroid-c2

diff --git a/bootscript/arm64/bootscr.hardkernel-odroid-c2 b/bootscript/arm64/bootscr.hardkernel-odroid-c2
new file mode 100644
index 000..5cce3de
--- /dev/null
+++ b/bootscript/arm64/bootscr.hardkernel-odroid-c2
@@ -0,0 +1,17 @@
+setenv fdtfile meson-gxbb-odroidc2.dtb
+setenv fk_kvers '@@KERNEL_VERSION@@'
+setenv fdtpath dtbs/${fk_kvers}/${fdtfile}
+
+setenv condev "console=ttyAML0,115200n8 console=tty0"
+setenv bootargs "root=/dev/mmcblk1p2 rootwait ro ${condev}"
+
+setenv loadaddr "0x108"
+setenv dtb_loadaddr "0x100"
+setenv initrd_loadaddr "0x1300"
+
+ext4load mmc 0:1 ${initrd_loadaddr} uInitrd
+ext4load mmc 0:1 ${loadaddr} uImage
+ext4load mmc 0:1 ${dtb_loadaddr} ${fdtpath}
+fdt addr ${dtb_loadaddr}
+
+bootm ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}
diff --git a/db/all.db b/db/all.db
index a9567a9..e81cf18 100644
--- a/db/all.db
+++ b/db/all.db
@@ -427,6 +427,17 @@ DTB-Id: sun4i-a10-marsboard.dtb
 U-Boot-Script-Name: bootscr.sunxi
 Required-Packages: u-boot-tools
 
+Machine: Hardkernel ODROID-C2
+U-Boot-Kernel-Address: 0x108
+U-Boot-Initrd-Address: 0x1300
+U-Boot-Script-Address: 0x100
+U-Boot-Script-Name: bootscr.hardkernel-odroid-c2
+Boot-Kernel-Path: /boot/uImage
+Boot-Initrd-Path: /boot/uInitrd
+Boot-Script-Path: /boot/boot.scr
+Required-Packages: u-boot-tools
+DTB-Id: meson-gxbb-odroidc2.dtb
+
 Machine: Hardkernel ODROID-U3 board based on Exynos4412
 Kernel-Flavors: armmp armmp-lpae
 DTB-Id: exynos4412-odroidu3.dtb
-- 
2.10.2