Reply
Thread Tools
Posts: 38 | Thanked: 2 times | Joined on Apr 2010 @ Novosibirsk, Russia
#1
Hi all! I`m stuck in debug my app on N900 via ESBox. Let me explain.

Host PC Configuration:
- OS Ubuntu 9.10
- Maemo 5 SDK (Scratchbox)
- ESBox (with CDT plugin (C++ language))
- PC Connectivity package

Device N900:
- PC Connectivity (configured to USB networking)

Configuration of N900:
- File /etc/init.d/sbrshd is default (NO_SANDBOX = false etc.)
- In file /etc/sbrshd.conf added line '192.168.2.14'
- ssh-server configured to ssh to device without password


Configuration of Host PC:
In my home directory (/home/grinch) created file .sbrsh with content:

ARM 192.168.2.15
ssh grinch@192.168.2.14:/scratchbox/users/grinch/targets/FREMANTLE_ARMEL/ / rw,nonempty,allow_other
ssh grinch@192.168.2.14:/scratchbox/users/grinch/home/grinch/ /home/grinch rw,nonempty,allow_other
bind /tmp /tmp
bind /dev /dev
bind /dev/pts /dev/pts
bind /proc /proc
bind /sys /sys
bind /var /var

As I know, this is all that is needed to mount scratchbox filesystem to the device. Right?

Next. From my Host PC I run: 'sbrsh /bin/sh' and BusyBox console is running. I explore filesystem and see that it is filesystem of device! Not the scratchbox! I`m puzzled.


Next attempt. Work through CPU transparency.

Created on Host PC file /scratchbox/users/grinch/targets/FREMANTLE_ARMEL.sbrsh with same content as above in file /home/grinch/.sbrsh

In file FREMANTLE_ARMEL.config added line:
SBOX_CPUTRANSPARENCY_METHOD=/scratchbox/devkits/cputransp/bin/sbrsh

Testing in ESBox:
Default app 'HelloWorld' is builded. Config is FREMANTLE_ARMEL(Debug). Run as Maemo remote application is success! I see running app and "HelloWorld" on N900 screen. Great!
But when i trying to Debug as Maemo remote application i get an error:
'Could not find gdb version for native-gdb --version
Exit code: 1
Errors:
sbrsh server: Can't change current directory to /home/grinch/.esbox inside sandbox (No such file or directory)'

I think it is because sbrsh don`t mount scratchbox filesystem to the device and of course no /home/grinch/.esbox directory is exist.

Guys. I really need help. 3 days already is lost on this problem.
 
Posts: 26 | Thanked: 1 time | Joined on Nov 2008
#2
Did you get this resolved?
 
Posts: 38 | Thanked: 2 times | Joined on Apr 2010 @ Novosibirsk, Russia
#3
Unfortunately no...Now I don`t use ESBox and scratchbox for develop, I use QtDesigner with MADDE. But debugging under QtDesigner also not successful )
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:30.