CV-Bowen opened a new pull request, #4141:
URL: https://github.com/apache/nuttx-apps/pull/4141

   ## Summary
   
   `nshlib: give rptun its own command handling and add rptun dump`:
   `rptun` reused `cmd_rpmsg_once()`, which parses the rpmsg subcommands
   first, so `rptun dump` sent `RPMSGIOC_DUMP` to `/dev/rptun/<cpu>` and
   the rptun driver rejected it. The rptun help and `NSH_DISABLE_RPTUN`
   also depended on the rpmsg command.
   
   rptun now has its own once/recursive/help:
   
   ```
   rptun <start|stop> <path|all>
   rptun reset <path|all> <value>
   rptun dump <path|all> [mask]     mask: 1 the peer's syslog (default),
                                          2 the resource table
   ```
   
   `rptun reset` without a value now fails instead of passing NULL to
   `atoi()`. `NSH_DISABLE_RPTUN` no longer depends on
   `NSH_DISABLE_RPMSG`.
   
   Depends on apache/nuttx#22327 (`RPTUN_DUMP_SYSLOG`); does not build
   without it.
   
   ## Impact
   
   - `rptun dump` works. `rptun ping`/`rptun test` are no longer accepted;
     the rptun driver returned `-ENOTTY` for them anyway (`rpmsg ping` and
     `rpmsg test` are the working commands).
   
   ## Testing
   
   Host: Ubuntu 22.04.5 LTS x86_64, QEMU version 10.2.1, sim: cc (Ubuntu 
13.1.0-8ubuntu1~22.04) 13.1.0, qemu-armv8a: aarch64-none-elf-gcc (Arm GNU 
Toolchain 12.2.Rel1 (Build arm-12.24)) 12.2.1 20221205
   
   Tested with apache/nuttx#22327 on sim:rpserver + sim:rpproxy; see that
   PR for the before/after table. `rptun -h` prints the new usage, and
   `rpmsg ping all` still passes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to