hi. i want to compile a kernel with usb host function for my ds
i get kernel source from htcdev and vivo-usb-host.path from here
and made some change, replace "vivo" with "saga" and "VIVO" with "SAGA" in patch file, but when i want to patch it i get some error:
Code:
[email protected]:~/Desktop/yaghoub/saga$ patch -p1 < saga-usb-host.patch
patching file arch/arm/mach-msm/andcommon.c
patching file arch/arm/mach-msm/htc_battery.c
Hunk #2 FAILED at 436.
Hunk #3 FAILED at 483.
Hunk #7 succeeded at 1856 (offset 18 lines).
2 out of 7 hunks FAILED -- saving rejects to file arch/arm/mach-msm/htc_battery.c.rej
patching file arch/arm/mach-msm/include/mach/board.h
Hunk #1 FAILED at 297.
Hunk #2 FAILED at 313.
2 out of 2 hunks FAILED -- saving rejects to file arch/arm/mach-msm/include/mach/board.h.rej
patching file arch/arm/mach-msm/include/mach/msm_hsusb.h
Hunk #1 succeeded at 194 with fuzz 1 (offset 106 lines).
patching file arch/arm/mach-msm/Makefile
Hunk #1 FAILED at 191.
1 out of 1 hunk FAILED -- saving rejects to file arch/arm/mach-msm/Makefile.rej
patching file arch/arm/mm/dma-mapping.c
patching file drivers/i2c/chips/tps65200.c
Hunk #1 succeeded at 400 with fuzz 2 (offset 82 lines).
patching file drivers/input/touchscreen/atmel.c
Hunk #1 succeeded at 1241 with fuzz 1 (offset 284 lines).
Hunk #2 succeeded at 1584 with fuzz 2 (offset 294 lines).
Hunk #3 FAILED at 1565.
1 out of 3 hunks FAILED -- saving rejects to file drivers/input/touchscreen/atmel.c.rej
patching file drivers/net/usb/asix.c
patching file drivers/net/usb/asix.h
patching file drivers/net/usb/axusbnet.c
patching file drivers/net/usb/axusbnet.h
patching file drivers/net/wireless/bcm4329_204/dhd_cdc.c
Hunk #3 succeeded at 1344 (offset 19 lines).
patching file drivers/usb/gadget/android.c
Hunk #2 succeeded at 472 (offset 47 lines).
Hunk #3 succeeded at 483 (offset 47 lines).
Hunk #4 succeeded at 604 (offset 81 lines).
Hunk #5 FAILED at 564.
Hunk #6 succeeded at 691 (offset 115 lines).
1 out of 6 hunks FAILED -- saving rejects to file drivers/usb/gadget/android.c.rej
patching file drivers/usb/gadget/f_mass_storage.c
Hunk #1 succeeded at 425 (offset 8 lines).
Hunk #2 succeeded at 3165 (offset 31 lines).
patching file drivers/usb/gadget/msm72k_udc.c
Hunk #1 succeeded at 167 (offset 6 lines).
Hunk #2 FAILED at 273.
Hunk #3 FAILED at 2748.
2 out of 3 hunks FAILED -- saving rejects to file drivers/usb/gadget/msm72k_udc.c.rej
patching file drivers/usb/host/ehci-hcd.c
patching file drivers/usb/host/ehci-msm7201.c
patching file drivers/usb/host/ehci-msm7201.h
patching file drivers/usb/host/Kconfig
patching file drivers/usb/Kconfig
patching file drivers/video/console/fbcon.c
i hope someone help me with that
and sorry for my eng
O.O i hope some of the awesome developers here help, this feature would be a really nice addition to our arsenal <3 but idk if simply doing that would do it, because:
One does not simply port an awesome feature.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
(one is very bored)
zacthespack said:
(one is very bored)
Click to expand...
Click to collapse
Y U READ MY THOUGHTS!? (the ones i'm too lazy to do lmao)
Bewinxed said:
Y U READ MY THOUGHTS!? (the ones i'm too lazy to do lmao)
Click to expand...
Click to collapse
Or did you read mine
I don't think it's that simple... Need to overcome hardware limitations as the USB needs to supply enough power to the flash drive to be able to R/W data. Unless there is enough juice flowing out the micro-USB port, there isn't much you can do about this... Just my two cents... I could be wrong, but that's what I've gathered from reading about USB host functionality so far...
i'm keep working on it
enigmaamit said:
I don't think it's that simple... Need to overcome hardware limitations as the USB needs to supply enough power to the flash drive to be able to R/W data. Unless there is enough juice flowing out the micro-USB port, there isn't much you can do about this... Just my two cents... I could be wrong, but that's what I've gathered from reading about USB host functionality so far...
Click to expand...
Click to collapse
You can use usb host mode when phone is in dock station , so output power from micro usb is not a problem ... And something like dvb-t stick plugged in DS would be awesome
i tried to apply sven killing patch manually but i get this when i start compiling:
Code:
drivers/usb/host/ehci-hcd.c: In function 'ehci_hcd_init':
drivers/usb/host/ehci-hcd.c:1192: error: 'ehci_debug_root' undeclared (first use in this function)
drivers/usb/host/ehci-hcd.c:1192: error: (Each undeclared identifier is reported only once
drivers/usb/host/ehci-hcd.c:1192: error: for each function it appears in.)
drivers/usb/host/ehci-hcd.c: In function 'ehci_hcd_cleanup':
drivers/usb/host/ehci-hcd.c:1278: error: 'ehci_debug_root' undeclared (first use in this function)
make[3]: *** [drivers/usb/host/ehci-hcd.o] Error 1
make[2]: *** [drivers/usb/host] Error 2
make[2]: *** Waiting for unfinished jobs....
any idea?!
jacob73 said:
make[2]: *** Waiting for unfinished jobs....
[/CODE]
any idea?!
Click to expand...
Click to collapse
Finish the job!
sorry for this nonsense.. Could not stand it
Sent by my fingers to your head.
jacob73 said:
i tried to apply sven killing patch manually but i get this when i start compiling:
Code:
drivers/usb/host/ehci-hcd.c: In function 'ehci_hcd_init':
drivers/usb/host/ehci-hcd.c:1192: error: 'ehci_debug_root' undeclared (first use in this function)
drivers/usb/host/ehci-hcd.c:1192: error: (Each undeclared identifier is reported only once
drivers/usb/host/ehci-hcd.c:1192: error: for each function it appears in.)
drivers/usb/host/ehci-hcd.c: In function 'ehci_hcd_cleanup':
drivers/usb/host/ehci-hcd.c:1278: error: 'ehci_debug_root' undeclared (first use in this function)
make[3]: *** [drivers/usb/host/ehci-hcd.o] Error 1
make[2]: *** [drivers/usb/host] Error 2
make[2]: *** Waiting for unfinished jobs....
any idea?!
Click to expand...
Click to collapse
i fix this, but i still get error:
Code:
CC [M] drivers/usb/host/ehci-hcd.o
cc1: warnings being treated as errors
drivers/usb/host/ehci-dbg.c:44: error: 'dbg_hcs_params' defined but not used
drivers/usb/host/ehci-dbg.c:88: error: 'dbg_hcc_params' defined but not used
drivers/usb/host/ehci-hub.c:109: error: 'ehci_adjust_port_wakeup_flags' defined but not used
drivers/usb/host/ehci-q.c:146: error: 'ehci_clear_tt_buffer_complete' defined but not used
drivers/usb/host/ehci-hcd.c:614: error: 'ehci_run' defined but not used
drivers/usb/host/ehci-hcd.c:1048: error: 'ehci_endpoint_reset' defined but not used
make[3]: *** [drivers/usb/host/ehci-hcd.o] Error 1
make[2]: *** [drivers/usb/host] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2
jacob73 said:
i fix this, but i still get error:
Code:
CC [M] drivers/usb/host/ehci-hcd.o
cc1: warnings being treated as errors
drivers/usb/host/ehci-dbg.c:44: error: 'dbg_hcs_params' defined but not used
drivers/usb/host/ehci-dbg.c:88: error: 'dbg_hcc_params' defined but not used
drivers/usb/host/ehci-hub.c:109: error: 'ehci_adjust_port_wakeup_flags' defined but not used
drivers/usb/host/ehci-q.c:146: error: 'ehci_clear_tt_buffer_complete' defined but not used
drivers/usb/host/ehci-hcd.c:614: error: 'ehci_run' defined but not used
drivers/usb/host/ehci-hcd.c:1048: error: 'ehci_endpoint_reset' defined but not used
make[3]: *** [drivers/usb/host/ehci-hcd.o] Error 1
make[2]: *** [drivers/usb/host] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2
Click to expand...
Click to collapse
Did you see this?
http://forum.xda-developers.com/showthread.php?t=1468531
Anybody can confirm it working? i would advice you to try asking this in another thread that has USB host working on an HTC device, maybe they can help you better?
Bewinxed said:
Did you see this?
http://forum.xda-developers.com/showthread.php?t=1468531
Anybody can confirm it working? i would advice you to try asking this in another thread that has USB host working on an HTC device, maybe they can help you better?
Click to expand...
Click to collapse
it's not working without a kernel with usb host function, we need a usb host enabled kernel for ds before we can use that app
jacob73 said:
i tried to apply sven killing patch manually but i get this when i start compiling:
Code:
drivers/usb/host/ehci-hcd.c: In function 'ehci_hcd_init':
drivers/usb/host/ehci-hcd.c:1192: error: 'ehci_debug_root' undeclared (first use in this function)
drivers/usb/host/ehci-hcd.c:1192: error: (Each undeclared identifier is reported only once
drivers/usb/host/ehci-hcd.c:1192: error: for each function it appears in.)
drivers/usb/host/ehci-hcd.c: In function 'ehci_hcd_cleanup':
drivers/usb/host/ehci-hcd.c:1278: error: 'ehci_debug_root' undeclared (first use in this function)
make[3]: *** [drivers/usb/host/ehci-hcd.o] Error 1
make[2]: *** [drivers/usb/host] Error 2
make[2]: *** Waiting for unfinished jobs....
any idea?!
Click to expand...
Click to collapse
You missed a dependency or a header file I guess.
Gesendet von meinem Desire S mit Tapatalk
Tectas said:
You missed a dependency or a header file I guess.
Gesendet von meinem Desire S mit Tapatalk
Click to expand...
Click to collapse
thanks, when i enable usb debug it fixed, what about this?! :
jacob73 said:
i fix this, but i still get error:
Code:
CC [M] drivers/usb/host/ehci-hcd.o
cc1: warnings being treated as errors
drivers/usb/host/ehci-dbg.c:44: error: 'dbg_hcs_params' defined but not used
drivers/usb/host/ehci-dbg.c:88: error: 'dbg_hcc_params' defined but not used
drivers/usb/host/ehci-hub.c:109: error: 'ehci_adjust_port_wakeup_flags' defined but not used
drivers/usb/host/ehci-q.c:146: error: 'ehci_clear_tt_buffer_complete' defined but not used
drivers/usb/host/ehci-hcd.c:614: error: 'ehci_run' defined but not used
drivers/usb/host/ehci-hcd.c:1048: error: 'ehci_endpoint_reset' defined but not used
make[3]: *** [drivers/usb/host/ehci-hcd.o] Error 1
make[2]: *** [drivers/usb/host] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2
Click to expand...
Click to collapse
Desire HD have same CPU and supporting USB Host. No chance to port USB Host driver from this device?
Skijumper said:
Desire HD have same CPU and supporting USB Host. No chance to port USB Host driver from this device?
Click to expand...
Click to collapse
It can be, but we need to port this to kernel source, because devices are different, and kernel file (zimage) is close,,, dhd have same cpu , but no lcd or touch or other stuff
maybe Lowveld will give us a hand his kernels and roms are great!
i did it
wow
Congratulations mate - hope you can find some use for this and the ability to port it to other ROMs as this could be a useful for future builds.
Related
Try to patch network toplogy from sakindia github.
but got the following error.
In file included from include/linux/topology.h:35:0,
from include/linux/gfp.h:7,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from drivers/net/wireless/bcmdhd/include/linuxver.h:42,
from drivers/net/wireless/bcmdhd/dhd_linux.c:29:
/home/dhruvin/Kernel/3/arch/arm/include/asm/topology.h: In function 'topology_register_notifier':
/home/dhruvin/Kernel/3/arch/arm/include/asm/topology.h:41:53: error: no return statement in function returning non-void [-Werror=return-type]
/home/dhruvin/Kernel/3/arch/arm/include/asm/topology.h: In function 'topology_unregister_notifier':
/home/dhruvin/Kernel/3/arch/arm/include/asm/topology.h:42:55: error: no return statement in function returning non-void [-Werror=return-type]
cc1: all warnings being treated as errors
make[4]: *** [drivers/net/wireless/bcmdhd/dhd_linux.o] Error 1
make[3]: *** [drivers/net/wireless/bcmdhd] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
so i guess its a lack of defining topology_register_notifier.
help me.. which identifier is need to be add in which header file?
I am trying to build OmNIROM 4.4 for the HTC Pyramid/Sensation. Attempting to use sultan's kernel as source but getting errors.
When using 'brunch pyramid' command, it goes fine until it hangs when it reaches the kernel compiling.
The start of the errors are in here: http://pastebin.com/Wvu8bNag
Also, after I control-c it gets this error.
Traceback (most recent call last):
File "/home/jon126/android/omni/kernel/htc/sultan/scripts/gcc-wrapper.py", line 116, in <module>
status = run_gcc()
File "/home/jon126/android/omni/kernel/htc/sultan/scripts/gcc-wrapper.py", line 100, in run_gcc
for line in proc.stderr:
KeyboardInterrupt
make[3]: *** [arch/arm/mm/abort-ev7.o] Interrupt
make[2]: *** [arch/arm/mm] Interrupt
make[1]: *** [sub-make] Interrupt
make: *** [TARGET_KERNEL_BINARIES] Interrupt
And..
Also another error which occurred afterwards was:
Target buildinfo: /home/jon126/android/omni/out/target/product/pyramid/system/build.prop
host Java: dumpkey (/home/jon126/android/omni/out/host/common/obj/JAVA_LIBRARIES/dumpkey_intermediates/classes)
/bin/bash: -c: line 23: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 25: syntax error: unexpected end of file
make: *** [/home/jon126/android/omni/out/target/product/pyramid/system/build.prop] Error 1
make: *** Waiting for unfinished jobs....
Please help.
bump
I m also getting the same issue for the file init.qcom.rc located in out/target/product/a6000/root i guess ur problem must be solved can u guide me through this
It says
Install: /home/adikhadase044/halogen/out/target/product/a6000/root/init.qcom.rc
/bin/bash -c: line 0: unexpected EOF while looking for matching '"
/bin/bash. -c: line 1: syntax error: unexpected end of file
host C++: libart-compiler <= art/compiler/compiled_method.cc
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/home/relocate/cm12.1/out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/relocate/cm12.1'
#### make failed to build some targets (48:23 (mm:ss)) ####
i keep geting this error , can someone help me out with it please?
Thanks in advance
rpdroky said:
host C++: libart-compiler <= art/compiler/compiled_method.cc
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/home/relocate/cm12.1/out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/relocate/cm12.1'
#### make failed to build some targets (48:23 (mm:ss)) ####
i keep geting this error , can someone help me out with it please?
Thanks in advance
Click to expand...
Click to collapse
Not sure, but see if this post helps... http://forum.xda-developers.com/showpost.php?p=58073796&postcount=5
kozmo21 said:
Not sure, but see if this post helps... http://forum.xda-developers.com/showpost.php?p=58073796&postcount=5
Click to expand...
Click to collapse
Thanks for the tip sir , i did manage to build it , the second problem was i didn't add enough memory to the virtual machine
Cheers :highfive:
i want to change the default governor , can someone point me to the files i need to change? Thanks in advance :fingers-crossed:
Hi! I'm Being a Developer(Maybe??)
I'm porting i9300 kernel to SHV-E220S. (KOREAN Galaxy S3 Variety Device)
But... I don't know how to fix this error
CC arch/arm/mach-exynos/sec-switch.o
arch/arm/mach-exynos/sec-switch.c: In function 'max77693_muic_is_mhl_attached':
arch/arm/mach-exynos/sec-switch.c:415:21: error: 'GPIO_MHL_SEL' undeclared (first use in this function)
arch/arm/mach-exynos/sec-switch.c:415:21: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [arch/arm/mach-exynos/sec-switch.o] Error 1
make: *** [arch/arm/mach-exynos] Error 2
Modifying CM12.1 Kernel is so easy to port to my device. But.. Now I can't fix this error..
Just modify some files, It can work..
Hi My Brothers...
I try build CM13.0. But all time error...
frameworks/rs/cpu_ref/rsCpuIntrinsics_neon_Blur.S: Assembler messages:
frameworks/rs/cpu_ref/rsCpuIntrinsics_neon_Blur.S:1503: Error: unexpected end of file in irp or irpc
/tmp/rsCpuIntrinsics_neon_Blur-e31cd5.s: Error: local label `"1" (instance number 2 of a fb label)' is not defined
clang: error: assembler command failed with exit code 1 (use -v to see invocation)
build/core/binary.mk:881: recipe for target '/home/mustachedocto/Cyanogenmod/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libRSCpuRef_intermediates/rsCpuIntrinsics_neon_Blur.o' failed
make: *** [/home/mustachedocto/Cyanogenmod/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libRSCpuRef_intermediates/rsCpuIntrinsics_neon_Blur.o] Error 1
make: *** Waiting for unfinished jobs....
target thumb C++: libRSCpuRef <= frameworks/rs/cpu_ref/rsCpuRuntimeMath.cpp
make: *** wait: No child processes. Stop.
#### make failed to build some targets (25:24 (mm:ss)) ####
Please help my m8 How to fix??