...
 
Commits (17)
node {
gitUrl = 'https://source.puri.sm/Librem5/image-builder.git'
branch = 'master'
branch = 'ci_build'
artifacts = "checksums,${params.board}.img.xz"
build_on_x86 = [ 'imx6', 'qemu-x86_64' ]
qcow2_builds = [ 'qemu-x86_64' ]
......
node {
gitUrl = 'https://source.puri.sm/librem5/image-builder.git'
artifacts = 'files/linux-*.deb,kernel-git*.txt'
branch = 'master'
branch = 'ci_build'
parameters {
string(name: 'board', defaultValue: "imx6", description: 'What board type to build for?')
......
node {
gitUrl = 'https://source.puri.sm/librem5/image-builder.git'
artifacts = 'files/uboot-*'
branch = 'master'
branch = 'ci_build'
parameters {
string(name: 'board', defaultValue: "imx6", description: 'What board type to build for?')
......
......@@ -63,7 +63,7 @@ case ${pureos_board} in
DTS_FILE=""
;;
ec-som)
KERNEL_BRANCH=imx8-4.18
KERNEL_BRANCH=imx8-4.18-wip
KERNEL_REPO=https://source.puri.sm/Librem5/linux-emcraft.git
CROSS_COMPILER=aarch64-linux-gnu-
DOT_CONFIG=librem5-evk_defconfig
......
......@@ -241,6 +241,22 @@ case ${pureos_board} in
ARCH=arm
COPY_UBOOT=copy_uboot
;;
devkit-recovery)
ATF_REPO=https://source.codeaurora.org/external/imx/imx-atf
ATF_BRANCH=imx_4.9.51_imx8m_beta
ATF_PLAT=imx8mq
DDR_FILE=files/imx-mkimage-emcraft.tar.gz
MKIMAGE_REPO=https://source.codeaurora.org/external/imx/imx-mkimage
MKIMAGE_BRANCH=imx_4.9.51_imx8m_beta
UBOOT_REPO=git@source.puri.sm:Librem5/uboot-imx.git
HW_DEFCONFIG=imx8m_lpddr4_3gb_som_defconfig
CROSS_COMPILER=aarch64-linux-gnu-
UBOOT_BRANCH=librem5-devkit-recovery
UBOOT_BIN=iMX8M/flash.bin
UBOOT_DTB=emcraft-imx8m-som.dtb
ARCH=arm
COPY_UBOOT=copy_uboot
;;
*)
echo "unrecognized board type ${pureos_board}"
exit 1
......@@ -253,13 +269,16 @@ build_uboot ${pureos_board} ${ARCH} ${CROSS_COMPILER} ${HW_DEFCONFIG} ${make_cle
cd ${CWD}
if [ ${pureos_board} == "imx8" -o ${pureos_board} == "ec-som" ]; then
build_cortex_m4 ${UBOOT_OUTPUT}
combine_uboot_bins ${pureos_board}
cd imx-mkimage
else
cd u-boot-${pureos_board}
fi
case ${pureos_board} in
imx8|ec-som|devkit-recovery)
build_cortex_m4 ${UBOOT_OUTPUT}
combine_uboot_bins ${pureos_board}
cd imx-mkimage
;;
*)
cd u-boot-${pureos_board}
;;
esac
${COPY_UBOOT} ${pureos_board} ${UBOOT_OUTPUT} ${UBOOT_BIN}
......
......@@ -52,12 +52,12 @@ case ${pureos_board} in
ec-som)
arch=arm64
kernel_arch=arm64
kernel_version=4.18.0-g231e3e21_4.18.0-g231e3e21-1
kernel_version=4.18.11-g6324a75d_4.18.11-g6324a75d-1
board_type=unknown
fdt_file=librem5-evk.dtb
qemu=/usr/bin/qemu-aarch64-static
kernel_deb=linux-image-${kernel_version}_${kernel_arch}.deb
uboot_bin=u-boot-ec-som.imx
uboot_bin=u-boot-devkit-recovery.imx
uboot_type=ec-som
vmdebootstrap_opts=(--foreign="${qemu}"
--bootsize 200M
......
......@@ -11,7 +11,7 @@ dtbname=##DTBNAME##
console=ttymxc0
dtype=mmc
rfspart=2
rfspart=##RFSPART##
disk=1
root=/dev/mmcblk${disk}p${rfspart}
......
......@@ -67,10 +67,16 @@ function setup_kernel()
function setup_uboot()
{
sed -e "s/##DTBNAME##/${fdt_file}/" "data/boot-${pureos_board}.txt.in" > "${basedir}/boot/boot.txt"
mkimage -A arm -T script -O linux -d "${basedir}/boot/boot.txt" "${basedir}/boot/boot.scr"
sed -e "s/##DTBNAME##/${fdt_file}/" "data/boot-${pureos_board}.txt.in" > "${basedir}/boot/boot_emmc.txt"
sed -e "s/##RFSPART##/0/" -i "${basedir}/boot/boot_emmc.txt"
mkimage -A arm -T script -O linux -d "${basedir}/boot/boot_emmc.txt" "${basedir}/boot/boot_emmc.scr"
sed -e "s/##DTBNAME##/${fdt_file}/" "data/boot-${pureos_board}.txt.in" > "${basedir}/boot/boot_sd.txt"
sed -e "s/##RFSPART##/1/" -i "${basedir}/boot/boot_sd.txt"
mkimage -A arm -T script -O linux -d "${basedir}/boot/boot_sd.txt" "${basedir}/boot/boot_sd.scr"
if [ "${pureos_board}" == "imx6" ]; then
ln -fs boot.scr "${basedir}/boot/6x_bootscript"
else
ln -fs "${basedir}/boot/boot_sd.scr" boot.scr
fi
[ ! -d "files/uboot-${pureos_board}" ] || cp -a "files/uboot-${pureos_board}/"* "${basedir}/boot/"
......@@ -215,6 +221,11 @@ EOF
function setup_network()
{
cat << EOF > "${basedir}/etc/modprobe.d/rsi_91x.conf"
# This is for wlan sta + BT
options dev_oper_mode=13 rsi_zone_enabled=1
EOF
cat << EOF > "${basedir}/etc/hosts"
127.0.0.1 pureos localhost
::1 localhost ip6-localhost ip6-loopback
......