Hackberry wifi not working after upgrade to kernel 3.4.79-3

This forum is for supported devices using an ARMv7 Allwinner SoC.

Re: Hackberry wifi not working after upgrade to kernel 3.4.7

Postby thecom » Sat Jul 19, 2014 12:12 pm

Thanks WarheadsSE and PLyttle, I will buy a cable and report back. This may take a while, because the fun project for which I need the hackberry starts in a few days. For now, I will use a cubox instead of the hackberry. But once things are running, I will try to get the hackberry up to speed and replace the cubox.
thecom
 
Posts: 7
Joined: Wed Jul 09, 2014 4:39 pm

Re: Hackberry wifi not working after upgrade to kernel 3.4.7

Postby Sinck » Wed Jul 30, 2014 7:57 pm

sorry thecom, I didn't realize this was still active (I didn't get updates because of my forum preferences).

I will sit down this weekend and re-image my hackberry (saving my current sd card, just in case), to see if I can get back to working condition from scratch. I was also too excited to have wifi working that I didn't notice that usb still had no power. I'll see if I can get that working too. I have seen some kernel changes to force it on, but I thought that was in the latest kernel already. The kernel is a little out of my comfort zone, but I'll see what happens...

-Sinck
Sinck
 
Posts: 8
Joined: Sun Mar 30, 2014 3:33 am

Re: Hackberry wifi not working after upgrade to kernel 3.4.7

Postby Sinck » Fri Aug 01, 2014 4:39 pm

ok. I reproduced the kernel panic:

I imaged my sd card following these instructions:
http://archlinuxarm.org/platforms/armv7 ... /hackberry

I used the hackberry.fex file from my earlier post to create a hackberry.bin (which is an acceptable name btw), and put that on the boot partition.

I connected the network via eithernet, so I could update to the latest greatest. After updating (pacman -Syyu) you have to copy uImage from /boot/uImage to the boot partition (anyone know if that's suppose to be manual?)

I installed wifi-menu, (which requires dialog and wpa_supplicant). When I ran it, kernel panic. This is due to the rtl8192cu driver.

I created a file in /etc/modprobe.d/wifi.conf with "blacklist rtl8192cu" (without quotes) in it to stop the broken driver from loading. Then wifi-menu worked (it loads the 8192cu driver instead).

I did have a bad SD card, so I had to run things multiple times (like wifi-menu would randomly fail). Let me know if you have any issues.
Sinck
 
Posts: 8
Joined: Sun Mar 30, 2014 3:33 am

Re: Hackberry wifi not working after upgrade to kernel 3.4.7

Postby Sinck » Fri Aug 01, 2014 4:49 pm

In my saved image, I also have "8192cu" in the /etc/modprobe.d/wifi.conf file (on its own line) to force the loading of the good driver. not sure if its necessary, but may help getting wifi to load on boot.
Sinck
 
Posts: 8
Joined: Sun Mar 30, 2014 3:33 am

Re: Hackberry wifi not working after upgrade to kernel 3.4.7

Postby Sinck » Wed Aug 06, 2014 8:06 am

I got the usb to be powered after applying this patch and reconfiguring the kernel.

https://groups.google.com/forum/#!topic ... R5S2okoZU4

I reconfigured the kernel to make usb0 host only. I don't think I followed the correct procedure to recompile the kernel though. Anyone know of a way that pulls in the hackberry specific config and patches? I'm not sure what I did was legit.
Sinck
 
Posts: 8
Joined: Sun Mar 30, 2014 3:33 am

Re: Hackberry wifi not working after upgrade to kernel 3.4.7

Postby Otamay » Wed Sep 17, 2014 4:05 am

Hello.

First of all, thank you all for your answers on this thread, this post is only a recopilation of what many of you have found.

I'm using a hackberry a10 with archlinux, and after a massive upgrade I encountered this problem, kernel linux-sun4i-3.4.90-2 . In resuming, this is what I've done to restore power to USB devices:

1.- Get linux-sun4i PKGBUILD sources from archlinuxarm and put them under /var/abs/local/linux-sun4i/ . URL: https://github.com/archlinuxarm/PKGBUILDs/tree/master/core/linux-sun4i .
2.- Put the following files in the same directory. usb_power_1.patch and usb_power_2.patch are the patches that were commented before in this thread through github. PKGBUILD includes those patches and config is the kernel configuration where USB HOST ONLY is enabled. Nothing more.

usb_power_1.patch : http://pastebin.com/Vf1H7qzE
usb_power_2.patch : http://pastebin.com/DkSxwa5u
PKGBUILD: http://pastebin.com/BzRuJght
config: http://pastebin.com/YgQjgpuW
3.- makepkg -s (it might take a while)
4.- pacman -U linux-sun4i-3.4.90-3-armv7h.pkg.tar.xz
5.- compile https://github.com/linux-sunxi/sunxi-boards/blob/master/sys_config/a10/hackberry.fex to hackberry.bin ( fex2bin hackberry.fex hackberry.bin ) and put the resulting file on your boot partition.

Here are my linux-sun4i binaries for those who dont want to wait to the compiling process or are just lazy.
linux-sun4i-3.4.90-3-armv7h.pkg.tar.xz : http://www.4shared.com/file/olhFpovyba/linux-sun4i-3490-3-armv7hpkgta.html
linux-sun4i-headers-3.4.90-3-armv7h.pkg.tar.xz :http://www.4shared.com/file/_B-A6leZba/linux-sun4i-headers-3490-3-arm.html
Otamay
 
Posts: 1
Joined: Wed Sep 17, 2014 3:16 am

Previous

Return to Allwinner

Who is online

Users browsing this forum: No registered users and 6 guests