1 (edited by DarkStarXxX 2011-06-11 15:32:21)

Topic: Help needed to Compile LCD4Linux with dpfhack Driver

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

2 (edited by mitsch 2012-01-03 00:06:44)

Re: Help needed to Compile LCD4Linux with dpfhack Driver

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/digitaler-bilderrahmen-von-pearl-als-statusdisplay-fur-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

Re: Help needed to Compile LCD4Linux with dpfhack Driver

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

Re: Help needed to Compile LCD4Linux with dpfhack Driver

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 ....

Re: Help needed to Compile LCD4Linux with dpfhack Driver

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 ...

Re: Help needed to Compile LCD4Linux with dpfhack Driver

@irimi

can you please upload the package?

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

Re: Help needed to Compile LCD4Linux with dpfhack Driver

@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

8 (edited by wXXX 2012-01-11 15:55:22)

Re: Help needed to Compile LCD4Linux with dpfhack Driver

i run dpfhack-0.12devel with two displays on my linux sat receiver.

The third one should be for my TP-Link wink

Look here: http://www.vuplus-support.org/wbb2/thread.php?threadid=23657

9 (edited by irimi 2012-01-12 16:34:54)

Re: Help needed to Compile LCD4Linux with dpfhack Driver

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.

Re: Help needed to Compile LCD4Linux with dpfhack Driver

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

Re: Help needed to Compile LCD4Linux with dpfhack Driver

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.

12 (edited by irimi 2012-01-18 21:18:20)

Re: Help needed to Compile LCD4Linux with dpfhack Driver

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

Re: Help needed to Compile LCD4Linux with dpfhack Driver

HowTo (build own packge) now available at

https://forum.openwrt.org/viewtopic.php?id=34133

Re: Help needed to Compile LCD4Linux with dpfhack Driver

please reshare lcd4linux-dpf_r1142-3_ar71xx.ipk

Re: Help needed to Compile LCD4Linux with dpfhack Driver

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