dd if=/dev/zero of=/swapfile bs=1M
count=4000
mkswap /swapfile
swapon /swapfile
# free -g
total used free shared buffers
cached
Mem: 0 0 0 0
0 0
-/+ buffers/cache: 0 0
Swap: 3 0 3
If you get an error, the kernel was not built with swap enabled.
# grep SWAP .config
CONFIG_SWAP=y
or
# grep SWAP /boot/config-`uname -r`
To make it permanent edit /etc/fstab and add a line
/swapfile none swap sw 0 0
Regards
Sid.
On 23/05/14 13:56, Marcus Müller wrote:
Hi Wafa,
On 23.05.2014 13:55, Wafa Elhajhmida
wrote:
In fact, I retried to type these commands :
address@hidden:~# swapon
Usage:
swapon -a [-e] [-v] [-f] enable all swaps from /etc/fstab
swapon [-p priority] [-v] [-f] <special> enable given swap
swapon -s display swap usage summary
swapon -h display help
swapon -V display version
The <special> parameter:
{-L label | LABEL=label} LABEL of device to be used
{-U uuid | UUID=uuid} UUID of device to be used
<device> name of device to be used
<file> name of file to be used
Ah, so that's another version of swapon. Since the purpose was to
display current swap usage, -s would have been the option of
choice.
However, if it works now, you don't have to run it anymore.
Clearly, this command didn't do anything, but printed its usage
options. You should carefully read
and understand what programs do!
address@hidden:~# mkswap /swapfile1
Setting up swapspace version 1, size = 524284 KiB
no label, UUID=76dccdc9-cb8a-40c6-9e0a-ed58eaa900f8
This seems to succeed, meaning that mkswap was able to access that
file. Whatever was holding the swapfile open has since released
it, it seems.
address@hidden:~# chown root:root /swapfile1
address@hidden:~# chmod 0600 /swapfile1
This changes the file's ownership and sets its access mode; if
this is the same file we talked about before, you ran this twice
on; this does no harm, but is unnecessary.
address@hidden:~# swapon /swapfile1*
*Adding 524284k swap on /swapfile1. Priority:-1 extents:246
across:1568156k SS*
Now it works.
Great!
shall I follow to do the different instructions mentioned on this website
http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/ ie making swap
file on the root
I don't understand. What different instructions are you talking
about?
These instructions work, as you found out yourself.
However, you followed these instructions word by word and
created a small swapfile on /.
I asked you to create a swapfile on an external drive, being much
bigger than what you've created.
or shall I connect usrp to an external memory ? If yes shall I connect a
flash disc to the usrp on its usb host port ?
As I said, yes, use external memory. You will need some space on
the root partition for the actual build, and you're congesting it
with a swap file.
Please create a larger swapfile on an external drive (larger file
means you have to adjust the parameters you give to "dd", on the
external drive means you have to store it on the mount point of
that drive, not on / ).
Greetings,
Marcus
Best regards,
Wafa HAJ HMIDA
2014-05-23 12:26 GMT+02:00 Marcus Müller <address@hidden>:
Hi Wafa,
address@hidden:~# swapon /swapfile1
*swapon: /swapfile1: swapon failed: Device or resource busy*
The file is still opened; maybe you're already using it (check with
"swapon" without arguments)?
Have you been able to run mkswap on the file?
Also, you must use an external drive to store the swap file instead of
the root folder ( / ), because in the standard image on the standard 4GB
flash drive that the E100 uses, there won't be enough free space for a
reasonably large swap file.
Regarding question 2: swap can't be too big. Aim for 3-4GB.
Greetings,
Marcus
On 23.05.2014 11:50, Wafa Elhajhmida wrote:
Hi,
I have two questions:
1/ I followed the different instructions mentioned in this link:
http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/
But when I typed:
address@hidden:~# swapon /swapfile1
*swapon: /swapfile1: swapon failed: Device or resource busy*
I got the error above.
How to fix this error in order to create swap file in order to update
gnuradio ?
2/ For the following instruction , which count shall I put for the swap
file in order to update gnuradio on usrp e110 ?
dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
Best regards,
Wafa HAJ HMIDA
2014-05-22 16:57 GMT+02:00 Philip Balister <address@hidden>:
On 05/22/2014 10:25 AM, Wafa Elhajhmida wrote:
Hi,
The USRP E 110 is connected to internet.
In fact, I followed the different commands described in the FAQ. But
when I
typed
"make" I got this error :
[ 49%] Built target _filter_swig_swig_tag
[ 49%] Building CXX object
gr-filter/swig/CMakeFiles/_filter_swig.dir/filter_swigPYTHON_wrap.cxx.o
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html<
for instructions.
make[2]: ***
[gr-filter/swig/CMakeFiles/_filter_swig.dir/filter_swigPYTHON_wrap.cxx.o]
Error 1
make[1]: *** [gr-filter/swig/CMakeFiles/_filter_swig.dir/all] Error 2
make: *** [all] Error 2
How to fix it in order to update gnuradio embedded on usrp e110?
You need to add a swapfile. There swig generated files take an enormous
amount of memory to compile.
Google should give guides on setting up a swapfile. here is one:
http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/
Philip
Best regards,
Wafa HAJ HMIDA
2014-05-19 16:06 GMT+02:00 Wafa Elhajhmida <address@hidden
:
I think I shall ask the network administrator to make the necessary
configurations so that the usrp e110 will be recognized by the
network.
Thanks for helping,
Best regards,
Wafa HAJ HMIDA
2014-05-19 15:58 GMT+02:00 Wafa Elhajhmida <
address@hidden
:
I tried the different commands but the command opkg update still don't
work.
2014-05-19 15:55 GMT+02:00 Wafa Elhajhmida <
address@hidden
:
the output is :
ifup: interface eth0 already configured
2014-05-19 15:39 GMT+02:00 Ettus Research Support <
address@hidden
:
I missed off the 'eth0' bit on the gateway setting:
sudo route add default gw 192.168.1.1 eth0
Mike
--
Mike Jameson M0MIK BSc MIET
Ettus Research Technical Support
Email: address@hidden
Web: http://ettus.com
On Mon, May 19, 2014 at 2:34 PM, Ettus Research Support <
address@hidden> wrote:
On Ubuntu the alternative way to set an IP address of
192.168.1.234,
gateway of 192.168.1.1 and nameserver to 8.8.8.8 (google) is by
doing the
following:
sudo ifconfig eth0 up
sudo ifconfig eth0 192.168.1.234
sudo route add default gw 192.168.1.1
sudo echo "nameserver 8.8.8.8" > /etc/resolv.conf
Mike
--
Mike Jameson M0MIK BSc MIET
Ettus Research Technical Support
Email: address@hidden
Web: http://ettus.com
On Mon, May 19, 2014 at 2:14 PM, Marcus Müller <
address@hidden> wrote:
Hi Wafa,
to download packages, you obviously need internet connectivity.
You need to manage that; as gr-discuss, we really can't help you
with
that.
Greetings,
Marcus
On 19.05.2014 15:13, Wafa Elhajhmida wrote:
I tried what you recommend me to do. But I got the same error,
it
isn't
able to download the files for update.
Is there any other alternative to fix this error ?
2014-05-19 14:54 GMT+02:00 Ettus Research Support <
address@hidden>:
You need an IP address.
Try:
sudo dhclient eth0
Mike
--
Mike Jameson M0MIK BSc MIET
Ettus Research Technical Support
Email: address@hidden
Web: http://ettus.com
On Mon, May 19, 2014 at 10:11 AM, Wafa Elhajhmida <
address@hidden> wrote:
Hi,
I connected the usrp e100 through an ethernet connection.
And I obtained:
address@hidden:~# ifconfig eth0eth0 Link encap:Ethernet
HWaddr A0:36:FA:95:32:E9 inet6 addr:
fe80::a236:faff:fe95:32e9/64 Scope:Link UP BROADCAST
RUNNING
MULTICAST MTU:1500 Metric:1 RX packets:334 errors:0
dropped:0
overruns:0 frame:0 TX packets:52 errors:3 dropped:0
overruns:0
carrier:0 collisions:0 txqueuelen:1000 RX
bytes:22517
(21.9 KiB) TX bytes:14498 (14.1 KiB) Interrupt:80
When I typed opkg update, I got this error.
address@hidden:~# opkg update *
*Downloading
http://files.ettus.com/binaries/oe-classic-feeds/ipk/armv7a/Packages.gz
<
http://files.ettus.com/binaries/oe-classic-feeds/ipk/armv7a/Packages.gz
.*
* Downloading
http://files.ettus.com/binaries/oe-classic-feeds/ipk/all/Packages.gz<
http://files.ettus.com/binaries/oe-classic-feeds/ipk/all/Packages.gz>.
*
*Downloading
http://files.ettus.com/binaries/oe-classic-feeds/ipk/usrp-e1xx/Packages.gz
<
http://files.ettus.com/binaries/oe-classic-feeds/ipk/usrp-e1xx/Packages.gz
.*
* Collected errors: *
** opkg_download: Failed to download
http://files.ettus.com/binaries/oe-classic-feeds/ipk/armv7a/Packages.gz
<
http://files.ettus.com/binaries/oe-classic-feeds/ipk/armv7a/Packages.gz
,
wget returned 1. *
* * opkg_download: Failed to download
http://files.ettus.com/binaries/oe-classic-feeds/ipk/all/Packages.gz<
http://files.ettus.com/binaries/oe-classic-feeds/ipk/all/Packages.gz>,
wget returned 1. *
** opkg_download: Failed to download
http://files.ettus.com/binaries/oe-classic-feeds/ipk/usrp-e1xx/Packages.gz
<
http://files.ettus.com/binaries/oe-classic-feeds/ipk/usrp-e1xx/Packages.gz
,
wget returned 1.*
Can you lead me how to fix this error.
Thanks a lot,
Best regards,
Wafa HAJ HMIDA
2014-05-16 23:58 GMT+02:00 Philip Balister <
address@hidden
:
On 05/16/2014 10:28 AM, Wafa Elhajhmida wrote:
Hi,
Thank you for your reply .
How shall I proceed in order to update GR on E 1xx to GR 3.7
to
obtain
the
different blocks necessary
Use:
opkg update
opkg upgrade
to update the E100.
This link should get you started installing gnuradio 3.7:
http://ettus-apps.sourcerepo.com/redmine/ettus/projects/usrpe1xx/wiki/FAQ#How-do-I-install-GNU-Radio-from-source
to implement OFDM channel on USRP E 110 ?
I will be easier getting OFDM going with a USRP (such as a
B200)
attached to a desktop computer first, then use this work to
move
it to
the E100. The processor o the E100 is much slower, so it will
be
harder
to work out what is your problem and what is a limitation of
the
hardware and software that needs work to improve.
Philip
Philip
Best regards,
Wafa HAJ HMIDA
2014-05-15 18:30 GMT+02:00 Marcus Leech <
address@hidden
:
Phil:
What is our current recommended procedure for updating GR
on
the E1xx
series to GR3.7?
On Thu, May 15, 2014 at 11:35 AM, Ettus Research Support <
address@hidden> wrote:
You can also look in:
http://files.ettus.com/
Specifically the following link to some embedded files if
they are
relevant:
http://files.ettus.com/e1xx_images/
Mike
--
Mike Jameson M0MIK BSc MIET
Ettus Research Technical Support
Email: address@hidden
Web: http://ettus.com
On Thu, May 15, 2014 at 4:33 PM, Mike Jameson <
address@hidden>wrote:
Wafa,
I've forwarded this to the address@hidden address for
the
Embedded
experts to answer this for you. The files are giving me
a
404 too
so
thanks for pointing this out.
Mike
--
Mike Jameson M0MIK BSc MIET
Ettus Research Technical Support
Email: address@hidden
Web: http://ettus.com
On Thu, May 15, 2014 at 3:26 PM, Wafa Elhajhmida <
address@hidden> wrote:
Hi,
First, I tried to update the bootfiles of usrp e110. But
these
links
mentioned on Ettus website,
https://ettus-apps.sourcerepo.com/redmine/ettus/projects/usrpe1xx/wiki/Updating_E1XX_Boot_Files_and_Kernel_Modules
-http://dl.dropbox.com/u/14618236/MLO
-http://dl.dropbox.com/u/14618236/u-boot.bin-for-2.6.38
-
http://dl.dropbox.com/u/14618236/uImage-2.6.38-r0a-usrp-e1xx.bin
-
http://dl.dropboxusercontent.com/u/14618236/modules-3.0-pm-r0d-usrp-e1xx.tgz
don't work.
Can you give me other links where can I find the
different
files
MLO,
U-Boot, uImage. in order to make an up date of kernel
and
boot
files.
Second, How can I access to gnuradio embedded on usrp e
110
in
order to
show it on my screen.
Best regards,
Wafa HAJ HMIDA
2014-05-13 14:28 GMT+02:00 Mike Jameson <
address@hidden>:
If you Google "USRP E100 update gnuradio" it points to
the
following
instructions:
http://ettus-apps.sourcerepo.com/redmine/ettus/projects/usrpe1xx/wiki/FAQ#How-do-I-install-GNU-Radio-from-source
Mike
--
Mike Jameson M0MIK BSc MIET
Ettus Research Technical Support
Email: address@hidden
Web: http://ettus.com
On Tue, May 13, 2014 at 12:59 PM, Wafa Elhajhmida <
address@hidden> wrote:
plz how to proceed ?
Thanks a lot
2014-05-13 11:47 GMT+02:00 Wafa Elhajhmida <
address@hidden>:
Hi,
I'm working on USRP E 110 card in order to implement
OFDM
channel on
it.
In fact, I would like to remove the old version of
gnuradio
installed in USRP E 110.
Then, I would like to install gnuradio 3.7.4 on USRP
E
110(the
version that as far as I know contains the different
blocks
necessary to
implement
OFDM channel on USRP E 110).
Best regards,
Wafa HAJ HMIDA
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradi
--
Marcus Leech
Technical Support Assistant
Ettus Research LLC
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
--
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
Senior Staff Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks
|