buxiasen
b9a7353a43
add include to handle when PM_NDOMAINS from pm.h
...
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2024-05-18 22:08:14 +08:00
chao an
20c90d5b43
nshlib/irqaff: add irq affinity command
...
add support for set an IRQ affinity to CPUs by software
qemu-armv7a/bmp: switch uart irq to different CPUs
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
0 0 0 FIFO Kthread - Ready 0000000000000000 004080 000536 13.1% CPU0 IDLE
1 1 192 RR Kthread - Waiting Semaphore 0000000000000000 004032 000296 7.3% hpwork 0x4013f51c 0x4013f530
2 2 100 RR Task - Running 0000000000000000 004056 001168 28.7% nsh_main
nsh> irqaff 33 0x2
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
0 0 0 FIFO Kthread - Ready 0000000000000000 004080 000736 18.0% CPU1 IDLE
1 1 192 RR Kthread - Waiting Semaphore 0000000000000000 004032 000296 7.3% hpwork 0x4013f544 0x4013f558
2 2 100 RR Task - Running 0000000000000000 004056 001288 31.7% nsh_main
nsh> irqaff 33 0x4
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
0 0 0 FIFO Kthread - Ready 0000000000000000 004080 000736 18.0% CPU2 IDLE
1 1 192 RR Kthread - Waiting Semaphore 0000000000000000 004032 000296 7.3% hpwork 0x4013f56c 0x4013f580
2 2 100 RR Task - Running 0000000000000000 004056 001168 28.7% nsh_main
nsh> irqaff 33 0x8
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
0 0 0 FIFO Kthread - Ready 0000000000000000 004080 000736 18.0% CPU3 IDLE
1 1 192 RR Kthread - Waiting Semaphore 0000000000000000 004032 000296 7.3% hpwork 0x4013f594 0x4013f5a8
2 2 100 RR Task - Running 0000000000000000 004056 001168 28.7% nsh_main
Signed-off-by: chao an <anchao@lixiang.com>
2024-03-29 16:16:07 +08:00
Yanfeng Liu
3dd35cb549
nshlib/syscmds: guard help mesg for rpmsg ping
...
This patch guards help message for ping sub-command so that it only
shows when the sub-command is enabled.
Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-02-21 05:31:45 -08:00
wangyongrong
25e8c1c9c4
cmd rptun: Strip rpmsg ioctl and rptun ioctl.
...
cmd_rptun handles RPTUNIOC_START, RPTUNIOC_STOP, RPTUNIOC_RESET,
cmd_rpmsg handles the public ioctl commands part.
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-02-19 05:59:34 -08:00
chao an
05ffbabca7
nsh/uname: improve compatibility for non-GNU compilers
...
The alloca() function is machine- and compiler-dependent. For certain
applications, its use can improve efficiency compared to the use of
malloc(3) plus free(3). In certain cases, it can also simplify memory
deallocation in applications that use longjmp(3) or siglongjmp(3).
Otherwise, its use is discouraged.
Signed-off-by: chao an <anchao@lixiang.com>
2024-02-19 03:49:22 -08:00
wangyongrong
32f269a079
nsh_syscmds: update rptun_ping to rpmsg_ping, add cmd_rpmsg.
...
To support rpmsg ioctl, add cmd_rpmsg function, and update rptun ping to rpmsg ping.
depends on apache/nuttx#11618
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-01-30 20:42:49 -08:00
Yanfeng Liu
596328ccca
nshcmd/rptun: align help mesg with impl
...
the ping subcommand is guarded with RPTUN_PING in its handler.
its help mesg should have same guard to avoid confusing user.
Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-01-25 18:11:39 -08:00
wangyongrong
7047fa5bde
nsh syscmds: add CONFIG_RPTUN_PING when use rptun_ping
...
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-01-13 02:15:55 -08:00
wangyongrong
51762a8958
nsh cmd rptun: add rptun ping useage description
...
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-01-06 04:33:48 -08:00
dulibo1
049aaa4c96
pmconfig: check domain if invaild return error avoid to crash
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2023-09-22 09:16:54 +08:00
Daniel Appiagyei
b37e84b05f
c++ compatibility: rename usages of reserved c++ keywords 'this' and 'public'
2023-09-16 19:45:52 +08:00
wanggang26
75c8580238
nshlib: fix a typo
...
painc to panic
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-08-28 17:33:15 +03:00
raiden00pl
2b58cc6578
rptun/ping: fix invalid use of nsh_error after 31421db6f
2023-08-21 18:47:01 +03:00
raiden00pl
31421db6fa
rptun/ping: print invalid arguments error
2023-08-20 22:58:07 +08:00
anjiahao
79e481d093
resetcause:show reset string not number
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-08-10 13:51:43 +08:00
Xiang Xiao
1d3e6510e6
nshlib: Add switchboot command
...
switchboot <image path>
Switch to the updated or specified boot system. This command depends on
hardware support CONFIG_BOARDCTL_SWITCH_BOOT. `<image path>` point to a
partion or file which contain the firmware to boot.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-04-07 13:44:49 +03:00
Xiang Xiao
4f7dd7be7c
nshlib: Add boot command
...
boot [<image path> [<header size>]]
Boot a new firmware image. This command depends on hardware support
CONFIG_BOARDCTL_BOOT_IMAGE. <image path> may point to a partion or file
which contain the firmware to boot. The optional, numeric argument
<header size> may be useful for skipping metadata information preprended
to the firmware image.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-04-04 13:53:28 +03:00
yinshengkai
fb0ab1b4c6
nshlib: one-time output uname
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-03-17 12:10:00 -03:00
Xiang Xiao
a29d9ea9da
fsutils/examples: Include unistd.h explicitly
...
to get the prototypes or macros are defined in it
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-05 08:46:59 +02:00
Junbo Zheng
79e770b0c6
apps/nshlib: add the missing FAR macro for all source files
...
Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
2022-09-22 14:22:13 +08:00
Fotis Panagiotopoulos
0cdb2cfa48
Fixed compiler warnings.
2022-08-23 01:39:59 +08:00
ligd
75155532b6
pmconfig: update pmconfig dump
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-07-30 03:15:01 +08:00
ligd
a109a6e58b
rptun_ping: add sleep param to rptun_ping
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-07-30 03:15:01 +08:00
anjiahao
dbfe5fb573
cmd_reset_cause:remove ouput space.
...
can use ouput string set a env to argv
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-07-21 21:13:11 +08:00
anjiahao
29be9e3d1b
apps:fix reset cuase wraming
...
nsh_syscmds.c:352:40: error: passing argument 2 of 'boardctl' makes integer from pointer without a cast [-Werror=int-conversion]
352 | ret = boardctl(BOARDIOC_RESET_CAUSE, &cause);
| ^~~~~~
| |
| struct boardioc_reset_cause_s *
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-07-21 19:41:05 +08:00
Xiang Xiao
c252ec1481
Add printflike to all printf like functions
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-18 14:09:10 +03:00
zhuyanlin
23584669c5
pmconfig: add last state and modify current state to next state
...
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2022-05-22 22:00:11 +08:00
zhuyanlin
a5a4c561fb
pmconfig: add mulit domain support
...
pmconfig [domain]
pmconfig relax/stay state [domain]
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2022-04-28 00:36:36 +08:00
田昕
cc7653b8c7
fix resetcause nsh command print
...
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
2022-04-14 16:43:45 +03:00
ligd
470174260c
rptun: update rptun cmd usage
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-04-01 17:36:51 +08:00
ligd
f5d2c64556
rptun: add rptun ping support
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-04-01 17:36:51 +08:00
ligd
622784be89
rptun cmd: add broadcast rptun cmd
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-04-01 17:36:51 +08:00
ligd
e0e5652de4
rptun: add rptun dump support
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-04-01 17:36:51 +08:00
ligd
d5aae96523
apps: add rptun reset /dev/rptun/xx cmd
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-04-01 17:36:51 +08:00
ligd
c57677c3ce
apps: add rptun /dev/rptun/xx panic cmd
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-04-01 17:36:51 +08:00
田昕
cbc9163266
apps/nsh:add resetcause command
...
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
2022-03-31 12:09:24 +03:00
Xiang Xiao
f6f4bbff3a
Replace EXIT_SUCCESS with 0 for BOARDIOC_[POWEROFF|RESET]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-29 12:44:41 +01:00
Norman Rasmussen
374cb9230a
Fix boarctl typos
2022-01-16 08:07:47 +01:00
Fotis Panagiotopoulos
bc5d8034f1
Typo fixes.
2022-01-06 10:30:41 +08:00
Alin Jerpelea
4f3f62c8fc
nshlib: update licenses to Apache
...
Gregory Nutt is has submitted the SGA
Uros Platise has submitted the ICLA
as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-11 02:42:05 -05:00
Subhra Sankha Sarkar
3b884cfb87
Fixing coding style issues for rest of nshlib directory - except for the false +ve nsh_timcmds.c
2020-11-02 13:30:18 +01:00
Xiang Xiao
41d88f06e7
Run codespell -w with the latest dictonary again
2020-02-23 07:10:14 -06:00
Xiang Xiao
e0dcfa0c55
Remove extra whitespace from files ( #43 )
...
* Remove multiple newlines at the end of file
* Remove the white space from the end of line
2020-01-31 08:29:24 -06:00
Xiang Xiao
857158451b
Unify the void cast usage
...
1.Remove void cast for function because many place ignore the returned value witout cast
2.Replace void cast for variable with UNUSED macro
Change-Id: Ie644129a563244a6397036789c4c3ea83c4e9b09
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-02 23:21:01 +08:00
ligd
42aaecf1d1
apps/nshlib: Add new NSH command, 'pmconfig'.
2019-11-04 07:44:33 -06:00
ligd
611bc6c139
apps/nshlib: Add rptun cmd for boot remote core.
2019-11-03 09:36:49 -06:00
GregoryN
3bf4b6d245
Merged altconsole into master
2018-12-08 18:53:54 -06:00
ligd
bee98898f0
apps/nshlib: Expand reboot and poweroff commands to include a second, optional mode argument
2018-08-23 06:21:47 -06:00
Gregory Nutt
c1ec7db8a9
This commite eliminates the ping command from NSH and replaces it with a ping 'built-in' at apps/system/ping. The original NSH version of ping violated the portable POSIX interface and, hence, had to be removed. The new system/ping command uses the new IPPROTO_ICMP AF_INET datagram sockets to implement ping.
...
Squashed commit of the following:
apps/system/ping: Fix some timing issues.
apps/system/ping: A few timing related corrections.
apps/nshlib: Remove support for the NSH 'ping' command. The implementation of that command violated the portable POSIX interface and has been replaced with a ping 'built-in' command at apps/system/ping.
apps/system/ping: Add larger payload. Verify content of echoed payload.
apps/system/ping: Various fixes for a clean compile
system/ping: Add new build structure for system ping command.
2017-10-23 08:50:01 -06:00
Alan Carvalho de Assis
8e7ed15cce
NSHLIB uname command: Eliminate 'defined but not used' warning in some configurations
2017-03-07 15:36:18 -06:00