Skip to content
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

up_squared: Couldn't get testcase log from console for all testcases. #31566

Closed
chen-png opened this issue Jan 24, 2021 · 16 comments · Fixed by #31634
Closed

up_squared: Couldn't get testcase log from console for all testcases. #31566

chen-png opened this issue Jan 24, 2021 · 16 comments · Fixed by #31634
Assignees
Labels
area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug

Comments

@chen-png
Copy link
Collaborator

Description
with the latest mainline branch, when running tests on up_squared board, couldn't get testcase log from serial for all testcases, there is nothing in console output.
the commit 6ec4ff2 is good to get log.

To Reproduce
Steps to reproduce the behavior:

  1. west build -b up_squared -p auto samples/hello_world/
  2. west flash ~/up_squared.sh
  3. see error

Logs and console output

nothing in console output

Environment (please complete the following information):

  • OS: Fedora32
  • Toolchain: zephyr-sdk-0.12.0
  • Commit ID: 7786103
@chen-png chen-png added bug The issue is a bug, or the PR is fixing a bug area: Tests Issues related to a particular existing or missing test priority: high High impact/importance bug labels Jan 24, 2021
@chen-png
Copy link
Collaborator Author

git bisect and found the first bad commit is 5c47bbc

@dcpleung
Copy link
Member

Please re-test. This should have already been fixed by #31564

@chen-png
Copy link
Collaborator Author

Please re-test. This should have already been fixed by #31564

this test commit 7786103 already include #31564

@chen-png
Copy link
Collaborator Author

@dcpleung how do you run tests on up_squared board, using usb disk, is it good to get log? for QA automation test, it used network to transfer image, nothing in the output.

@dcpleung
Copy link
Member

I compile the app on UP2, copy them into boot partition, then boot.

@chen-png
Copy link
Collaborator Author

@dcpleung you could use the remote up_squared in SH lab, it could always reproduce this issue

@tbursztyka
Copy link
Collaborator

I have the same issue, and a git bisect points to commit 5c47bbc
My UP² is the celeron version (not the atom one). I had already found difference in the past like the CPU's apic ids (which had to be grabbed from ACPI to get things running)

@dcpleung so you use the efi way, not the multiboot (with grub)?

@dcpleung
Copy link
Member

I could only constantly boot with GRUB, and it still works with latest master.

EFI boots on my Atom UP2 if I disable CONFIG_PCIE_MMIO_CFG before the paging PR. But now this trick does not work anymore.

@tbursztyka
Copy link
Collaborator

@dcpleung ok, again some difference between atom and celeron then. Because on my side both EFI and GRUB fail.

@dcpleung
Copy link
Member

My suggestion is to try with CONFIG_PCIE_MMIO_CFG=n and see how it goes.

@dcpleung
Copy link
Member

Could you try #31634 and see if that fixes the issue?

@chen-png
Copy link
Collaborator Author

tested with the #31634 , when building testcase on up_squared, it will report a new build error as below:

cmd: west build -b up_squared -p auto samples/hello_world/
result:
/home/ztest/zephyr-sdk-0.12.0/x86_64-zephyr-elf/bin/x86_64-zephyr-elf-objcopy: zefi.elf: invalid bfd target
Traceback (most recent call last):
File "/home/ztest/work/zephyrproject/zephyr/arch/x86/zefi/zefi.py", line 155, in
build_elf(args.elf_file)
File "/home/ztest/work/zephyrproject/zephyr/arch/x86/zefi/zefi.py", line 134, in build_elf
subprocess.run(cmd, check = True)
File "/usr/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/home/ztest/zephyr-sdk-0.12.0/x86_64-zephyr-elf/bin/x86_64-zephyr-elf-objcopy', '--target=efi-app-x86_64', '-j', '.text', '-j', '.reloc', '-j', '.data', 'zefi.elf', 'zephyr.efi']' returned non-zero exit status 1.
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/local/bin/cmake --build /home/ztest/work/zephyrproject/zephyr/build

@chen-png chen-png reopened this Jan 27, 2021
@dcpleung
Copy link
Member

This is caused by the SDK. You need SDK 0.12.2.

@nashif nashif closed this as completed Jan 27, 2021
@chen-png
Copy link
Collaborator Author

thanks, it's good now with sdk 0.12.2.

@chen-png
Copy link
Collaborator Author

tested and this issue was fixed by #31634.
However, with the latest commit 51c34bb, this error happened again, and git bisect, found the first bad commit is 51c34bb.

@chen-png
Copy link
Collaborator Author

However, with the latest commit 51c34bb, this error happened again, and git bisect, found the first bad commit is 51c34bb.

this has been fixed in fda94e7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants