Tool/software: Linux
Hello,
I would like to ask you for advice about system configuration running from SD card. I'm using kernel from TI 4.9.59. And due to need of our own filesystem I chose to use Buildroot. I know the TI mainly supports Yocto, but I believe someone could help me anyway.
There is the thing. The compilation is OK, I create SD card as recomended by buildroot by: dd if=${BASEDIR}/../output/images/sdcard.img of=/dev/mmcblk0. It creates two partitions on the SD. The Linux boots OKish but after while wierd Ext-4 errors appear. Here is some example I got.
[ 17.243011] EXT4-fs error (device mmcblk0p2) in ext4_reserve_inode_write:5434: Out y
[ 17.256024] EXT4-fs error (device mmcblk0p2) in ext4_orphan_add:2845: Out of memory
[ 17.268580] EXT4-fs error (device mmcblk0p2) in ext4_reserve_inode_write:5434: Out of memory
[ 17.280781] EXT4-fs error (device mmcblk0p2) in ext4_setattr:5261: Out of memory
[ 19.682658] EXT4-fs error (device mmcblk0p2): ext4_map_blocks:567: inode #8: block 114770: comm jbd2)
[ 19.700038] jbd2_journal_bmap: journal block not found at offset 81 on mmcblk0p2-8
[ 19.709030] Aborting journal on device mmcblk0p2-8.
[ 37.046792] EXT4-fs error (device mmcblk0p2): ext4_journal_check_start:56: Detected aborted journal
[ 37.056102] EXT4-fs (mmcblk0p2): Remounting filesystem read-only
[ 37.067945] EXT4-fs (mmcblk0p2): ext4_writepages: jbd2_start: 3072 pages, ino 4342; err -30
[ 60.772476] random: crng init done
[ 305.122423] EXT4-fs (mmcblk0p2): error count since last fsck: 39
[ 305.128516] EXT4-fs (mmcblk0p2): initial error at time 65536:
�:0: inode 8: block 524288
[ 305.136965] EXT4-fs (mmcblk0p2): last error at time 1513289431: ext4_journal_check_start:56: inode 80
Eventually it leads to total kernel panic. I tried multiple SD cards, same behavior. I switched the journald to use volatile memory, but I'm definitely missing something.
Below is attaged my Buildroot defconfig.
Any help would be appreciated.
BR2_arm=y BR2_cortex_a8=y BR2_CCACHE=y BR2_GLOBAL_PATCH_DIR="board/prusa/einsy_pro/patches" BR2_TOOLCHAIN_EXTERNAL=y BR2_TARGET_GENERIC_HOSTNAME="prusa_pro" BR2_TARGET_GENERIC_ISSUE="Welcome to Prusa" BR2_INIT_SYSTEMD=y BR2_TARGET_GENERIC_ROOT_PASSWD="toor" BR2_SYSTEM_BIN_SH_BASH=y BR2_TARGET_GENERIC_GETTY_PORT="ttyO0" BR2_ROOTFS_OVERLAY="board/prusa/einsy_pro/rootfs_overlay" BR2_ROOTFS_POST_IMAGE_SCRIPT="board/prusa/einsy_pro/post-image.sh" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_GIT=y BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/filipkotoucek/tisdk_linux.git" BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="development" BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/prusa/einsy_pro/linux_defconfig" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="am335x-bone am335x-boneblack am335x-prusa-pro" BR2_PACKAGE_BUSYBOX_CONFIG="board/prusa/einsy_pro/busybox.config" BR2_PACKAGE_SPIDEV_TEST=y BR2_PACKAGE_PYTHON=y BR2_PACKAGE_PYTHON_SPIDEV=y BR2_PACKAGE_DTC=y BR2_PACKAGE_DTC_PROGRAMS=y BR2_PACKAGE_DROPBEAR=y BR2_PACKAGE_VIM=y BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_ROOTFS_EXT2_SIZE="256M" BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_CUSTOM_VERSION=y BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.01" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="am335x_boneblack" BR2_TARGET_UBOOT_NEEDS_DTC=y # BR2_TARGET_UBOOT_FORMAT_BIN is not set BR2_TARGET_UBOOT_FORMAT_IMG=y BR2_TARGET_UBOOT_FORMAT_CUSTOM=y BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="spl/u-boot-spl.bin" BR2_TARGET_UBOOT_SPL=y BR2_TARGET_UBOOT_SPL_NAME="MLO" BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y BR2_PACKAGE_HOST_MTOOLS=y