Hi all,
I'm trying to build the tiwlan_drv kernel module for my Droid1. I built the kernel, and now I am trying to build this module. However, I get several warnings and errors:
Code:
LD [M] /home/gnychis/Documents/android/ti/wilink_6_1/stad/build/linux/tiwlan_drv.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: "hPlatform_DevicePowerOn" [/home/gnychis/Documents/android/ti/wilink_6_1/stad/build/linux/tiwlan_drv.ko] undefined!
I'm not sure why I get that undefined error when I just built the core of the module.
Code:
make[2]: Entering directory `/home/gnychis/Documents/android/omap'
CC [M] /home/gnychis/Documents/android/ti/wilink_6_1/platforms/os/linux/build/../../../../platforms/os/linux/src/WlanDrvIf.o
/home/gnychis/Documents/android/ti/wilink_6_1/platforms/os/linux/build/../../../../platforms/os/linux/src/WlanDrvIf.c: In function 'wlanDrvIf_Create':
/home/gnychis/Documents/android/ti/wilink_6_1/platforms/os/linux/build/../../../../platforms/os/linux/src/WlanDrvIf.c:855: error: implicit declaration of function 'create_freezeable_workqueue'
/home/gnychis/Documents/android/ti/wilink_6_1/platforms/os/linux/build/../../../../platforms/os/linux/src/WlanDrvIf.c:855: warning: assignment makes pointer from integer without a cast
make[3]: *** [/home/gnychis/Documents/android/ti/wilink_6_1/platforms/os/linux/build/../../../../platforms/os/linux/src/WlanDrvIf.o] Error 1
make[2]: *** [_module_/home/gnychis/Documents/android/ti/wilink_6_1/platforms/os/linux/build] Error 2
make[2]: Leaving directory `/home/gnychis/Documents/android/omap'
make[1]: *** [../../../../platforms/os/linux/build/tiwlan_drv_stub.o] Error 2
make[1]: Leaving directory `/home/gnychis/Documents/android/ti/wilink_6_1/platforms/os/linux/build'
make: *** [../../../platforms/os/linux/build/tiwlan_drv_stub.o] Error 2
Here is the full output:
http://pastebin.com/6T0UcWgw
solved, this function name (where i get the error), was renamed in the kernel version i'm using... discrepancies between english
freezable and freezeable
Im trying to compile my first kernel for the xoom, i got everything edited to what i want and when im trying to compile i keep getting this error
Code:
[email protected]:~/Android/kernals/Insidious-Kernel$ make
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC [M] fs/coda/psdev.o
In file included from fs/coda/psdev.c:45:
include/linux/coda.h:223: error: expected specifier-qualifier-list before 'u_quad_t'
make[2]: *** [fs/coda/psdev.o] Error 1
make[1]: *** [fs/coda] Error 2
make: *** [fs] Error 2
[email protected]:~/Android/kernals/Insidious-Kernel$
I think it has to do with a header i just cant figure it out any help is appreciated
can someone help?
Unfortunately, I can not directly help you with that. What I can do, is direct you to the #xoom (or #tiamat) channel on freenode.net. BigRushDog (primary developer of tiamat kernels for xoom) is often in the room with several other kernel devs who will likely be able to assist you. (cayniarb would be another great person to talk to)
USB HOST FEATURE
-Working in progress...no ETA and no DOWNLOAD yet! See NEWS for updates...
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
NEWS:
09/01/2012: Successfully compiled Unity v10 kernel (VA 1.48 kernel) with MSM_72k gadget and all gadget disabled. [zImage+15modules]
DHD Boots, All works (network, wifi, all!).
In terminal, usbcore.ko loaded successfully. But then ehci-hcd.ko give me an error: "init_module 'host/ehci-hcd.ko' failed (Device or resource busy)
11/01/2012: MSM_72k gadget give error to HOST...usb controller is busy so can't load host drivers. I've error compiling Kernel with other gadget controllers. So i'm going on AOSP kernel and i'll try to implement usb host here (for CM and MIUI). If someone can solve the error in devices_htc.c file (in the last page), please PM me..
13/01/2012: Applied patch in AOSP kernel, but have the same error in devices_htc.c file (look at page 3). i'm not able to mod the file and solve the error. I tested many device_htc files, but no good results.
you should contact him
http://forum.xda-developers.com/showthread.php?t=993152
zFr3eak said:
you should contact him
http://forum.xda-developers.com/showthread.php?t=993152
Click to expand...
Click to collapse
this kernel is old...i need the unity v10 and klquicksall compiled with this patch where are the sources? i want to make a switch app
EDIT: capy closed the runny thread. I need the source of RCMIX3d v11.1 v2 kernel. Anyone have it?
XxXPachaXxX said:
this kernel is old...i need the unity v10 and klquicksall compiled with this patch where are the sources? i want to make a switch app
EDIT: capy closed the runny thread. I need the source of RCMIX3d v11.1 v2 kernel. Anyone have it?
Click to expand...
Click to collapse
maybe this for the source?
I'm on ubuntu and installed all required software and this compiler: http://www.codesourcery.com/sgpp/[email protected]=lite
But have error with original configuration in unity v10 (without touching nothing!)
Error is like that:
Code:
arch/arm/mach-msm/idle-v7.S:47: Error: selected processor does not support ARM mode `fmrx r1,fpexc'
arch/arm/mach-msm/idle-v7.S:48: Error: selected processor does not support ARM mode `fmrx r2,fpscr'
arch/arm/mach-msm/idle-v7.S:120: Error: selected processor does not support ARM mode `fmxr fpexc,r2'
arch/arm/mach-msm/idle-v7.S:128: Error: selected processor does not support ARM mode `fmxr fpscr,r3'
arch/arm/mach-msm/idle-v7.S:129: Error: selected processor does not support ARM mode `fmxr fpexc,r2'
make[1]: *** [arch/arm/mach-msm/idle-v7.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
Any HowTo?
Use linaro gcc toolchain for arm, but version 4.5.x
Sent from my Desire HD with BlackIce ROM and ICS crouching in restore option
LorD ClockaN said:
Use linaro gcc toolchain for arm, but version 4.5.x
Sent from my Desire HD with BlackIce ROM and ICS crouching in restore option
Click to expand...
Click to collapse
Or add this :
EXTRA_AFLAGS=-mfpu=neon
Click to expand...
Click to collapse
LorD ClockaN said:
Use linaro gcc toolchain for arm, but version 4.5.x
Sent from my Desire HD with BlackIce ROM and ICS crouching in restore option
Click to expand...
Click to collapse
THANK YOU! I will try this
daedric said:
Or add this :
Click to expand...
Click to collapse
HowTo?
make EXTRA_AFLAGS=-mfpu=neon
@lord does your kernel already have usb otg?? Sorry if its a stupid question?
Sent from my Desire HD running Blackice using xda premium
I'm of,sorry...
Could explain why mine v8......11.2.. kernel on runny Rom cause a tinny sound from speakers?
How to fix?
Thanjs
harshrocsu said:
@lord does your kernel already have usb otg?? Sorry if its a stupid question?
Sent from my Desire HD running Blackice using xda premium
Click to expand...
Click to collapse
It doesn't have host function if you mean on that
Sent from my Desire HD with BlackIce ROM and ICS crouching in restore option
daedric said:
make EXTRA_AFLAGS=-mfpu=neon
Click to expand...
Click to collapse
This is a command to write in terminal?
LorD ClockaN said:
Use linaro gcc toolchain for arm, but version 4.5.x
Sent from my Desire HD with BlackIce ROM and ICS crouching in restore option
Click to expand...
Click to collapse
used linaro and this is the output:
Code:
[email protected]:~/unity_source/kernel$ make -j5 ARCH=arm CROSS_COMPILE=/home/xxxpachaxxx/android-toolchain-eabi/bin/arm-eabi-
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
HOSTCC scripts/kallsyms
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/bin2c
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
make[1]: "include/generated/mach-types.h" è aggiornato.
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
HOSTLD scripts/mod/modpost
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC init/main.o
CC init/do_mounts.o
CC init/do_mounts_initrd.o
HOSTCC usr/gen_init_cpio
UPD include/generated/compile.h
CC arch/arm/kernel/compat.o
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC arch/arm/mm/dma-mapping.o
CC arch/arm/kernel/elf.o
AS arch/arm/kernel/entry-armv.o
AS arch/arm/kernel/entry-common.o
CC arch/arm/mm/extable.o
CC arch/arm/kernel/irq.o
CC arch/arm/mm/fault.o
CC arch/arm/mm/init.o
cc1: warnings being treated as errors
init/main.c: In function 'do_one_initcall':
init/main.c:734:10: error: 'calltime.tv64' may be used uninitialized in this function
make[1]: *** [init/main.o] Errore 1
make[1]: *** Attesa per i processi non terminati....
CC arch/arm/mm/iomap.o
CC arch/arm/mm/fault-armv.o
CC arch/arm/kernel/process.o
make: *** [init] Errore 2
make: *** Attesa per i processi non terminati....
CC arch/arm/kernel/ptrace.o
CC arch/arm/mm/flush.o
CC arch/arm/mm/ioremap.o
CC arch/arm/mm/mmap.o
CC arch/arm/mm/pgd.o
CC arch/arm/kernel/return_address.o
CC arch/arm/kernel/setup.o
CC arch/arm/mm/mmu.o
CC arch/arm/mm/vmregion.o
CC arch/arm/kernel/signal.o
CC arch/arm/mm/proc-syms.o
CC arch/arm/mm/alignment.o
CC arch/arm/mm/highmem.o
CC arch/arm/kernel/sys_arm.o
AS arch/arm/mm/abort-ev7.o
AS arch/arm/mm/pabort-v7.o
CC arch/arm/kernel/stacktrace.o
AS arch/arm/mm/cache-v7.o
CC arch/arm/mm/copypage-v6.o
CC arch/arm/mm/context.o
AS arch/arm/mm/tlb-v7.o
AS arch/arm/mm/proc-v7.o
CC arch/arm/kernel/time.o
CC arch/arm/kernel/traps.o
CC arch/arm/kernel/armksyms.o
CC arch/arm/kernel/module.o
LD arch/arm/mm/built-in.o
CC arch/arm/kernel/thumbee.o
CC arch/arm/kernel/pmu.o
CC arch/arm/kernel/io.o
AS arch/arm/kernel/head.o
CC arch/arm/kernel/init_task.o
LDS arch/arm/kernel/vmlinux.lds
LD arch/arm/kernel/built-in.o
[email protected]:~/unity_source/kernel$
Replaced init/main.c with the one in klquicksall source and it's ok...new output is this:
Code:
[email protected]:~/unity_source/kernel$ make ARCH=arm CROSS_COMPILE=/home/xxxpachaxxx/android-toolchain-eabi/bin/arm-eabi-
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: "include/generated/mach-types.h" è aggiornato.
CALL scripts/checksyscalls.sh
CC init/main.o
CHK include/generated/compile.h
CC init/version.o
LD init/mounts.o
CC init/initramfs.o
CC init/calibrate.o
LD init/built-in.o
LD arch/arm/common/built-in.o
CC arch/arm/mach-msm/io.o
CC arch/arm/mach-msm/dma.o
CC arch/arm/mach-msm/memory.o
CC arch/arm/mach-msm/timer.o
CC arch/arm/mach-msm/clock.o
CC arch/arm/mach-msm/irq.o
CC arch/arm/mach-msm/devices.o
CC arch/arm/mach-msm/pmic.o
CC arch/arm/mach-msm/vreg.o
CC arch/arm/mach-msm/pwrtest.o
CC arch/arm/mach-msm/proc_comm.o
CC arch/arm/mach-msm/acpuclock-7x30.o
CC arch/arm/mach-msm/internal_power_rail.o
CC arch/arm/mach-msm/acpuclock_debug.o
CC arch/arm/mach-msm/clock-7x30.o
AS arch/arm/mach-msm/arch-init-7x30.o
CC arch/arm/mach-msm/socinfo.o
CC arch/arm/mach-msm/spm.o
AS arch/arm/mach-msm/idle-v7.o
CC arch/arm/mach-msm/msm_fault_handlers.o
CC arch/arm/mach-msm/nand_partitions.o
CC arch/arm/mach-msm/drv_callback.o
CC arch/arm/mach-msm/radio_feedback.o
AS arch/arm/mach-msm/fiq_glue.o
CC arch/arm/mach-msm/rpc_hsusb.o
CC arch/arm/mach-msm/remote_spinlock.o
CC arch/arm/mach-msm/htc_port_list.o
CC arch/arm/mach-msm/rpc_pmapp.o
CC arch/arm/mach-msm/smd_rpcrouter_clients.o
CC arch/arm/mach-msm/smd.o
CC arch/arm/mach-msm/smd_debug.o
CC arch/arm/mach-msm/smem_log.o
CC arch/arm/mach-msm/last_radio_log.o
CC arch/arm/mach-msm/smd_rpcrouter_device.o
CC arch/arm/mach-msm/smd_rpcrouter-7x30.o
CC arch/arm/mach-msm/smd_rpcrouter_servers-7x30.o
CC arch/arm/mach-msm/smd_rpcrouter_xdr.o
CC arch/arm/mach-msm/rpc_server_dog_keepalive.o
CC arch/arm/mach-msm/rpc_server_time_remote.o
CC arch/arm/mach-msm/smd_tty.o
CC arch/arm/mach-msm/smd_qmi.o
CC arch/arm/mach-msm/dal.o
CC arch/arm/mach-msm/dal_axi.o
CC arch/arm/mach-msm/qdsp5v2_1x/afe.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_interct.o
CC arch/arm/mach-msm/qdsp5v2_1x/mi2s.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_dev_ctl.o
CC arch/arm/mach-msm/qdsp5v2_1x/voice.o
CC arch/arm/mach-msm/qdsp5v2_1x/snddev_data.o
CC arch/arm/mach-msm/qdsp5v2_1x/snddev_icodec.o
CC arch/arm/mach-msm/qdsp5v2_1x/lpa.o
CC arch/arm/mach-msm/qdsp5v2_1x/aux_pcm.o
CC arch/arm/mach-msm/qdsp5v2_1x/snddev_ecodec.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_out.o
CC arch/arm/mach-msm/qdsp5v2_1x/audpp.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_mp3.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_lpa.o
CC arch/arm/mach-msm/qdsp5v2_1x/mp3_funcs.o
CC arch/arm/mach-msm/qdsp5v2_1x/pcm_funcs.o
CC arch/arm/mach-msm/qdsp5v2_1x/audpreproc.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_pcm_in.o
CC arch/arm/mach-msm/qdsp5v2_1x/adsp.o
CC arch/arm/mach-msm/qdsp5v2_1x/adsp_driver.o
CC arch/arm/mach-msm/qdsp5v2_1x/adsp_info.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_acdb.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_mvs.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_amrnb_in.o
LD arch/arm/mach-msm/qdsp5v2_1x/built-in.o
CC arch/arm/mach-msm/pm.o
CC arch/arm/mach-msm/cpufreq.o
CC arch/arm/mach-msm/htc_acoustic_7x30.o
CC arch/arm/mach-msm/htc_acdb_7x30.o
CC arch/arm/mach-msm/panel-samsungwvga-tl2796a.o
CC arch/arm/mach-msm/panel-samsungwvga-s6e63m0.o
CC arch/arm/mach-msm/panel-sonywvga-s6d16a0x21-7x30.o
CC arch/arm/mach-msm/htc_wifi_nvs.o
CC arch/arm/mach-msm/htc_awb_cal.o
CC arch/arm/mach-msm/board-vision.o
CC arch/arm/mach-msm/board-vision-keypad.o
CC arch/arm/mach-msm/board-vision-microp.o
CC arch/arm/mach-msm/board-vision-audio.o
CC arch/arm/mach-msm/board-vision-mmc.o
CC arch/arm/mach-msm/board-vision-wifi.o
CC arch/arm/mach-msm/board-vision-rfkill.o
CC arch/arm/mach-msm/htc_bluetooth.o
CC arch/arm/mach-msm/board-glacier.o
CC arch/arm/mach-msm/board-glacier-keypad.o
CC arch/arm/mach-msm/board-glacier-microp.o
CC arch/arm/mach-msm/board-glacier-audio.o
CC arch/arm/mach-msm/board-glacier-mmc.o
CC arch/arm/mach-msm/board-glacier-wifi.o
CC arch/arm/mach-msm/board-glacier-rfkill.o
CC arch/arm/mach-msm/htc_fmtx_rfkill.o
CC arch/arm/mach-msm/board-glacier-panel.o
CC arch/arm/mach-msm/board-spade.o
CC arch/arm/mach-msm/board-spade-keypad.o
CC arch/arm/mach-msm/board-spade-microp.o
CC arch/arm/mach-msm/board-spade-audio.o
CC arch/arm/mach-msm/board-spade-mmc.o
CC arch/arm/mach-msm/board-spade-wifi.o
CC arch/arm/mach-msm/board-spade-rfkill.o
CC arch/arm/mach-msm/board-spade-panel.o
CC arch/arm/mach-msm/msm_vibrator.o
CC arch/arm/mach-msm/devices_htc.o
CC arch/arm/mach-msm/msm_flashlight.o
CC arch/arm/mach-msm/htc_battery.o
CC arch/arm/mach-msm/rmt_storage_server.o
CC arch/arm/mach-msm/pmic8058-mpp.o
CC arch/arm/mach-msm/npa.o
CC arch/arm/mach-msm/npa_resources.o
CC arch/arm/mach-msm/msm_pm_qos.o
CC arch/arm/mach-msm/msm_reqs.o
CC arch/arm/mach-msm/atmega_microp_common.o
CC arch/arm/mach-msm/htc_headset_mgr.o
CC arch/arm/mach-msm/htc_headset_gpio.o
CC arch/arm/mach-msm/htc_headset_microp.o
CC arch/arm/mach-msm/htc_headset_pmic.o
CC arch/arm/mach-msm/gpio.o
CC arch/arm/mach-msm/generic_gpio.o
CC arch/arm/mach-msm/ssbi.o
CC arch/arm/mach-msm/pmu.o
LD arch/arm/mach-msm/built-in.o
CC arch/arm/vfp/vfpmodule.o
AS arch/arm/vfp/entry.o
AS arch/arm/vfp/vfphw.o
CC arch/arm/vfp/vfpsingle.o
CC arch/arm/vfp/vfpdouble.o
LD arch/arm/vfp/vfp.o
LD arch/arm/vfp/built-in.o
CC kernel/sched.o
CC kernel/fork.o
CC kernel/exec_domain.o
CC kernel/panic.o
CC kernel/printk.o
CC kernel/cpu.o
CC kernel/exit.o
CC kernel/itimer.o
TIMEC kernel/timeconst.h
CC kernel/time.o
CC kernel/softirq.o
CC kernel/resource.o
CC kernel/sysctl.o
CC kernel/sysctl_binary.o
CC kernel/capability.o
CC kernel/ptrace.o
CC kernel/timer.o
CC kernel/user.o
CC kernel/signal.o
CC kernel/sys.o
CC kernel/kmod.o
CC kernel/workqueue.o
CC kernel/pid.o
CC kernel/rcupdate.o
CC kernel/extable.o
CC kernel/params.o
CC kernel/posix-timers.o
CC kernel/kthread.o
CC kernel/wait.o
CC kernel/kfifo.o
CC kernel/sys_ni.o
CC kernel/posix-cpu-timers.o
CC kernel/mutex.o
CC kernel/hrtimer.o
CC kernel/rwsem.o
CC kernel/nsproxy.o
CC kernel/srcu.o
CC kernel/semaphore.o
CC kernel/notifier.o
CC kernel/ksysfs.o
CC kernel/pm_qos_params.o
CC kernel/sched_clock.o
CC kernel/cred.o
CC kernel/async.o
cc1: warnings being treated as errors
kernel/async.c: In function 'async_thread':
kernel/async.c:127:10: error: 'calltime.tv64' may be used uninitialized in this function
kernel/async.c: In function 'async_synchronize_cookie_domain':
kernel/async.c:283:10: error: 'starttime.tv64' may be used uninitialized in this function
make[1]: *** [kernel/async.o] Errore 1
make: *** [kernel] Errore 2
[email protected]:~/unity_source/kernel$
Why so many errors?
i've to replace a lot of .c files to continue the compilation....are mdeejay and klquicksall kernel bugged? can i use your kernel Lord? it works with android 2.3.5 + sense 3.5? (virtuous affinity rom)
Stuck at this error now:
Code:
cc1: warnings being treated as errors
drivers/input/touchscreen/elan_ktf2k.c: In function 'elan_ktf2k_diag_store':
drivers/input/touchscreen/elan_ktf2k.c:359:10: error: 'i' may be used uninitialized in this function
make[3]: *** [drivers/input/touchscreen/elan_ktf2k.o] Errore 1
make[2]: *** [drivers/input/touchscreen] Errore 2
make[1]: *** [drivers/input] Errore 2
make: *** [drivers] Errore 2
I need help...
I was never able to add to a newer kernel that support sense, because of some new htc kernel magic. This does not mean that it is impossible.
hawkeyexp ported the patch to 2.6.37 kernel for CM7 on the "normal" desire.
Maybe it is a good idea to start with a kernel for CM7 or ICS.
There could be interessting parts in the arc s kernel.
There are some interessting files in the SE arc kernel sources.
A link to the SE arc kernel can be found here:
http://forum.xda-developers.com/showthread.php?t=1312692
I am talking from files like:
Xperia-2011-Official-Kernel-Sources / kernel / drivers / usb / host / ehci-msm.c
Xperia-2011-Official-Kernel-Sources / kernel / drivers / usb / otg / msm72k_otg.c
Xperia-2011-Official-Kernel-Sources / kernel / drivers / usb / gadget / msm72k_udc.c
Xperia-2011-Official-Ramdisks / ARC / init.usbmode.sh
The first file is the most interessting one, because there is no according file in the htc kernel sources.
The main part of the patch you are trying to use is about ehci-msm7201.h from sven killing.
This two files should provide the same functionality. Except sven killing's version does not allow switching between device/gadget and host moda. The version sony ericsson is using on the other hand was never tryed on any htc device, as far as I now.
When you open the ehci-msm.c file you could see it is from the Code Aurora Forum, this means it is directly from Qualcomm.
An other guy working on this stuff is Andrew de Quincey (mentioned on sven killings page).
http://adq.livejournal.com/101420.html
Maybe he had countinue his work.
About a year ago I was chating with both. They also mentioned the arc s, but at that time the arc was not released.
Edit:
Here is a .conf file for the arc with enabled usb otg and the acorrding source
config:
https://github.com/DooMLoRD/Xperia-...arch/arm/configs/doom_usbotg_mogami_defconfig
source:
https://github.com/DooMLoRD/Xperia-2011-Kernel-2.6.32.9
bergfex said:
There are some interessting files in the SE arc kernel sources.
A link to the SE arc kernel can be found here:
http://forum.xda-developers.com/showthread.php?t=1312692
I am talking from files like:
Xperia-2011-Official-Kernel-Sources / kernel / drivers / usb / host / ehci-msm.c
Xperia-2011-Official-Kernel-Sources / kernel / drivers / usb / otg / msm72k_otg.c
Xperia-2011-Official-Kernel-Sources / kernel / drivers / usb / gadget / msm72k_udc.c
Xperia-2011-Official-Ramdisks / ARC / init.usbmode.sh
The first file is the most interessting one, because there is no according file in the htc kernel sources.
The main part of the patch you are trying to use is about ehci-msm7201.h from sven killing.
This two files should provide the same functionality. Except sven killing's version does not allow switching between device/gadget and host moda. The version sony ericsson is using on the other hand was never tryed on any htc device, as far as I now.
When you open the ehci-msm.c file you could see it is from the Code Aurora Forum, this means it is directly from Qualcomm.
An other guy working on this stuff is Andrew de Quincey (mentioned on sven killings page).
http://adq.livejournal.com/101420.html
Maybe he had countinue his work.
About a year ago I was chating with both. They also mentioned the arc s, but at that time the arc was not released.
Edit:
Here is a .conf file for the arc with enabled usb otg and the acorrding source
config:
https://github.com/DooMLoRD/Xperia-2...gami_defconfig
source:
https://github.com/DooMLoRD/Xperia-2011-Kernel-2.6.32.9
Click to expand...
Click to collapse
IF we put these files in kernel source and compile with the use of otg_defconfig?
Anyone here with a usb host cable? I'd like someone to test usb host and while theyre at it they can test wifi teathering lol on ICS build thanks
If you do have a cable please pm me thanks
I've been trying for two days now to compile AGNi Kernel with Kexec-hardboot enabled under menuconfig>boot options and every damn time i get this error. If @psndna88 could help me it'd be nice.
here is the terminal
Code:
[email protected]:~/android/kernel$ make -j2 ARCH=arm
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
Generating include/generated/mach-types.h
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
SHIPPED scripts/genksyms/lex.c
SHIPPED scripts/genksyms/parse.h
CC scripts/mod/empty.o
SHIPPED scripts/genksyms/keywords.c
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/genksyms/parse.o
HOSTCC scripts/mod/modpost.o
HOSTLD scripts/genksyms/genksyms
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/kallsyms
HOSTCC scripts/conmakehash
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/bin2c
HOSTLD scripts/mod/modpost
CC init/main.o
HOSTCC usr/gen_init_cpio
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC arch/arm/vfp/vfpmodule.o
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/do_mounts.o
AS arch/arm/vfp/entry.o
AS arch/arm/vfp/vfphw.o
CC arch/arm/vfp/vfpsingle.o
CC init/do_mounts_rd.o
CC arch/arm/vfp/vfpdouble.o
CC init/do_mounts_initrd.o
LD arch/arm/vfp/vfp.o
LD arch/arm/vfp/built-in.o
CC init/initramfs.o
LD arch/arm/mvp/commkm/built-in.o
CC [M] arch/arm/mvp/commkm/check_kconfig.o
CC [M] arch/arm/mvp/commkm/comm_ev_kernel.o
CC [M] arch/arm/mvp/commkm/comm.o
CC init/calibrate.o
CC init/version.o
/tmp/ccdjofq2.s: Assembler messages:
/tmp/ccdjofq2.s:194: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:208: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2328: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2342: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2366: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2380: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2443: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2457: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2624: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2638: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2778: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2792: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2808: Error: garbage following instruction -- `dmb ish'
/tmp/ccdjofq2.s:2822: Error: garbage following instruction -- `dmb ish'
scripts/Makefile.build:305: recipe for target 'arch/arm/mvp/commkm/comm.o' failed
make[2]: *** [arch/arm/mvp/commkm/comm.o] Error 1
scripts/Makefile.build:441: recipe for target 'arch/arm/mvp/commkm' failed
make[1]: *** [arch/arm/mvp/commkm] Error 2
Makefile:955: recipe for target 'arch/arm/mvp' failed
make: *** [arch/arm/mvp] Error 2
make: *** Waiting for unfinished jobs....
LD init/mounts.o
LD init/built-in.o
[email protected]:~/android/kernel$
I am trying to compile this kernel because this thread.
Solved that one, but now one annoying one pops up
/home/lanimereala/android/omni/kernel/samsung/i9305/arm-cortex_a9-linux-gnueabihf-linaro_4.9.4/bin/arm-eabi-nm: 'arch/arm/boot/compressed/vmlinux': No such file
OBJCOPY arch/arm/boot/zImage
/home/lanimereala/android/omni/kernel/samsung/i9305/arm-cortex_a9-linux-gnueabihf-linaro_4.9.4/bin/arm-eabi-objcopy: 'arch/arm/boot/compressed/vmlinux': No such file
/home/lanimereala/android/omni/kernel/samsung/i9305/arch/arm/boot/Makefile:58: recipe for target 'arch/arm/boot/zImage' failed
make[1]: *** [arch/arm/boot/zImage] Error 1
/home/lanimereala/android/omni/kernel/samsung/i9305/arch/arm/Makefile:283: recipe for target 'zImage' failed
make: *** [zImage] Error 2
Solved that one, but now one annoying one pops up
/home/lanimereala/android/omni/kernel/samsung/i9305/arm-cortex_a9-linux-gnueabihf-linaro_4.9.4/bin/arm-eabi-nm: 'arch/arm/boot/compressed/vmlinux': No such file
OBJCOPY arch/arm/boot/zImage
/home/lanimereala/android/omni/kernel/samsung/i9305/arm-cortex_a9-linux-gnueabihf-linaro_4.9.4/bin/arm-eabi-objcopy: 'arch/arm/boot/compressed/vmlinux': No such file
/home/lanimereala/android/omni/kernel/samsung/i9305/arch/arm/boot/Makefile:58: recipe for target 'arch/arm/boot/zImage' failed
make[1]: *** [arch/arm/boot/zImage] Error 1
/home/lanimereala/android/omni/kernel/samsung/i9305/arch/arm/Makefile:283: recipe for target 'zImage' failed
make: *** [zImage] Error 2
Hi everyone, I am gonna try to build my own kernel for my S6- G920L, but there was some errors that I havent figured out. I need your help.
I use, toolchain gcc 4.8 cross compiler.
Here is the result.
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[2]: *** [scripts/mod/empty.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC kernel/bounds.s
CC scripts/mod/devicetable-offsets.s
arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[1]: *** [kernel/bounds.s] Error 1
arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
[email protected]:~/Downloads/laptrinhnhung/Kernel$
Thank you !
wrong toolchain mate.. you need to use the 4.9 arm64-linux-android as suggested in the readme for kernel in the sources
Sabermod prebuilt
for example or any other but minimum 4.9.. if you want to use a 5.0 you'll need to make some edits to the make file..
have fun
Thank you !. I got it done !... SOLVED