Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • config-sata-boot
  • source_date_epoch
  • bootargs
  • josch
  • 2024-06-30
  • 2023-10-10
  • 2023-09-19
  • 2023-09-13
9 results

build.sh

Blame
  • build.sh 704 B
    #!/bin/bash
    
    set -exu
    
    export CROSS_COMPILE=aarch64-linux-gnu-
    export ARCH=arm64
    export LDFLAGS=--no-warn-rwx-segments
    
    # build Reset Configuration Word
    cd rcw/ls1028a-mnt-reform2
    make
    cd ../..
    
    # build u-boot
    # TODO: customize dts/config
    # TODO: what about the gpio settings at boot?
    make ls1028ardb_tfa_defconfig
    make -j$(nproc)
    
    # build ARM Trusted Firmware
    git clone https://source.mnt.re/reform/reform-ls1028a-atf.git atf
    
    export DDR_BIST=no
    export DDR_DEBUG=yes
    export DDR_PHY_DEBUG=yes
    
    cd atf
    make -j$(nproc) PLAT=ls1028ardb fip pbl BOOT_MODE=sd RCW=../rcw/ls1028a-mnt-reform2/R_PSPH_0xb8be/rcw_1500_sdboot.bin BL33=../u-boot-dtb.bin
    cd ..
    
    cp atf/build/ls1028ardb/release/bl2_sd.pbl ./flash.bin