Skip to content

Instantly share code, notes, and snippets.

@KenMacD
Last active March 1, 2022 21:19
Show Gist options
  • Save KenMacD/8999d48fc7e04dbcd9a832a7edc3da71 to your computer and use it in GitHub Desktop.
Save KenMacD/8999d48fc7e04dbcd9a832a7edc3da71 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
export FIPDIR=$PWD/../amlogic-u-boot/fip
mkdir fip || true
cp $FIPDIR/gxb/bl2.bin fip/
cp $FIPDIR/gxb/acs.bin fip/
cp $FIPDIR/gxb/bl21.bin fip/
cp $FIPDIR/gxb/bl30.bin fip/
cp $FIPDIR/gxb/bl301.bin fip/
cp $FIPDIR/gxb/bl31.img fip/
cp u-boot.bin fip/bl33.bin
$FIPDIR/blx_fix.sh \
fip/bl30.bin \
fip/zero_tmp \
fip/bl30_zero.bin \
fip/bl301.bin \
fip/bl301_zero.bin \
fip/bl30_new.bin \
bl30
python $FIPDIR/acs_tool.pyc fip/bl2.bin fip/bl2_acs.bin fip/acs.bin 0
$FIPDIR/blx_fix.sh \
fip/bl2_acs.bin \
fip/zero_tmp \
fip/bl2_zero.bin \
fip/bl21.bin \
fip/bl21_zero.bin \
fip/bl2_new.bin \
bl2
$FIPDIR/fip_create --bl30 fip/bl30_new.bin --bl31 fip/bl31.img --bl33 fip/bl33.bin fip/fip.bin
cat fip/bl2_new.bin fip/fip.bin >fip/boot_new.bin
$FIPDIR/gxb/aml_encrypt_gxb --bootsig --input fip/boot_new.bin --output fip/u-boot.bin
#$FIPDIR/gxb/aml_encrypt_gxb --bootsig --input fip/u-boot.bin --amluserkey $FIPDIR/../board/amlogic/gxb_p201_v1/aml-user-key.sig \
# --aeskey enable --output fip/u-boot.bin.encrypt
GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:800;USB:8;GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:0;READ:0;CHK:0;
no sdio debug board detected
TE: 137412
BL2 Built : 11:58:33, May 27 2017.
gxb gc3c9a84 - xiaobo.gu@droid05
set vcck to 1100 mv
set vddee to 1000 mv
Board ID = 2
CPU clk: 1536MHz
DDR chl: Rank0+1 same @ 912MHz
DDR0: 1024MB-2T-13
DataBus test pass!
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from SD, src: 0x00010200, des: 0x01000000, size: 0x0000d460
Sending bl30......................................................OK.
Run bl30...
Load bl31 from SD, src: 0x00020200, des: 0x0510000[, size: 0x00016180
Image: gxb_v1.1.3221-2cfba69 2017-05-27 16:04:23 qiufang.dai@droid07]
OPS=0x13
efuse_setup() 573: HDCP=0x0c REG32(SEC_AO_SEC_SD_CFG9)=0x00000007
5f 73 a2 75 6 40 32 1 7f 3a ec ba [0.237086 Inits done]
secure task start!
high task start!
low task start!
Load bl33 from SD, src: 0x00038200, des: 0x01000000, size: 0x000886d0
NOTICE: BL3-1: v1.0(release):3348978
NOTICE: BL3-1: Built : 15:43:06, May 12 2017
ERROR: Error initializing runtime service opteed_fast
<debug_uart>
U-Boot 2022.04-rc3 (Mar 01 2022 - 03:36:50 +0000) p201
Model: Amlogic Meson GXBB P201 Development Board
SoC: Amlogic Meson GXBB (S905) Revision 1f:c (13:1)
DRAM: 1 GiB
Core: 145 devices, 16 uclasses, devicetree: separate
MMC: mmc@70000: 0, mmc@72000: 1, mmc@74000: 2
Loading Environment from nowhere... OK
In: serial@4c0
Out: serial@4c0
Err: serial@4c0
[BL31]: tee size: 0
[BL31]: tee size: 0
Net:
Warning: ethernet@c9410000 (eth0) using random MAC address - 6e:3f:7d:67:91:73
eth0: ethernet@c9410000
Hit any key to stop autoboot: 0
=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment