Commit Graph

4264 Commits

Author SHA1 Message Date
wangmingrong1 16c90ada1c mps/bringup: Add initialization of tmpfs
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-10-16 07:57:15 +08:00
raiden00pl c393416580 libs/libxx: uClibc depends on CONFIG_ALLOW_GPL_COMPONENTS=y
uClibc is LGPL so it should depends on CONFIG_ALLOW_GPL_COMPONENTS=y
2024-10-16 07:56:50 +08:00
Kyle Wilson df47241a2b STM32G4 Flash Driver
Added a flash driver for the STM32G4 series. The primary change here is
the addition of stm32g4xxx_flash.c. This file uses the STM32L4 flash
driver as a template. The primary difference is the accounting for dual
banks with different page sizes.

Fixed error while building b-g474e-dpow1/buckboost. It was possible (technically) to have page be used uninitialzied. Changing the if statement to default to using a flash_page_size == 2048 fixes this issue.
2024-10-15 18:11:38 -03:00
Bowen Wang 43557c15c8 qemu-armv8a/qemu_bringup: init the pci ecam
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-15 21:40:45 +08:00
lipengfei28 054257c36e update defconfig
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-15 21:40:35 +08:00
yinshengkai 8f3060ed52 boards: Enable LTO option for same70-xplained/mcuboot-loader
Avoid compilation errors due to insufficient flash in CI

Configuration/Tool: same70-xplained/mcuboot-loader,CONFIG_ARM_TOOLCHAIN_GNU_EABI
2024-10-14 16:17:34
arm-none-eabi-ld: /github/workspace/sources/nuttx/nuttx section `.ramfunc' will not fit in region `flash'
arm-none-eabi-ld: region `flash' overflowed by 52 bytes
arm-none-eabi-ld: warning: /github/workspace/sources/nuttx/nuttx has a LOAD segment with RWX permissions
make[1]: *** [Makefile:212: nuttx] Error 1
make: *** [tools/Unix.mk:551: nuttx] Error 2
make: Target 'all' not remade because of errors.

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-15 18:13:38 +08:00
cuiziwei 4253001656 sim/m64:Fix ld error with .rodata can not be used when making a PIE object.
/usr/bin/ld: nuttx.rel: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: failed to set dynamic section sizes: bad value

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-15 14:45:42 +08:00
cuiziwei 68e25dcee6 nuttx/x86_64:Add _sinit and _einit initialization.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-15 12:57:31 +08:00
wanggang26 ca189ccaf2 boards/same70-xplained: refine config for insufficient flash capacity
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-10-15 12:34:55 +08:00
cuiziwei 3fdc68ef09 stm32f4discovery/testlibcxx: Enable tls to fix build error.
CXX:  libcxx/src/filesystem/directory_iterator.cpp libcxx/src/thread.cpp:123:2: error: #error "Thread.cpp needs to enable config of CONFIG_TLS_TASK_NELEM," " and CONFIG_TLS_TASK_NELEM > 0, please enable it"
  123 | #error "Thread.cpp needs to enable config of CONFIG_TLS_TASK_NELEM," \
      |  ^~~~~

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-15 11:41:10 +08:00
guoshichao 39690a994f mps2-an521: remove the unnecessary -pipe build options
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2024-10-15 09:46:06 +08:00
wangmingrong1 0b889585a5 boards/qemu: Open kasan on qemu
1. Open Kasan and open Kasantest
2. Add software tag kasan configuration for arm64

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-10-15 01:19:43 +08:00
guoshichao d1d2709177 ghs: fix the build warning with ghs compiler
the detailed warning info:
ccarm: Warning: Unknown option "-Wno-cpp" ignored.  Did you mean "--nocpp"?
ccarm: Warning: Unknown option "-pipe" passed to linker

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2024-10-15 01:02:36 +08:00
ligd 48dd8bca58 qemu: fix CI check error when check qemu net (savedefconfig)
boards/arm/samv7/same70-xplained/configs/pysim/defconfig
boards/arm/stm32h7/nucleo-h743zi2/configs/jumbo/defconfig

Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-14 20:03:22 +08:00
wangming9 5ff147e07c boards/arm64: Add an impls section to the link script
Signed-off-by: wangming9 <wangming9@xiaomi.com>
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-14 17:55:23 +08:00
wanggang26 f417d14fe7 risc-v/mpfs: enable DEFAULT_SMALL for insufficient envm capacity
to fix ci error about https://github.com/apache/nuttx/pull/14070

Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-10-14 08:09:13 +02:00
ligd 47275792a8 qemu: fix CI check error when check qemu net (savedefconfig)
CONFIG_SYSTEM_TELNETD_SESSION_STACKSIZE=8192

	modified:   boards/arm64/qemu/qemu-armv8a/configs/netnsh/defconfig
	modified:   boards/arm64/qemu/qemu-armv8a/configs/netnsh_hv/defconfig
	modified:   boards/arm64/qemu/qemu-armv8a/configs/netnsh_smp/defconfig
	modified:   boards/arm64/qemu/qemu-armv8a/configs/netnsh_smp_hv/defconfig

Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-14 13:31:33 +08:00
Felipe Moura 11e0262ae8 Add necessary Import to compilation 2024-10-14 08:30:53 +08:00
Marco Casaroli 22800d6ea2 fix(esp32-devkit): rename defconfig to use _ 2024-10-13 11:19:51 +08:00
Marco Casaroli 027e5ab763 fix(esp32-qemu): enable legacy esp-idf build
The current simple boot method is not working with qemu.

We enable this option for now until we can make the simple-boot
image boot with QEMU.
2024-10-13 11:19:51 +08:00
Marco Casaroli 4741f6f561 feat(esp32s3-devkit): add qemu defconfig 2024-10-13 11:19:51 +08:00
Marco Casaroli d2d653aebf feat(esp32s3-devkit): initialize opencores eth mac 2024-10-13 11:19:51 +08:00
Marco Casaroli 890bdcd3d3 feat(esp32s3-devkit): add qemu image option 2024-10-13 11:19:51 +08:00
Marco Casaroli d5b32f0335 feat(esp32_openeth): move to common/espressif
Since this will be used for esp32s3 also, we can have this in
common/espressif.
2024-10-13 11:19:51 +08:00
Bowen Wang 101b147a24 lib_memoryregion: fix the comments about the memory flags
Follow the elf format, correct the memory region flag description:
Executable 0x1, Writable 0x2, Readable 0x4

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-13 02:28:55 +08:00
Bowen Wang 9363033356 tlsr82/nsh: set LIBC_RAND_ORDER be 0 to fix compile error
tc32-elf-ld generated: In function `nrand_r':
/data/project/code/vela-pt/nuttx/libs/libc/stdlib/lib_srand.c:241: undefined reference to `__fixunsdfsi'

telink compiler do not support float point, so set LIBC_RAND_ORDER
to be 0 to avoid function srand() use float point.

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-12 18:11:58 +08:00
Bowen Wang e040a747aa board/qemu-armv7a: use fdt_pci_ecam_register() to register pci ecam
Now qemu-armv7a can use the pci drivers

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-12 18:10:19 +08:00
Bowen Wang 3caf47942e board/qemu-armv7a: use fdt_virtio_mmio_devices_register() to register mmio devices
Use common implementation to register mmio device

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-12 18:10:19 +08:00
wangmingrong1 c565996b45 mps/cmake: add cmake build
1. fix comments
2. mps2-an500:add mps2-an500 cmake build
3. mps2-an521:add mps2-an521 cmake build

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-10-12 15:35:16 +08:00
anjiahao 82d82c5aec mps3-an547:add mps3-an547 cmake build
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 15:35:16 +08:00
hujun5 a4c9268a40 board: There is no need to use sched_[un]lock
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-12 13:28:23 +08:00
anjiahao b503b323ce sabre-6quad:by pass coredump ci ci
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao e5f9b42ea0 binfmt/libelf:Remove libelf implementation [2/2]
this commit is part two, all logic move to modlib, so we can remove it.
and change all use defconfig

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao 1fc2cd7816 binfmt:use modlib api inside of elf api [1/2]
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
anjiahao 52126aede1 coredump:Move coredump to sched/misc
1. move coredump form libelf to sched/misc
2. rename core_dump to coredump

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-12 12:29:06 +08:00
cuiziwei eb4d1a14b3 nuttx/libcxxtest: Fix build error.
libcxx/src/thread.cpp:123:2: error: #error "Thread.cpp needs to enable config of CONFIG_TLS_TASK_NELEM," " and CONFIG_TLS_TASK_NELEM > 0, please enable it"
  123 | #error "Thread.cpp needs to enable config of CONFIG_TLS_TASK_NELEM," \
      |  ^~~~~

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-12 11:48:44 +08:00
Neo Xu 49eee3841c stm32f429i-disco/systemview: enable example of noteprintf
Also enable task name for better demo purpose.

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2024-10-12 09:58:00 +08:00
fangxinyong 55d7708fa0 boards/arm/qemu: enable kernel build for armv7a
See Documentation/platforms/arm/qemu/boards/qemu-armv7a/README.txt for details

Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2024-10-12 09:28:45 +08:00
yinshengkai cac90afe79 Revert "sim/note: add note related configuration"
This reverts commit 154cb4a860.
2024-10-11 21:30:19 +08:00
yinshengkai 154cb4a860 sim/note: add note related configuration
Ensure that CI can cover all note code

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-11 11:55:17 +08:00
anjiahao 5076b0c74c risc-v:Unify module compilation options
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-11 11:20:45 +08:00
yinshengkai eb8449cb0c sched/gprof: add gprof support
gprof can analyze code hot spots based on scheduled sampling.
After adding the "-pg" parameter when compiling, you can view the code call graph.

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-10 18:46:51 +08:00
Eren Terzioglu 4060f6ba80 esp32[s2|s3]: Add UORB support for internal temperature sensor 2024-10-10 18:45:01 +08:00
Eren Terzioglu 929f9ccfa2 esp32[c3|c6|h2]: Add UORB support for internal temperature sensor 2024-10-10 18:45:01 +08:00
dongjiuzhu1 ae19554c66 boards/sam3u-ek/knsh: disable pthread to reduce flash size
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-10-10 16:42:15 +08:00
yinshengkai 034af29aab arch: adjust gcov configuration name
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-09 21:27:47 +08:00
jianglianfang 8b49e17f1f stm32f429i-disco: disable TM32_FB_CMAP
The default bpp is STM32_LTDC_L1_L8, when TM32_FB_CMAP=y,and The default bpp is STM32_LTDC_L1_RGB565 when TM32_FB_CMAP=n. The color-format bpp  of stm32f429i is 16, so we should be disable TM32_FB_CMAP, otherwise fb demo will result in an error.

Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
2024-10-09 18:14:52 +08:00
liwenxiang1 8b86f5de60 arch/x86_64: add support for thread_local
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-09 17:58:01 +08:00
anjiahao fa59adde40 Simplify BOARD_MEMORY_RANGE initialization logic
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-09 15:41:48 +08:00
Xiang Xiao b068e2357a circbuf: Move from mm/circbuf to libs/libc/misc
so that it can be used by userspace program.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2024-10-09 08:41:49 +08:00