Commit Graph

44404 Commits

Author SHA1 Message Date
YAMAMOTO Takashi
3987d39be1 boards/sim/sim/sim/configs/ostest: Add a script to run ostest 2022-02-22 13:30:57 +08:00
YAMAMOTO Takashi
3aa83d6146 tools/testbuild.sh: Add an optional step to run NuttX
I plan to use this to run sim:ostest (and probably other tests later)
on the CI.

The script indirection might allow future non-sim usage as well.
(like running it with qemu, or even on the real hardware.)
I have no plan to do it by myself right now though.
2022-02-22 13:30:57 +08:00
YAMAMOTO Takashi
e5d7179e4c boards/sim/sim/sim/configs/ostest/defconfig: Reduce the number of loops
I plan to run this on the CI. 100 is too much for the purpose.
2022-02-22 13:30:57 +08:00
YAMAMOTO Takashi
75c5ae1207 tools/README.txt: Update testbuild.sh help text 2022-02-22 13:30:57 +08:00
Piet
fbfe457ced ci: add RUSTUP_HOME to get rustup parts into container 2022-02-21 18:45:47 -08:00
Piet
c5bdbc810d ci: get rust copied to final image. 2022-02-21 16:58:29 -08:00
ligd
419bc2fd04 mm: handle take mm sem in IRQ
This is a fix of:
0169a51220
This is caused by wrong memory sem operation in IDLE.

Fix:
Obey the original design, don't check the IDLE in mm_takesemaphore()

Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-02-21 23:41:06 +08:00
Alin Jerpelea
ee0a0735e3 LICENSE: document code found in drivers: sensors:
Document the licenses for non Apache code found in the mentioned folder

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-21 23:30:15 +08:00
Alin Jerpelea
21bf96e123 LICENSE: document code found in drivers: power:
Document the licenses for non Apache code found in the mentioned folder

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-21 23:30:15 +08:00
Alin Jerpelea
96a3209174 LICENSE: document code found in drivers: net:
Document the licenses for non Apache code found in the mentioned folder

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-21 23:30:15 +08:00
Alin Jerpelea
c95349f402 LICENSE: document code found in drivers: modem:
Document the licenses for non Apache code found in the mentioned folder

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-21 23:30:15 +08:00
Alin Jerpelea
fc55934271 LICENSE: document code found in drivers: lcd:
Document the licenses for non Apache code found in the mentioned folder

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-21 23:30:15 +08:00
Alin Jerpelea
25fcc7e4a6 LICENSE: document code found in drivers: i2c:
Document the licenses for non Apache code found in the mentioned folder

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-21 23:30:15 +08:00
Alin Jerpelea
3301fc76bc LICENSE: document code found in drivers: analog:
Document the licenses for non Apache code found in the mentioned folder

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-21 23:30:15 +08:00
Piet
bc3c316f5b ci: Install Rust via RUN. (2nd try) 2022-02-21 11:25:42 -03:00
Alan C. Assis
9480ec54eb drivers: Fix DAC license, the copyright owner didn't modify any line 2022-02-21 14:35:44 +01:00
Alan C. Assis
4553406ad4 drivers: Fix ADC license, the copyright owner didn't modify any line 2022-02-21 14:35:44 +01:00
Petro Karashchenko
9b02a91c72 libc/sched/task_setcanceltype: fix function name in comment
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-02-21 20:32:49 +08:00
Petro Karashchenko
7744ca998f Revert "ci: Install Rust via RUN."
This reverts commit 2e3b77da8e.
2022-02-21 11:41:32 +01:00
Xiang Xiao
928d52f315 libc/machine: Implement ARM aeabi_xxx API called by clang
specified here:
https://developer.arm.com/documentation/ihi0043/latest

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-21 09:29:18 +01:00
Xiang Xiao
2f24d2c265 arch/ceva: Replace OUTDIR with TOPDIR
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-21 09:25:26 +01:00
Piet
2e3b77da8e ci: Install Rust via RUN. 2022-02-21 11:04:58 +08:00
Xiang Xiao
2dcaab8af8 serial/pty: Remove the unused code related to CONFIG_PSEUDOTERM_FULLBLOCKS
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-20 21:22:24 +01:00
Xiang Xiao
163fe4ff0b boards: Replace CONFIG_CYGWIN_WINTOOL with CONVERT_PATH
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-20 21:15:36 +01:00
Xiang Xiao
1d1bdd85a3 Remove the double blank line from source files
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-20 20:10:14 +01:00
Xiang Xiao
746b68befc boards/sim: Rename ARCHCPUFLAGS[XX] to ARCHC[XX]FLAGS
follow other board files usage

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-20 15:51:31 +01:00
Xiang Xiao
7047ba1b79 boards: Remove the unnecessary customize Make.defs
since the general Make.defs in scripts folder is enough

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-20 15:48:24 +01:00
Huang Qi
f452dd7ab4 sched: Mark pthread as non-cancelable to avoid additional calls to pthread_exit()
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-02-20 15:36:07 +01:00
Xiang Xiao
4de3ec646e input: Add x11_xf86keysym.h header file
from:
https://github.com/freedesktop/xorg-x11proto/blob/master/XF86keysym.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-20 15:33:41 +01:00
raiden00pl
4e27f4a1d2 libdsp: port lib_observer.c to b16 2022-02-20 21:58:10 +08:00
raiden00pl
7126b829af libdsp/lib_observer.c: cosmetics 2022-02-20 21:58:10 +08:00
raiden00pl
1366e14192 libdsp: initialize flux_link in params, remove flux_link from pmsm_phy_params 2022-02-20 21:58:10 +08:00
raiden00pl
ca4790c429 libdsp: add one_by_p to motor_phy_params 2022-02-20 21:58:10 +08:00
Piet
2ed4ab64a9 sim: defconfig for hello_rust based on sim:nsh 2022-02-20 20:06:54 +08:00
Oki Minabe
e9a94a003d old arm: add BUILD_KERNEL code in arm/arm_vectors.S 2022-02-20 21:03:54 +09:00
Oki Minabe
19e5c8f6d3 armv7-a/r: fix SVC's sp restore in arm_vectors.S 2022-02-20 18:39:30 +08:00
Xiang Xiao
d29f3bd21c arm/rtl8720c: Remove the unused Toolchain.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-20 04:15:34 +01:00
Piet
bb3d8c35e4 ci: add Rust compiler suite 2022-02-20 10:30:30 +08:00
Oki Minabe
e9bd959425 add new line to /proc/*/loadavg snprintf format. 2022-02-19 22:35:27 +01:00
Oki Minabe
484eb1795b fix #if condition of g_mmheap for BUILD_KERNEL. 2022-02-19 19:33:15 +08:00
Oki Minabe
682984e9ba add the kernel stack allocation in pthread create. 2022-02-19 19:32:21 +08:00
Alan C. Assis
9739be15de Doc/sim: Add documentation about LVGL and VNC 2022-02-19 17:30:27 +08:00
Piet
baa4bf17b7 sim: Enable Rust suppport for hello_rust application. 2022-02-18 23:01:04 +08:00
ligd
756c9fb60d semaphore: fix corner case sem_waitirq assert crash
[   11.041077] [25] [ EMERG] [ap] up_assert: Assertion failed at file:semaphore/sem_waitirq.c line: 84 task: thermal service
[   11.041407] [25] [ EMERG] [ap] backtrace:
[   11.041517] [25] [ EMERG] [ap] [25] [<0x2c687c9e>] up_backtrace+0xa/0x164
[   11.041627] [25] [ EMERG] [ap] [25] [<0x2c676e6c>] sched_dumpstack+0x1c/0x5c
[   11.041682] [25] [ EMERG] [ap] [25] [<0x2c68763a>] up_assert+0x42/0x24c
[   11.041792] [25] [ EMERG] [ap] [25] [<0x2c67355e>] _assert+0x2/0xc
[   11.041847] [25] [ EMERG] [ap] [25] [<0x2c65d536>] nxsem_wait_irq+0x3e/0x134
[   11.042288] [25] [ EMERG] [ap] [25] [<0x2c65d378>] nxsem_timeout+0x24/0x34
[   11.043169] [25] [ EMERG] [ap] [25] [<0x2c65f74c>] wd_timer+0xc0/0x104
[   11.043995] [25] [ EMERG] [ap] [25] [<0x2c65c930>] nxsched_alarm_expiration+0x4c/0xdc
[   11.044986] [25] [ EMERG] [ap] [25] [<0x2c670872>] oneshot_callback+0x16/0x24
[   11.045867] [25] [ EMERG] [ap] [25] [<0x2c6822b8>] bes_oneshot_irq_handler+0x18/0x28
[   11.046858] [25] [ EMERG] [ap] [25] [<0x57e5c>] up_irq_handler+0x4/0xc
[   11.047684] [25] [ EMERG] [ap] [25] [<0x2c65a20e>] irq_dispatch+0x5a/0xb8
[   11.048510] [25] [ EMERG] [ap] [25] [<0x2c6864d8>] arm_doirq+0x28/0x3c
[   11.049336] [25] [ EMERG] [ap] [25] [<0x2c681732>] exception_common+0x4a/0xac
[   11.050272] [25] [ EMERG] [ap] [25] [<0x2c65a324>] leave_critical_section+0x2c/0x54
[   11.051208] [25] [ EMERG] [ap] [25] [<0x2c65f472>] timer_settime+0x9e/0x10c

There are 2 ways can caused this:
1. sem_timedwait
   HW IRQ sem_post
   TIMER IRQ do wd_timer -> nxsem_timeout -> crash

   Note: The 2 IRQS happens amost at same time

2. sem_timedwait
   TIMER IRQ do wd_timer -> wd_func1 sem_post
                         -> wd_func2 nxsem_timeout -> crash

Resolve:
Stop the watchdog when sem_post

Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-02-18 23:00:28 +08:00
Alin Jerpelea
b2048f985c LICENSE: document code found in arch: arm: lc823450:
Document the licenses for non Apache code found in the mentioned folder

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-18 22:59:42 +08:00
Alin Jerpelea
32038f6116 LICENSE: document code found in arch: arm: stm32l4:
Document the licenses for non Apache code found in the mentioned folder

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-18 22:59:42 +08:00
Alin Jerpelea
1e20bdd6a0 LICENSE: document code found in arch: arm: stm32f7/stm32h7:
Document the licenses for non Apache code found in the mentioned folder

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-18 22:59:42 +08:00
Alin Jerpelea
9899d36139 LICENSE: document code found in arch: arm: stm32f0l0g0:
Document the licenses for non Apache code found in the mentioned folder

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-18 22:59:42 +08:00
Alin Jerpelea
f55f366ba4 LICENSE: document code found in arch: arm: stm32:
Document the licenses for non Apache code found in the mentioned folder

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-18 22:59:42 +08:00
Alin Jerpelea
2c3ec7687e LICENSE: document code found in arch: arm: s32k1xx:
Document the licenses for non Apache code found in the mentioned folder

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-18 22:59:42 +08:00