Wind River Support Network

HomeDefectsLIN6-8202
Fixed

LIN6-8202 : Alignment trap error triggered by NEON instructions on Xilinx

Created: Aug 19, 2014    Updated: Dec 3, 2018
Resolved Date: Aug 20, 2014
Previous ID: LIN5-19276
Found In Version: 6.0
Fix Version: 6.0.0.11
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: BSP

Description

An alignment trap is returned when using mkfs.ubifs command on xilinx-zynq board. 
Configuration:
- configure --enable-rootfs=glibc-small --enable-board=zilins-zynq --enable-kernel=standard --enable-jobs=9 --enable-parallel-pkgbuilds=9 --enable-sdkmachine=i686 --enable-reconfig --with-template=feature/initramfs-integrated --with-package=sysfsutils
- add mdt-utils package
- configure the kernel to support UBIFS

Workaround

There is one easy way to do this. Adding following line to mtd-utils
bb file:

CC_arm := "${@bb.utils.contains('TUNE_FEATURES', 'neon',
oe_filter_out('-mfpu', '${CC}', d) + ' -mfpu=vfp', '${CC}', d)}" 

Steps to Reproduce

After building the project and booting the board, run the following commands:
root@localhost:~# mkdir /delme
root@localhost:~# for x in 1 2 3; do echo "hi, I am #$x" > /delme/hi_$x.txt; done
root@localhost:~# mkfs.ubifs -r /delme   -e 65408 -c 704  -o /ubifs.img -m 1 

Other Downloads


Live chat
Online