Adding 16x2 LCD display to ORxPi - ORxFace :)

Maybe the cffi_backed.so library is 32 bit version, and your system is 64 ?
see here:
>>> 12.04 - unable to load shared object wrong ELF class: ELFCLASS32 - Ask Ubuntu

I’m not familiar with those packages so that’s a bit beyond me, but what @tjanos says is the case for sure. Wrong binary format.

Yes, my system is 64bit.

For the moment I skipped the python-smbus library and build the image 2.6a1 with rpi-gpio library.
Still I’m getting same error - NO module named RPi.GPIO

I would suggest posting on Raspberry Pi forums or on Buildroot mailing list rather than here.

Yeah, will do. As the last try I built the image again only with RPi.GPIO and here is the output for,
$sudo make image command.
Today, i will test the image and update the result.

e[7m>>> python-rpi-gpio 0.6.1 Downloadinge[27m
e[7m>>> python-rpi-gpio 0.6.1 Extractinge[27m
gzip -d -c /home/pradeeka/orx-rpi/buildroot/dl/RPi.GPIO-0.6.1.tar.gz | tar --strip-components=1 -C /home/pradeeka/orx-rpi/rpi/output/build/python-rpi-gpio-0.6.1   -xf -
e[7m>>> python-rpi-gpio 0.6.1 Patchinge[27m
e[7m>>> python-rpi-gpio 0.6.1 Configuringe[27m
e[7m>>> python-rpi-gpio 0.6.1 Buildinge[27m
(cd /home/pradeeka/orx-rpi/rpi/output/build/python-rpi-gpio-0.6.1//; PATH="/home/pradeeka/orx-rpi/rpi/output/host/bin:/home/pradeeka/orx-rpi/rpi/output/host/sbin:/home/pradeeka/orx-rpi/rpi/output/host/usr/bin:/home/pradeeka/orx-rpi/rpi/output/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" CC="/home/pradeeka/orx-rpi/rpi/output/host/usr/bin/arm-buildroot-linux-gnueabihf-gcc" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os " LDFLAGS="" LDSHARED="/home/pradeeka/orx-rpi/rpi/output/host/usr/bin/arm-buildroot-linux-gnueabihf-gcc -shared" PYTHONPATH="/home/pradeeka/orx-rpi/rpi/output/target/usr/lib/python2.7/sysconfigdata/:/home/pradeeka/orx-rpi/rpi/output/target/usr/lib/python2.7/site-packages/" _python_sysroot=/home/pradeeka/orx-rpi/rpi/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot _python_prefix=/usr _python_exec_prefix=/usr  /home/pradeeka/orx-rpi/rpi/output/host/usr/bin/python setup.py build --executable=/usr/bin/python )
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/RPi
copying RPi/__init__.py -> build/lib.linux-x86_64-2.7/RPi
running build_ext
building 'RPi.GPIO' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/source
/home/pradeeka/orx-rpi/rpi/output/host/usr/bin/arm-buildroot-linux-gnueabihf-gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fPIC -I/home/pradeeka/orx-rpi/rpi/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/python2.7 -c source/py_gpio.c -o build/temp.linux-x86_64-2.7/source/py_gpio.o
/home/pradeeka/orx-rpi/rpi/output/host/usr/bin/arm-buildroot-linux-gnueabihf-gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fPIC -I/home/pradeeka/orx-rpi/rpi/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/python2.7 -c source/c_gpio.c -o build/temp.linux-x86_64-2.7/source/c_gpio.o
/home/pradeeka/orx-rpi/rpi/output/host/usr/bin/arm-buildroot-linux-gnueabihf-gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fPIC -I/home/pradeeka/orx-rpi/rpi/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/python2.7 -c source/cpuinfo.c -o build/temp.linux-x86_64-2.7/source/cpuinfo.o
/home/pradeeka/orx-rpi/rpi/output/host/usr/bin/arm-buildroot-linux-gnueabihf-gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fPIC -I/home/pradeeka/orx-rpi/rpi/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/python2.7 -c source/event_gpio.c -o build/temp.linux-x86_64-2.7/source/event_gpio.o
/home/pradeeka/orx-rpi/rpi/output/host/usr/bin/arm-buildroot-linux-gnueabihf-gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fPIC -I/home/pradeeka/orx-rpi/rpi/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/python2.7 -c source/soft_pwm.c -o build/temp.linux-x86_64-2.7/source/soft_pwm.o
/home/pradeeka/orx-rpi/rpi/output/host/usr/bin/arm-buildroot-linux-gnueabihf-gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fPIC -I/home/pradeeka/orx-rpi/rpi/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/python2.7 -c source/py_pwm.c -o build/temp.linux-x86_64-2.7/source/py_pwm.o
/home/pradeeka/orx-rpi/rpi/output/host/usr/bin/arm-buildroot-linux-gnueabihf-gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fPIC -I/home/pradeeka/orx-rpi/rpi/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/python2.7 -c source/common.c -o build/temp.linux-x86_64-2.7/source/common.o
/home/pradeeka/orx-rpi/rpi/output/host/usr/bin/arm-buildroot-linux-gnueabihf-gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fPIC -I/home/pradeeka/orx-rpi/rpi/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/python2.7 -c source/constants.c -o build/temp.linux-x86_64-2.7/source/constants.o
/home/pradeeka/orx-rpi/rpi/output/host/usr/bin/arm-buildroot-linux-gnueabihf-gcc -shared -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os build/temp.linux-x86_64-2.7/source/py_gpio.o build/temp.linux-x86_64-2.7/source/c_gpio.o build/temp.linux-x86_64-2.7/source/cpuinfo.o build/temp.linux-x86_64-2.7/source/event_gpio.o build/temp.linux-x86_64-2.7/source/soft_pwm.o build/temp.linux-x86_64-2.7/source/py_pwm.o build/temp.linux-x86_64-2.7/source/common.o build/temp.linux-x86_64-2.7/source/constants.o -L/home/pradeeka/orx-rpi/rpi/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/RPi/GPIO.so
e[7m>>> python-rpi-gpio 0.6.1 Installing to targete[27m
(cd /home/pradeeka/orx-rpi/rpi/output/build/python-rpi-gpio-0.6.1//; PATH="/home/pradeeka/orx-rpi/rpi/output/host/bin:/home/pradeeka/orx-rpi/rpi/output/host/sbin:/home/pradeeka/orx-rpi/rpi/output/host/usr/bin:/home/pradeeka/orx-rpi/rpi/output/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" CC="/home/pradeeka/orx-rpi/rpi/output/host/usr/bin/arm-buildroot-linux-gnueabihf-gcc" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os " LDFLAGS="" LDSHARED="/home/pradeeka/orx-rpi/rpi/output/host/usr/bin/arm-buildroot-linux-gnueabihf-gcc -shared" PYTHONPATH="/home/pradeeka/orx-rpi/rpi/output/target/usr/lib/python2.7/sysconfigdata/:/home/pradeeka/orx-rpi/rpi/output/target/usr/lib/python2.7/site-packages/" _python_sysroot=/home/pradeeka/orx-rpi/rpi/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot _python_prefix=/usr _python_exec_prefix=/usr  /home/pradeeka/orx-rpi/rpi/output/host/usr/bin/python setup.py install --prefix=/home/pradeeka/orx-rpi/rpi/output/target/usr )
running install
running build
running build_py
running build_ext
running install_lib
creating /home/pradeeka/orx-rpi/rpi/output/target/usr/lib/python2.7/site-packages/RPi
copying build/lib.linux-x86_64-2.7/RPi/GPIO.so -> /home/pradeeka/orx-rpi/rpi/output/target/usr/lib/python2.7/site-packages/RPi
copying build/lib.linux-x86_64-2.7/RPi/__init__.py -> /home/pradeeka/orx-rpi/rpi/output/target/usr/lib/python2.7/site-packages/RPi
byte-compiling /home/pradeeka/orx-rpi/rpi/output/target/usr/lib/python2.7/site-packages/RPi/__init__.py to __init__.pyc
running install_egg_info
Writing /home/pradeeka/orx-rpi/rpi/output/target/usr/lib/python2.7/site-packages/RPi.GPIO-0.6.1-py2.7.egg-info

EDIT: Not works :frowning:

The package python-smbus-cffi is now available in buildroot since yesterday. So I downloaded it to the buildroot directory using following commands.

cd buildroot
git fetch
git checkout 7d48f7d77429ad4586674d224fc3168202ad4a40 package/python-smbus-cffi/

Can you tell me under which category I should add the entry “package/python-smbus-cffi/Config.in” to the file, buldroot/package/Config.in

Also how to configure this package using menuconfig.

This topic continues:
http://discuss.outernet.is/t/developing-orxface-integrating-a-lcd-screen-to-orxpi-is-successful/1913