Languages

Menu
Sites
Language
Error when debug platform application on emulator 2.2 and Tizen SDK 2.2.1

Hello. I try to debug sample platform EFL application on latest Tizen SDK 2.2.1 in Tizen IDE.
I have error:

Cannot launch application with GDBClient.
Error creating session
Target is not responding (timed out)
Target is not responding (timed out)
Target is not responding (timed out)

My system: Ubuntu 12.04 LTE 64x

Steps to reproduce:

1. Create Tizen Platform Project with Template: EFL Application.
2. Add some brakepoints in main.c file
3. Select Project->Build Project
4. After build has been complited select Run->Debug As->Tizen Platform Project
5. Note that debug session is not started and error message is showed.

Application works fine. It's looks like a bug. Can you help me with this problem, please?

Thanks.

Responses

15 Replies
Sergii Taraban

I tryed to run GDB server manualy using simulator shell.

/opt/home/developer/sdk_tools/gdbserver-platform/gdbserver 26102 /opt/usr/apps/org.tizen.testeflplatform/bin/testeflplatform

but I got very strange error:

Process /opt/apps/org.tizen.testeflplatform/bin/testeflplatform created; pid = 2583
Cannot exec /opt/apps/org.tizen.testeflplatform/bin/testeflplatform: Operation not permitted.

Child exited with status 127
No program to debug.  GDBserver exiting.

Why it cannot execute the application ?
 

donghyuk yang

Hello.

You can not directly execute gdbserver because of limited permission.

 

Did you command '~/tizen-sdk/tools/sdb root on' before debugging on the IDE?

Please attach "rootstrap" and "device" console log if you had the error in spite of switching root account mode.

(You can find log on "Rootstrap Internal" and "Device Internal" console view)

Sergii Taraban

Yes, I commanded '~/tizen-sdk/tools/sdb root on' before debugging on the IDE.

Here is rootstrap log.


[command] sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa rpm-x86-arm\"
[result] Failed to check package: rpm-x86-arm
[result] Set proxy: 

[command] sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.testeflplatform-debugsource\"
[result] Checked package: org.tizen.testeflplatform-debugsource-0.0.1-1.i586

[command] sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa --qf %{VERSION}-%{RELEASE}, org.tizen.testeflplatform-debugsource\"
[result] Checked version: 0.0.1-1, (org.tizen.testeflplatform-debugsource)

[command] sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.testeflplatform-debugsource\"
[result] Checked package: org.tizen.testeflplatform-debugsource-0.0.1-1.i586

[command] sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.testeflplatform-debuginfo\"
[result] Checked package: org.tizen.testeflplatform-debuginfo-0.0.1-1.i586

[command] sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa --qf %{VERSION}-%{RELEASE}, org.tizen.testeflplatform-debuginfo\"
[result] Checked version: 0.0.1-1, (org.tizen.testeflplatform-debuginfo)

[command] sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.testeflplatform-debuginfo\"
[result] Checked package: org.tizen.testeflplatform-debuginfo-0.0.1-1.i586

[command] sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.testeflplatform\"
[result] Checked package: org.tizen.testeflplatform-0.0.1-1.i586

[command] sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa --qf %{VERSION}-%{RELEASE}, org.tizen.testeflplatform\"
[result] Checked version: 0.0.1-1, (org.tizen.testeflplatform)

[command] sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.testeflplatform\"
[result] Checked package: org.tizen.testeflplatform-0.0.1-1.i586

[command] sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -rf /etc/zypp/repos.d/*\"
[result] Reset repository

[command] sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;zypper --non-interactive addrepo http://download.tizen.org/snapshots/2.2-emul/common/tizen-2.2-emul_20130815.2/repos/tizen-main/ia32/packages url0\"
spawn sh -c sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c "rm -f /var/lib/rpm/__db*;zypper --non-interactive addrepo http://download.tizen.org/snapshots/2.2-emul/common/tizen-2.2-emul_20130815.2/repos/tizen-main/ia32/packages url0";echo $? > /tmp/exit-status

Adding repository 'url0' [0%]

Adding repository 'url0' [\]

Adding repository 'url0' [50%]

Adding repository 'url0' [90%]

Adding repository 'url0' [100%]

Adding repository 'url0' [100%]

Adding repository 'url0' [done]
Repository 'url0' successfully added
Enabled: Yes
Autorefresh: No
GPG check: No
URI: http://download.tizen.org/snapshots/2.2-emul/common/tizen-2.2-emul_20130815.2/repos/tizen-main/ia32/packages


[command] sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;zypper --non-interactive addrepo http://download.tizen.org/snapshots/2.2-emul/common/tizen-2.2-emul_20130815.2/repos/tizen-base/ia32/packages url1\"
spawn sh -c sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c "rm -f /var/lib/rpm/__db*;zypper --non-interactive addrepo http://download.tizen.org/snapshots/2.2-emul/common/tizen-2.2-emul_20130815.2/repos/tizen-base/ia32/packages url1";echo $? > /tmp/exit-status

Adding repository 'url1' [0%]

Adding repository 'url1' [\]

Adding repository 'url1' [50%]

Adding repository 'url1' [90%]

Adding repository 'url1' [100%]

Adding repository 'url1' [100%]

Adding repository 'url1' [done]
Repository 'url1' successfully added
Enabled: Yes
Autorefresh: No
GPG check: No
URI: http://download.tizen.org/snapshots/2.2-emul/common/tizen-2.2-emul_20130815.2/repos/tizen-base/ia32/packages


[command] sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;zypper --non-interactive install --force /tmp/org.tizen.testeflplatform-debugsource-0.0.1-1.i586.rpm /tmp/org.tizen.testeflplatform-debuginfo-0.0.1-1.i586.rpm /tmp/org.tizen.testeflplatform-0.0.1-1.i586.rpm\"
spawn sh -c sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c "rm -f /var/lib/rpm/__db*;zypper --non-interactive install --force /tmp/org.tizen.testeflplatform-debugsource-0.0.1-1.i586.rpm /tmp/org.tizen.testeflplatform-debuginfo-0.0.1-1.i586.rpm /tmp/org.tizen.testeflplatform-0.0.1-1.i586.rpm";echo $? > /tmp/exit-status
Loading repository data...
Reading installed packages...
Forcing installation of 'org.tizen.testeflplatform-debuginfo-0.0.1-1.i586' from repository 'Plain RPM files cache'.
Forcing installation of 'org.tizen.testeflplatform-debugsource-0.0.1-1.i586' from repository 'Plain RPM files cache'.
Forcing installation of 'org.tizen.testeflplatform-0.0.1-1.i586' from repository 'Plain RPM files cache'.
Resolving package dependencies...

The following packages are going to be reinstalled:
  org.tizen.testeflplatform org.tizen.testeflplatform-debuginfo 
  org.tizen.testeflplatform-debugsource 

3 packages to reinstall.
Overall download size: 36.0 KiB. No additional space will be used or freed 
after the operation.

Continue? [y/n/?] (y): y
Retrieving package org.tizen.testeflplatform-0.0.1-1.i586 (1/3), 24.0 KiB (25.0 KiB unpacked)
Retrieving package org.tizen.testeflplatform-debuginfo-0.0.1-1.i586 (2/3), 8.0 KiB (11.0 KiB unpacked)
Retrieving package org.tizen.testeflplatform-debugsource-0.0.1-1.i586 (3/3), 4.0 KiB (3.0 KiB unpacked)
Retrieving package org.tizen.testeflplatform-0.0.1-1.i586 (1/3), 24.0 KiB (25.0 KiB unpacked)

Installing: org.tizen.testeflplatform-0.0.1-1 [0%]

Installing: org.tizen.testeflplatform-0.0.1-1 [done]
Retrieving package org.tizen.testeflplatform-debuginfo-0.0.1-1.i586 (2/3), 8.0 KiB (11.0 KiB unpacked)

Installing: org.tizen.testeflplatform-debuginfo-0.0.1-1 [0%]

Installing: org.tizen.testeflplatform-debuginfo-0.0.1-1 [done]
Retrieving package org.tizen.testeflplatform-debugsource-0.0.1-1.i586 (3/3), 4.0 KiB (3.0 KiB unpacked)

Installing: org.tizen.testeflplatform-debugsource-0.0.1-1 [0%]

Installing: org.tizen.testeflplatform-debugsource-0.0.1-1 [done]

[command] sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.testeflplatform-debugsource\"
[result] Checked package: org.tizen.testeflplatform-debugsource-0.0.1-1.i586

[command] sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.testeflplatform-debuginfo\"
[result] Checked package: org.tizen.testeflplatform-debuginfo-0.0.1-1.i586

[command] sudo -S chroot /home/staraban/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.testeflplatform\"
[result] Checked package: org.tizen.testeflplatform-0.0.1-1.i586

Here is device log.


[command] ls /etc/zypp/zypp.conf 2>/dev/null
[result] Checked file: /etc/zypp/zypp.conf

[command] sed -i "s/# arch = s390/arch = i686/g" /etc/zypp/zypp.conf
[result] Set proxy: 

[command] rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.testeflplatform
[result] Checked package: org.tizen.testeflplatform-0.0.1-1.i586

[command] rm -f /var/lib/rpm/__db*;rpm -qa --qf %{VERSION}-%{RELEASE}, org.tizen.testeflplatform
[result] Checked version: 0.0.1-1, (org.tizen.testeflplatform)

[command] rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.testeflplatform
[result] Checked package: org.tizen.testeflplatform-0.0.1-1.i586

[command] rm -f /var/lib/rpm/__db*;zypper --xmlout repos -u
[result] Get repository list: 1
[result] {Tizen-main=file:/srv/snapshots//tizen-2.2-emul/common/tizen-2.2-emul_20130717.5/repos/tizen-main/ia32/packages/}

[command] rm -f /var/lib/rpm/__db*;pkgcmd --install --quiet --package-type rpm --package-path /tmp/org.tizen.testeflplatform-0.0.1-1.i586.rpm
path is /tmp/org.tizen.testeflplatform-0.0.1-1.i586.rpm
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[0.000000]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[24.955814]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[25.427124]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[25.910217]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[26.428656]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[28.119478]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[28.608459]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[29.126900]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[30.817720]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[31.306705]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[31.825144]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[33.504181]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[33.993168]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[34.511604]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[36.202427]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[36.691410]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[37.209850]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[38.900669]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[39.389656]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[39.908096]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[41.598915]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[42.087898]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[42.606339]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[44.297161]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[44.786144]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[45.304585]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[46.995403]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[47.484390]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[48.002827]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[49.693649]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[50.182636]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[50.701069]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[52.391891]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[52.880878]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[53.399319]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[55.090134]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[55.579121]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[56.097561]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[57.788383]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[58.277363]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[58.795803]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[60.486626]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[60.975613]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[61.494053]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[63.184868]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[63.673855]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[64.192291]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[65.883118]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[97.337105]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[99.631790]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[install_percent] val[100.000000]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.testeflplatform] key[end] val[ok]
spend time for pkgcmd is [4738]ms

[command] rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.testeflplatform
[result] Checked package: org.tizen.testeflplatform-0.0.1-1.i586

 

donghyuk yang

OK. All packages are installed successfully.

I think it can be "expect" script problem. The ide internally uses "expect" script for debugging platform project.

Please try debugging after modifying debug script as following step:

1. $ vi ~/tizen-sdk/tools/smart-build-interface/plugins/gcc45obs.i386.platform.xml

2. Find following expect script code

<execute script="/usr/bin/expect">
    <input type="tag" value="#{TOOLCHAIN}:tool:name:debugger:path"/>
    <input type="variable" value="rootpath"/>
    <input type="variable" value="passwd"/>
    <input type="variable" value="gdb-options"/>
    <script>
set GDB [lindex $argv 0]
set ROOT_DIR [lindex $argv 1]
set PASSWD [lindex $argv 2]
set OPTION [lindex $argv 3]
set timeout 60
spawn sh -c "sudo -S chroot ${ROOT_DIR} sh -c \"${GDB} ${OPTION}\""
expect {
    "password for" {
        send "${PASSWD}\r"
    }
}
interact
    </script>
</execute>

3. Replace from expect script to bash script

<execute script="/bin/bash">
    <input type="tag" value="#{TOOLCHAIN}:tool:name:debugger:path"/>
    <input type="variable" value="rootpath"/>
    <input type="variable" value="passwd"/>
    <input type="variable" value="gdb-options"/>
    <script>
GDB=${1}
ROOT_DIR=${2}
PASSWD=${3}
OPTION=${4}
PLATFORM_COMMAND_DIR="${HOME}/tmp/platform_command"
mkdir -p ${PLATFORM_COMMAND_DIR}
EFILE="${PLATFORM_COMMAND_DIR}/DEBUG_SH.sh"
cat > ${EFILE} &lt;&lt; EOF
#!/bin/bash
echo "${PASSWD}"
EOF
chmod +x ${EFILE}
SUDO_ASKPASS="${EFILE}" sudo -A -k chroot ${ROOT_DIR} sh -c "${GDB} ${OPTION}"
    </script>
</execute>

I actually wanted to send modified .xml file to you for email, but I can not find your email address. (If you want to get the file, let me know your email)

Anyway, you should relaunch the IDE and emulator after modifying .xml file.

Try it again and let me know the result.

Sergii Taraban

Hello. After this solution debug works perfectly. Problem is fixed now. Thanks for help!

madhavi marella

Hi, I when trying to run platform application on tizen 2.2.1 emulator, getting below error message.

Cannot launch application with GDBClient.
Error creating session
spawn_id: spawn id exp5 not open
spawn_id: spawn id exp5 not open
spawn_id: spawn id exp5 not open

here is emulator log:

[command] ls /etc/zypp/zypp.conf 2>/dev/null
[result] Checked file: /etc/zypp/zypp.conf

[command] sed -i "s/# arch = s390/arch = i686/g" /etc/zypp/zypp.conf
[result] Set proxy:

[command] rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.helloMadhu
[result] Checked package: org.tizen.helloMadhu-0.0.1-1.i586

[command] rm -f /var/lib/rpm/__db*;rpm -qa --qf %{VERSION}-%{RELEASE}, org.tizen.helloMadhu
[result] Checked version: 0.0.1-1, (org.tizen.helloMadhu)

[command] rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.helloMadhu
[result] Checked package: org.tizen.helloMadhu-0.0.1-1.i586

[command] rm -f /var/lib/rpm/__db*;zypper --xmlout repos -u
[result] Get repository list: 1
[result] {Tizen-main=file:/srv/snapshots//tizen-2.2-emul/common/tizen-2.2-emul_20131107.5/repos/tizen-main/ia32/packages/}

[command] rm -f /var/lib/rpm/__db*;zypper --non-interactive install --force /tmp/org.tizen.helloMadhu-0.0.1-1.i586.rpm
Specified path '/srv/snapshots//tizen-2.2-emul/common/tizen-2.2-emul_20131107.5/repos/tizen-main/ia32/packages/' is not a directory: file:/srv/snapshots//tizen-2.2-emul/common/tizen-2.2-emul_20131107.5/repos/tizen-main/ia32/packages/


Abort, retry, ignore? [a/r/i/?] (a): a
Specified path '/srv/snapshots//tizen-2.2-emul/common/tizen-2.2-emul_20131107.5/repos/tizen-main/ia32/packages/' is not a directory: file:/srv/snapshots//tizen-2.2-emul/common/tizen-2.2-emul_20131107.5/repos/tizen-main/ia32/packages/


Abort, retry, ignore? [a/r/i/?] (a): a
Error building the cache:
[|] Valid metadata not found at specified URL(s)
Warning: Disabling repository 'Tizen-main' because of the above error.
Loading repository data...
Reading installed packages...
Forcing installation of 'org.tizen.helloMadhu-0.0.1-1.i586' from repository 'Plain RPM files cache'.
Forcing installation of 'org.tizen.hellomadhu-0.0.1-1.i586' from repository 'Plain RPM files cache'.
Resolving package dependencies...

The following packages are going to be reinstalled:
  org.tizen.hellomadhu org.tizen.helloMadhu

2 packages to reinstall.
Overall download size: 10.0 KiB. No additional space will be used or freed
after the operation.

Continue? [y/n/?] (y): y
Retrieving package org.tizen.helloMadhu-0.0.1-1.i586 (1/2), 5.0 KiB (5.0 KiB unpacked)
Retrieving package org.tizen.hellomadhu-0.0.1-1.i586 (2/2), 5.0 KiB (5.0 KiB unpacked)
Retrieving package org.tizen.helloMadhu-0.0.1-1.i586 (1/2), 5.0 KiB (5.0 KiB unpacked)

Installing: org.tizen.helloMadhu-0.0.1-1 [0%]

Installing: org.tizen.helloMadhu-0.0.1-1 [done]
Retrieving package org.tizen.hellomadhu-0.0.1-1.i586 (2/2), 5.0 KiB (5.0 KiB unpacked)

Installing: org.tizen.hellomadhu-0.0.1-1 [0%]

Installing: org.tizen.hellomadhu-0.0.1-1 [done]

[command] rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.helloMadhu
[result] Checked package: org.tizen.helloMadhu-0.0.1-1.i586

 

Thanks,

Madhu

donghyuk yang

Could you attach a log in  "Rootstrap Internal" console view?

madhavi marella

Please find the Rootstrap log in below

 

[command] sudo -S chroot /home/shailaja/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa rpm-x86-arm\"
[result] Failed to check package: rpm-x86-arm
[result] Set proxy:

[command] sudo -S chroot /home/shailaja/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -rf /etc/zypp/repos.d/*\"
[result] Reset repository

[command] sudo -S chroot /home/shailaja/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;zypper --non-interactive addrepo http://download.tizen.org/snapshots/2.2-emul/common/latest/repos/tizen-base/ia32/packages url0\"
spawn sh -c sudo -S chroot /home/shailaja/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c "rm -f /var/lib/rpm/__db*;zypper --non-interactive addrepo http://download.tizen.org/snapshots/2.2-emul/common/latest/repos/tizen-base/ia32/packages url0";echo $? > /tmp/exit-status

Adding repository 'url0' [0%]

Adding repository 'url0' [\]

Adding repository 'url0' [50%]

Adding repository 'url0' [90%]

Adding repository 'url0' [100%]

Adding repository 'url0' [100%]

Adding repository 'url0' [done]
Repository 'url0' successfully added
Enabled: Yes
Autorefresh: No
GPG check: No
URI: http://download.tizen.org/snapshots/2.2-emul/common/latest/repos/tizen-base/ia32/packages


[command] sudo -S chroot /home/shailaja/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;zypper --non-interactive addrepo http://download.tizen.org/snapshots/2.2-emul/common/latest/repos/tizen-main/ia32/packages url1\"
spawn sh -c sudo -S chroot /home/shailaja/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c "rm -f /var/lib/rpm/__db*;zypper --non-interactive addrepo http://download.tizen.org/snapshots/2.2-emul/common/latest/repos/tizen-main/ia32/packages url1";echo $? > /tmp/exit-status

Adding repository 'url1' [0%]

Adding repository 'url1' [\]

Adding repository 'url1' [50%]

Adding repository 'url1' [90%]

Adding repository 'url1' [100%]

Adding repository 'url1' [100%]

Adding repository 'url1' [done]
Repository 'url1' successfully added
Enabled: Yes
Autorefresh: No
GPG check: No
URI: http://download.tizen.org/snapshots/2.2-emul/common/latest/repos/tizen-main/ia32/packages


[command] sudo -S chroot /home/shailaja/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa --qf \\<pkg\\>%{NAME},%{VERSION}-%{RELEASE},%{ARCH}\\<\\/pkg\\>\"
[result] Get local package list: 287

[command] sudo -S chroot /home/shailaja/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;zypper --xmlout --non-interactive packages\"
[info] Loading repository data...
[info] Reading installed packages...
[result] Get remote package list: 1620
[result] Get all package list: 1632


Thanks,

Madhu.

madhavi marella

Below are the remote repository settings:

RootStrap[Tizen Emulator]:

http://download.tizen.org/snapshots/2.2-emul/common/latest/repos/tizen-base/ia32/packages

http://download.tizen.org/snapshots/2.2-emul/common/latest/repos/tizen-main/ia32/packages

Device[Emulator]:

file:/srv/snapshots//tizen-2.2-emul/common/tizen-2.2-emul_20131107.5/repos/tizen-main/ia32/packages/

please note that, "snapshots" directory is not present in "srv" directory, how can I get this?

 

Thanks,

Madhu.

donghyuk yang

Repository:

You can remove the repository. (file:/srv/snapshots//tizen-2.2-emul/common/tizen-2.2-emul_20131107.5/repos/tizen-main/ia32/packages/)

It was used only for creating emulator image.

 1. Command as following after launching emulator:

    # /home/shailaja/tizen-sdk/tools/sdb root on

 1. Select your rootstrap in "Rootstrap view"

 2. Click right-button and select "Manage Packages"

 3. Select "Device" tab if you can see "Package Manager" dialog.

 4. Select the repository and click "Remove" button.

 

Debugging:

Did you try to change debug script? (It is already mentioned above comment. Please refer to it.)

1. $ vi ~/tizen-sdk/tools/smart-build-interface/plugins/gcc45obs.i386.platform.xml

2. Find following expect script code

3. Replace from expect script to bash script

<execute script="/bin/bash">
    <input type="tag" value="#{TOOLCHAIN}:tool:name:debugger:path"/>
    <input type="variable" value="rootpath"/>
    <input type="variable" value="passwd"/>
    <input type="variable" value="gdb-options"/>
    <script>
GDB=${1}
ROOT_DIR=${2}
PASSWD=${3}
OPTION=${4}
PLATFORM_COMMAND_DIR="${HOME}/tmp/platform_command"
mkdir -p ${PLATFORM_COMMAND_DIR}
EFILE="${PLATFORM_COMMAND_DIR}/DEBUG_SH.sh"
cat > ${EFILE} &lt;&lt; EOF
#!/bin/bash
echo "${PASSWD}"
EOF
chmod +x ${EFILE}
SUDO_ASKPASS="${EFILE}" sudo -A -k chroot ${ROOT_DIR} sh -c "${GDB} ${OPTION}"
    </script>
</execute>
jungyun choi

After I am replacing from 'expect script' to 'bash script,
I am not still available the debugging my project.
What is the problem ?
How I do for the debug ?

I had copy  the logs following.
Please help me. 

error popup dialog / Problem Occurred / 'Launching xxx' has encountered a problem. cannot launch application with GDBClient.

Cannot launch application with GDBClient.
Error creating session
Target is not responding (timed out)
Target is not responding (timed out)
Target is not responding (timed out)

jungyun choi
-------------------------------------- Device Internal --------------------------------------

[command] ls /etc/zypp/zypp.conf 2>/dev/null
[result] Checked file: /etc/zypp/zypp.conf

[command] sed -i "s/# arch = s390/arch = i686/g" /etc/zypp/zypp.conf
[result] Set proxy: 

[command] rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.Hello
[result] Checked package: org.tizen.Hello-0.0.1-1.i586

[command] rm -f /var/lib/rpm/__db*;rpm -qa --qf %{VERSION}-%{RELEASE}, org.tizen.Hello
[result] Checked version: 0.0.1-1, (org.tizen.Hello)

[command] rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.Hello
[result] Checked package: org.tizen.Hello-0.0.1-1.i586

[command] rm -f /var/lib/rpm/__db*;zypper --xmlout repos -u
[result] Get repository list: 1
[result] {Tizen-main=file:/srv/snapshots//tizen-2.2-emul/common/tizen-2.2-emul_20131107.5/repos/tizen-main/ia32/packages/}

[command] rm -f /var/lib/rpm/__db*;pkgcmd --install --quiet --package-type rpm --package-path /tmp/org.tizen.Hello-0.0.1-1.i586.rpm
path is /tmp/org.tizen.Hello-0.0.1-1.i586.rpm
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.Hello] key[install_percent] val[0.000000]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.Hello] key[install_percent] val[100.000000]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.Hello] key[end] val[ok]
spend time for pkgcmd is [4797]ms

[command] rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.Hello
[result] Checked package: org.tizen.Hello-0.0.1-1.i586

 

jungyun choi
The following NEW packages are going to be installed:
  org.tizen.Hello org.tizen.Hello-debuginfo org.tizen.Hello-debugsource 

3 new packages to install.
Overall download size: 314.0 KiB. After the operation, additional 340.0 KiB 
will be used.
[2K
Continue? [y/n/?] (y): y
Retrieving package org.tizen.Hello-0.0.1-1.i586 (1/3), 299.0 KiB (318.0 KiB unpacked)
Retrieving package org.tizen.Hello-debuginfo-0.0.1-1.i586 (2/3), 10.0 KiB (15.0 KiB unpacked)
Retrieving package org.tizen.Hello-debugsource-0.0.1-1.i586 (3/3), 5.0 KiB (7.0 KiB unpacked)
Retrieving package org.tizen.Hello-0.0.1-1.i586 (1/3), 299.0 KiB (318.0 KiB unpacked)
[2K
Installing: org.tizen.Hello-0.0.1-1 [0%][2K
[1A[2K
Installing: org.tizen.Hello-0.0.1-1 [done]
Retrieving package org.tizen.Hello-debuginfo-0.0.1-1.i586 (2/3), 10.0 KiB (15.0 KiB unpacked)
[2K
Installing: org.tizen.Hello-debuginfo-0.0.1-1 [0%][2K
[1A[2K
Installing: org.tizen.Hello-debuginfo-0.0.1-1 [/][2K
[1A[2K
Installing: org.tizen.Hello-debuginfo-0.0.1-1 [done]
Retrieving package org.tizen.Hello-debugsource-0.0.1-1.i586 (3/3), 5.0 KiB (7.0 KiB unpacked)
[2K
Installing: org.tizen.Hello-debugsource-0.0.1-1 [0%][2K
[1A[2K
Installing: org.tizen.Hello-debugsource-0.0.1-1 [done]

[command] sudo -S chroot /home/jychoi/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.Hello-debugsource\"
[result] Checked package: org.tizen.Hello-debugsource-0.0.1-1.i586

[command] sudo -S chroot /home/jychoi/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.Hello\"
[result] Checked package: org.tizen.Hello-0.0.1-1.i586

[command] sudo -S chroot /home/jychoi/tizen-sdk/platforms/tizen2.2/rootstraps/tizen-emulator-2.2.platform/local/BUILD-ROOTS/scratch.i586.0 sh -c \"rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.Hello-debuginfo\"
[result] Checked package: org.tizen.Hello-debuginfo-0.0.1-1.i586

__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.Hello] key[install_percent] val[99.962654]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.Hello] key[install_percent] val[100.000000]
__return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.Hello] key[end] val[ok]
spend time for pkgcmd is [4797]ms

[command] rm -f /var/lib/rpm/__db*;rpm -qa org.tizen.Hello
[result] Checked package: org.tizen.Hello-0.0.1-1.i586

 

donghyuk yang

Hello.

Could you send .xml files to me via email (yangttak@gmail.com) ?

~/tizen-sdk/tools/smart-build-interface/plugins/gcc45obs.i386.platform.xml

jungyun choi

Thanks, donghyuk yang

I was sent my 'gcc45obs.i386.platform.xml' to yangttak@gmail.com.