Re: [linux-sunxi] Re: How to test wifi in A20.

2014-01-23 Thread Patrick Wood


On Thursday, January 23, 2014 7:31:22 AM UTC-5, Olliver Schinagl wrote:
>
>
>
> On 23-01-14 13:21, Puneet B wrote: 
> > Hi Patrick, 
> > 
> > Actually i compiled bcmdhd as a driver not as a module. 
> > 
> > because if i compiled as a module and try to insert it 
> > 
> > i am getting fallowing error. 
> > 
> > modprobe: FATAL: Could not load 
> > /lib/modules/3.4.75-1-g9cfbbed/modules.dep: No such file or 
> directory 
> looks like you forgot to run depmod -a or didn't make modules_install 
> > 
> > 
> > Do you think this will be problem? 
> modules.dep informs modprobe about module order and dependencies; so 
> yeah, could be. 
>

There's no reason why this driver won't work when compiled directly into 
the kernel instead of as a module; however, if you don't get your module 
building steps correct now, you'll never be able to build any modules and 
modprobe them.

Pat

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [linux-sunxi] Re: How to test wifi in A20.

2014-01-23 Thread Olliver Schinagl



On 23-01-14 13:21, Puneet B wrote:

Hi Patrick,

Actually i compiled bcmdhd as a driver not as a module.

because if i compiled as a module and try to insert it

i am getting fallowing error.

modprobe: FATAL: Could not load
/lib/modules/3.4.75-1-g9cfbbed/modules.dep: No such file or directory

looks like you forgot to run depmod -a or didn't make modules_install



Do you think this will be problem?
modules.dep informs modprobe about module order and dependencies; so 
yeah, could be.


regards
Punith

--
You received this message because you are subscribed to the Google
Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[linux-sunxi] Re: How to test wifi in A20.

2014-01-23 Thread Puneet B
Hi Patrick,

Actually i compiled bcmdhd as a driver not as a module.

because if i compiled as a module and try to insert it 

i am getting fallowing error.

modprobe: FATAL: Could not load 
/lib/modules/3.4.75-1-g9cfbbed/modules.dep: No such file or directory


Do you think this will be problem?

regards
Punith

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[linux-sunxi] Re: How to test wifi in A20.

2014-01-18 Thread Patrick Wood

On Saturday, January 18, 2014 12:14:39 AM UTC-5, Puneet B wrote:
>
>  Hi Patrick,
>
> Thanks for your reply.
>
> Actually i tried with 3.3 kernel also.
>
> Here is my logo:
>
> 
>

I haven't looked at this device in the 3.3 kernel, but the 3.4 kernel from 
cubietech has these modifications to support the Cubietruck's ap6210: 
https://github.com/cubieboard/linux-sunxi/commit/aff95a2fc4192f72c9ff33abfd17144e25773c5a,
 
and they are known to work in the CT's distros.

>
> Can you tell why down_timeout is not returning 0.
> Here i am attaching schematic of my board.
>

I have this device working on the Cubietruck with the 3.4 kernel.  In order 
to get it to work on a different board, you'll need to set up the 
script.bin to enable the mmc port it's attached to.  On the CT, the chip is 
hooked up to mmc3, so its script.fex looks like this:

[mmc3_para]
sdc_used = 1
sdc_detmode = 4
sdc_buswidth = 4
sdc_cmd = port:PI04<2><1><2>
sdc_clk = port:PI05<2><1><2>
sdc_d0 = port:PI06<2><1><2>
sdc_d1 = port:PI07<2><1><2>
sdc_d2 = port:PI08<2><1><2>
sdc_d3 = port:PI09<2><1><2>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 1
sdc_regulator = "none"

You'll also need to specify the gpio that's used for enabling it.  On the 
CT, it's PH09, and the fex entry looks like this:

ap6xxx_wl_regon = port:PH09<1><0>

I'm afraid you're going to have to read the schematics yourself or get 
support for it from hummingbird.


> Should i use 3.4  from 
> https://github.com/cubieboard/linux-sunxi
>

>
> or 3.3 kernel for problem solving.
>
 
If you're building a kernel for a linux distro and not android, the 3.4 
kernel is a better choice, since many people have the wifi working now with 
this kernel and different distros, and we're not really keen on answering 
questions about the 3.3 kernel anymore.  If you're building a kernel for 
android, I don't know, 'cause I don't build android. 

>
Pat


> Kindly tell me how to solve the wifi issue.
>
> Regards
> Punith
>
>
>  
>
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[linux-sunxi] Re: How to test wifi in A20.

2014-01-17 Thread Patrick Wood

On Friday, January 17, 2014 2:54:45 AM UTC-5, Puneet B wrote:
>
> Hi,
>
> While tracing problem i found below issue.
>
> i am getting error in log as:
>
> [4.780261] [dhd_module_init] get wl_host_wake gpio failed
>
> The code is from here:./
>
> vim linux-sunxi/drivers/net/wireless/bcmdhd/dhd_linux.c +4396
>
> if (gpio_request(WL_HOST_WAKE_DEF_GPIO, "wl_host_wake")) {
> pr_warning("[%s] get wl_host_wake gpio failed\n", 
> __FUNCTION__);
> wl_host_wake = -1;
> return -1;
> }
>
> Which means  some gpio error:
>
> In script for wifi:
> ap6xxx_wl_regon  = port:PH09<1><0>
> ap6xxx_wl_host_wake  = port:PH10<0><0>
> ap6xxx_bt_regon  = port:PB05<1><0>
> ap6xxx_bt_wake   = port:PI20<1><0>
> ap6xxx_bt_host_wake  = port:PI21<0><0>
> ap6xxx_lpo  = port:PI12<4>
>
>
> For ap6xxx_wl_host_wake  , i check by making high and low but error is 
> same.
>
> Can any one tell why that error is, Is it  because of some gpio pins or 
> something else went wrong?
>
> Regards
> Punith
>
> The problem is that the stock bcmdhd driver doesn't know how to toggle the 
allwinner gpios to turn on the chip.  Cubietech made some changes for that 
to  drivers/net/wireless/bcmdhd/dhd_custom_gpio.c, which is meant by 
Broadcom to be customized to different boards (thus the "custom" in the 
name).  It could all be abstracted pretty easily in the 3.4 linux-sunxi 
kernel, except for a few new calls to sunximmc_rescan_card made after power 
off and power on (probably not needed after the power off).

The mainline kernel abstracts this stuff much better than 3.4, so 
backporting might not be so easy.

Pat

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [linux-sunxi] Re: How to test wifi in A20.

2014-01-17 Thread Olliver Schinagl

Hi Puneet,

bcmdhd is currently not working in the sunxi-3.4 kernel; this is known. 
We will try to backport the 3.14 patches to see if that makes it work.


The cubieboard kernel's patched some stuff in but I think there's a bug 
somewhere as you mention with the gpio's. I did see this document 
somewhere (mailing list or some wiki; i forgot)


Oliver
On 17-01-14 08:54, Puneet B wrote:

Hi,

While tracing problem i found below issue.

i am getting error in log as:

[4.780261] [dhd_module_init] get wl_host_wake gpio failed

The code is from here:./

vim linux-sunxi/drivers/net/wireless/bcmdhd/dhd_linux.c +4396

 if (gpio_request(WL_HOST_WAKE_DEF_GPIO, "wl_host_wake")) {
 pr_warning("[%s] get wl_host_wake gpio failed\n",
__FUNCTION__);
 wl_host_wake = -1;
 return -1;
 }

Which means  some gpio error:

In script for wifi:
ap6xxx_wl_regon  = port:PH09<1><0>
ap6xxx_wl_host_wake  = port:PH10<0><0>
ap6xxx_bt_regon  = port:PB05<1><0>
ap6xxx_bt_wake   = port:PI20<1><0>
ap6xxx_bt_host_wake  = port:PI21<0><0>
ap6xxx_lpo  = port:PI12<4>


For ap6xxx_wl_host_wake  , i check by making high and low but error is same.

Can any one tell why that error is, Is it  because of some gpio pins or
something else went wrong?

Regards
Punith


--
You received this message because you are subscribed to the Google
Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[linux-sunxi] Re: How to test wifi in A20.

2014-01-16 Thread Puneet B
Hi,

While tracing problem i found below issue.

i am getting error in log as:

[4.780261] [dhd_module_init] get wl_host_wake gpio failed

The code is from here:./

vim linux-sunxi/drivers/net/wireless/bcmdhd/dhd_linux.c +4396

if (gpio_request(WL_HOST_WAKE_DEF_GPIO, "wl_host_wake")) {
pr_warning("[%s] get wl_host_wake gpio failed\n", 
__FUNCTION__);
wl_host_wake = -1;
return -1;
}

Which means  some gpio error:

In script for wifi:
ap6xxx_wl_regon  = port:PH09<1><0>
ap6xxx_wl_host_wake  = port:PH10<0><0>
ap6xxx_bt_regon  = port:PB05<1><0>
ap6xxx_bt_wake   = port:PI20<1><0>
ap6xxx_bt_host_wake  = port:PI21<0><0>
ap6xxx_lpo  = port:PI12<4>


For ap6xxx_wl_host_wake  , i check by making high and low but error is same.

Can any one tell why that error is, Is it  because of some gpio pins or 
something else went wrong?

Regards
Punith


-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[linux-sunxi] Re: How to test wifi in A20.

2014-01-15 Thread Puneet B
 Hi

My wifi chip ap6210 is not working.

Here My log regarding wifi:


 wakeup src cnt is : 0. 
[0.373732] [wifi]: select wifi: ap6210 !!
[0.374115] [ap6xxx]: module power name 
[0.374134] [ap6xxx]: ap6xxx module power set by axp.
[0.374151] [ap6xxx]: get power regulator failed.
[0.374182] [wifi_pm]: wifi gpio init is OK !!
[3.230488] [ap6xxx]: succeed to set gpio ap6xxx_wl_regon to 1 !
[3.335739] [ap6xxx]: sdio wifi power state: on
[3.347909] === WLAN placed in POWER ON 
[5.344407] failed to power up wifi chip puneet , retry again (4 left) **

[5.362732] [ap6xxx]: succeed to set gpio ap6xxx_wl_regon to 0 !
[5.472678] [ap6xxx]: sdio wifi power state: off
[5.477309] sw_mci_rescan_card
[5.480381] === WLAN placed in POWER OFF 
[5.508189] [ap6xxx]: succeed to set gpio ap6xxx_wl_regon to 1 !
[5.514829] [mmc-msg] sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 
1 timing LEGACY(SDR12) dt B
[5.613428] [ap6xxx]: sdio wifi power state: on
[5.617975] [dhd_customer_gpio_wlan_ctrl 175]
[5.622329] sw_mci_rescan_card
[5.625429] [mmc-msg] sdc0 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 
timing LEGACY(SDR12) dt B
[5.625607] === WLAN placed in POWER ON 
[7.624396] failed to power up wifi chip puneet , retry again (3 left) **
[7.755725] === WLAN placed in POWER OFF 

[7.770976] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to 
turn on WL_REG_ON
[7.779202] [dhd_customer_gpio_wlan_ctrl 173]
[7.783567] [ap6xxx]: succeed to set gpio ap6xxx_wl_regon to 1 !
[7.907814] [ap6xxx]: sdio wifi power state: on
[7.912346] [dhd_customer_gpio_wlan_ctrl 175]
[7.919968] === WLAN placed in POWER ON 
[9.924386] failed to power up wifi chip puneet , retry again (2 left) **
[9.924393] 
[9.934429] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to 
turn off WL_REG_ON
[9.942702] [ap6xxx]: succeed to set gpio ap6xxx_wl_regon to 0 !
[   10.047959] [ap6xxx]: sdio wifi power state: off
[   10.052580] sw_mci_rescan_card
[   10.055683] === WLAN placed in POWER OFF 

[   10.070930] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to 
turn on WL_REG_ON
[   10.079160] [dhd_customer_gpio_wlan_ctrl 173]
[   10.083525] [ap6xxx]: succeed to set gpio ap6xxx_wl_regon to 1 !
[   10.090003] [mmc-msg] sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 
1 timing LEGACY(SDR12) dt B
[   10.197856] [ap6xxx]: sdio wifi power state: on
[   10.202394] [dhd_customer_gpio_wlan_ctrl 175]
[   10.206764] sw_mci_rescan_card
[   10.209857] [mmc-msg] sdc0 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 
timing LEGACY(SDR12) dt B
[   10.210031] === WLAN placed in POWER ON 
[   12.204443] failed to power up wifi chip puneet , retry again (1 left) **
[   12.204450] [   12.339882] === WLAN placed in POWER OFF 
[   12.354794] failed to power up wifi chip puneet, max retry reached, 
exits **

I used sane script what you shared, with that script my ethernet is working 
fine, and i used same source code what hummingbird people shared with me.

Can you share what you are getting on you console regarding wifi. 

Regards
Punith

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.