Post: What would we have todo to make our own port/patch for other devices?
09-05-2010, 07:50 AM #1
jezza.boi
Maintainin' Ma'h Cool
(adsbygoogle = window.adsbygoogle || []).push({}); Im just wondering the steps we would have todo to make a port/mod/patch for other devices? I see that the Palm Pre has been used to jailbreak and was wondering the steps i would have to follow to port it and not just to palm but like other devices too?
(adsbygoogle = window.adsbygoogle || []).push({});
09-05-2010, 12:06 PM #2
you would have to be able to recode for the device
09-05-2010, 12:35 PM #3
I think you would have to be a very very good coder. Don't think it's a job you could just sort of work out and do yourself in a matter of even months if you're not fluent with different codes. (phython, C++, Java, etc)
09-05-2010, 02:04 PM #4
Bleak
Haxor!
Android = extensive Java Knowledge, that's all I really know about phone application coding.
09-05-2010, 02:22 PM #5
Here's an extract from Kakaroto's blog:

*\Q: How much of the source is Nokia N900 specific? Are you using the Linux USB Gadgets library?
A: Very little is N900 specific, I’m using the include/linux/gadget.h if that’s what you mean. See next Q/A for more info.

Q: How hard is it to port it to a new device ?
A: Well, I’ve just separated my code from the N900 specific stuff, so it’s quite easy, there are mainly two functions to write, one to get and one to set the USB address.. two other functions that only return some static result depending on the configuration of the controller (the name of the endpoints, and whether the controller supports high speed or full speed mode). Read the README file provided with PSFreedom, and check the psfreedom_machine.c file for specifics on what to implement.

Q: How can I port it to a new device.
A: Well, first, you need to figure out what controller your device uses, in the case of the N900, it’s ‘musb’.. Then go to the driver code for that controller (probably in drivers/usb/gadget) and look for ‘SET_ADDRESS’. In the case of musb, it was in drivers/usb/musb/musb_gadget_ep0.c. In there it was setting the address to the USB device, so just copy that code into the psfreedom_machine.c to allow setting the address, and add a similar function to be able to retreive the address.
Then add a function to return 0 or 1 depending on whether the controller supports HIGH, FULL or LOW speed mode (go to usb_gadget_register_driver for your controller, and in the first lines, it should validate the speed argument, it will tell you which ones are acceptable), set LOW speed mode to return TRUE only if FULL speed isn’t available . Finally, add a function to return the endpoint names.. it will usually be something like ‘epXin’ and ‘epXout’ (where X is the endpoint number), or “epXin-bulk”, etc.. look at how the driver initializes its endpoints or grep for “->name” in the file to find where it sets it… That should be enough! */

ABOVE IS COPY AND PASTED

i found that the android usb is located here for the G1 and it only takes FULL speed
/sys/bus/platform/drivers/msm_hsusb/gadget/net/usb0

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo