Deployment OpenSTLinux from STM32CubeIDE
- June 21, 2021
- 3 replies
- 2470 views
Hello! I use STM32CubeIDE for STM32MP157A-DK1 board. I want to deploy the kernel directly from the development environment. To do this, I set up local and remote paths for the device tree and for the uImage file (see the screenshot). At first, I tried to update only the device tree - I changed the heartbeat LED from blue to yellow - everything works correctly, the extlinux.conf file is changed automatically. But when I tried to update not only the device tree but also the uImage file, SSH stopped working for me. In the UART console, I see the message "disagrees about version of symbol module_layout". My kernel version has been updated. The cat /proc/version command gives this result: "Linux version 5.10.10 (ubuntu@ubuntu-H410M-H) (arm-ostl-linux-gnueabi-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP PREEMPT Thu Jun 17 17: 59:33 MSK 2021". In the wiki (https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm ® _Cortex ® -A7/Modify,_rebuild_and_reload_the_Linux ® _kernel) I read that in addition to the core, you also need to send the core modules to the board and perform several more commands. I have a few questions:
1) Can the lack of new kernel modules be the cause of SSH failure?
2) How should I configure STM32CubeIDE so that after loading the kernel and modules, the "/sbin/depmod-a" and "sync" commands are executed ?
Should I write a script?
3) How do I set up CubeIDE for deployment correctly?

