iMX233-OLinuXino ARCH Linux image with RTL8188 WI

Started by Mr.D, August 26, 2013, 11:32:30 AM

Previous topic - Next topic

Mr.D

Hallo,

I've burned image with on my OlinuXiono Miro (ArchLinux 2.6.35 +Wifi +i2c..). Wanted to test with OWFS , but i2c seems to not work , also check with i2cdetect -r 0, but I don't see one the SCOPE any signal CLK generated by IMX233 ?

Kean

You  may need to adjust the onboard SMD jumpers to change between software and hardware I2C pinouts.
Be very careful if you do this, because it is very easy to cut other traces by accident.

Kean

Mr.D

Hi,

As I remember SMD jumpers  for i2c are default in HW mode so it should work ...

Fadil Berisha

Quote from: Mr.D on August 26, 2013, 05:20:01 PM
Hi,

As I remember SMD jumpers  for i2c are default in HW mode so it should work ...
Both olinuxino-maxi revB1 and olinuxino-mini revC have i2c jumpers set on default soft_scl & soft_sda. What model and revision is your card?

Mr.D

Yes You're right ( rev B , and it look like default is i2c_SW) , I will change this and check once again
thx

Mr.D

OK i2c works! But I have problem with USB RTL8188 module. Using kernel 2.6 it works . Also I have fallowed the instruction (https://github.com/koliqi/imx23-olinuxino) , for patching the kernel 3.7.1 , but after plugging USB dongle , there is no interface wlan0 ( its seen as usb1.1 device) . Is there anything more that I'm missing, then patching kernel  patch -p1 < ../0001-rtl8192cu.patch  .... I cannot make it work.

Fadil Berisha

#6
Quote from: Mr.D on August 31, 2013, 11:12:57 AM
OK i2c works! But I have problem with USB RTL8188 module. Using kernel 2.6 it works . Also I have fallowed the instruction (https://github.com/koliqi/imx23-olinuxino) , for patching the kernel 3.7.1 , but after plugging USB dongle , there is no interface wlan0 ( its seen as usb1.1 device) . Is there anything more that I'm missing, then patching kernel  patch -p1 < ../0001-rtl8192cu.patch  .... I cannot make it work.

Hi Mr.D
I published that patch  for kernel 3.7.1. If you follow instructions at https://github.com/koliqi/imx23-olinuxino or http://www.g-lab.ca - you will get working USB RTL8188 on kernel 3.7.1. After login, do ifconfig to see what is your wireless interface.

Now, I am preparing instructions for kernel 3.10.X. In that build are included latest patches for i2c and audio. Patch for USB RTL8188 (kernel 3.7.1) does not apply directly to 3.10.x (nor 2.6.x) so need to be reworked. That is in my to do list.

You can follow progress on my web blog page www.g-lab.ca

Fadil Berisha


Mr.D

Quote from: Fadil Berisha on August 31, 2013, 04:34:53 PM
Quote from: Mr.D on August 31, 2013, 11:12:57 AM
OK i2c works! But I have problem with USB RTL8188 module. Using kernel 2.6 it works . Also I have fallowed the instruction (https://github.com/koliqi/imx23-olinuxino) , for patching the kernel 3.7.1 , but after plugging USB dongle , there is no interface wlan0 ( its seen as usb1.1 device) . Is there anything more that I'm missing, then patching kernel  patch -p1 < ../0001-rtl8192cu.patch  .... I cannot make it work.

Hi Mr.D
I published that patch  for kernel 3.7.1. If you follow instructions at https://github.com/koliqi/imx23-olinuxino or http://www.g-lab.ca - you will get working USB RTL8188 on kernel 3.7.1. After login, do ifconfig to see what is your wireless interface.

Now, I am preparing instructions for kernel 3.10.X. In that build are included latest patches for i2c and audio. Patch for USB RTL8188 (kernel 3.7.1) does not apply directly to 3.10.x (nor 2.6.x) so need to be reworked. That is in my to do list.

You can follow progress on my web blog page www.g-lab.ca

Fadil Berisha

I have followed Yours suggestion, but after changing kernel from 2.6.35 to 3.7.1 and leaving the same rootfs, after plug-in USB WLAN adapter there is no wlan0 interface ( I think that driver doesn't recognise this USB as WLAN Adapter any more )

Fadil Berisha

Hi Mr.D

Here is link to compiled kernel image. Get it with wget:
wget https://www.dropbox.com/s/rfnmzdbcu21pfgf/sd_mmc_bootstream.raw

Copy kernel in your SD card (adjust /dev/sdb1 as per your system):
sudo dd if=sd_mmc_bootstream.raw of=/dev/sdb1 

Boot your olinuxino system. Here is end of my boot log on olinuxino-maxi with Yocto rootfs.

Yocto (Built by Poky 7.0.1) 1.2.1 imx233-olinuxino-maxi ttyAMA0

imx233-olinuxino-maxi login: [   29.380000] rtw_set_ps_mode(): Enter 802.11 power save mode...
[   29.380000] rtl8192c_set_FwPwrMode_cmd(): Mode = 1, SmartPS = 2

Yocto (Built by Poky 7.0.1) 1.2.1 imx233-olinuxino-maxi ttyAMA0

imx233-olinuxino-maxi login: root
root@imx233-olinuxino-maxi:~# iwconfig
lo        no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:"home"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:26:5A:CF:57:34   
          Bit Rate:54 Mb/s   Sensitivity:0/0 
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:746F-6269-35   Security mode:restricted
          Power Management:off
          Link Quality=100/100  Signal level=49/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

eth0      no wireless extensions.

root@imx233-olinuxino-maxi:~#


You can get same kernel image following instructions from https://github.com/koliqi/imx23-olinuxino or from  http://g-lab.ca . This is verified multi times on this forum.