CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS and bcm2835_defconfig

Stephen Warren swarren at wwwdotorg.org
Wed Mar 12 00:35:24 EDT 2014


On 03/10/2014 03:21 PM, Vince Weaver wrote:
> Hello
> 
> I buit the current
> 	git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-rpi.git
> kernel on a Raspberry Pi.
> 
> I used 
> 	make bcm2835_defconfig
> 	make zImage
> but the results zImage hung at boot.
> 
> It turned out that for some reason 
> 	CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
> and
> 	CONFIG_ARCH_USE_BUILTIN_BSWAP=y

Hmm. I thought that ARMv6 didn't have efficient unaligned accesses, but
I suppose it must; ARM selects HAVE_EFFICIENT_UNALIGNED_ACCESS for
v6/v6k/v7. BUILTIN_BSWAP seems innocuous. Can you verify which of those
two options actually causes problems for you?

I'm not sure why either of these options would cause any trouble.
Perhaps Will might have some suggestions, since he authored the code
that selects HAVE_EFFICIENT_UNALIGNED_ACCESS, or Kim since he authored
the code that selects ARCH_USE_BUILTIN_BSWAP. Perhaps there are
compiler-version-specific bugs, or the RPi's native toolchain has issues?



More information about the linux-arm-kernel mailing list