Repository navigation
Conversation
The baud divider was written without a check. A rate above clock / 16, a divider over 16 bits or a large rounding error gave a wrong line rate without any notice. Reject a divider outside 1 to 65536 or a rate more than 3 percent off. The console rate fails the build with an error and u2c_rlin3_setup returns -EINVAL for any other unit. Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
The NTFC nsh tests create files and directories in /tmp. Mount a tmpfs there in board_late_initialize when CONFIG_FS_TMPFS is enabled, as the other QEMU boards do. Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
CI builds qemu-rh850-u2c but never boots it. Add a citest configuration that runs the NTFC tests on QEMU like qemu-armv8a and rv-virt. It adds ostest, setlogmask, a tmpfs for /tmp and the high priority work queue to nsh. run.sh fails when test_os did not pass. A run where every test is skipped also exits with 0, and it must not count as a pass. Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
Build citest with CMake like nsh. testbuild.sh then runs its run.sh, which boots it on QEMU and runs NTFC. Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
Add a section on citest: what it adds to nsh, how run.sh runs NTFC and why it fails when test_os did not pass. Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
xiaoxiang781216
approved these changes
Nov 25, 2026
|
jerpelea
approved these changes
Nov 25, 2026
Member
|
It won't work right away. The CI uses NTFC from pypi, not from github. I need to make an NTFC release for pypi |
Contributor
@raiden00pl should we merge first or wait you updating pypi? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a citest config so CI boots qemu-rh850-u2c and runs NTFC. Needs apache/nuttx-ntfc#39, as v850 GCC prefixes C symbols with "_". run.sh fails unless test_os passed. Also rejects RLIN3 baud rates that do not fit the clock.
Impact
RH850 only. citest stays red until nuttx-ntfc releases the fix.
Testing
GCC 14.3.0 v1.2.0, QEMU rh850-v1.2.0. All commits build with 0 warnings. NTFC with PR 39: 54 pass, 0 fail, 7 skip. With ntfc 0.0.3: run.sh fails. Invalid baud rates fail the build.