emomaxd opened a new pull request, #19489:
URL: https://github.com/apache/nuttx/pull/19489

   ## Summary
   
   Add initial NuttX support for the Rockchip RK3588S and Orange Pi 5 Pro.
   
   The port boots through U-Boot, enters NuttX at EL2, switches to EL1 and 
reaches NSH. It includes the ARM64 boot path, GICv3 setup, the ARM generic 
timer, a UART2 console with polling transmit, PSCI reset, NSH and OSTest 
configurations, and board documentation.
   
   The initial MMU setup uses identity mappings, as existing ARM64 ports such 
as BCM2711 do. Only the required UART2, GIC and DRAM regions are mapped.
   
   The RAM mapping is intentionally limited to a 512 MiB window starting at 
`0x02080000`. This is not a hardware limit. It is a conservative range inside 
the first DRAM bank reported by U-Boot on the tested 4 GiB board and stays 
below the U-Boot runtime and FDT locations observed during testing. Reading the 
firmware-provided memory and reserved-memory ranges from the DTB can be added 
separately.
   
   DRAM training, UART2 clock and pin setup, and boot media access remain 
firmware responsibilities. The initial port does not parse the DTB or include 
peripheral drivers or SMP support.
   
   ## Impact
   
   This adds a new ARM64 SoC and board. Existing configurations are unchanged.
   
   ## Testing
   
   Tested on a 4 GiB Orange Pi 5 Pro with an AArch64 bare-metal toolchain.
   
   - Built `orangepi-5-pro:nsh` with Make and CMake/Ninja, and booted 
`nuttx.bin` with U-Boot `booti`
   - Verified UART2 transmit and receive at 1500000 baud
   - Reached NSH and checked `uname`, procfs and memory information
   - Verified the ARM generic timer with `sleep 5` and `/proc/uptime`
   - Verified PSCI reset with `reboot`
   - Built and ran `orangepi-5-pro:ostest`; it completed with status 0
   - Ran `calib_udelay`; it reported `CONFIG_BOARD_LOOPSPERMSEC=116422` with 
R-squared 1.0000
   - Built the documentation with Sphinx warnings treated as errors
   - Ran `git diff --check`
   
   
   ### NSH boot
   
   ![NSH boot and timer 
test](https://github.com/user-attachments/assets/0cd1ba48-522a-43e1-aa21-e24ab5483c31)
   
   ### OSTest
   
   ![OSTest 
completion](https://github.com/user-attachments/assets/b8af43a0-f01a-4bb5-90bd-3f27959bd091)
   
   ### Board
   
   ![Orange Pi 5 Pro running 
NuttX](https://github.com/user-attachments/assets/48423934-34c9-4cf5-98a6-a8177a5cc3e1)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to