Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Default Buildroot System Image #2

Open
6 of 7 tasks
lakshanthad opened this issue Sep 2, 2021 · 2 comments
Open
6 of 7 tasks

Issues with Default Buildroot System Image #2

lakshanthad opened this issue Sep 2, 2021 · 2 comments

Comments

@lakshanthad
Copy link

lakshanthad commented Sep 2, 2021

The following are the issues when running the latest system image on reTerminal:

  • spidev_test tool not working. It needs to be put inside the system image and recompile
  • CSI Camera need 3rd party software to work
  • Micro-HDMI hot-plug feature not working
  • Add reTerminal Python Library into the system image - https://github.com/Seeed-Studio/Seeed_Python_ReTerminal
  • Accelerometer + Buttons Python demo has problems with asyncio
  • Qt app "SHUTDOWN" button not working because "shutdown now" is not available in Buildroot
  • Current directory location is not shown on terminal
bigbearishappy pushed a commit that referenced this issue Jan 27, 2022
The kernel generated by the configuration for the STM32f429-discovery
board is buggy:

Fixes:
 Unhandled exception: IPSR = 00000006 LR = fffffff1
 CPU: 0 PID: 1 Comm: init Not tainted 4.11.0 #2
 Hardware name: STM32 (Device Tree Support)
 task: 9041a000 task.stack: 907c0000
 PC is at ret_fast_syscall+0x2/0x4a
 LR is at tty_ioctl+0x1ad/0x75c
 pc : [<0800d942>]    lr : [<080c2e05>]    psr: 4000000b
 sp : 907c1fa8  ip : 0000001c  fp : 905961a2
 r10: 00000000  r9 : 907c0000  r8 : 0800dae0
 r7 : 00000036  r6 : 905e7e60  r5 : 00000000  r4 : 905e7ebc
 r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : 00000000
 xPSR: 4000000b
 CPU: 0 PID: 1 Comm: init Not tainted 4.11.0 #2
 Hardware name: STM32 (Device Tree Support)
 [<0800fbf9>] (unwind_backtrace) from [<0800f05b>] (show_stack+0xb/0xc)
 [<0800f05b>] (show_stack) from [<0800f553>] (__invalid_entry+0x4b/0x4c)

Inspired by commit a3e3d9c ("configs/stm32f469_disco_xip_defconfig:
alternative defconfig for XIP"), update the stm32f429_disco_defconfig
configuration to use a newer kernel. Current setup kernel + rootfs fits
in 1.6MB on-chip flash memory.

The kernel has been moved to new flash bank due to growth of dtb size.

Remove upstream patch.

For better binary size optimization gcc LTO is turned on.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
Acked-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
@WillYouth
Copy link

WillYouth commented Apr 14, 2023

I got these lines of code during compilation and didn't get any files in output/images.

In file included from /home/pi/seeed-linux-buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/linux/fs.h:19,
                 from ../../../../libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:75:
/home/pi/seeed-linux-buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/linux/mount.h:92:6: error: multiple definition of ‘enum fsconfig_command’
   92 | enum fsconfig_command {
      |      ^~~~~~~~~~~~~~~~
In file included from ../../../../libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:62:
/home/pi/seeed-linux-buildroot/output/build/host-gcc-final-11.3.0/build/gcc/include-fixed/sys/mount.h:249:6: note: previous definition here
  249 | enum fsconfig_command
      |      ^~~~~~~~~~~~~~~~

Update: it's a compilation on reTerminal

@is-qian
Copy link

is-qian commented Apr 30, 2024

I got these lines of code during compilation and didn't get any files in output/images.

In file included from /home/pi/seeed-linux-buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/linux/fs.h:19,
                 from ../../../../libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:75:
/home/pi/seeed-linux-buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/linux/mount.h:92:6: error: multiple definition of ‘enum fsconfig_command’
   92 | enum fsconfig_command {
      |      ^~~~~~~~~~~~~~~~
In file included from ../../../../libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:62:
/home/pi/seeed-linux-buildroot/output/build/host-gcc-final-11.3.0/build/gcc/include-fixed/sys/mount.h:249:6: note: previous definition here
  249 | enum fsconfig_command
      |      ^~~~~~~~~~~~~~~~

Update: it's a compilation on reTerminal

This issue has been resolved in the upstream repository of buildroot, and the upstream code has been synchronized now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants