Skip to content

risc-v/qemu-rv: Add Build Config for leds64_zig#13186

Merged
xiaoxiang781216 merged 1 commit intoapache:masterfrom
kassane:enable_leds-zig
Sep 5, 2024
Merged

risc-v/qemu-rv: Add Build Config for leds64_zig#13186
xiaoxiang781216 merged 1 commit intoapache:masterfrom
kassane:enable_leds-zig

Conversation

@kassane
Copy link
Copy Markdown
Contributor

@kassane kassane commented Aug 26, 2024

Summary

This PR adds a new Build Config rv-virt:leds64_zig that builds the Zig App leds_zig for QEMU RISC-V 64-bit.

based on: #12862

Impact

N/A

Testing

# $PWD == nuttx_path
$ ./tools/configure.sh rv-virt:leds64_zig
$ qemu-system-riscv64 \
    -semihosting \
    -M virt,aclint=on \
    -cpu rv64 -smp 8 \
    -bios none \
    -kernel nuttx -nographic
ABCboard_userled: LED 1 set to 0
board_userled: LED 2 set to 0
board_userled: LED 3 set to 0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> leds_zig
leds_main: Starting the led_daemon
leds_main: led_daemon started

led_daemon (pid# 4): Running
led_daemon: Opening /dev/userleds
led_daemon: Supported LEDs 7
led_daemon: LED set 1
board_userled: LED 1 set to 1
board_userled: LED 2 set to 0
board_userled: LED 3 set to 0
nsh> led_daemon: LED set 0
board_userled: LED 1 set to 0
board_userled: LED 2 set to 0
board_userled: LED 3 set to 0
led_daemon: LED set 1
board_userled: LED 1 set to 1
board_userled: LED 2 set to 0
board_userled: LED 3 set to 0
# [...] SKIP

Reference

cc: @xiaoxiang781216

@xiaoxiang781216
Copy link
Copy Markdown
Contributor

@kassane we need fix #13139 (comment) to pass ci.

@kassane

This comment has been minimized.

@kassane kassane force-pushed the enable_leds-zig branch 3 times, most recently from 51a5175 to 342fa6f Compare August 28, 2024 14:31
@kassane kassane force-pushed the enable_leds-zig branch 2 times, most recently from a996fa1 to 371a869 Compare August 31, 2024 12:18
@kassane

This comment was marked as resolved.

@simbit18
Copy link
Copy Markdown
Contributor

simbit18 commented Sep 3, 2024

@kassane please rebase now NuttX Docker Image has Zig.

This PR adds a new Build Config `rv-virt:leds64_zig` that builds the Zig App `leds_zig` for QEMU RISC-V 64-bit.
ref.: apache/nuttx-apps#2534
@kassane
Copy link
Copy Markdown
Contributor Author

kassane commented Sep 3, 2024

Finally ⚡

CI: https://github.com/apache/nuttx/actions/runs/10682497286/job/29608588514?pr=13186#step:7:451

====================================================================================
Configuration/Tool: rv-virt/leds64_zig
2024-09-03 12:41:50
------------------------------------------------------------------------------------
  Cleaning...
  Configuring...
  Building NuttX...
riscv-none-elf-ld: warning: /github/workspace/sources/nuttx/nuttx has a LOAD segment with RWX permissions
  Normalize rv-virt/leds64_zig

@simbit18
Copy link
Copy Markdown
Contributor

simbit18 commented Sep 4, 2024

@xiaoxiang781216 now zig is in NuttX image and PR is ok.

@xiaoxiang781216
Copy link
Copy Markdown
Contributor

@xiaoxiang781216 now zig is in NuttX image and PR is ok.

Thanks.

@xiaoxiang781216 xiaoxiang781216 merged commit 1936e68 into apache:master Sep 5, 2024
@kassane kassane deleted the enable_leds-zig branch September 5, 2024 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants