Transferring a package from pc (ubuntu 12.04) to bone(angstrom) and installing it

Hello there,

I am trying to configure my usb wifi device (asus WL-167g) to be used on beaglebone. For that purpose I downloaded rt73 firmware from http://www.angstrom-distribution.org/repo/?pkgname=rt73-firmware. However I could not transfer it to beaglebone and install it. How can I do it?

I tried to transfer it to my beaglebone by: zero@ghostrider:~/Downloads$ scp rt73-firmware_1.8-r1.9_all.ipk root@192.168.1.2

However nothing happened. Maybe the problem is with the IP that I am using. (192.168.1.2) How can I ensure that I am using the right IP? Here is the output of ifconfig:

root@beaglebone:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr D4:94:A1:91:36:5F
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::d694:a1ff:fe91:365f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:55642 errors:0 dropped:3 overruns:0 frame:0
TX packets:32398 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:72070629 (68.7 MiB) TX bytes:2327894 (2.2 MiB)
Interrupt:40

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:229 (229.0 B) TX bytes:229 (229.0 B)

Also I do not know how to install the package when I transfer it to beaglebone. Could you please help me?

In addition to these, is not there a better solution like downloading the package directly to beaglebone and installing it. I tried opkg install rt73-firmware but it did not work. Maybe the name: rt73-firmware was wrong. How can I figure it out?

ps: Bone is connected to pc via USB.

Regards

Hello there,

I am trying to configure my usb wifi device (asus WL-167g) to be used on beaglebone. For that purpose I downloaded rt73 firmware from
http://www.angstrom-distribution.org/repo/?pkgname=rt73-firmware. However I could not transfer it to beaglebone and install it. How can I do it?

I tried to transfer it to my beaglebone by: zero@ghostrider:~/Downloads$ scp rt73-firmware_1.8-r1.9_all.ipk root@192.168.1.2

You need a ':' at the end of this command to use a remote address, i.e.
   zero@ghostrider:~/Downloads$ scp rt73-firmware_1.8-r1.9_all.ipk root@192.168.1.2:

The command as you wrote it will just create a local file 'root@192.168.1.2'

Thank you for your help. I put “:” at the end and here is the output:

zero@ghostrider:~/Downloads$ scp rt73-firmware_1.8-r1.9_all.ipk root@192.168.1.2:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
b2:10:8a:1a:e3:d3:22:7d:73:d0:fe:5f:48:de:c2:8f.
Please contact your system administrator.
Add correct host key in /home/zero/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/zero/.ssh/known_hosts:1
remove with: ssh-keygen -f “/home/zero/.ssh/known_hosts” -R 192.168.1.2
RSA host key for 192.168.1.2 has changed and you have requested strict checking.
Host key verification failed.
lost connection

Thank you for your help. I put ":" at the end and here is the output:

zero@ghostrider:~/Downloads$ scp rt73-firmware_1.8-r1.9_all.ipk root@192.168.1.2 <mailto:root@192.168.1.2>:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
b2:10:8a:1a:e3:d3:22:7d:73:d0:fe:5f:48:de:c2:8f.
Please contact your system administrator.
Add correct host key in /home/zero/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/zero/.ssh/known_hosts:1
   remove with: ssh-keygen -f "/home/zero/.ssh/known_hosts" -R 192.168.1.2
RSA host key for 192.168.1.2 has changed and you have requested strict checking.
Host key verification failed.
lost connection

This happens a lot with these boards, especially in a development mode when you're loading
new system software, etc, over and over. It can be safely ignored, either by the command
mentioned above or by adjusting your SSH configuration.

The easiest way around this (since it's a local device that you trust) is to add these
lines to "/home/zero/.ssh/config":
   # Disable host checking for any "local" machines
   Host 192.168.*.*
      StrictHostKeyChecking no
      UserKnownHostsFile=/dev/null

Note: only do this for hosts you trust! - probably only local ones...

Thank you so much! It worked successfully:

zero@ghostrider:~/Downloads$ scp rt73-firmware_1.8-r1.9_all.ipk root@192.168.1.2:
Warning: Permanently added ‘192.168.1.2’ (RSA) to the list of known hosts.
root@192.168.1.2’s password:
rt73-firmware_1.8-r1.9_all.ipk 100% 1926 1.9KB/s 00:00

root@beaglebone:~# ls
rt73-firmware_1.8-r1.9_all.ipk

One last question: now, how am i going to install this rt73-firmware_1.8-r1.9_all.ipk package? sorry for inconvenience: )

Is this a problem? Are those with “No such file or directory.” required?

root@beaglebone:~# opkg install rt73-firmware_1.8-r1.9_all.ipk
Installing rt73-firmware (1.8-r1.9) to root…
Configuring rt73-firmware.
Configuring procps.
update-alternatives: Linking //usr/bin/top to /usr/bin/top.procps
update-alternatives: Linking //usr/bin/uptime to /usr/bin/uptime.procps
update-alternatives: Linking //usr/bin/free to /usr/bin/free.procps
update-alternatives: Linking //usr/bin/pkill to /usr/bin/pkill.procps
update-alternatives: Linking //usr/bin/pmap to /usr/bin/pmap.procps
update-alternatives: Linking //bin/kill to /bin/kill.procps
update-alternatives: Linking //sbin/sysctl to /sbin/sysctl.procps
update-alternatives: Linking //bin/ps to /bin/ps.procps
update-alternatives: Linking //usr/bin/pgrep to /usr/bin/pgrep.procps
update-alternatives: Linking //usr/bin/pwdx to /usr/bin/pwdx.procps
update-alternatives: Error: cannot register alternative watch to /usr/bin/watch since it is already registered to /bin/watch
Collected errors:

  • pkg_get_installed_files: Failed to open //var/lib/opkg/info/perl-module-build.pm.list: No such file or directory.
  • pkg_get_installed_files: Failed to open //var/lib/opkg/info/perl-module-load.pm.list: No such file or directory.
  • pkg_run_script: package “procps” postinst script returned status 1.
  • opkg_configure: procps.postinst returned 1.

Thank you so much! It worked successfully:

zero@ghostrider:~/Downloads$ scp rt73-firmware_1.8-r1.9_all.ipk root@192.168.1.2 <mailto:root@192.168.1.2>:
Warning: Permanently added '192.168.1.2' (RSA) to the list of known hosts.
root@192.168.1.2 <mailto:root@192.168.1.2>'s password:
rt73-firmware_1.8-r1.9_all.ipk 100% 1926 1.9KB/s 00:00

root@beaglebone:~# ls
rt73-firmware_1.8-r1.9_all.ipk

One last question: now, how am i going to install this rt73-firmware_1.8-r1.9_all.ipk package? sorry for inconvenience: )

# opkg install rt73-firmware_1.8-r1.9_all.ipk