This forum is in archive mode. You will not be able to post new content.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - 11alphamale11

Pages: [1]
1
C - C++ / Re: .tmp_vmlinux1 error on Ubuntu (Kernel Compilation)
« on: August 23, 2014, 02:30:42 AM »
No. I JUST switched to the sinless kernel. Its giving me the same issue.

Heres a small section of the file dwc3-msm.c containing line 2561.

Heres the
Quote
extern int rom_stockui;
static int __devinit dwc3_msm_probe(struct platform_device *pdev)
{
    struct device_node *node = pdev->dev.of_node;
    struct dwc3_msm *mdwc;
    struct resource *res;
    void __iomem *tcsr;
    unsigned long flags;
    int ret = 0;
    int len = 0;
    u32 tmp[3];
    htc_usb_disable = 0;
    htc_vbus_backup = 0;
    htc_id_backup = 1;
    pr_info("%s: ++\n", __func__);
    mdwc = devm_kzalloc(&pdev->dev, sizeof(*mdwc), GFP_KERNEL);
    if (!mdwc) {
        dev_err(&pdev->dev, "not enough memory\n");
        return -ENOMEM;
    }

    platform_set_drvdata(pdev, mdwc);
    context = mdwc;
    mdwc->dev = &pdev->dev;

    wake_lock_init(&mdwc->cable_detect_wlock, WAKE_LOCK_SUSPEND, "msm_usb_cable");
    INIT_LIST_HEAD(&mdwc->req_complete_list);
    INIT_DELAYED_WORK(&mdwc->chg_work, dwc3_chg_detect_work);
    INIT_DELAYED_WORK(&mdwc->resume_work, dwc3_resume_work);
    INIT_WORK(&mdwc->restart_usb_work, dwc3_restart_usb_work);
    INIT_WORK(&mdwc->usb_block_reset_work, dwc3_block_reset_usb_work);
    INIT_WORK(&mdwc->id_work, dwc3_id_work);
    INIT_DELAYED_WORK(&mdwc->init_adc_work, dwc3_init_adc_work);
    init_completion(&mdwc->ext_chg_wait);

    ret = dwc3_msm_config_gdsc(mdwc, 1);
    if (ret) {
        dev_err(&pdev->dev, "unable to configure usb3 gdsc\n");
        goto destroy_wlock;
    }

    mdwc->xo_clk = clk_get(&pdev->dev, "xo");
    if (IS_ERR(mdwc->xo_clk)) {
        dev_err(&pdev->dev, "%s unable to get TCXO buffer handle\n",
                                __func__);
        ret = PTR_ERR(mdwc->xo_clk);
        goto disable_dwc3_gdsc;
    }

    ret = clk_prepare_enable(mdwc->xo_clk);
    if (ret) {
        dev_err(&pdev->dev, "%s failed to vote for TCXO buffer%d\n",
                        __func__, ret);
        goto put_xo;
    }

    mdwc->core_clk = devm_clk_get(&pdev->dev, "core_clk");
    if (IS_ERR(mdwc->core_clk)) {                                                                                       ,<--------Line 2561
        dev_err(&pdev->dev, "failed to get core_clk\n");
        ret = PTR_ERR(mdwc->core_clk);
        goto disable_xo;

Any ideas on where to go from here or how to define the reference to rom_stockui? lol I tried earlier with my minimal c knowledge and created way more problems haha

Im willing to pay if someone could solve this.

2
C - C++ / Re: .tmp_vmlinux1 error on Ubuntu (Kernel Compilation)
« on: August 23, 2014, 01:21:34 AM »
Heres the kernel source: https://github.com/mrjaydee82/SinLessKerne1-m8-4.4.4

Im working with sinless rom google play edition with android 4.4.4: http://forum.xda-developers.com/showthread.php?t=2709397

Thanks for responding though. Im not to knowledgeable in c language to effectively fix the errors myself. That is why Im asking for help.

Im using the linaro-arm-eabi-4.10-master toolchain within the kernel source provided: https://github.com/mrjaydee82/SinLessKerne1-m8-4.4.4/tree/master/toolchains/linaro-arm-eabi-4.10-master

Maybe there are other tools I havent downloaded? Im pretty sure Ive got all of them.



3
C - C++ / Re: .tmp_vmlinux1 error on Ubuntu (Kernel Compilation)
« on: August 22, 2014, 11:00:00 PM »
What kind of source should I provide?

4
C - C++ / .tmp_vmlinux1 error on Ubuntu (Kernel Compilation)
« on: August 22, 2014, 06:42:24 PM »
Im compiling the google play edition stock kernel for the htc one m8 varient. The kernel is 3.4.0-gb1b6fb1 for android 4.4.4. Im using Ubuntu 14.04.1 LTS. I believe the android kernel is written in C. Forgive if im wrong. I used the following command:
 
 make -j2 ARCH=arm CROSS_COMPILE=/home/richard/Workspace/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-

Quote
LD drivers/video/built-in.o
 LD drivers/built-in.o
 LD vmlinux.o
 MODPOST vmlinux.o
 GEN .version
 CHK include/generated/compile.h
 UPD include/generated/compile.h
 CC init/version.o
 LD init/built-in.o
 LD .tmp_vmlinux1
 drivers/built-in.o: In function `dwc3_msm_probe':
 /home/richard/Workspace/kernel1/drivers/usb/dwc3/dwc3-msm.c:2561: undefined reference to `rom_stockui'
 make: *** [.tmp_vmlinux1] Error 1


 How can I fix this? Im working on a project that is due in two days. Any help is appreciated! :)

Pages: [1]


Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.