Build Atmel ARM9 board Board Support Packets
guowenxue
2024-08-30 5f28ee54121e6e12f3eac26c5c21fd7737863163
update build shell script to support fakeroot
4 files modified
8 ■■■■ changed files
config.json 2 ●●● patch | view | raw | blame | history
images/build.sh 2 ●●● patch | view | raw | blame | history
kernel/build.sh 2 ●●● patch | view | raw | blame | history
tools/setup_tools.sh 2 ●●● patch | view | raw | blame | history
config.json
@@ -3,7 +3,7 @@
    {
        "board":"LoRaGW",
        "version":"linux4sam-6.1",
        "giturl":"http://master.iot-yun.club:2211",
        "giturl":"http://master.weike-iot.com:2211",
        "crosstool":"/opt/buildroot/gcc-armel-5.5-v2019.02/bin/arm-linux-"
    }
}
images/build.sh
@@ -154,7 +154,7 @@
    #echo "Parition size ${partition_size}MiB and LEB=$LEB_CNT"
    set -x
    sudo mkfs.ubifs -F -d ${ROOTFS_SRC} -m ${PAGE_SIZE} -e ${LEB_SIZE} -c $LEB_CNT -o ${ubimg_tmp}
    fakeroot mkfs.ubifs -F -d ${ROOTFS_SRC} -m ${PAGE_SIZE} -e ${LEB_SIZE} -c $LEB_CNT -o ${ubimg_tmp}
    set +x
    # vol_size smaller than the actual size of the partition to leave room for Ubifs internal data.
kernel/build.sh
@@ -146,7 +146,7 @@
    make -j${JOBS} ARCH=${ARCH} CROSS_COMPILE=${CROSS_COMPILE}
    pr_info "mkimage -f linuxrom-${BOARD}.its ${IMG_KER}"
    mkimage -f linuxrom-${BOARD}.its ${IMG_KER} > /dev/null
    ../bootloader/u-boot-at91/tools/mkimage -f linuxrom-${BOARD}.its ${IMG_KER} > /dev/null
    chmod a+x ${IMG_KER}
    set -x
tools/setup_tools.sh
@@ -99,7 +99,7 @@
    systools="coreutils jq wget curl tree gawk sed unzip cpio bc lzop zstd rsync kmod kpartx \
        desktop-file-utils iputils-ping xterm diffstat chrpath asciidoc docbook-utils help2man \
        build-essential gcc g++ make cmake automake groff socat flex texinfo bison texi2html \
        git cvs subversion mercurial autoconf autoconf-archive parted dosfstools \
        git cvs subversion mercurial autoconf autoconf-archive parted dosfstools fakeroot \
        python3 python3-pip python3-pexpect python3-git python3-jinja2 \
        lib32z1 libssl-dev libncurses-dev libgl1-mesa-dev libglu1-mesa-dev libsdl1.2-dev \
        u-boot-tools mtd-utils device-tree-compiler binfmt-support "