Commit Graph

7585 Commits

Author SHA1 Message Date
chenrun1
09ec04760f cachetest:Tools for testing cache and uncacheable
Summary:
  A tool is provided to test the case of data correctness after cache flush. It requires an uncacheable offset to check whether the uncacheable address is consistent with the data in the buffer after calling up_dcache_flush.

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-08-07 10:03:16 +08:00
chenrun1
1d9f045068 testing/memstress:Fix FAR prefix
Summary:
  Add FAR before some pointer declarations

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-08-07 10:02:59 +08:00
chenrun1
74a8d98a32 testing/memstress:Support enabling multi-threaded stress testing in the program
Summary:
  Added "-x" to set the number of threads, the default is 1

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-08-07 10:02:59 +08:00
chenrun1
15ef9781c5 coremark-pro:Ignore the implementation warning
Summary:
  Avoiding warnings caused by source code implementation leads to build failure. Most warnings are undef and the value is 0. We think it is not enabled.

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-08-06 19:30:39 -03:00
chenrun1
f126adb5fc nshlib/fscmds:Fix write overflow during cp -r process
Summary:
      do
        {
          nbyteswritten = write(wrfd, iobuffer, nbytesread);
          if (nbyteswritten >= 0)

The write return type is ssize_t, which is different in size from the originally declared type, so the unified type is ssize_t

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-08-06 19:30:12 -03:00
chenrun1
2413a2a4c8 testing/memstress:Initialize the pointer to avoid the pointer being unknown when the memory alloc fails
Summary:
  fix warning

In function 'memorystress_iter',
    inlined from 'memstress_main' at memorystress_main.c:475:10:
memorystress_main.c:289:10: error: 'ptr' may be used uninitialized [-Werror=maybe-uninitialized]
  289 |       if (ptr == NULL)
      |          ^
memorystress_main.c: In function 'memstress_main':
memorystress_main.c:248:20: note: 'ptr' was declared here
  248 |       FAR uint8_t *ptr;
      |                    ^~~

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-08-06 19:29:40 -03:00
Rushabh Gala
437c903c47 examples/leds_rust: Add Rust App for blinking the LED
- This PR adds `examples/leds_rust` to call NuttX POSIX APIs like `open()` and `ioctl()`, so that it blinks an LED
- The `leds_rust` app is also used for testing the GPIO and LED Drivers for Ox64 BL808 SBC and QEMU RISC-V Emulator in Google Summer of Code
- `leds_rust` be executed locally on Linux / macOS / Windows, by commenting out the first 2 lines of code
- The code is based on `examples/leds` in C, and `examples/hello_rust` in Rust

Co-Authored-By: Lup Yuen Lee <9960133+lupyuen@users.noreply.github.com>
2024-08-06 00:26:44 +08:00
simbit18
b4999fa916 Issues: Added Issue templates
**-Template**
 Bug report
Report a bug to improve NuttX stability

Feature request
Request an enhancement for NuttX

General Help
Get general support regarding NuttX

Of course, others can be added. !!! :)

**-Action**
An action for automatically labelling issues

 **Keywords**

Keywords are present in the dropdowns (the user can select more than one option) of the form Bug report and are:

    - Linux, Mac, Windows, Other
    - all, arm, arm64, avr, ceva, hc, mips, misoc, openrisc, renesas, risc-v, simulator, sparc, tricore, x86, x86_64, xtensa, z16, z80
    - Applications, Api, Board support, Build System, Configuring, Debugging, Drivers, File System, Installing, Kconfig, Kernel, Memory Management, Native port, Networking, OS Components, Posix, Sensors, Specific Peripheral

**To work, the labels must have the same name as the keywords !!!**

**So before the merge it is necessary to add them.**

Of course these keywords are examples so you can add, edit or delete them.

[Creating a label](https://docs.github.com/en/issues/using-labels-and-milestones-to-track-work/managing-labels#creating-a-label)

see https://github.com/apache/nuttx/issues/12748

none
CI
2024-08-06 00:23:01 +08:00
Yanfeng Liu
ab2e45a86c ostest/fpu_test: enable for FLAT mode only
As per the `HAVE_FPU` in `fpu.c`, fpu_test is only available for
FLAT build. So user_main should enable fpu_test for FLAT build also,
otherwise ostest will fail for PROTECTED build.

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-08-03 21:09:33 +08:00
Ville Juven
38ae8e7827 ostest: Enable vfork test for BUILD_KERNEL
The test was disabled because of a bug in the NuttX kernel, which is now
fixed. Obviously depends on the fix.
2024-08-01 23:25:19 +08:00
Denis Ryndine
a15403958d nsh_dd: fix lseek return check.
- As was merged in commit 1852731df8 on
   dd_main.c: lseek returns -1 on error.

   Should be consistent in nsh_ddcmd.c and nsh_main.c.
2024-08-01 09:52:03 +08:00
simbit18
3d8536f380 build.yml: Added jobs to speed up CI checks.
Divided jobs risc-v and xtensa to finish workflow under 2 hours.
2024-07-30 11:15:52 +08:00
Pressl, Štěpán
1a7da54a9b examples/qencoder: obtain samples using the QEIOC_GETINDEX ioctl call
Normally, the qencoder position is obtained using the QEIOC_POSITION
ioctl call. Adding the -i argument uses the QEIOC_GETINDEX to
obtain the qe_index_s struct containing the position alongisde
other fields.

Signed-off-by: Stepan Pressl <pressste@fel.cvut.cz>
2024-07-29 22:28:56 +08:00
simbit18
366d8db436 build.yml: fix error: externally-managed-environment 2024-07-29 22:28:07 +08:00
YAMAMOTO Takashi
9a375abc08 toywasm: regen
```
REF=4db87d399cc871845237557020dae595cd6384dc ./regen.sh
```
2024-07-28 15:52:36 +08:00
YAMAMOTO Takashi
7570eae2ce toywasm: bump to v57.0.0 2024-07-28 15:52:36 +08:00
SPRESENSE
8a82400929 examples/camera: Fix wrong device file path
In camera_main.c, the dev paths of capture_initialize() and open()
are different. So open could always failed.
2024-07-28 15:52:26 +08:00
simbit18
00e77de94f build.yml: Updated the workflow to use version v4 of the actions/upload-artifact and actions/download-artifact
Sync the version of the macOS runner on GitHub with the version used in the nuttx repository.

runs-on: macos-12 -> runs-on: macos-13
2024-07-23 01:30:43 +08:00
Matteo Golin
2fce155def i2ctool dev has a -z option to use a zero-byte write request for
scanning the bus, which allows detection of more sensors such as the
MS5611 and SHT41 to be detected.
2024-07-20 08:51:59 -03:00
YAMAMOTO Takashi
2ef3eb25c0 wamr: add a few missing options to match the wamr repo counterpart 2024-07-18 23:02:20 +08:00
simbit18
c9ce47b33d github/workflows/build.yml: added option -N job docker (Linux)
added option -N Use CMake with Ninja as the backend.

depends on this PR https://github.com/apache/nuttx/pull/12721
2024-07-18 23:00:42 +08:00
shizhenghui
836aecb10d videoutils/x264: clone from github if no x264 source
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2024-07-17 12:06:51 -03:00
shizhenghui
7704254f68 videoutils/openh264: fix CI error since no sys/sysctl.h
Add sys/sysctl.h to apps/videoutils/openh264

Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2024-07-17 12:06:51 -03:00
shizhenghui
697aa8f43e apps: move x264 to apps/videoutils/x264
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2024-07-17 12:06:51 -03:00
shizhenghui
639da1a1d6 openh264: add CMakeLists.txt
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-07-17 12:06:51 -03:00
shizhenghui
def2002dc0 apps: add videoutils to CMakeLists.txt
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2024-07-17 12:06:51 -03:00
shizhenghui
0ff647af4d apps/openh264: add Makefile
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2024-07-17 12:06:51 -03:00
shizhenghui
1840668e29 apps/videoutils: add Makefile
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2024-07-17 12:06:51 -03:00
SPRESENSE
b0cfc93ba7 lte/alt1250: Select NET_USRSOCK_ICMP if LTE_ALT1250 is enabled
The change by https://github.com/apache/nuttx/pull/12639
to enable CONFIG_NET_ICMP as default has made it necessary
to enable CONFIG_MM_IOB which is unnecessary for usrsock.

CONFIG_NET_USRSOCK_ICMP should be enabled if usrsock is used.
2024-07-16 21:46:23 +08:00
Rodrigo Sim
4aea0dff38 examples/telnetd: Add support to reset command
Signed-off-by: Rodrigo Sim rcsim10@gmail.com
2024-07-16 09:06:16 +08:00
YAMAMOTO Takashi
437cf845fa wamr: bump the default version
There is little reason to prefer the ancient version from 2021.
2024-07-15 09:39:26 +08:00
YAMAMOTO Takashi
a0d98f1951 wamr: add an option for exception-handling 2024-07-12 12:08:05 +08:00
YAMAMOTO Takashi
9715b813d3 toywasm: regen for v54.0.0
```
REF=034952e424600381b45d9d400735bfeb96fd5848 ./regen.sh
```
2024-07-12 12:07:44 +08:00
YAMAMOTO Takashi
a9e7b84c81 toywasm: bump to v54.0.0 2024-07-12 12:07:44 +08:00
Denis Ryndine
1852731df8 dd_main.c: Add oseek optional argument.
- If oseek=N passed, will seek N*bs on output file before writing.
2024-07-10 00:16:25 +08:00
shizhenghui
ea64cefa33 nxcodec: improve Kconfig help
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2024-07-10 00:16:14 +08:00
shizhenghui
ae9f4e2231 nxcodec: update log information
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2024-07-09 16:32:21 +08:00
yangsen5
69a56e7260 system/nxcodec: modify print usage
Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2024-07-09 16:32:21 +08:00
yangsen5
b3a424613b system/nxcodec: add CMakeLists.txt
Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2024-07-09 16:32:21 +08:00
yangsen5
9312a74004 add m2m decoder/encoder test
Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2024-07-09 16:32:21 +08:00
Alan Carvalho de Assis
6b9d51793f Fix error caused by netinit code assuming CONFIG_NETINIT_DNS was enabled
Signed-off-by: Alan C. Assis <acassis@gmail.com>
2024-07-07 10:35:49 +08:00
Windrow14
0989d820ed testing/[sd_bench|sd_stress]: make print compatible for both 32-bit and 64-bit environment.
Use size_t and %zu in printf of sd modules to fix compilation errors in 64-bit environment.

Signed-off-by: Yinzhe Wu <Yinzhe.Wu@sony.com>
Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Jacky Cao <Jacky.Cao@sony.com>
Tested-by: Yinzhe Wu <Yinzhe.Wu@sony.com>
2024-07-04 17:43:32 +08:00
Windrow14
5330306aca testing/smart_test/smart_test.c: fix wrong offset in fseek
To seek to the last 30 bytes of the file, offset from SEEK_END
should be negative.

Signed-off-by: Yinzhe Wu <Yinzhe.Wu@sony.com>
Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Jacky Cao <Jacky.Cao@sony.com>
2024-07-04 01:12:44 +08:00
raiden00pl
5d779386c8 lpt/Kconfig: hide TESTING_LTP_STACKSIZE option
hide TESTING_LTP_STACKSIZE option when TESTING_LTP=n
2024-07-04 01:12:27 +08:00
Alan Carvalho de Assis
e9f60d85b9 examples/telnetd: Make it clear the goal of this telned
Signed-of-by: Alan C. Assis <acassis@gmail.com>
2024-07-03 17:47:10 +08:00
xuxin19
cbcf9ec168 cmake:add CMake build for libuv
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-06-30 21:40:25 +08:00
xuxin19
8e15514955 cmake:add zlib CMake build
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-06-30 21:40:25 +08:00
xuxin19
2e133feb09 cmake:support system apps CMake build
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-06-30 21:40:25 +08:00
Alan Carvalho de Assis
c7072b45bb examples/stepper: Fix typo inside for() loop 2024-06-30 13:29:01 +08:00
xuxin19
20c0a7243c cmake:port testing applications to CMake build
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-06-29 22:31:03 +08:00