Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP6210 GPIO problems? #2

Closed
Phedre opened this issue Jun 13, 2014 · 5 comments
Closed

AP6210 GPIO problems? #2

Phedre opened this issue Jun 13, 2014 · 5 comments

Comments

@Phedre
Copy link

Phedre commented Jun 13, 2014

Hello, I've tried compiling a 3.4.90+ kernel with the patches included on this page: http://linux-sunxi.org/Cubietruck/AP6210

The kernel boots fine, all the modules work fine... except for the AP6210 module.

When I try to modprobe it, I get this error:

~ # modprobe -v ap6210
insmod /lib/modules/3.4.90+/kernel/drivers/net/wireless/ap6210/ap6210.ko
ERROR: could not insert 'ap6210': Operation not permitted

Here is what dmesg has to say about the problem: http://pastie.org/pastes/9287752/text?key=dx5htwslbdyipajy5mbfqa

I see some interesting lines in that dmesg log:

[   56.313236] [ap6210] select wifi ap6210
[   56.324039] [ap6210] Initializing ap6210.
[   56.337317] [ap6210] platform device registered successfully.
[   56.352059] [ap6210] Using ap6210 configuration.
[   56.363222] [ap6210] [dhd_module_init] get wl_host_wake gpio failed
[   58.082059] [ap6210] select wifi ap6210

Maybe it's a GPIO error? My script.bin looks fine (it's the default one), so I'm not sure what it could be.

More information here: http://www.cubieforums.com/index.php?topic=2668.msg17482#msg17482

@EddyBeaupre
Copy link
Collaborator

Increase the kernel log verbosity to 7, you will see where it fail exactly, it´s probably something with your fex, i had issues on the CubieTruck with the default fex ( not with wifi, but general instabilities )

@EddyBeaupre
Copy link
Collaborator

@Phedre
Copy link
Author

Phedre commented Jun 14, 2014

I'm getting the exact same error with that fex and a new barebone debian installation, I'll increase the verbosity and see if anything interesting shows up

@EddyBeaupre
Copy link
Collaborator

Make sure you have gpio_sunxi loaded, here's what i generally use on the CubieTruck.

gpio_sunxi
pwm_sunxi
sunxi_gmac
disp
lcd
hdmi
ump
mali
sunxi_cedar_mod
ap6210 op_mode=2

@benThijssen
Copy link

When issuing a modprobe I got an "Operation not permitted" message when trying to modprobe modules that are 'dirty'. After updating the GIT repository and recompiling the kernel and modules everything worked out of the box. But I like to add a note: I started with a Linaro image 3.4.61 using bcmdhd. It had no difficulties with the ap6210 wireless chip. But when compiling my own kernel sunxi 3.4.61v103 I did not get the wireless up and running without the ap6210 patches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants