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

[BUG]: embedded imager build throws kernal panic #829

Open
1 task
oxmc opened this issue Feb 29, 2024 · 7 comments
Open
1 task

[BUG]: embedded imager build throws kernal panic #829

oxmc opened this issue Feb 29, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@oxmc
Copy link

oxmc commented Feb 29, 2024

What happened?

When building the embedded system (buildroot) it finishes with no errors, but when booting on a pi, it starts init udev shows udevd[92]: specified group 'sgx' unknown and then throws a kernal panic

Version

1.8.5 (Default)

What host operating system were you using?

Debian and derivatives (eg Ubuntu)

Host OS Version

RpiOS 12 (bookworm)

Selected OS

nothing

Which Raspberry Pi Device are you using?

Raspberry Pi 4B, 400, and Compute Modules 4, 4S

What kind of storage device are you using?

USB Pen Drive

OS Customisation

  • Yes, I was using OS Customisation when the bug occurred.

Relevant log output

No response

@oxmc oxmc added the bug Something isn't working label Feb 29, 2024
@oxmc
Copy link
Author

oxmc commented Feb 29, 2024

image

Image of boot log

@oxmc
Copy link
Author

oxmc commented Feb 29, 2024

i even made a build from an older version of rpi-imager that i had modified, here is the boot files: https://cdn.oxmc-servers.online/uploads/my-embedded-build.zip

@oxmc
Copy link
Author

oxmc commented Feb 29, 2024

Closing, after cleaning and re-installing my os it worked, looks like it was my systems fault

@oxmc oxmc closed this as completed Feb 29, 2024
@maxnet
Copy link
Collaborator

maxnet commented Feb 29, 2024

Closing, after cleaning and re-installing my os it worked, looks like it was my systems fault

Did you change any build settings?

As we also encountered problems after upgrading to a newer Mesa3D version for Pi 5, that it would crash if compiled optimized as size, while it did work optimized for speed (-O2).
There may be a timing specific bug out there...

@oxmc
Copy link
Author

oxmc commented Feb 29, 2024

I modified some files, played around with buildroot config and it builds with this:

BR2_aarch64=y
BR2_cortex_a72=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_1=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_OPTIMIZE_2=y
BR2_SSP_NONE=y
BR2_FORTIFY_SOURCE_NONE=y
BR2_INIT_NONE=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_ROOTFS_MERGED_USR=y
BR2_TARGET_GENERIC_ROOT_PASSWD="raspberry"
BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_IMAGER_PATH)/board/overlay/"
BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_IMAGER_PATH)/board/post-build.sh"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,2a47ccf97c6a91bc56f8cfb387d47f59cc347dd5)/linux-2a47ccf97c6a91bc56f8cfb387d47f59cc347dd5.tar.gz"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_IMAGER_PATH)/board/bcm2711_defconfig_minus_modules"
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_IMAGER_PATH)/board/kernel_config_fragment_recov"
BR2_LINUX_KERNEL_IMAGEGZ=y
BR2_LINUX_KERNEL_ZSTD=y
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2711-rpi-4-b broadcom/bcm2711-rpi-400 broadcom/bcm2711-rpi-cm4 broadcom/bcm2712-rpi-5-b overlays/overlay_map overlays/dwc2-overlay overlays/vc4-kms-v3d-pi4-overlay overlays/vc4-kms-v3d-pi5-overlay overlays/disable-bt-overlay overlays/disable-wifi-overlay overlays/disable-bt-pi5-overlay overlays/disable-wifi-pi5-overlay"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_XZ=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_V3D=y
BR2_PACKAGE_MESA3D_OPENGL_ES=y
BR2_PACKAGE_QT5BASE_EGLFS=y
# BR2_PACKAGE_EUDEV_ENABLE_HWDB is not set
# BR2_PACKAGE_LIBOPENSSL_ENABLE_WEAK_SSL is not set
# BR2_PACKAGE_LIBOPENSSL_UNSECURE is not set
# BR2_PACKAGE_LIBOPENSSL_DYNAMIC_ENGINE is not set
# BR2_PACKAGE_LIBOPENSSL_ENABLE_COMP is not set
BR2_PACKAGE_LIBCURL_VERBOSE=y
# BR2_PACKAGE_LIBCURL_PROXY_SUPPORT is not set
# BR2_PACKAGE_LIBCURL_EXTRA_PROTOCOLS_FEATURES is not set
BR2_PACKAGE_DHCPCD=y
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
BR2_PACKAGE_UTIL_LINUX_BINARIES=y
BR2_TARGET_ROOTFS_CPIO=y
BR2_TARGET_ROOTFS_CPIO_ZSTD=y
BR2_PACKAGE_RPI_IMAGER=y
BR2_PACKAGE_RPI_FIRMWARE_CUSTOM=y

@oxmc
Copy link
Author

oxmc commented Feb 29, 2024

Unsure if it was just a weird Linux issue or what, I'll try building the rpi-imager again from a clean slate

@oxmc
Copy link
Author

oxmc commented Mar 8, 2024

This seems t be happening more and more often, im going to re-open the issue

@oxmc oxmc reopened this Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants