Hi Guys
I was told the only way Android ADB can connect to the RTSM is using the ADB that is built/paired with the same build running on RTSM.
I am trying to run Linaro ICS 12.12 on different versions of the RTSM but all of them give me "device offline". It is proving a bit difficult so I am wondering if anyone has been able to do this, and I like to know which versions of ADB or SDK works?
I have tried the few methods that are described on Linaro web pages including ADBHOST=<...> but they are not working.
Thanks Ramin
------------------------------ Ramin Zaghi Software Engineer Processor Division / PDCS ------------------------------ ARM Ltd. 110 Fulbourn Road Cambridge CB1 9NJ, UK ------------------------------ Tel: +44 1223 406347 [Extn 22347] ------------------------------
-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Hi Ramin,
There are 2 ways to let ADB to connect a target: "ADB over USB" & "ADB over Ethernet".
When you try ADB over USB, please ensure you run command with "sudo" prefix, like:
$ sudo adb devices
When you try ADB over Ethernet, then the procedures are (assume Ethernet works on your target):
On Target (Serial Console): # stop adbd # setprop service.adb.tcp.port 6565 # start adbd
On Host (PC): $ export ADBHOST=<Target_IP> $ sudo adb start-server $ sudo adb connect <Target_IP>:6565 $ sudo adb shell
You can get target IP by run this command in target serial console:
# busybox ifconfig -a
Hopefully it helps.
Thanks.
Best Regards Botao Sun
On Mon, Jan 21, 2013 at 10:17 PM, Ramin Zaghi Ramin.Zaghi@arm.com wrote:
Hi Guys****
I was told the only way Android ADB can connect to the RTSM is using the ADB that is built/paired with the same build running on RTSM.****
I am trying to run Linaro ICS 12.12 on different versions of the RTSM but all of them give me “device offline”.****
It is proving a bit difficult so I am wondering if anyone has been able to do this, and I like to know which versions of ADB or SDK works?****
I have tried the few methods that are described on Linaro web pages including ADBHOST=<...> but they are not working.****
Thanks****
Ramin****
------------------------------****
Ramin Zaghi ****
Software Engineer****
Processor Division / PDCS****
------------------------------****
ARM Ltd.****
110 Fulbourn Road****
Cambridge****
CB1 9NJ, UK****
------------------------------****
Tel: +44 1223 406347****
[Extn 22347]****
------------------------------****
-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
linaro-android mailing list linaro-android@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-android
Hi Batao and Amit
These methods don't work (not anymore!? or at least not with all versions or combinations).
Is it possible to share an ADB executable built with Linaro 12.12 so that I can test it without rebuilding from source?
Ramin
From: Botao Sun [mailto:botao.sun@linaro.org] Sent: 21 January 2013 11:31 To: Ramin Zaghi Cc: linaro-android@lists.linaro.org Subject: Re: ADB connection to RTSM
Hi Ramin,
There are 2 ways to let ADB to connect a target: "ADB over USB" & "ADB over Ethernet".
When you try ADB over USB, please ensure you run command with "sudo" prefix, like:
$ sudo adb devices
When you try ADB over Ethernet, then the procedures are (assume Ethernet works on your target):
On Target (Serial Console): # stop adbd # setprop service.adb.tcp.port 6565 # start adbd
On Host (PC): $ export ADBHOST=<Target_IP> $ sudo adb start-server $ sudo adb connect <Target_IP>:6565 $ sudo adb shell
You can get target IP by run this command in target serial console:
# busybox ifconfig -a
Hopefully it helps.
Thanks.
Best Regards Botao Sun
On Mon, Jan 21, 2013 at 10:17 PM, Ramin Zaghi <Ramin.Zaghi@arm.commailto:Ramin.Zaghi@arm.com> wrote:
Hi Guys
I was told the only way Android ADB can connect to the RTSM is using the ADB that is built/paired with the same build running on RTSM.
I am trying to run Linaro ICS 12.12 on different versions of the RTSM but all of them give me "device offline". It is proving a bit difficult so I am wondering if anyone has been able to do this, and I like to know which versions of ADB or SDK works?
I have tried the few methods that are described on Linaro web pages including ADBHOST=<...> but they are not working.
Thanks Ramin
------------------------------ Ramin Zaghi Software Engineer Processor Division / PDCS ------------------------------ ARM Ltd. 110 Fulbourn Road Cambridge CB1 9NJ, UK ------------------------------ Tel: +44 1223 406347tel:%2B44%201223%20406347 [Extn 22347] ------------------------------
-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
_______________________________________________ linaro-android mailing list linaro-android@lists.linaro.orgmailto:linaro-android@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-android
-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
On 21 January 2013 17:05, Ramin Zaghi Ramin.Zaghi@arm.com wrote:
These methods don’t work (not anymore!? or at least not with all versions or combinations).****
Is it possible to share an ADB executable built with Linaro 12.12 so that I can test it without rebuilding from source?****
There is no reason for having adb being built from source.Most of us use the prebuilt adb and works fine for us. Even LAVA uses a prebuilt adb and it works fine with other RTSM.
Can you make sure networking is working fine on the RTSM. Then restart adb on the target: stop adbd setprop service.adb.tcp.port 5555 start adbd
and then connect from the host (assuming you have user mode networking): export ADBHOST=127.0.0.1 adb kill-server adb shell
Hi Vishal
The Internet connection works fine on the target and yes I did try this method but it doesn't work.
Why do some people say ADBHOST=<target IP> and some others say ADBHOST=lo !?
Ramin
From: Vishal Bhoj [mailto:vishal.bhoj@linaro.org] Sent: 21 January 2013 11:45 To: Ramin Zaghi Cc: Botao Sun; linaro-android@lists.linaro.org Subject: Re: ADB connection to RTSM
On 21 January 2013 17:05, Ramin Zaghi <Ramin.Zaghi@arm.commailto:Ramin.Zaghi@arm.com> wrote: These methods don't work (not anymore!? or at least not with all versions or combinations).
Is it possible to share an ADB executable built with Linaro 12.12 so that I can test it without rebuilding from source?
There is no reason for having adb being built from source.Most of us use the prebuilt adb and works fine for us. Even LAVA uses a prebuilt adb and it works fine with other RTSM.
Can you make sure networking is working fine on the RTSM. Then restart adb on the target: stop adbd setprop service.adb.tcp.port 5555 start adbd
and then connect from the host (assuming you have user mode networking): export ADBHOST=127.0.0.1 adb kill-server adb shell
-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
On 21 January 2013 17:17, Ramin Zaghi Ramin.Zaghi@arm.com wrote:
Hi Vishal****
The Internet connection works fine on the target and yes I did try this method but it doesn’t work.****
Why do some people say ADBHOST=<target IP> and some others say ADBHOST=lo !?
ADBHOST=<TARGET IP> is the right thing to do. If port forwarding is happening with the RTSM user networking mode then we just need to set TARGET IP=127.0.0.1 . If you have a bridged network or something then you need to set the target ip address. Are you able to ping the target from host ?
****
Ramin****
*From:* Vishal Bhoj [mailto:vishal.bhoj@linaro.org] *Sent:* 21 January 2013 11:45 *To:* Ramin Zaghi *Cc:* Botao Sun; linaro-android@lists.linaro.org
*Subject:* Re: ADB connection to RTSM****
On 21 January 2013 17:05, Ramin Zaghi Ramin.Zaghi@arm.com wrote:****
These methods don’t work (not anymore!? or at least not with all versions or combinations).****
Is it possible to share an ADB executable built with Linaro 12.12 so that I can test it without rebuilding from source?****
There is no reason for having adb being built from source.Most of us use the prebuilt adb and works fine for us. Even LAVA uses a prebuilt adb and it works fine with other RTSM.****
Can you make sure networking is working fine on the RTSM. Then restart adb on the target:****
stop adbd****
setprop service.adb.tcp.port 5555****
start adbd****
and then connect from the host (assuming you have user mode networking):** **
export ADBHOST=127.0.0.1****
adb kill-server****
adb shell****
-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Hi Vishal
With one of the file systems which I have (not a Linaro one) + a bridge, I have had to press CTRL+C on the host machine immediately after running ADB SHELL. For some reason this worked and gave me a prompt on that configuration - if I had waited I would have received device offline.
I have no explanation for this and I am not going to try other combinations right now but this is working for the time being.
I will have to investigate Linaro file systems later.
Thanks Rmain
From: Vishal Bhoj [mailto:vishal.bhoj@linaro.org] Sent: 21 January 2013 11:58 To: Ramin Zaghi Cc: Botao Sun; linaro-android@lists.linaro.org Subject: Re: ADB connection to RTSM
On 21 January 2013 17:17, Ramin Zaghi <Ramin.Zaghi@arm.commailto:Ramin.Zaghi@arm.com> wrote: Hi Vishal
The Internet connection works fine on the target and yes I did try this method but it doesn't work.
Why do some people say ADBHOST=<target IP> and some others say ADBHOST=lo !?
ADBHOST=<TARGET IP> is the right thing to do. If port forwarding is happening with the RTSM user networking mode then we just need to set TARGET IP=127.0.0.1 . If you have a bridged network or something then you need to set the target ip address. Are you able to ping the target from host ?
Ramin
From: Vishal Bhoj [mailto:vishal.bhoj@linaro.orgmailto:vishal.bhoj@linaro.org] Sent: 21 January 2013 11:45 To: Ramin Zaghi Cc: Botao Sun; linaro-android@lists.linaro.orgmailto:linaro-android@lists.linaro.org
Subject: Re: ADB connection to RTSM
On 21 January 2013 17:05, Ramin Zaghi <Ramin.Zaghi@arm.commailto:Ramin.Zaghi@arm.com> wrote: These methods don't work (not anymore!? or at least not with all versions or combinations).
Is it possible to share an ADB executable built with Linaro 12.12 so that I can test it without rebuilding from source?
There is no reason for having adb being built from source.Most of us use the prebuilt adb and works fine for us. Even LAVA uses a prebuilt adb and it works fine with other RTSM.
Can you make sure networking is working fine on the RTSM. Then restart adb on the target: stop adbd setprop service.adb.tcp.port 5555 start adbd
and then connect from the host (assuming you have user mode networking): export ADBHOST=127.0.0.1 adb kill-server adb shell
-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
linaro-android@lists.linaro.org