android
  #1  
Old 07-01-2012, 04:20 AM
Lorenz092 Lorenz092 is offline
Member
 
Join Date: Jan 2011
Location: Italy
Posts: 449
Default [Project] USB host - connect a USB dongle or USB hdd to our R0!

Hey all! At the moment I don't have time to follow any developement, but it has been a while that I had this idea: why not trying connecting an external hard drive to the R0?

1)First of all, I still don't know exactly if the hardware supports this, but it should.

2) Kernel cannot be fully recompiled due to strange bugs. Well, in the last open source package samsung has released also its own crosscompiler so it's worth trying!

3) The problem above should not be a problem: linux has driver modules

4) Of course this is something like "just for fun"; you won't be able to carry around a pen drive with R0 since power is missing (well someone can invent an external 5 V power source )

5) Who's in? As I told you I'm still a little busy but the idea sounds fun for me hihi

6) Don't forget we need also developers for rockbox, fine tunings are missing!

7) GO R0, GO!!!!
__________________
Check out my modded firmware both for YP-R0 and YP-R1!!!
** DONATE ** -> https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K658CHJKX2X8C
NOTE: if you want to donate for Rockbox itself and not my work, go to their website!!
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 07-01-2012, 05:31 AM
VanniX VanniX is offline
Member
 
Join Date: Nov 2011
Location: Italy - Clowns country
Posts: 120
Default

HW probably support this mode, because during boot (with R0 connected to a pc) it switch mode in File-backed Storage Gadget.


Code:
ARC USBOTG Device Controller driver (1 August 2005)                             
before change USB_PHY_CTR_FUNC2 = 0x541402                                      
USB_PHY_CTR_FUNC2 = 0x441402                                                    
gadgetfs: USB Gadget filesystem, version 24 Aug 2004                            
 gadget: File-backed Storage Gadget, version: 7 August 2007
Reply With Quote

  #3  
Old 07-01-2012, 05:41 AM
Lorenz092 Lorenz092 is offline
Member
 
Join Date: Jan 2011
Location: Italy
Posts: 449
Default

Quote:
Originally Posted by VanniX View Post
HW probably support this mode, because during boot (with R0 connected to a pc) it switch mode in File-backed Storage Gadget.


Code:
ARC USBOTG Device Controller driver (1 August 2005)                             
before change USB_PHY_CTR_FUNC2 = 0x541402                                      
USB_PHY_CTR_FUNC2 = 0x441402                                                    
gadgetfs: USB Gadget filesystem, version 24 Aug 2004                            
 gadget: File-backed Storage Gadget, version: 7 August 2007
Great! UART is magical now
Some more info there:
https://support.bluetechnix.at/wiki/...r_%28i.MX31%29
__________________
Check out my modded firmware both for YP-R0 and YP-R1!!!
** DONATE ** -> https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K658CHJKX2X8C
NOTE: if you want to donate for Rockbox itself and not my work, go to their website!!
Reply With Quote

  #4  
Old 07-01-2012, 06:01 AM
VanniX VanniX is offline
Member
 
Join Date: Nov 2011
Location: Italy - Clowns country
Posts: 120
Default

Great, now we should try to recompile kernel (now it's easier to debug with uart port and easy to debrick with flash tool) for enabling that mode and include some important modules (such as support for flash drive, ethernet, etc..).
Now i have to find a way to stabilize the serial connector and then i can start hacking!
Reply With Quote

  #5  
Old 07-01-2012, 06:21 AM
Lorenz092 Lorenz092 is offline
Member
 
Join Date: Jan 2011
Location: Italy
Posts: 449
Default

Quote:
Originally Posted by VanniX View Post
Now i have to find a way to stabilize the serial connector and then i can start hacking!
Great! You will support me with the HW part and I will advise you about software, great combo
__________________
Check out my modded firmware both for YP-R0 and YP-R1!!!
** DONATE ** -> https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K658CHJKX2X8C
NOTE: if you want to donate for Rockbox itself and not my work, go to their website!!
Reply With Quote

  #6  
Old 09-09-2012, 06:57 PM
VanniX VanniX is offline
Member
 
Join Date: Nov 2011
Location: Italy - Clowns country
Posts: 120
Default

I'm ready to start with this project...
Reply With Quote

  #7  
Old 10-15-2012, 07:17 AM
VanniX VanniX is offline
Member
 
Join Date: Nov 2011
Location: Italy - Clowns country
Posts: 120
Default

All host modules with samsung source don't work. Unknown symbol on all USB functions...
Code:
root@YP-R0 /mnt/mmc$ insmod ehci-hcd.ko
[  606.540000] ehci_hcd: Unknown symbol usb_hcd_platform_shutdown
[  606.550000] ehci_hcd: Unknown symbol usb_free_urb
[  606.550000] ehci_hcd: Unknown symbol usb_hub_tt_clear_buffer
[  606.560000] ehci_hcd: Unknown symbol usb_hcd_resume_root_hub
[  606.570000] ehci_hcd: Unknown symbol usb_hcd_unlink_urb_from_ep
[  606.580000] ehci_hcd: Unknown symbol usb_disabled
[  606.580000] ehci_hcd: Unknown symbol usb_hcd_check_unlink_urb
[  606.590000] ehci_hcd: Unknown symbol usb_calc_bus_time
[  606.600000] ehci_hcd: Unknown symbol ehci_cf_port_reset_rwsem
[  606.600000] ehci_hcd: Unknown symbol usb_hcd_link_urb_to_ep
[  606.610000] ehci_hcd: Unknown symbol usb_put_hcd
[  606.610000] ehci_hcd: Unknown symbol usb_get_urb
[  606.620000] ehci_hcd: Unknown symbol usb_hcd_giveback_urb
[  606.620000] ehci_hcd: Unknown symbol usb_hcd_poll_rh_status
[  606.630000] ehci_hcd: Unknown symbol usb_create_hcd
[  606.640000] ehci_hcd: Unknown symbol usb_remove_hcd
[  606.640000] ehci_hcd: Unknown symbol usb_add_hcd
insmod: cannot insert '/lib/modules/2.6.24-445-g48ec830_VanniX-Mod_YP-R0-TermROM-g5beb98d0-dirty/kernel/drivers/usb/host/ehci-hcd.ko': Unknown syy
root@YP-R0 /mnt/mmc$
Reply With Quote

  #8  
Old 10-15-2012, 02:12 PM
Lorenz092 Lorenz092 is offline
Member
 
Join Date: Jan 2011
Location: Italy
Posts: 449
Default

Shit! In the meantime I tested OTG on my nexus
Anyway I'm not sure why doesn't give any problems during compile time uhm uhm, is it possible to try enclosing the module in the kernel directly (i.e. no module)?
What should happen in this case?
In case is worth reading and getting somewhere source of either samsung kernels for other devices or better from other imx processors with otg
__________________
Check out my modded firmware both for YP-R0 and YP-R1!!!
** DONATE ** -> https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K658CHJKX2X8C
NOTE: if you want to donate for Rockbox itself and not my work, go to their website!!
Reply With Quote

  #9  
Old 10-15-2012, 05:30 PM
VanniX VanniX is offline
Member
 
Join Date: Nov 2011
Location: Italy - Clowns country
Posts: 120
Default

Yes, it could also be a problem of dependencies, i haven't added that module in modules.dep.
Tomorrow i'll try to load all other usb modules :P

Of course try other similar source could be a good idea, however it's not easy to get them work..
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 09:18 PM.