Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/next/external/config/sources/families/meson-sm1.conf
Views: 3960
#1# SPDX-License-Identifier: GPL-2.02#3# Copyright (c) 2013-2023 Igor Pecovnik, [email protected]4#5# This file is a part of the Armbian Build Framework6# https://github.com/armbian/build/7#8source "${BASH_SOURCE%/*}/include/meson64_common.inc"910CPUMIN=66700011CPUMAX=180000012GOVERNOR=ondemand1314case $BRANCH in1516#current)1718# UBOOT_TARGET_MAP=";;build/u-boot.bin.sd.bin:u-boot.bin"19# BOOTPATCHDIR="v2015.01"20# BOOTBRANCH='branch:u-boot-2015.01'21# UBOOT_COMPILER="aarch64-linux-gnu-"22# UBOOT_USE_GCC='< 5.0'23# UBOOT_TOOLCHAIN2='arm-none-eabi-:5.0'2425# KERNELBRANCH='branch:orange-pi-5.15-s905d3'26# KERNELPATCHDIR='rockchip-rk3588-legacy'27# LINUXCONFIG="linux-5.15-s905d3-current"28# KERNEL_USE_GCC='> 10.0'2930# BOOT_FDT_FILE="meson-sm1-orangepi-3-plus.dtb"3132# ;;3334next)3536UBOOT_TARGET_MAP="u-boot-dtb.img;;u-boot.bin.sd.bin:u-boot.bin u-boot-dtb.img u-boot-spi.bin:u-boot-spi.bin"37BOOTPATCHDIR="v2023.07-meson64"38BOOTBRANCH='branch:v2023.07-meson64'3940KERNELBRANCH='branch:orange-pi-6.1-meson64'41LINUXCONFIG="linux-6.1-meson64-next"4243#KERNELBRANCH='branch:orange-pi-6.5-meson64'44#LINUXCONFIG="linux-6.5-meson64-next"4546KERNELPATCHDIR='meson64-next'47KERNEL_USE_GCC='> 10.0'48ASOUND_STATE='asound.state.orangepi3plus-next'4950;;51esac5253write_uboot_platform_mtd() {54dd if=$1/u-boot-spi.bin of=/dev/mtdblock055}5657family_tweaks() {5859#if [[ ${BRANCH} == current ]]; then60# sed -i 's/^debug_uart.*/debug_uart=ttyS0/' "${SDCARD}"/boot/orangepiEnv.txt61# SERIALCON="ttyS0"62#fi6364install_wiringop6566rsync -a --chown=root:root --exclude=etc/pulse "${EXTER}"/packages/bsp/overlays_s905d3/* ${SDCARD}/6768chroot $SDCARD /bin/bash -c "apt-get -y -qq install usb-modeswitch tree dnsmasq v4l-utils swig python3-dev python3-setuptools bluez libncurses-dev" >> "${DEST}"/${LOG_SUBPATH}/install.log 2>&16970#install_balenaEtcher71}7273uboot_custom_postprocess() {7475cd "${BOOTSOURCEDIR}"7677if [[ ${BOARD} == orangepi3plus && ${BRANCH} == next ]]; then7879# Preserve the u-boot produced (unsigned) u-boot.bin80cp -v u-boot.bin u-boot.bin.orig8182# Sign using the old FIP blobs (amlogic-boot-fip-vim3-spi), for use exclusively with SPI booting.83display_alert "Signing u-boot for SPI booting with old blobs" "${BOARD}" "info"84uboot_g12_postprocess "${EXTER}"/cache/sources/amlogic-boot-fip-spi/${BOARD} g12a8586# Once done, store the resulting u-boot.bin as u-boot-spi.bin referenced in the UBOOT_TARGET_MAP above.87cp -v u-boot.bin u-boot-spi.bin8889# Restore the original, so we can do everything again.90cp -v u-boot.bin.orig u-boot.bin9192# Do the normal signing, using the regular/updated FIP blobs. This is for eMMC booting.93display_alert "Signing u-boot for eMMC/SD booting with new blobs" "${BOARD}" "info"94uboot_g12_postprocess "${EXTER}"/cache/sources/amlogic-boot-fip/${BOARD} g12a9596display_alert "Done postprocessing u-boot with new/old FIP blobs" "${BOARD}" "info"97fi9899#if [[ ${BOARD} == orangepi3plus && ${BRANCH} == current ]]; then100101# UBOOT_SRC_FOLDER="${BOOTSOURCEDIR}"102103# source fip/variables.sh "${BOOTSOURCEDIR}"104# source fip/lib.sh105# source fip/build_bl2.sh106# source fip/build_bl30.sh107# source fip/build_bl31.sh108# source fip/build_bl32.sh109# source fip/build_bl33.sh110# source fip/build_bl40.sh111112# # Cleanup old binaries113# rm -rf ${FIP_BUILD_FOLDER}114115# # source uboot pre-build configs116# source ${SOURCE_FILE}117118# CUR_SOC=${CONFIG_SYS_SOC}119120# if [ "y" == "${CONFIG_NEED_BL32}" ]; then121# BLX_NEEDFUL[3]="true"122# fi123124# export_variables125126# source ${FIP_FOLDER}${CUR_SOC}/variable_soc.sh127128# # compile fip tools for ddr_parse and map_tool129# prepare_tools > /dev/null 2>&1 || true130131# # source soc package script132# source ${FIP_FOLDER}${CUR_SOC}/build.sh133134# # source configs135# source ${CONFIG_FILE}136# if [ "y" == "${CONFIG_SUPPORT_CUSOTMER_BOARD}" ]; then137# BOARD_DIR="customer/board/${CONFIG_SYS_BOARD}"138# else139# BOARD_DIR="${CONFIG_BOARDDIR}"140# fi141142# mkdir -p ${FIP_BUILD_FOLDER}143144# cp ${FIP_FOLDER}${CUR_SOC}/bl2.bin $FIP_BUILD_FOLDER145# cp ${FIP_FOLDER}${CUR_SOC}/bl30.bin $FIP_BUILD_FOLDER146# cp ${FIP_FOLDER}${CUR_SOC}/bl31.bin $FIP_BUILD_FOLDER147# cp ${FIP_FOLDER}${CUR_SOC}/bl31.img $FIP_BUILD_FOLDER148# #cp ${FIP_FOLDER}${CUR_SOC}/bl32.bin $FIP_BUILD_FOLDER149150# # cp bl33(uboot)151# copy_bl33152153# # cp other firmwares(soc related)154# copy_other_soc155156# # package final bootloader157# package158159# if [ "y" != "${CONFIG_AML_SIGNED_UBOOT}" ]; then160# # copy bootloader to main folder161# mkdir -p ${BUILD_FOLDER}162# cp ${FIP_BUILD_FOLDER}u-boot.bin ${BUILD_FOLDER}u-boot.bin163# cp ${FIP_BUILD_FOLDER}u-boot.bin.encrypt ${BUILD_FOLDER}u-boot.bin.encrypt164# cp ${FIP_BUILD_FOLDER}u-boot.bin.encrypt.efuse ${BUILD_FOLDER}u-boot.bin.encrypt.efuse165# cp ${FIP_BUILD_FOLDER}u-boot.bin.encrypt.sd.bin ${BUILD_FOLDER}u-boot.bin.encrypt.sd.bin166# cp ${FIP_BUILD_FOLDER}u-boot.bin.encrypt.usb.bl2 ${BUILD_FOLDER}u-boot.bin.encrypt.usb.bl2167# cp ${FIP_BUILD_FOLDER}u-boot.bin.encrypt.usb.tpl ${BUILD_FOLDER}u-boot.bin.encrypt.usb.tpl168# cp ${FIP_BUILD_FOLDER}u-boot.bin.sd.bin ${BUILD_FOLDER}u-boot.bin.sd.bin169# cp ${FIP_BUILD_FOLDER}u-boot.bin.usb.bl2 ${BUILD_FOLDER}u-boot.bin.usb.bl2170# cp ${FIP_BUILD_FOLDER}u-boot.bin.usb.tpl ${BUILD_FOLDER}u-boot.bin.usb.tpl171172# if [ "y" == "${CONFIG_AML_CRYPTO_IMG}" ]; then173# cp ${FIP_BUILD_FOLDER}boot.img.encrypt ${BUILD_FOLDER}boot.img.encrypt174# fi175# fi176#fi177}178179180