Bug 6602

Summary: ebtables 64 bit kernel + 32 bit userland alignment error - fix included
Product: buildroot Reporter: Cassiano Martin <cassiano>
Component: OtherAssignee: Gustavo Zacarias <gustavo>
Status: RESOLVED FIXED    
Severity: critical CC: buildroot
Priority: P5    
Version: 2013.08   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

Description Cassiano Martin 2013-10-24 13:08:42 UTC
ebtables fails add or list any kernel rules. it prints the following message:

"The kernel doesn't support the ebtables filter table."


I've had to add the following cflags to the build process: -DEBT_MIN_ALIGN=8 -DKERNEL_64_USERSPACE_32

This fixes when building a 32 bit userland and a 64 bit kernel on mips64 platform. 

Thanks
Comment 1 Gustavo Zacarias 2013-10-24 17:18:31 UTC
Can you test if -DKERNEL64_USERSPACE_32 is enough?
-DEBT_MIN_ALIGN=8 is used/meant for sparc64 which doesn't handle unaligned memory accesses.
Regards.
Comment 2 Cassiano Martin 2013-10-25 12:28:31 UTC
Yes, you are right. -DKERNEL_64_USERSPACE_32 is enough. Tested on my board and it worked.

Thanks
Comment 3 Thomas Petazzoni 2013-10-30 22:00:40 UTC
Fix applied to for-peter-2013.11.