Raspberry cross-compiling

Posted: agosto 9th, 2014 | Author: | Filed under: English, Guide, Linux, Programmazione | Tags: , , , , , , , , , , , | No Comments »

I want to cross-compile some stuff for my Raspberry, this is a (memo for me) tutorial to do that. Read the rest of this entry »

RTL8192cu (Asus USB-N13 usb wireless) slow speed on Linux (debian7)

Posted: luglio 19th, 2014 | Author: | Filed under: Bug, English, Guide, Linux, Senza categoria | Tags: , , , , | No Comments »

A very good tutorial which works, found here.

That’s the way to solve the problem:

I have found the answer for this. I combined instructions from different websites to get this (from http://askubuntu.com/questions/168627/connecting-asus-usb-n13-wireless-adapter and http://act28.blogspot.com.au/2011/06/how-to-get-asus-usb-n13-adapter-working.html).

First start by downloading the drivers the drivers from Realtek from this website – http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true

Note: Make sure that you scroll down and download the driver that matches the output from your lsmod (eg: rtl8192cu). I am also going to copy and paste some of the stuff straight from the other answers.

Next get the Linux headers necessary to build the drivers. Type/paste in the terminal, entering your password when asked:

sudo apt-get install linux-headers-uname -r

Then, we’ll install the software tools necessary to build the drivers. Type/paste:

sudo apt-get install build-essential

Now, let’s build the drivers!

Paste the below:

cd ~/Downloads/RTL8188C_8192C_USB_linux_v3.4.3_4369.20120622

Then type/paste:

sudo bash install.sh

You will see lines of text scroll by, pause, and scroll by again, as the driver is built and installed. You will know it’s done when the prompt returns, preceded by this message:

install -p -m 644 8192cu.ko /lib/modules/3.2.0-27-generic/kernel/drivers/net/wireless/ /sbin/depmod -a 3.2.0-27-generic

The Setup Script is completed !

Next you need to open the following files and modify them:

sudo gedit /etc/modprobe.d/network_drivers.conf

Once it is opened add the following lines to the file and save it:

install rt3070sta /sbin/modprobe –ignore-install rt3070sta $CMDLINE_OPTS; /bin/echo “0b05 1784” > /sys/bus/usb/drivers/rt2870/new_id

Then modify this file as well using the command:

sudo gedit /etc/udev/rules.d/network_drivers.rules

and to this add:

ACTION==”add”, SUBSYSTEM==”usb”, ATTR{idVendor}==”0b05″, ATTR{idProduct}==”1784″, RUN+=”/sbin/modprobe -qba rt3070sta”

Now just save the file and close the terminal window and restart. It should work on the first restart at full speed. If adapter is not recognized at the first bootup, then unplug and plug it back in for it to work(you will only have to do this once on the first bootup and then it should be auto recognized on every other restart after the first one).

Patch per Arduino e Ethernet Library in Debian Sid

Posted: ottobre 2nd, 2012 | Author: | Filed under: Arduino, Bug, Embedded, Linux, Senza categoria | Tags: , , , , , , , , , | No Comments »

Premetto che questo รจ uno sviluppo di quanto ho scritto nel precedente post, ma comunque ricapitoliamo per completezza.

Ho avuto un problema programmando Arduino Uno con Ethernet Shield per cercare di fare una richiesta DNS. In particolare la board non riusciva a ritrovare l’indirizzo IP del server richiesto, al suo posto infatti veniva ritornato l’indirizzo

Read the rest of this entry »

Read and write RAM physical addresses from Linux user space

Posted: aprile 22nd, 2012 | Author: | Filed under: ARM, C/C++, English, Linux, Programmazione | Tags: , , , , , | No Comments »

Ok, this is another trick I learned working on my project.

I’ve a QEMU arm machine and a simulation outside them. QEMU shares his RAM (in the future I’ll write about this) with the simulator so I want to unlock the simulation (that is waiting for a 1 at the address 0x0FF8000) writing the specified value on that address using an application in user space inside the VM.

Read the rest of this entry »

  • Articoli Recenti:

  • Tag

  • Categorie

  • Meta

  • Licenza Creative Commons

    Copyright © 2017, | ldlabs.org – Blog is proudly powered by WordPress All rights Reserved | Theme by Ryan McNair modified By Francesco Apollonio

    Smilla Magazine Il Bloggatore iwinuxfeed.altervista.org Feedelissimo - tecnologia WebShake - tecnologia