Skip to content

Commit

Permalink
Add QEMU BINARY to chroot target
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Dec 10, 2021
1 parent b7629d7 commit 7ae22a1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion recompile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ use_linuxgun_url="https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2
use_linuxgun_file="gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz"
use_linuxgun_localpath="/usr/local/aarch64"

# QEMU BINARY
qemu_binary_arm64="qemu-aarch64-static"

# Armbian system
armbian_repo="ophub/amlogic-s9xxx-armbian"
armbian_releases_file="Armbian_Aml_.*/Armbian_.*_s905d_.*.img.gz"
Expand Down Expand Up @@ -291,10 +294,13 @@ chroot_armbian_for_x64() {
cp -rf /lib/modules/${kernel_version}${LOCALVERSION} ${tag_rootfs}/lib/modules && sync
#echo -e "${INFO} Kernel copy results in the [ ${tag_rootfs}/lib/modules ] directory: \n$(ls -l ${tag_rootfs}/lib/modules) \n"

cp ${script_dir}/generate_uinitrd.sh ${tag_rootfs}/root 2>/dev/null && sync
cp -f ${script_dir}/generate_uinitrd.sh ${tag_rootfs}/root 2>/dev/null && sync
chmod +x ${tag_rootfs}/root/generate_uinitrd.sh 2>/dev/null
#echo -e "${INFO} Kernel copy results in the [ ${tag_rootfs}/root ] directory: \n$(ls -l ${tag_rootfs}/root) \n"

[ -f "/usr/bin/${qemu_binary_arm64}" ] && cp -f /usr/bin/${qemu_binary_arm64} ${tag_rootfs}/usr/bin/ && sync
#echo -e "${INFO} The [ ${qemu_binary_arm64} ] file copy results: \n$(ls -l ${tag_rootfs}/usr/bin/${qemu_binary_arm64}) \n"

# Enter the armbian system to generate /boot/uInitrd file
chroot ${tag_rootfs} <<EOF
bash /root/generate_uinitrd.sh ${kernel_version}${LOCALVERSION}
Expand Down

0 comments on commit 7ae22a1

Please sign in to comment.