From b5a0e1f270688ad03f0d20199d194c948b097bd2 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Thu, 22 Aug 2019 18:59:30 +0800
Subject: [PATCH] update at91bootstrap and u-boot-at91 patch, remove eeprom in bootstrap and add default env in u-boot
---
linux-bsp/build.sh | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/linux-bsp/build.sh b/linux-bsp/build.sh
index 774f598..e505f78 100755
--- a/linux-bsp/build.sh
+++ b/linux-bsp/build.sh
@@ -10,10 +10,13 @@
PROJ_PATH=`pwd`
+CROSSTOOL=/opt/buildroot/cortex-a5/bin/arm-linux-
+
BOARD=sama5d4
PACK_PATH=${PROJ_PATH}/tarballs
PATCH_PATH=${PROJ_PATH}/patches
PATCH_SUFIX=${BOARD}.patch
+
ROOTFS_SRC=rootfs
@@ -85,6 +88,10 @@
if [ -f ${PATCH_PATH}/${SRC_DIR}-${PATCH_SUFIX} ] ; then
show_banner "| patch for ${SRC_DIR} |"
+
+ # update cross compiler
+ sed -i -e "s|^+CROSSTOOL=.*|+CROSSTOOL=${CROSSTOOL}|g" ${PATCH_PATH}/${SRC_DIR}-${PATCH_SUFIX}
+
patch -p1 < ${PATCH_PATH}/${SRC_DIR}-${PATCH_SUFIX}
fi
else
@@ -128,8 +135,9 @@
LEB_CNT=`expr $PEB_CNT - 4 - $PEB_CNT \/ 100 `
#echo "Parition size ${partition_size}MiB and LEB=$LEB_CNT"
- set -x
- mkfs.ubifs -F -d ${ROOTFS_SRC} -m ${PAGE_SIZE} -e ${LEB_SIZE} -c $LEB_CNT -o ${ubimg_tmp}
+ set -x
+ printf "\nWARNNING: generete rootfs image need root privilege, please input sudo passwd!\n\n"
+ sudo mkfs.ubifs -F -d ${ROOTFS_SRC} -m ${PAGE_SIZE} -e ${LEB_SIZE} -c $LEB_CNT -o ${ubimg_tmp}
set +x
@@ -152,12 +160,8 @@
function build_rootfs()
{
if [ ! -d ${ROOTFS_SRC} ] ; then
- if [ `id -u` != 0 ] ; then
- printf "\nERROR: decompress rootfs need root privilege, please use sudo!\n\n"
- exit ;
- fi
-
- tar -xJf ${PACK_PATH}/${ROOTFS_SRC}.tar.xz
+ printf "\nWARNNING: decompress rootfs need root privilege, please input sudo passwd!\n\n"
+ sudo tar -xJf ${PACK_PATH}/${ROOTFS_SRC}.tar.xz
fi
show_banner "| start build rootfs image... |"
--
Gitblit v1.9.1