### The hard way - packaging the binaries from Amlogic's buildroot:
### The hard way - packaging the binaries from Amlogic's GIT repositories:
The goal here is to collect the bl2, bl21, bl30, bl31, bl301 and acs.bin
Some of these binaries are directly provided by the buildroot package of Amlogic, other must be generated from the vendor u-boot.
Use this script [collect-aml-binaries-git-refboard.sh](uploads/0bc0db53b2f507d87ffa4e00ce26c833/collect-aml-binaries-git-refboard.sh) which will do it for you
To package the binaries together and make something we can flash, we must follow some obscure procedure which you can read in the scripts that amlogic's buildroot uses.
These tends to change betweeen soc and u-boot versions. Best is to just use what we previously packaged and this script [generate-bins-new.sh](uploads/2103b12fe2d91bdb543447783e20ef53/generate-bins-new.sh)
this will generate a directory with the following binaries
*`u-boot.bin`: binary to flash on the emmc or the spi:
* emmc: remember skip the first sector:
```shell
mmc dev 1 1
mmc write $fileaddr 1 $bin_block_num
```
You may choose to write the u-boot on the boot partitions of the eMMC. The boot order is `user` -> `boot 0` -> `boot 1`.
*`u-boot.bin.sd.bin` : **NO YET TESTED** Binary to boot from an sdcard: remember to leave room for the MBR : [write-u-boot.sh](uploads/0b4d640b26473a2783751482d1e311e8/write-u-boot.sh)
### DEPRECATED The hard way - packaging the binaries from Amlogic's buildroot:
The goal here is to collect the bl2, bl21, bl30, bl31, bl301 and acs.bin
The goal here is to collect the bl2, bl21, bl30, bl31, bl301 and acs.bin
Some of these binaries are directly provided by the buildroot package of Amlogic, other must be generated from the vendor u-boot.
Some of these binaries are directly provided by the buildroot package of Amlogic, other must be generated from the vendor u-boot.
...
@@ -86,7 +119,7 @@ OR you can use this script [collect-aml-binaries-new.sh](uploads/afa7f471af14fad
...
@@ -86,7 +119,7 @@ OR you can use this script [collect-aml-binaries-new.sh](uploads/afa7f471af14fad
To package the binaries together and make something we can flash, we must follow some obscure procedure which you can read in the scripts that amlogic's buildroot uses.
To package the binaries together and make something we can flash, we must follow some obscure procedure which you can read in the scripts that amlogic's buildroot uses.
These tends to change betweeen soc and u-boot versions. Best is to just use what we previously packaged and this script [generate-bins-new.sh](uploads/425dd3fd9b999bbc08c3c3b5e95664e7/generate-bins-new.sh)
These tends to change betweeen soc and u-boot versions. Best is to just use what we previously packaged and this script [generate-bins-new.sh](uploads/425dd3fd9b999bbc08c3c3b5e95664e7/generate-bins-new.sh)