Announcement
Collapse
No announcement yet.
Announcement
Collapse
No announcement yet.
USB2.0 - LAN Adapter HG20F9 - Driver?
Collapse
X
-
Hi all! got hg20f9 usb ethernet dongle(vid 066b pid 20f9) not working with my old mk808/rk3066(need to change wifi to ethernet), so here is the interesting situation. No way to load alternate asix driver (or HG20F9.ko) module while kernel already load asix internal driver at startup. So, when you try to load hg20f9.ko or asix.ko it writes that device is busy now...
When you try to awake up asix driver with registering new usb net id (something like echo "0668 20f9" > /sys/bus/usb/drivers/asix/new_id) - dmesg tells that this usb device is blacklisted by asix
It happens because this device uses chip ASIX AX88772B but has changed to noname pid and vid (vid 066b pid 20f9 instead of original 0x0b95, 0x7E2B). So asix kernel driver process only known pid/vids and our device is going down...
So you need only to recomplie kernel asix driver (asix.ko) - for ex. /rk3x_kernel_3.0.36/drivers/net/usb/asix.c from github omegamoon. I use to add these lines to asix.c
}, {
// ASIX AX88772B 10/100
USB_DEVICE (0x0b95, 0x7E2B),
.driver_info = (unsigned long) &ax88772b_info,
},
{
// HG20F9 10/100
USB_DEVICE (0x066b, 0x20f9),
.driver_info = (unsigned long) &ax88772b_info,
},
{ }, // END
and then compile kernel with build_mk808_omegamoon and flash it with flash_mk808_omegamoon scripts from omegamoon kernel repos.
So after flash - usb card is working!!! but another problems will be going - like no sound and unstable work.
So i decide to change directly binary kernel file from freaktab 1.5a kernel.img and then flash it
First, i got utility to unsign kernel.img - look here, http://4pda.ru/forum/lofiversion/index.php?t457790.html, it calls imgRePackerRK_105
then make command (Windows7 environment)
imgRePackerRK.exe kernel.img
it makes two files
kernel.img.cfg
kernel.img.unkrnl
open kernel.img.unkrnl in winhex - and change hex string 95082b7e with another 6806f920
save file
then sign kernel
imgRePackerRK.exe kernel.img.cfg
and flash with rkflashtool - only with checkbox 0x00004000 address (kernel) and place new kernel.img to it rom folder.
or flash in linux command like
sudo ./rkflashtool w 0x00004000 0x00004000 < ./kernel.img
sudo ./rkflashtool b
if you want modified kernel (i use it in my device) - it placed here https://drive.google.com/file/d/0B8g...ew?usp=sharing
after that - usb card work fine!!!Last edited by freegate78; 21 August 2015, 09:10.
Comment
What's Going On
Collapse
There are currently 4776 users online. 3 members and 4773 guests.
Most users ever online was 37,478 at 04:14 on 26 June 2024.
Comment