Discussion

Working kernel config for sunxi-kernel?

18 9016
bock  
Hi,

i received my Banana Pi yesterday and I was not satisfied with the prebuilt images - so I debootstrapped my own debian onto the sd card, but when booting, I (of course) end up without kernel modules.

I wrote down what I did so far in this blog post: http://cbwebs.de/2014/04/install-debian-wheezy-on-your-banana-pi/ - however, when compiling the kernel, I end up having no networking except lo. Does anyone have a working/optimized /proc/config.gz for the sunxi-kernel that he/she could share with me?

Best Regards,

Christian
Reply 1# bock
For Ethernet, please enable GMAC and disable EMAC configuration

bock_  
Thank you for your reply. Adding sunxi_gmac to /etc/modules did the trick.

However it seems to only be working rarely. 2 in 3 times I boot it, I can't use the network even though eth0 exists. ping says "no route to host" (for manual ip config) and dhclient is not able to aquire an IP address.

Any ideas?

kotrs  
I have the same problem...Do you have any solution now ?

Reply 4# kotrs

First you should open gamc and close the emac on kernel menu. And then check the fex or configure has enable the gmac, and has the corrected setting. And then the driver should modified.

kotrs  
When I use uImage from Cubieboard_for_BananaPI image, so the network works good. It means, that i have a mistake in kernel config. I set SUNXI_EMAC=n and SUNXI_GMAC=y, but the network not works. Maybe the problem is in kernel version, I use 3.4.79 instead of 3.4.61, because in 3.4.61 kernel menu I didn't find G2D parameter.

Reply 6# kotrs

Update kernel should do some modifies. Could you post your work here on forum?

Salvo  
I 've had the same problem. Even if I use the script.bin that came with the Lubuntu image. Could you guys (bananapi staff) post exactly what modifications you need to do to make the ethernet work ? I mean , is there any patches to apply to the stock sun-xi kernel? Can you post a howto on how to compile the kernel ourselves? Thanks!

kotrs  
Post Last Edited by kotrs at 2014-5-11 16:31

/*The problem is with DHCP only. When I setup static IP the network works good.</s>*/


Correction:
The problem is not with DHCP only, static IP not works too. Testing is complicated by the fact that the network works only sporadically.

Reply 8# Salvo

The gmac driver from sunxi is modified by ourselves, we will release the patches out together with the newest image.

You have to log in before you can reply Login | Sign Up

Points Rules