Created
April 16, 2026 22:44
-
-
Save lupyuen/a77be35dbcd40f959e2e4930d126963b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| luppy@thinkstation:~/nuttx-release$ sudo docker run -it \ | |
| ghcr.io/apache/nuttx/apache-nuttx-ci-linux:latest \ | |
| [sudo] password for luppy: | |
| root@41e6c41edb4b:/tools# cd ; | |
| pwd ; | |
| /root | |
| root@41e6c41edb4b:~# git clone https://github.com/acassis/incubator-nuttx --branch fix_modbus_loc nuttx | |
| Cloning into 'nuttx'... | |
| remote: Enumerating objects: 898632, done. | |
| remote: Counting objects: 100% (666/666), done. | |
| remote: Compressing objects: 100% (327/327), done. | |
| remote: Total 898632 (delta 435), reused 339 (delta 339), pack-reused 897966 (from 2) | |
| Receiving objects: 100% (898632/898632), 360.09 MiB | 17.67 MiB/s, done. | |
| Resolving deltas: 100% (704623/704623), done. | |
| Updating files: 100% (26005/26005), done. | |
| root@41e6c41edb4b:~# | |
| root@41e6c41edb4b:~# git clone https://github.com/apache/nuttx-apps apps ; | |
| Cloning into 'apps'... | |
| remote: Enumerating objects: 99190, done. | |
| remote: Counting objects: 100% (1839/1839), done. | |
| remote: Compressing objects: 100% (584/584), done. | |
| remote: Total 99190 (delta 1486), reused 1262 (delta 1255), pack-reused 97351 (from 4) | |
| Receiving objects: 100% (99190/99190), 27.73 MiB | 13.29 MiB/s, done. | |
| Resolving deltas: 100% (79459/79459), done. | |
| root@41e6c41edb4b:~# | |
| root@41e6c41edb4b:~# cd nuttx | |
| root@41e6c41edb4b:~/nuttx# | |
| root@41e6c41edb4b:~/nuttx# ./tools/refresh.sh --silent stm32f4discovery:modbus_slave | |
| [1/1] Normalize stm32f4discovery:modbus_slave | |
| 9d8 | |
| < # CONFIG_MB_TCP_ENABLED is not set | |
| 32,33d30 | |
| < CONFIG_INDUSTRY_MODBUS=y | |
| < CONFIG_INDUSTRY_MODBUS_SLAVE=y | |
| Saving the new configuration file | |
| root@41e6c41edb4b:~/nuttx# | |
| root@41e6c41edb4b:~/nuttx# git diff | |
| diff --git a/boards/arm/stm32/stm32f4discovery/configs/modbus_slave/defconfig b/boards/arm/stm32/ | |
| stm32f4discovery/configs/modbus_slave/defconfig | |
| index 0eba5c05bc..e574e4de0b 100644 | |
| --- a/boards/arm/stm32/stm32f4discovery/configs/modbus_slave/defconfig | |
| +++ b/boards/arm/stm32/stm32f4discovery/configs/modbus_slave/defconfig | |
| @@ -6,7 +6,6 @@ | |
| # modifications. | |
| # | |
| # CONFIG_ARCH_FPU is not set | |
| -# CONFIG_MB_TCP_ENABLED is not set | |
| # CONFIG_NSH_ARGCAT is not set | |
| # CONFIG_NSH_CMDOPT_HEXDUMP is not set | |
| # CONFIG_NSH_DISABLE_MB is not set | |
| @@ -29,8 +28,6 @@ CONFIG_EXAMPLES_MODBUS_PORT=1 | |
| CONFIG_FS_PROCFS=y | |
| CONFIG_HAVE_CXX=y | |
| CONFIG_HAVE_CXXINITIALIZE=y | |
| -CONFIG_INDUSTRY_MODBUS=y | |
| -CONFIG_INDUSTRY_MODBUS_SLAVE=y | |
| CONFIG_INIT_ENTRYPOINT="nsh_main" | |
| CONFIG_INTELHEX_BINARY=y | |
| CONFIG_LINE_MAX=64 | |
| root@41e6c41edb4b:~/nuttx# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment