TODO:
====== General Openwrt======
* Last working version: Revision: 38695
* Trying trunk (
* loader debug output.
* dropbear not working.
* those problem when using uclibc.
TODO:
===== Headline =====
===== 2014 Aug. 12-13-14 =====
Configuration ima_rsu
* /etc/config/system
* hostname: ima_rsu
* mv openwrt_experiment openwrt_experiment_20140812
* try latest openwrt version with openwrt_experiment buildroot
* using uclibc
* **Using latest feeds.conf**, enable oldpackages feed
Problem
* ldso debug
* uclibc ldso.c in build_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/uClibc-0.9.33.2/ldso/ldso/
* vim build_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/uClibc-0.9.33.2/.config
* DODEBUG? Search for DEBUG
* **SOLUTION**: minimal build --> no problem
* incremental packages selection.. add ima-carpc feed at the end and rebuld --> no problem!!!
Trick
* Quick edit and recompile package libdaiutil ? procedure?:
* edit code
* make package/libdaiutil/clean V=s
* make package/libdaiutil/{clean,compile} V=s
===== Apr. 9 =====
* data pipe line segfault at add() lock_guard.
* pipeline is a thread.
* each module is a thread and starts writing to pipeline after started. Pipeline may not be started.
* not working solution: start pipeline first
* module stage is registered after module is created.
* other solution: create modules, register pipeline stage, start pipeline, start modules.
===== apr. 8 2014 =====
* carpcd: Pipeline debug
(gdb) thread apply all bt
(gdb) r
Starting program: /home/dang/data/src/01_ima_ws/ima_carpc_ws/carpcd_dev_ws/ima_pj/openwrt-feed/branches/boost_pipeline/packages/ima-carpc/src/build/prefix/bin/carpcd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
CarPC: starting event queue
[New Thread 0x7ffff74c2700 (LWP 11785)]
Creating socket(2,1,0)
IPSocket: Error connecting with server: Connection refused(o)
IO Module: Exception at IOService->init: Exception at IOService->init:
DataLogger Service Module loaded
CarPC: loading modules
[New Thread 0x7ffff6c95700 (LWP 11786)]
[New Thread 0x7ffff6494700 (LWP 11787)]
[New Thread 0x7ffff5a8f700 (LWP 11788)]
[New Thread 0x7ffff528e700 (LWP 11789)]
Spatial 302711 attached!+++ add work to PhidgetDataPipe:
, 28, 756000, 0.01522, 0.12672, 1.00109, 0.69489, 0.38269, -0.2617, -0.13635, 0.33633, 0.3636
--- add() lock_guard
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff528e700 (LWP 11789)]
0x0000003919e09fe0 in pthread_mutex_lock () from /lib64/libpthread.so.0
Missing separate debuginfos, use: debuginfo-install bluez-libs-5.16-1.fc20.x86_64 boost-system-1.54.0-9.fc20.x86_64 boost-thread-1.54.0-9.fc20.x86_64 dbus-libs-1.6.12-8.fc20.x86_64 glibc-2.18-12.fc20.x86_64 gpsd-libs-3.9-4.fc20.x86_64 libgcc-4.8.2-7.fc20.x86_64 libselinux-2.2.1-6.fc20.x86_64 libstdc++-4.8.2-7.fc20.x86_64 libusbx-1.0.18-1.fc20.x86_64 pcre-8.33-4.fc20.x86_64 systemd-libs-208-15.fc20.x86_64 xz-libs-5.1.2-6alpha.fc20.x86_64
(gdb) thread apply all bt
Thread 6 (Thread 0x7ffff528e700 (LWP 11789)):
#0 0x0000003919e09fe0 in pthread_mutex_lock () from /lib64/libpthread.so.0
#1 0x00000000004155c8 in pthread_mutex_lock (m=0x58) at /usr/include/boost/thread/pthread/mutex.hpp:61
#2 boost::mutex::lock (this=0x58) at /usr/include/boost/thread/pthread/mutex.hpp:113
#3 0x000000000041f3c4 in lock_guard (m_=..., this=) at /usr/include/boost/thread/lock_guard.hpp:38
#4 CBlockingQueue::Add (this=0x0, o="\n, 28, 756000, 0.01522, 0.12672, 1.00109, 0.69489, 0.38269, -0.2617, -0.13635, 0.33633, 0.3636")
at .././../src/core/pipeline/BlockingQueue.h:56
#5 0x0000000000421bb3 in AddWork (
work="\230\f\000\354\377\177\000\000\000\333(\365\377\177\000\000\300\b\000\354\377\177\000\000K\036B\000\000\000\000\000\241\326\064\357\070E\327?\274y\252Cn\206\325?\371\240g\263\352s\301\277\253>W[\261\277п, "\230\f\000\354\377\177\000\000tL\000\244\063\000\000\000\330\030c\000\000\000\000\000\060\030c\000\000\000\000\000i\n\000\354\377\177\000\000i\n\000\354\377\177\000\000i\n\000\354\377\177\000\000h\n\000\354\377\177\000\000\306\n\000\354\377\177\000\000h\f"..., this=) at .././../src/core/pipeline/PipelineStage.h:58
#6 dai::carpc::PhidgetSpatialModule::write_data_log (str_="\n, 28, 756000, 0.01522, 0.12672, 1.00109, 0.69489, 0.38269, -0.2617, -0.13635, 0.33633, 0.3636")
at .././../src/module/sensor/phidgetspatial/PhidgetSpatialModule.cpp:184
#7 0x0000000000421e4b in dai::carpc::PhidgetSpatialModule::DataHandler (phid=, userPtr=, data=, dataCount=)
at .././../src/module/sensor/phidgetspatial/PhidgetSpatialModule.cpp:254
#8 0x00007ffff774e590 in CPhidgetSpatial_dataInput (phidG=0x7ffff6c96010, buffer=, length=) at ./../cphidgetspatial.c:905
#9 0x00007ffff77674be in ReadThreadFunction (lpdwParam=0x7ffff6c96010) at ./../cthread.c:299
#10 0x0000003919e07f33 in start_thread () from /lib64/libpthread.so.0
#11 0x00000039196f4ded in clone () from /lib64/libc.so.6
Thread 5 (Thread 0x7ffff5a8f700 (LWP 11788)):
#0 0x0000003919e0c0c9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00007ffff77679e9 in CThread_wait_on_event (ev=ev@entry=0x7ffff6c96298, time=time@entry=200) at ./../cthread.c:643
#2 0x00007ffff7767b1b in WriteThreadFunction (lpdwParam=0x7ffff6c96010) at ./../cthread.c:412
#3 0x0000003919e07f33 in start_thread () from /lib64/libpthread.so.0
#4 0x00000039196f4ded in clone () from /lib64/libc.so.6
Thread 4 (Thread 0x7ffff6494700 (LWP 11787)):
#0 0x00000039196ea9dd in poll () from /lib64/libc.so.6
#1 0x00000033a400ed7c in linux_udev_event_thread_main () from /lib64/libusb-1.0.so.0
#2 0x0000003919e07f33 in start_thread () from /lib64/libpthread.so.0
#3 0x00000039196f4ded in clone () from /lib64/libc.so.6
Thread 3 (Thread 0x7ffff6c95700 (LWP 11786)):
#0 0x0000003919e0c0c9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00007ffff77679e9 in CThread_wait_on_event (ev=ev@entry=0x7ffff79c9840 , time=time@entry=250) at ./../cthread.c:643
#2 0x00007ffff7767dcf in CentralThreadFunction (lpdwParam=) at ./../cthread.c:229
#3 0x0000003919e07f33 in start_thread () from /lib64/libpthread.so.0
#4 0x00000039196f4ded in clone () from /lib64/libc.so.6
Thread 2 (Thread 0x7ffff74c2700 (LWP 11785)):
---Type to continue, or q to quit---
#0 0x0000003919e0bd20 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00007ffff7bebb21 in dai::util::Condition::wait (this=this@entry=0x7fffffffe178) at .././../src/util/Thread.cpp:260
#2 0x00007ffff7be5fa5 in dai::util::EventQueue::waitForNextEvent (this=0x7fffffffe140) at .././../src/util/Event.cpp:126
#3 0x000000000040dda6 in dai::carpc::EventReceiverThread::run (this=0x7fffffffe230) at .././../src/CarPC.cpp:335
#4 0x00007ffff7bebdde in dai::util::Thread::threadMain (arg=0x7fffffffe230) at .././../src/util/Thread.cpp:159
#5 0x0000003919e07f33 in start_thread () from /lib64/libpthread.so.0
#6 0x00000039196f4ded in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x7ffff74c4840 (LWP 11781)):
#0 0x00000039196bc98d in nanosleep () from /lib64/libc.so.6
#1 0x00000039196ece24 in usleep () from /lib64/libc.so.6
#2 0x00007ffff772b2bc in CPhidget_waitForAttachment (phid=0x7ffff6c96010, milliseconds=5000) at ./../cphidget.c:1151
#3 0x0000000000421272 in dai::carpc::PhidgetSpatialModule::init_sensor (this=this@entry=0x633c20) at .././../src/module/sensor/phidgetspatial/PhidgetSpatialModule.cpp:149
#4 0x0000000000421558 in dai::carpc::PhidgetSpatialModule::init (this=0x633c20) at .././../src/module/sensor/phidgetspatial/PhidgetSpatialModule.cpp:83
#5 0x000000000040ea20 in dai::carpc::CarPC::load_modules (this=this@entry=0x7fffffffe100) at .././../src/CarPC.cpp:279
#6 0x000000000040eb01 in dai::carpc::CarPC::init (this=this@entry=0x7fffffffe100) at .././../src/CarPC.cpp:166
#7 0x000000000040c1c1 in dai::carpc::CarPC::main (this=this@entry=0x7fffffffe100, argc=argc@entry=1, argv=argv@entry=0x7fffffffe3e8) at .././../src/CarPC.cpp:153
#8 0x000000000040c183 in main (argc=1, argv=0x7fffffffe3e8) at .././../src/main.cpp:20
===== 2014-03-24 =====
* fix phidget and gps output: concat.
* start/stop script for ima-carpcd and motion.
* sudo for imadata on netbook without password.
* GUI?
* nfcclient can't create mqueue voyage. -----> compile kernel with mqueue support.
* write test mqueue.
====== 05 Mar 2014 ======
* Android NFCDemo
* 3 Acceleration lines.
* test.
* nfcclient
* test
* Packaging
* carpc box
* accele sensor, gps sensor,
* nfcreader with a box.
* Android handy
* delete everything
* no sim
====== 21 Feb 2014 ======
* Test program Android.
* show message... done
* receive not-too-long message... done.
* GUI cosmetics
* map
* acceleration chart... done
* Test nfcclient on openwrt. Using voyage... done
* libnfc driver not working.
* libnfc not compile with libusb-1.0?
* NFCClient
* Detect nfc device.
* Wait for connection... done
====== 19 Feb 2014 ======
* move Android NFCDemo to https://cvs.dai-labor.de/svn/dang/ima_pj/nfc/android_client/
* Upload Linux nfcclient to https://cvs.dai-labor.de/svn/dang/ima_pj/nfc/linux_client/nfc_client_cpp/trunk
* Branch https://cvs.dai-labor.de/svn/dang/ima_pj/nfc/linux_client/nfc_client_cpp/trunk to 20140219_test
* New libdaiutil... done
* Integrate to new nfc_client_cpp... done
* Send msg to Android!... done
====== 17 feb 2014 ======
* make ima-feed tags https://cvs.dai-labor.de/svn/dang/ima_pj/openwrt-feed/tags/20140217_pre_cebit
* merge full libdaiutil and create libllcp in trunk.
====== 16 feb 2014 ======
* compile with eglibc instead of uclibc.
* Work at first!
* copy openwrt-experiment for trying to fix things.
* kernel compiled in single thread only: V=s -j1
====== 14 feb 2014 ======
* try latest trunk
* loader debug output
* dropbear segfault.
commit 42e61d5d4719c8d4c8ba796aede11a5f77a8c473
Author: kaloz
Date: Fri Feb 14 10:09:07 2014 +0000
[omap]: use the default package set
Signed-off-by: Imre Kaloz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39584 3c298f89-4303-0410-b956-a3cf2f
===== linaro-4.6.tar.bz not found when build buildessentials (not needed anyway) =====
Something wrong with vim package/feeds/packages/gcc/Makefile.
Disable binutil, gcc...
* found on server http://downloads.openwrt.org/sources/gcc-linaro-4.6-2012.02.tar.bz2
* Try with linaro-4.8. work!
In vim toolchain/gcc/common.mk:
28 ifeq ($(findstring linaro, $(CONFIG_GCC_VERSION)),linaro)
29 ifeq ($(CONFIG_GCC_VERSION),"4.6-linaro")
30 PKG_REV:=4.6-2013.05
31 PKG_VERSION:=4.6.4
32 PKG_VERSION_MAJOR:=4.6
33 PKG_MD5SUM:=26b48802ae1203cd99415026fbf56ed7
34 PKG_COMP:=bz2
35 endif
36 ifeq ($(CONFIG_GCC_VERSION),"4.8-linaro")
37 PKG_REV:=4.8-2014.01
38 PKG_VERSION:=4.8.3
39 PKG_VERSION_MAJOR:=4.8
40 PKG_MD5SUM:=b8bc08b05ff079dcdc020336a67ca4e1
41 PKG_COMP:=xz
42 endif
43 PKG_SOURCE_URL:=http://launchpad.net/gcc-linaro/$(PKG_VERSION_MAJOR)/$(PKG_REV)/ +download/
44 PKG_SOURCE:=$(PKG_NAME)-linaro-$(PKG_REV).tar.$(PKG_COMP)
45 GCC_DIR:=gcc-linaro-$(PKG_REV)
46 HOST_BUILD_DIR:=$(BUILD_DIR_TOOLCHAIN)/$(GCC_DIR)
47 else
48 PKG_SOURCE_URL:=@GNU/gcc/gcc-$(PKG_VERSION)
49 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
50
51 ifeq ($(PKG_VERSION),4.4.7)
52 PKG_MD5SUM:=295709feb4441b04e87dea3f1bab4281
53 endif
54 ifeq ($(PKG_VERSION),4.6.3)
55 PKG_MD5SUM:=773092fe5194353b02bb0110052a972e
56 endif
57 ifeq ($(PKG_VERSION),4.8.0)
58 PKG_MD5SUM:=e6040024eb9e761c3bea348d1fa5abb0
59 endif
60 endif
Related sources: https://forum.openwrt.org/viewtopic.php?id=31775
====== 13 feb 2014 ======
* compile openwrt latest trunk produces loader debug message and dropbear fails to start.
* try the good old version svn update -r 38695 --> same problem