OpenWrt Forum Archive

Topic: Help needed to Compile LCD4Linux with dpfhack Driver

The content of this topic has been archived on 4 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

i need some help to Compile LCD4Linux with the DPF Driver for my TP-Link 1043ND (mips)

i've setup the Buildroot for Compiling an was able to Compile the standard LCD4Linux from the feed ( with has no driver sad )


But i dont have any idea how to compile this with drivers (dpf).

maybe someone can take a look on it.


Some info about the stuff i wold compile:



http://tech.section5.ch/files/dpfhack-0.1alpha.tgz   <--- the driver
http://tech.section5.ch/files/dpf-lcd4linux.tgz <-- lcd4linux with some patches for this driver

My idea is to get this Picture Frame working as a Status Display for my Router

I hope someone can help me (i'am a beginner in compiling) or compile this for me.

Thanks


http://geekparadise.de/wp-content/uploads/lcd-1024x805.jpg

(Last edited by DarkStarXxX on 11 Jun 2011, 15:32)

Hi all,

I woul like to put this back on top smile

The german IT-equipment-trader pearl offers this 6cm 320x240 digital foto frame capable for working with lcd4linux for just 2,9E (around 4$).
http://www.pearl.de/a-HPM1184-5618.shtml

The problem is, that the lcd4linux must be patched with the patch developed and offered by fulfisk (http://tech.section5.ch/news/?p=68) and like DarkStar, I am incapable to do this for the openWRT platform by my own.
On plain ubuntu, the offered manuals are working like a charm (german: http://geekparadise.de/2011/04/digitale … -dockstar/, english: http://www.staerk.de/thorsten/Lcd)

But - hey guys - this display is so neat and so cheap, this is the optimal status display for an openWRT driven router ... wink

BR
Michael

edit: typos

(Last edited by mitsch on 3 Jan 2012, 00:06)

Hey that gadget looks very interesting !

After a first view it should be possible to cross compile.
After first run of

./build-dpf-lcd4linux.sh ../src/dpflib/

to create patched i386 version of lcd4linux you can try to crosscompile it again:

1. Install mips cross toolchain for TP-Link
2. go to lcd4linux directory and recall ./configure with different parameters to setup the cross toolchain

./configure CC=mips-openwrt-linux-gcc --with-drivers='DPF' --with-plugins='all,!dbus,!mpris_dbus'  --host=...

resp.

./configure --help

may help

3. after ./configure recall make manually

But I recommend to create a new dpf-lcd4linux openwrt custom package based on recent already included lcd4linux package/Makefile:
It is easier to rebuild it any time and it is easy to add the patch too.

I know that is not easy but not impossible wink

Off course the driver has to be cross compiled too.

But I had some first success, I was able to cross compile this driver :

mips-openwrt-linux-ar ruv libdpf.a dpflib.o rawusb.o
mips-openwrt-linux-ar: creating libdpf.a
a - dpflib.o
a - rawusb.o
irimi@host:/src/dpflib$ file dpflib.o 
dpflib.o: ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), with unknown capability 0x41000000 = 0xf676e75, with unknown capability 0x10000 = 0x70403, not stripped
irimi@host:/src/dpflib$ file rawusb.o 
rawusb.o: ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), with unknown capability 0x41000000 = 0xf676e75, with unknown capability 0x10000 = 0x70403, not stripped

lcd4linux is still under inverstigation ....

Status update:

I successfully created an ar7xx package of lcd4linux with dpf driver: lcd4linux-dpf_r1142-3_ar71xx.ipk

The package is still untested but he digital photo frame is already ordered and I'm looking forward to installing it to my TP-Link router ...

@irimi

can you please upload the package?

I have 3 of these displays/dpf's here and i could test this on my WR1043ND.

@wXXX:

Sorry for the late reply , was busy ...

Actually I identified that there are different versions and it is not clear for which is the best.

My latest package is based on above 0.1alpha firmware/dpflib.

But there is a newer trunk version at http://sourceforge.net/projects/dpf-ax/ (11th april 2011)
and the latest devoloper version at http://tech.section5.ch/files/dpfhack-0.12devel.tgz   (18th april 2011)

Did you successfully try any of these versions on your PC  ?

I'm still waiting for my own dpf hence I can't check sad

Mmh, I still can't compile with all plugins, due to unresolved dependencies ( I still have to investigate), but
a compiled package can be found at


[EDIT] Link removed due to package problems

This version supports the plugins; cpuinfo, discstats,exec,meminfo,mpd,uname and uptime and is based on latest dpflib v0.12dev.

(Last edited by irimi on 12 Jan 2012, 16:34)

Above package I mentioned can be installed but it seems the DPF driver has not been linked to lcd4linux ... I have to check the Makefiles

The picture frame is now running on my openwrt system smile smile

root@OpenWrt:~# lcd4linux -l
LCD4Linux 0.11.0-SVN-1092
Copyright (C) 2005, 2006, 2007, 2008, 2009 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>

available display drivers:
   DPF                 : generic hacked photo frame

available plugins:
  cfg, math, string, test, time, cpuinfo, loadavg, meminfo, proc_stat, uptime

Had some trouble because the screen was always mirrored ! The solution: use latest 0.12devel firmware version but old 0.1alpha dpf driver, hence it seems to be a driver problem !?

Give me some time: I want to write a howto and provide my openwrt custom build scripts that everyone can build his own target specific binary package.

Hi,

now there is a new package available for mips/ar71xxx , that is running on my TP-Link router.

Feel free to test it. The included /etc/lcd4linux.conf still has to be optimized !
The screen is not refreshed on my display. Due to the configuraton ?? I'm still not experienced with lcd4linux.
Maybe someone can help !?

lcd4linux-dpf_r1142-3_ar71xx.ipk

Following plugins are supported.

root@openwrt:lcd4linux -l
LCD4Linux 0.11.0-SVN-1092
Copyright (C) 2005, 2006, 2007, 2008, 2009 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>

available display drivers:
   DPF                 : generic hacked photo frame

available plugins:
  cfg, math, string, test, time, apm, asterisk, button_exec, cpuinfo, diskstats, exec, event, fifo, file, huawei, i2c_sensors, isdn, loadavg, meminfo, mpd, netdev, pop3, ppp, proc_stat, statfs, uname, uptime, w1retap

Some plugins could not be compiled due to uclibc dependencies of libm.


Same libs have to be installed manually:

opkg  install libmpd
opkg  install libiconv-full
opkg  install libintl-full

(Last edited by irimi on 18 Jan 2012, 21:18)

please reshare lcd4linux-dpf_r1142-3_ar71xx.ipk

Please refresh the link for  lcd4linux-dpf_r1142-3_ar71xx.ipk

The discussion might have continued from here.