OP-TEE / optee_os

Trusted side of the TEE
Other
1.57k stars 1.06k forks source link

make run not launching qemu when GDBSERVER flag is set in QEMU v8 build #7035

Open abhishekiitm opened 1 month ago

abhishekiitm commented 1 month ago

Hi,

I am trying to set up the GDB normal world section present in the docs

I have followed the following steps

$ mkdir optee
$ cd optee
$ repo init -u https://github.com/OP-TEE/manifest.git -m qemu_v8.xml
$ repo sync
$ cd build
$ make toolchains
$ make -j8 run GDBSERVER=y

After running the command make -j8 run GDBSERVER=y, the QEMU console doesn't start. Instead, the build process finishes without any error. I have attached the logs.txt that I see on running this command.

I am running this on an Ubuntu 20.04.

Would you have any ideas on how to get this working? Please let me know if I should share any additional info that might be useful to debug this.

jbech-linaro commented 1 week ago

I can reproduce the error and took a quick look. It's related to a) BUILDROOT_TOOLCHAIN which in turn set these. Most likely the information in there needs to be updated to match more recent versions of Buildroot. I did a quick test, but no success. But still, I'm pretty sure that this is where the issue is.

edit: stumbled upon this as well which I worked around by adding BR2_WGET="wget -nd -t 3" to br-ext/configs/toolchain-br as well.)