Skip to contentSkip to conversation

configs/stm32f429_disco_xip_defconfig: fix runtime error due to low ram space and bump to linux version 6.1.27

PATCH Applied Giulio Benetti 4 participants 6 messages May 1, 2023 – Jun 5, 2023 Arm STM32

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs/stm32f429_disco_xip_defconfig: fix runtime error due to low ram space and bump to linux version 6.1.27

After booting Linux the userspace is unusable since every command issued, that is a symlink to busybox, fails because of no free ram. So let's disable IIO in linux.config to give some more ram to userspace.

---
 board/stmicroelectronics/stm32f429-disco/linux.config | 4 ----
 configs/stm32f429_disco_xip_defconfig                 | 2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)
board/stmicroelectronics/stm32f429-disco/linux.config +0 -4
index 7b5c60f180..02d9c2d1e0 100644
@@ -95,10 +95,6 @@ CONFIG_STM32_MDMA=y
 CONFIG_SYNC_FILE=y
 # CONFIG_VIRTIO_MENU is not set
 # CONFIG_VHOST_MENU is not set
-CONFIG_IIO=y
-CONFIG_IIO_BUFFER=y
-CONFIG_IIO_TRIGGERED_BUFFER=y
-CONFIG_IIO_STM32_TIMER_TRIGGER=y
 # CONFIG_FILE_LOCKING is not set
 # CONFIG_DNOTIFY is not set
 # CONFIG_INOTIFY_USER is not set
configs/stm32f429_disco_xip_defconfig +1 -1
index 872e4b6a30..1aea741f7e 100644
@@ -6,7 +6,7 @@ BR2_ENABLE_LTO=y
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/stmicroelectronics/common/stm32f4xx/stm32-post-build.sh"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.10"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.27"
 BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
 BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/stmicroelectronics/stm32f429-disco/linux.config"
 BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi Giulio,

Quoted 5 lines · Giulio Benetti

After booting Linux the userspace is unusable since every command issued, that is a symlink to busybox, fails because of no free ram. So let's disable IIO in linux.config to give some more ram to userspace.

I have also experienced this type of behavior when using ST boards in general (stm32f429-disco, stm32f469-disco,
and stm32f769-disco), and every time I wonder whether it is better to update the kernel (which always occupies more
memory with each new version) or not. The idea I have is to prefer the kernel to user space, and therefore disable
starting from the user space first of all, but my opinion is debatable.

Thanks and regards,
Dario

Quoted 37 lines
---
 board/stmicroelectronics/stm32f429-disco/linux.config | 4 ----
 configs/stm32f429_disco_xip_defconfig                 | 2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)
board/stmicroelectronics/stm32f429-disco/linux.config +0 -4
index 7b5c60f180..02d9c2d1e0 100644
@@ -95,10 +95,6 @@ CONFIG_STM32_MDMA=y
 CONFIG_SYNC_FILE=y
 # CONFIG_VIRTIO_MENU is not set
 # CONFIG_VHOST_MENU is not set
-CONFIG_IIO=y
-CONFIG_IIO_BUFFER=y
-CONFIG_IIO_TRIGGERED_BUFFER=y
-CONFIG_IIO_STM32_TIMER_TRIGGER=y
 # CONFIG_FILE_LOCKING is not set
 # CONFIG_DNOTIFY is not set
 # CONFIG_INOTIFY_USER is not set
configs/stm32f429_disco_xip_defconfig +1 -2
index 872e4b6a30..1aea741f7e 100644
@@ -6,7 +6,7 @@ BR2_ENABLE_LTO=y
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/stmicroelectronics/common/stm32f4xx/stm32-post-build.sh"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.10"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.27"
 BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
 BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/stmicroelectronics/stm32f429-disco/linux.config"
 BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y
--

2.34.1

Signature · 21 lines
Dario Binacchi

Senior Embedded Linux Developer

[email protected]

__________________________________


Amarula Solutions SRL

Via Le Canevare 30, 31100 Treviso, Veneto, IT

T. +39 042 243 5310
[email protected]

www.amarulasolutions.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Dario, All,

On 2023-05-06 16:21 +0200, Dario Binacchi spake thusly:

Quoted 5 lines
Quoted 3 lines · Giulio Benetti

After booting Linux the userspace is unusable since every command issued, that is a symlink to busybox, fails because of no free ram. So let's disable IIO in linux.config to give some more ram to userspace.

Quoted 7 lines

I have also experienced this type of behavior when using ST boards in general (stm32f429-disco, stm32f469-disco,
and stm32f769-disco), and every time I wonder whether it is better to update the kernel (which always occupies more
memory with each new version) or not. The idea I have is to prefer the kernel to user space, and therefore disable
starting from the user space first of all, but my opinion is debatable.

Thanks for the feedback.

The thing is: how useful is Industrial IO (IIO) on a device such as the stm32 disco family? I suspect the interest in IIO for those devices to be virtually nill, so Giulio's change does make sense.

Regards,
Yann E. MORIN.

Quoted 65 lines

Thanks and regards,
Dario

Quoted 37 lines
---
 board/stmicroelectronics/stm32f429-disco/linux.config | 4 ----
 configs/stm32f429_disco_xip_defconfig                 | 2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)
board/stmicroelectronics/stm32f429-disco/linux.config +0 -4
index 7b5c60f180..02d9c2d1e0 100644
@@ -95,10 +95,6 @@ CONFIG_STM32_MDMA=y
 CONFIG_SYNC_FILE=y
 # CONFIG_VIRTIO_MENU is not set
 # CONFIG_VHOST_MENU is not set
-CONFIG_IIO=y
-CONFIG_IIO_BUFFER=y
-CONFIG_IIO_TRIGGERED_BUFFER=y
-CONFIG_IIO_STM32_TIMER_TRIGGER=y
 # CONFIG_FILE_LOCKING is not set
 # CONFIG_DNOTIFY is not set
 # CONFIG_INOTIFY_USER is not set
configs/stm32f429_disco_xip_defconfig +1 -2
index 872e4b6a30..1aea741f7e 100644
@@ -6,7 +6,7 @@ BR2_ENABLE_LTO=y
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/stmicroelectronics/common/stm32f4xx/stm32-post-build.sh"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.10"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.27"
 BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
 BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/stmicroelectronics/stm32f429-disco/linux.config"
 BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y
--

2.34.1

Signature · 21 lines
Dario Binacchi

Senior Embedded Linux Developer

[email protected]

__________________________________


Amarula Solutions SRL

Via Le Canevare 30, 31100 Treviso, Veneto, IT

T. +39 042 243 5310
[email protected]

www.amarulasolutions.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Dario Binacchi

Hi Dario,

Quoted 10 lines · Dario Binacchi

Hi Giulio,

Quoted 5 lines · Giulio Benetti

After booting Linux the userspace is unusable since every command issued, that is a symlink to busybox, fails because of no free ram. So let's disable IIO in linux.config to give some more ram to userspace.

Quoted 7 lines

I have also experienced this type of behavior when using ST boards in general (stm32f429-disco, stm32f469-disco,
and stm32f769-disco), and every time I wonder whether it is better to update the kernel (which always occupies more
memory with each new version) or not. The idea I have is to prefer the kernel to user space, and therefore disable
starting from the user space first of all, but my opinion is debatable.

I was about to that, but while testing on the board I've seen that busybox utilities were already very few. So I've preferred to disable IIO STM32 Timer Trigger and entire IIO subsystem. I think that the board is anyway a good playground. Of course with only 8MB on ram is not suitable for any program. So if nowadays someone decides to design a board with stm32f4 processor should go with older Linux versions or IMHO they should use more ram.

Kind regards

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas
Quoted 32 lines

Thanks and regards,
Dario

Quoted 29 lines
---
  board/stmicroelectronics/stm32f429-disco/linux.config | 4 ----
  configs/stm32f429_disco_xip_defconfig                 | 2 +-
  2 files changed, 1 insertion(+), 5 deletions(-)
board/stmicroelectronics/stm32f429-disco/linux.config +0 -4
index 7b5c60f180..02d9c2d1e0 100644
@@ -95,10 +95,6 @@ CONFIG_STM32_MDMA=y
  CONFIG_SYNC_FILE=y
  # CONFIG_VIRTIO_MENU is not set
  # CONFIG_VHOST_MENU is not set
-CONFIG_IIO=y
-CONFIG_IIO_BUFFER=y
-CONFIG_IIO_TRIGGERED_BUFFER=y
-CONFIG_IIO_STM32_TIMER_TRIGGER=y
  # CONFIG_FILE_LOCKING is not set
  # CONFIG_DNOTIFY is not set
  # CONFIG_INOTIFY_USER is not set
configs/stm32f429_disco_xip_defconfig +0 -0
index 872e4b6a30..1aea741f7e 100644
@@ -6,7 +6,7 @@ BR2_ENABLE_LTO=y
  BR2_ROOTFS_POST_BUILD_SCRIPT="board/stmicroelectronics/common/stm32f4xx/stm32-post-build.sh"
  BR2_LINUX_KERNEL=y
  BR2_LINUX_KERNEL_CUSTOM_VERSION=y
Quoted 10 lines
Quoted 8 lines
configs/stm32f429_disco_xip_defconfig +1 -2
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.10"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.27"
  BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
  BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/stmicroelectronics/stm32f429-disco/linux.config"
  BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y
--

2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw
In reply to Giulio Benetti

Giulio, All,

On 2023-05-01 18:26 +0200, Giulio Benetti spake thusly:

Quoted 5 lines

After booting Linux the userspace is unusable since every command issued, that is a symlink to busybox, fails because of no free ram. So let's disable IIO in linux.config to give some more ram to userspace.

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 40 lines
---
 board/stmicroelectronics/stm32f429-disco/linux.config | 4 ----
 configs/stm32f429_disco_xip_defconfig                 | 2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)
board/stmicroelectronics/stm32f429-disco/linux.config +0 -4
index 7b5c60f180..02d9c2d1e0 100644
@@ -95,10 +95,6 @@ CONFIG_STM32_MDMA=y
 CONFIG_SYNC_FILE=y
 # CONFIG_VIRTIO_MENU is not set
 # CONFIG_VHOST_MENU is not set
-CONFIG_IIO=y
-CONFIG_IIO_BUFFER=y
-CONFIG_IIO_TRIGGERED_BUFFER=y
-CONFIG_IIO_STM32_TIMER_TRIGGER=y
 # CONFIG_FILE_LOCKING is not set
 # CONFIG_DNOTIFY is not set
 # CONFIG_INOTIFY_USER is not set
configs/stm32f429_disco_xip_defconfig +1 -1
index 872e4b6a30..1aea741f7e 100644
@@ -6,7 +6,7 @@ BR2_ENABLE_LTO=y
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/stmicroelectronics/common/stm32f4xx/stm32-post-build.sh"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.10"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.27"
 BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
 BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/stmicroelectronics/stm32f429-disco/linux.config"
 BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw
In reply to Giulio Benetti
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Giulio" == Giulio Benetti <[email protected]> writes:

After booting Linux the userspace is unusable since every command issued, that is a symlink to busybox, fails because of no free ram. So let's disable IIO in linux.config to give some more ram to userspace.

Committed to 2023.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot