Skip to content

Commit

Permalink
fix UART9 on mainline linux for the Turing RK1
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Riek committed Oct 17, 2023
1 parent e764a51 commit d66b1fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,11 @@ overlays=
EOF

# Turing RK1 uses UART9 by default
[ "${BOARD}" == turing-rk1 ] && sed -i 's/console=ttyS2,1500000/console=ttyS9,115200 console=ttyS2,1500000/g' ${mount_point}/system-boot/ubuntuEnv.txt
if [[ "${MAINLINE}" == "Y" ]]; then
[ "${BOARD}" == turing-rk1 ] && sed -i 's/console=ttyS2,1500000/console=ttyS0,115200 console=ttyS2,1500000/g' ${mount_point}/system-boot/ubuntuEnv.txt
else
[ "${BOARD}" == turing-rk1 ] && sed -i 's/console=ttyS2,1500000/console=ttyS9,115200 console=ttyS2,1500000/g' ${mount_point}/system-boot/ubuntuEnv.txt
fi

# Copy the device trees, kernel, and initrd to the boot partition
mv ${mount_point}/writable/boot/firmware/* ${mount_point}/system-boot/
Expand Down

0 comments on commit d66b1fb

Please sign in to comment.