== Build and Debug == === Optimization flags == I did set the compile optimization flags in my ~/.rmprc It looks like this: {{{ optflags: armv3l -O0 -g -march=armv3 optflags: armv4b -O0 -g -march=armv4 optflags: armv4l -O0 -g -march=armv4 optflags: armv4tl -O0 -g -march=armv4t optflags: armv5tel -O0 -g -march=armv5te optflags: armv5tejl -O0 -g -march=armv5te optflags: armv6l -O0 -g -march=armv6 optflags: armv7l -O0 -g -march=armv7 optflags: armv7hl -O0 -g -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -mno-thumb optflags: armv7nhl -O0 -g -march=armv7-a -mfloat-abi=hard -mfpu=neon -mno-thumb optflags: armv7thl -O0 -g -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -mthumb optflags: armv7tnhl -O0 -g -march=armv7-a -mfloat-abi=hard -mfpu=neon -mthumb }}} In addition I added this into ~/.rpmmacros {{{ %debug_package %{nil} }}} and in the ofono.spec file i changed the install section to: {{{ %install export DONT_STRIP=1 rm -rf %{buildroot} }}} and for the Version I changed in the ofono.spec {{{ Version: 1.14+guhl01 }}} There is an error in the date format of one line in the rpm/ofono.changes. '''Change that line'''! === building === I did the initial build with {{{ mb2 -s rpm/ofono.spec -t $VENDOR-$DEVICE-armv7hl build }}} later builds I just did with (in the ofono directory where the Makefile is) {{{ sb2 -t $VENDOR-$DEVICE-armv7hl make }}} === install === The first install i did using rpm {{{ rpm -e --nodeps ofono rpm -i /home/nemo/ofono-1.14+guhl01-1.armv7hl.rpm }}} after that i just copied the ofonod executabel to /usr/sbin/ofonod === debug === on the phone: {{{ export OFONO_ARGS=--noplugin=he910,dun_gw_bluez5,hfp_bluez5,hfp_ag_bluez5,cdma_provision,bluez5,isimodem,n900,u8500,qmimodem,gobi,cdmamodem,isiusb,nwmodem,ztemodem,iceramodem,huaweimodem,calypsomodem,swmodem,mbmmodem,hsomodem,ifxmodem,stemodem,dunmodem,hfpmodem,speedupmodem,phonesim gdbserver :3050 /usr/sbin/ofonod -n -d $OFONO_ARGS }}} on the pc: {{{ ddd --debugger /usr/bin/arm-linux-gnueabi-gdb }}} change the path to where ever your ddd --debugger /usr/bin/arm-linux-gnueabi-gdb is. Then set your breakpoints and continue