Modify

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#13081 closed defect (fixed)

fixes for ramips non-working usb driver - rt305x

Reported by: sagili.tsp@… Owned by: blogic
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Attitude Adjustment 12.09 Beta
Keywords: ramips usb Cc:

Description

Fixes have been verified on rt3352 board.

There are missing init inside target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c
Attached is the updated file (based on svn r35742)
The following codes need to be added at the very end:

#ifdef CONFIG_USB_EHCI_RT3883
static struct platform_device *rt3xxx_ehci_devices[] initdata = {

&rt3352_ehci_device

};

int init init_rt3xxx_ehci(void)
{

printk("RT3xxx EHCI init.\n");
platform_add_devices(rt3xxx_ehci_devices, ARRAY_SIZE(rt3xxx_ehci_devices));
return 0;

}

device_initcall(init_rt3xxx_ehci);
#endif

#ifdef CONFIG_USB_OHCI_RT3883
static struct platform_device *rt3xxx_ohci_devices[] initdata = {

&rt3352_ohci_device

};

int init init_rt3xxx_ohci(void)
{

printk("RT3xxx OHCI init.\n");
platform_add_devices(rt3xxx_ohci_devices, ARRAY_SIZE(rt3xxx_ohci_devices));
return 0;

}

device_initcall(init_rt3xxx_ohci);
#endif

Attachments (2)

devices.c (10.7 KB) - added by sagili.tsp@… 5 years ago.
target/linux/ramips/files/arch/mips/ralink/rt305x/device.c
bootlog-trunk-r36156 (7.2 KB) - added by sagili.tsp@… 5 years ago.
boot log

Download all attachments as: .zip

Change History (12)

Changed 5 years ago by sagili.tsp@…

target/linux/ramips/files/arch/mips/ralink/rt305x/device.c

comment:1 follow-up: Changed 5 years ago by anonymous

this is superseeded by r34843. please retest with more recent codebase, probably this was fixed already.

comment:2 in reply to: ↑ 1 Changed 5 years ago by sagili.tsp@…

Replying to anonymous:

this is superseeded by r34843. please retest with more recent codebase, probably this was fixed already.

Sorry for the late reply, didn't realize the added comment.
I actually wasted 2 weeks trying to figure out why USB didn't work at all on rt3352. I fetched fresh copies of r35807 of both trunk and AA. Log msg showed appropriate USB modules were loaded, but it failed to detect any USB devices. The USB started to work after I inserted the above codes.

comment:3 Changed 5 years ago by blogic

  • Resolution set to fixed
  • Status changed from new to closed

please retest latest trunk

Changed 5 years ago by sagili.tsp@…

boot log

comment:4 Changed 5 years ago by sagili.tsp@…

  • Resolution fixed deleted
  • Status changed from closed to reopened

Not working!
Attached is the boot log. When inserted, USB flash not detected at all. /dev/sda2 never appear.

comment:5 follow-up: Changed 5 years ago by anonymous

you tested the revision prior to the update that adds the new kernel.

additionally this seems ot be a board not support yet by openwrt ?

[ 0.120000] MIPS: machine is MachineName

comment:6 in reply to: ↑ 5 Changed 5 years ago by sagili.tsp@…

Well, ramips/Makefile specifies LINUX_VERSION:=3.7.10. I wouldn't know if ramips have been properly tested with 3.8.x.

This RT3352 board has 16M flash and 64M RAM. Everything else is normal RT3352-based board.

Replying to anonymous:

you tested the revision prior to the update that adds the new kernel.

additionally this seems ot be a board not support yet by openwrt ?

[ 0.120000] MIPS: machine is MachineName

comment:7 Changed 5 years ago by blogic

  • Owner changed from developers to blogic
  • Status changed from reopened to assigned

comment:8 Changed 5 years ago by blogic

  • Resolution set to fixed
  • Status changed from assigned to closed

please retry current head, this is fixed in v3.8

comment:9 Changed 5 years ago by sagili.tsp@…

Verified working on board similar to DIR-620D1. Thanks!

comment:10 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.