|
From: | Wafa Elhajhmida |
Subject: | Re: [Discuss-gnuradio] swap file generation (was: Re: Removing the old version and Installing gnuradio 3.7 on USRP E 110) |
Date: | Tue, 27 May 2014 14:40:41 +0200 |
Hi,I did a swap memory on a pen drive(its capacity is 16 Go).I did these instructions for swap:I connected the pen drive to a usb hub which is connected to usb host port .>sudo fdisk -l
>sudo umount /dev/mtdblock4
>sudo mkswap /dev/mtdblock4
>sudo swapon -p 32767 /dev/mtdblock4
>cat /proc/swaps
Type Size Used Priority
/dev/mtdblock4 partition 517628 0 32767
And when I tried to update gnuradio, I got this error on 85 %.
Scanning dependencies of target _trellis_swig[ 85%] Building CXX object gr-trellis/swig/CMakeFiles/_trellis_swig.dir/trellis_swigPYTHON_wrap.cxx.oend_request: I/O error, dev mtdblock4, sector 189960Read-error on swap-device (31:4:189968)end_request: I/O error, dev mtdblock4, sector 189960Read-error on swap-device (31:4:189968)/home/root/gnuradio.git/build/gr-trellis/swig/trellis_swigPYTHON_wrap.cxx: In function 'PyObject* _wrap_viterbi_combined_fs_sptr_symbol_name(PyObject*, PyObject*)':/home/root/gnuradio.git/build/gr-trellis/swig/trellis_swigPYTHON_wrap.cxx:186072:1: internal compiler error: Bus errorPlease submit a full bug report,with preprocessed source if appropriate.See <http://gcc.gnu.org/bugs.html> for instructions.make[2]: *** [gr-trellis/swig/CMakeFiles/_trellis_swig.dir/trellis_swigPYTHON_wrap.cxx.o] Error 1make[1]: *** [gr-trellis/swig/CMakeFiles/_trellis_swig.dir/all] Error 2make: *** [all] Error 2How can I fix it in order to update gnuradio on usrp e110 ?Best regards,Wafa HAJ HMIDA2014-05-23 14:56 GMT+02:00 Marcus Müller <address@hidden>:
Hi Wafa,
On 23.05.2014 13:55, Wafa Elhajhmida wrote:
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.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
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!
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:~# mkswap /swapfile1 Setting up swapspace version 1, size = 524284 KiB no label, UUID=76dccdc9-cb8a-40c6-9e0a-ed58eaa900f8
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:~# chown root:root /swapfile1 address@hidden:~# chmod 0600 /swapfile1
Great!address@hidden:~# swapon /swapfile1* *Adding 524284k swap on /swapfile1. Priority:-1 extents:246 across:1568156k SS* Now it works.
I don't understand. What different instructions are you talking about?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
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.
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.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 ?
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. Butwhen Ityped "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<https://owa.ece.fr/owa/redir.aspx?C=azMLHeTJTEeJAp-eApYyqBPwd5wXLNEIaWtGtAFgTFNK5I8pwshWTvAb5Aa2cq8hkqcLKU7Jt-8.&URL="">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/ PhilipBest 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 thenetwork.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'twork. 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 of192.168.1.234,gateway of 192.168.1.1 and nameserver to 8.8.8.8 (google) is bydoing thefollowing: 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 youwiththat. 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,itisn'table 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:EthernetHWaddr A0:36:FA:95:32:E9 inet6 addr: fe80::a236:faff:fe95:32e9/64 Scope:Link UP BROADCASTRUNNINGMULTICAST MTU:1500 Metric:1 RX packets:334 errors:0dropped:0overruns:0 frame:0 TX packets:52 errors:3 dropped:0overruns:0carrier:0 collisions:0 txqueuelen:1000 RXbytes:22517(21.9 KiB) TX bytes:14498 (14.1 KiB) Interrupt:80When I typed opkg update, I got this error. address@hidden:~# opkg update * *Downloadinghttp://files.ettus.com/binaries/oe-classic-feeds/ipk/armv7a/Packages.gz<http://files.ettus.com/binaries/oe-classic-feeds/ipk/armv7a/Packages.gz.** Downloadinghttp://files.ettus.com/binaries/oe-classic-feeds/ipk/all/Packages.gz< http://files.ettus.com/binaries/oe-classic-feeds/ipk/all/Packages.gz>.**Downloadinghttp://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 downloadhttp://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 downloadhttp://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 downloadhttp://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.7toobtainthedifferent blocks necessaryUse: 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-sourceto implement OFDM channel on USRP E 110 ?I will be easier getting OFDM going with a USRP (such as aB200)attached to a desktop computer first, then use this work tomoveit tothe E100. The processor o the E100 is much slower, so it willbeharderto work out what is your problem and what is a limitation ofthehardware and software that needs work to improve. Philip PhilipBest 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 GRonthe E1xxseries 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 ifthey arerelevant: 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 fortheEmbeddedexperts to answer this for you. The files are giving mea404 toosothanks 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. Buttheselinksmentioned 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.tgzdon't work. Can you give me other links where can I find thedifferentfilesMLO,U-Boot, uImage. in order to make an up date of kernelandbootfiles.Second, How can I access to gnuradio embedded on usrp e110inorder toshow 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 tothefollowinginstructions:http://ettus-apps.sourcerepo.com/redmine/ettus/projects/usrpe1xx/wiki/FAQ#How-do-I-install-GNU-Radio-from-sourceMike -- 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 implementOFDMchannel onit. In fact, I would like to remove the old version ofgnuradioinstalled in USRP E 110. Then, I would like to install gnuradio 3.7.4 on USRPE110(theversion that as far as I know contains the differentblocksnecessary toimplement OFDM channel on USRP E 110). Best regards, Wafa HAJ HMIDA_______________________________________________ Discuss-gnuradio mailing list address@hiddenhttps://lists.gnu.org/mailman/listinfo/discuss-gnuradi-- Marcus Leech Technical Support Assistant Ettus Research LLC
[Prev in Thread] | Current Thread | [Next in Thread] |