board/raspberrypi: update firmware option to use 64-bit mode
authorJ. Tang <tang@jtang.org>
Sat, 30 Jun 2018 19:14:25 +0000 (15:14 -0400)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 30 Jun 2018 20:07:01 +0000 (22:07 +0200)
As per latest Raspberry Pi firmware documentation, the option
'arm_control' has been deprecated in favor of 'arm_64bit'.

Fixes https://bugs.busybox.net/show_bug.cgi?id=11111.

Signed-off-by: Jason Tang <tang@jtang.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
board/raspberrypi/post-image.sh

index 3c6c938407c5a49d9842589042e005f8734d20ce..70447cd48b5984834545ac1c632ead2fd4cf3d31 100755 (executable)
@@ -23,11 +23,11 @@ __EOF__
                --aarch64)
                # Run a 64bits kernel (armv8)
                sed -e '/^kernel=/s,=.*,=Image,' -i "${BINARIES_DIR}/rpi-firmware/config.txt"
-               if ! grep -qE '^arm_control=0x200' "${BINARIES_DIR}/rpi-firmware/config.txt"; then
+               if ! grep -qE '^arm_64bit=1' "${BINARIES_DIR}/rpi-firmware/config.txt"; then
                        cat << __EOF__ >> "${BINARIES_DIR}/rpi-firmware/config.txt"
 
 # enable 64bits support
-arm_control=0x200
+arm_64bit=1
 __EOF__
                fi