Commit Graph

4287 Commits

Author SHA1 Message Date
raiden00pl 6f8953ed0b boards/arm/stm32f7: move SPI test logic to common
move STM32F7 SPI test logic to common
2024-10-21 09:23:44 +08:00
raiden00pl 56e07b0606 boards/arm/stm32f7/nucleo: remove not used stm32_dma_alloc.c
remove not used stm32_dma_alloc.c
2024-10-21 09:23:44 +08:00
raiden00pl dadace3638 boards/arm/stm32f7: move reset logic to common
move stm32f7 reset logic to common
2024-10-21 09:23:44 +08:00
raiden00pl d4e158f86d boards/arm/stm32f7: move ROMFS logic to common directory
move ROMFS logic to common directory
2024-10-21 09:23:44 +08:00
raiden00pl b606c17619 boards/arm/stm32f7: move CAN init logic to a common directory
move CAN init logic to a common directory
2024-10-21 09:23:44 +08:00
raiden00pl 6657f2abb7 boards/arm/stm32f7: separate nucleo-144 board into individual boards
nucleo-144 combines 3 different ST boards. This approach is inconsistent with
the support for the rest of the nucleo boards, where each board is in separate folders.
Also nucleo-144 is no longer reserved for STM32F7 chips but other families also use this format.

After this commit nucleo-144 is divided into 3 boards:

- nucleo-f746zg
- nucleo-f767zi
- nucleo-f722ze
2024-10-21 09:23:44 +08:00
raiden00pl 56b50a2267 boards/arm/nrf52/nrf52840-dk: replace some configs with jumbo config
replace some configs with jumbo config for nrf52840-dk
2024-10-20 09:40:54 +08:00
raiden00pl 01704380d3 boards/arm/nrf52/nrf52832-dk: replace some configs with jumbo config
replace some configs with jumbo config nrf52832-dk
2024-10-20 09:40:54 +08:00
Tomasz 'CeDeROM' CEDRO 2ed9bd5e71 boards/nucleo-l432kc: Add internal DAC code.
* Nucleo-L432KC board was missing internal MCU DAC code.
* DAC is now available on PA4/A3 and /dev/dac0 when enabled.
* Updated info on ADC inputs (PA6/A5,PA7/A6) depending on configuration.

Signed-off-by: Tomasz 'CeDeROM' CEDRO <tomek@cedro.info>
2024-10-19 12:29:49 +02:00
jihandong 444ba4caa4 libcxx: optional localization.
Signed-off-by: jihandong <jihandong@xiaomi.com>
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-19 14:34:38 +08:00
Eren Terzioglu 05ba822c41 esp32[c3]: Add BLE support 2024-10-18 21:33:58 +08:00
Xiang Xiao 24cb8c25ab bluetooth: Fix the incompatibility made by https://github.com/apache/nuttx/pull/14224
that pr requires chip turn on CONFIG_DRIVERS_BLUETOOTH to use bluetooth,
but not all defconig enable this option, so let's map bt_driver_register
to bt_netdev_register in header file in this case, and revert the unnessary
change in the related chip and board folders.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-18 09:05:54 +08:00
chengkai 6aeb2e2996 Add space before error, bt_driver_register_internal not trigger error, add defconfig DRIVERS_BLUETOOTH.
Signed-off-by: chengkai <chengkai@xiaomi.com>
2024-10-17 18:09:32 +08:00
chengkai 31605b6335 bluetooth: call bt_driver_register common interface
Signed-off-by: chengkai <chengkai@xiaomi.com>
2024-10-17 18:09:32 +08:00
anjiahao b98b263246 Revert "sabre-6quad:by pass coredump ci ci"
This reverts commit b503b323ce.
2024-10-16 20:27:36 +08:00
anjiahao 15fa55f234 mps3-an547:let ap build with pic,and use bootloader boot it
Implement PIC loading in armv8-m qemu,
for example: load address-independent AP ELF in the bootloader,
and the text segment in AP ELF is XIP,
no need to apply for memory and modify it.

Two config:

bootloader abbreviation bl:
  use romfs to load ap elf, use the boot command to parse and jump to ap

application abbreviation ap:
  run os test

We need to compile ap first, then compile bl.

compile step:
  ./tools/configure.sh mps3-an547:ap
  make -j20
  mkdir -p pic
  cp boot pic/.
  genromfs -a 128 -f ../romfs.img -d pic
  make distclean -j20
  ./tools/configure.sh mps3-an547:bl
  make -j20

run qemu:
  qemu-system-arm -M mps3-an547 -m 2G -nographic -kernel nuttx.bin \
    -gdb tcp::1127 -device loader,file=../romfs.img,addr=0x60000000

  nsh> boot /etc/boot
  ap> ostest

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-16 18:40:06 +08:00
anjiahao 3e9c2e00ea mps:support bootloader and ap defconfig build
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-16 18:40:06 +08:00
anjiahao 67cbd7491a mps3-an547:add defconfig for pic run ostest
1. ./tools/configure.sh mps3-an547:picostest
2. make -j20
3. genromfs -f romfs.img -d ../apps/bin/
4. qemu-system-arm -M mps3-an547 -m 2G -nographic \
   -kernel nuttx.bin -gdb tcp::1127 \
   -device loader,file=romfs.img,addr=0x60000000
5. nsh> /pic/hello
5. nsh> /pic/ostest

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-16 18:40:06 +08:00
anjiahao dae3b8e551 mps3-an547:use common elf cflags
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-16 18:40:06 +08:00
liwenxiang1 8a1743d0a6 arch/x86_64: Resolving NUC Boot Failure Issue
The segment of the Xen PVH boot protocol was not specified during linking and was placed before .loader.text, causing the boot to fail

Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-16 13:53:11 +08:00
wanggang26 117ac1a507 mpfs/opnsbi: refine config for for insufficient envm capacity
to fix ci error about https://github.com/apache/nuttx/pull/14293

Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-10-16 13:51:21 +08:00
wangming9 a7c4ceb869 boards/arm/qemu: Add an impls section to the link script
Signed-off-by: wangming9 <wangming9@xiaomi.com>
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-16 12:27:10 +08:00
wangming9 1f0cc62a8d board/arm/qemu: Adjust the address mapping in the LD script
Summary:
1. The start location of FLASH reserves the extended bootloader
2. DTB data is reserved at the start location of RAM

Signed-off-by: wangming9 <wangming9@xiaomi.com>
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-16 12:27:10 +08:00
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