Bug#860834: Install process for u-boot on odroid-c2

2017-12-09 Thread Vagrant Cascadian
On 2017-12-09, Thomas Champagne  wrote:
> I tried to install u-boot from the u-boot-amlogic package.
> I have followed the process documented in the
> /usr/share/doc/u-boot-amlogic/README file.
> So, in the fip_create command, I replaced u-boot.bin by the compiled
> u-boot in the package :
> /usr/lib/u-boot/odroid-c2/u-boot.bin
>
> $DIR/fip/fip_create --bl30  $DIR/fip/gxb/bl30.bin \
>--bl301 $DIR/fip/gxb/bl301.bin \
>--bl31  $DIR/fip/gxb/bl31.bin \
>--bl33  /usr/lib/u-boot/odroid-c2/u-boot.bin \
>$DIR/fip.bin
>
> But, I did not succeed to boot my odroid-c2 with this compiled u-boot.

What do you mean by "compiled" here?

I presume you also followed the rest of the instructions in the README?


> If I follow this installation process with u-boot compiled from the
> https://github.com/hardkernel/u-boot.git repository, the odroid-c2
> card boot.

Are you installing u-boot to eMMC or microsd?


> Do you know where is the problem with the packaged u-boot ?

What version did you try? I last tried with 2017.09+dfsg1-1, with the
following script (BL1 was installed from a previous iteration), and
commit eb5d2d16fd45f52ec49e9b4ff9d562630c08e61c
From https://github.com/hardkernel/u-boot/ -b odroidc2-v2015.01

#!/bin/sh

set -e
set -x

dev=$1
test -n "$dev"
ubootbin=$2
test -n "$ubootbin"

./fip_create --bl30 fip/gxb/bl30.bin \
 --bl301 fip/gxb/bl301.bin \
 --bl31 fip/gxb/bl31.bin \
 --bl33 "$ubootbin" \
 fip.bin
./fip_create --dump fip.bin
cat fip/gxb/bl2.package fip.bin > boot_new.bin
./fip/gxb/aml_encrypt_gxb --bootsig \
  --input boot_new.bin \
  --output u-boot.img

# assume BL1 is already installed, so comment BL1 lines out
#BL1=$DIR/sd_fuse/bl1.bin.hardkernel
#dd if=$BL1 of=$dev conv=fsync bs=1 count=442
#dd if=$BL1 of=$dev conv=fsync bs=512 skip=1 seek=1
dd if=u-boot.img of=u-boot.gxbb bs=512 skip=96
sudo dd if=u-boot.gxbb of=$dev conv=fsync bs=512 seek=97
#---

Since you have a working image, you could installing just the new u-boot
with the above script.


live well,
  vagrant


signature.asc
Description: PGP signature


Bug#860834: Install process for u-boot on odroid-c2

2017-12-09 Thread Thomas Champagne
Hello Vagrant,

I tried to install u-boot from the u-boot-amlogic package.
I have followed the process documented in the
/usr/share/doc/u-boot-amlogic/README file.
So, in the fip_create command, I replaced u-boot.bin by the compiled
u-boot in the package :
/usr/lib/u-boot/odroid-c2/u-boot.bin

$DIR/fip/fip_create --bl30  $DIR/fip/gxb/bl30.bin \
   --bl301 $DIR/fip/gxb/bl301.bin \
   --bl31  $DIR/fip/gxb/bl31.bin \
   --bl33  /usr/lib/u-boot/odroid-c2/u-boot.bin \
   $DIR/fip.bin


But, I did not succeed to boot my odroid-c2 with this compiled u-boot.

If I follow this installation process with u-boot compiled from the
https://github.com/hardkernel/u-boot.git repository, the odroid-c2
card boot.

Do you know where is the problem with the packaged u-boot ?
Thanks for you help !
Thomas