-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with booting OPTEE on HiKey board #934
Comments
The only thing that comes to mind is if you have an SD card plugged into the board, try removing it first before booting. |
There is not any SD card. |
What is the reason that there is no grub_uart2.cfg in patches_hikey/grub/ I changed hikey.mk and set NW_CONSOL_UART=3. Now it passes the "load fastboot1" but break again with: NOTICE: Booting Trusted Firmware debug EMMC boot: print init OK Any idea that what goes wrong? |
Your repo is not new enough. Do a
Are you just selecting whatever number you want or based on where you've connected your console cable to?
Is CFG_SW_CONSOLE_UART still 0? Try changing CFG_NW_CONSOLE_UART to 0 too and see what happens. |
I built just few days ago by REPO. After pulling as you said, the file appeared.
I have all three UARTS connected to three consoles to have NW and SW on different ones.
Setting both NW/SW_CONSOLE=0 solved the boot problem. And after getting grub_uart2.cfg the combination NW_CONSOLE=2 and SW_CONSOLE=0 works too. Thanks for your help. |
You're welcome. Sounds like something wrong with UART3. You might want double check your connection, cable, etc. |
Hello,
I cloned the latest version of OPTEE and tried to flash/recovery a HiKey board after making the following changes in hikey.mk:
The recovery is done successfully:
``
+----------------------+
Serial:
Image1: /OPTEE/build/../l-loader/recovery.bin
Image2:
+----------------------+
Sending /OPTEE/build/../l-loader/recovery.bin ...
Done
fastboot getvar partition-size:ptable
< waiting for any device >
partition-size:ptable: 0
Finished. Total time: 0.000s
fastboot flash loader /OPTEE/build/../l-loader/l-loader.bin
Sending 'loader' (39 KB) OKAY [ 0.007s]
Writing 'loader' OKAY [ 0.006s]
Finished. Total time: 0.019s
"Enter fastboot mode..."
Then press enter to continue flashing
fastboot flash ptable /OPTEE/build/../l-loader/ptable-linux-8g.img
Sending 'ptable' (17 KB) OKAY [ 0.001s]
Writing 'ptable' OKAY [ 0.004s]
Finished. Total time: 0.005s
fastboot flash fastboot /OPTEE/build/../trusted-firmware-a/build/hikey/release/fip.bin
Sending 'fastboot' (1543 KB) OKAY [ 0.042s]
Writing 'fastboot' OKAY [ 0.043s]
Finished. Total time: 0.091s
fastboot flash nvme /OPTEE/build/../out/nvme.img
Sending 'nvme' (128 KB) OKAY [ 0.004s]
Writing 'nvme' OKAY [ 0.004s]
Finished. Total time: 0.009s
fastboot flash boot /OPTEE/build/../out/boot-fat.uefi.img
Sending 'boot' (65536 KB) OKAY [ 2.159s]
Writing 'boot' OKAY [ 1.631s]
Finished. Total time: 3.790s
``
But then the board hangs on boot up with message load fastboot1. Any idea why that happens?
The text was updated successfully, but these errors were encountered: