MoDaCo is undergoing planned maintenance. Site functionality may be reduced - follow @modaco or @paulobrien on Twitter for updates.

  • Announcements

    • Reminder - MoDaCo position on illegal content

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such software
      Nintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)


      CUSTOM ROMS

      You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not be hosted directly in topic via the MoDaCo attachment system
      ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)
      ROMs must give full credit to the original author
      This decision has been taken in light of the huge amount of interest in this area of device customisation within the community, and member feedback! Please note that custom ROM discussion should be kept in specific device sub-areas, (e.g. Kaiser.MoDaCo.com for Kaiser based devices). ISSUES If you have any issues with this policy, please contact me directly via PM. P
    • Support MoDaCo by signing up to a MoDaCo Silver or Gold membership

      To sign up to an annual MoDaCo Silver subscription which will eliminate all ads from the site (as well as giving you access to the MoDaCo Online Kitchens for Android) for only £9.99 using PayPal, Credit or Debit Card, ensure you are logged in to the site, and then click the link below, which will take you directly to the subscription store! You can also sign up to an annual MoDaCo Gold subscription for £29.99, which adds the benefits listed below! PURCHASE A MODACO SUBSCRIPTION - FREE Titanium Backup Mobile for Android worth $5.99! - FREE 1 year PrivateInternetAccess.com worth $39.95! - FREE 1 year LastPass Premium worth $12! - FREE CalcConvert for Pocket PC from Binaryfish worth $17.95! - FREE Calendar Bar for Pocket PC from OmegaOne worth $9.99! - FREE CamerAware for Pocket PC and Smartphone from MoDaCo worth £19.99 / $30! - FREE Chronos for Pocket PC from ActiveKitten worth $14.95! - FREE CodeWallet Pro for Smartphone and Pocket PC from DeveloperOne worth up to $24.95! - FREE Concentrix for Pocket PC from eSoft Interactive worth $9.95! - FREE FlexMail for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE FTouchSL for Pocket PC from Vekoff s.r.o. worth 10 euro / $12.50! - FREE Jewel Challenge for Pocket PC from eSoft Interactive worth $9.95! - FREE John Cody's Alerts Pro for Smartphone from Omnisoft worth $14.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Dutch for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> French for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> German for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Italian for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Spanish for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Dutch for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> French for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> German for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Russian for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Turkish for Smartphone from Lingvosoft worth $49.95! - FREE Note2Self for Pocket PC and Smartphone from WebIS worth up to $19.90! - FREE Opera 8.60 for Pocket PC and Smartphone from Opera Software worth up to $48! - FREE Pocket Informant for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE Pocket Launcher for Pocket PC and Smartphone from Conduits worth $9.95! - FREE PTab for Pocket PC and Smartphone from z4soft worth up to $60! - FREE Resco Explorer for Pocket PC and Smartphone from Resco worth up to $49.90! - FREE Safemode for Pocket PC from monocube worth $12.95 - FREE SplashPhoto for Pocket PC and Smartphone from SplashData worth up to $59.90! - FREE Sprite Backup for Pocket PC and Smartphone from Sprite Software worth $29.95! - FREE Teksoft Glyphs UI for Pocket PC and Smartphone from Teksoft €9.95! - FREE Teksoft HeadsetRemote for Pocket PC and Smartphone from Teksoft €4.95! - FREE Traffic Jam for Pocket PC from eSoft Interactive worth $9.95! - FREE unlock (1 per year) from imei-check.co.uk - DISCOUNT of 10% at MoDaCo FairDeal - DISCOUNT of 10% at Semsons.com - FORUM - AD FREE SITE - FORUM - custom rank / title - FORUM - double competition entries - FORUM - double post attachment space - FORUM - no search flood control - FORUM - priority event registration - FORUM - triple PM space
    • Reminder: Selling items on the forum directly is not allowed

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspensions / ban.
Sign in to follow this  
Followers 0

Problem compiling kernel from Acer on Acer Liquid Glow E330

26 posts in this topic

Posted · Report post

Hello,

I just want my own kernel, to be able to have USB On The Go (if that's possible !). And to understand much.

I build the .config after copying the one in the kernel directory on arch/arm/configs/msm7627a-perf_defconfig

After that, make does its jobs and gcc compiles some c files, until I get this error:

[b]make[1]: *** Aucune règle pour fabriquer la cible « /kernel/include/oem/oem_rapi_events.h », nécessaire pour « arch/arm/mach-msm/proc_comm_version_checksum.h ». Arrêt.[/b]

(no rule to make target), (needed for)

The problem is that I don't have oem_rapi_events.h !

Do you know where can I find it ?

Thx in advance

Xav
0

Share this post


Link to post
Share on other sites

Posted · Report post

I never found it too, to bypass this error have a look @ https://github.com/Vachounet/AcerLiquidGlowKernel/blob/master/arch/arm/mach-msm/Makefile
0

Share this post


Link to post
Share on other sites

Posted · Report post

What a buggy kernel source !
Thks for your Makefile, this way it starts to compile

Had to edit "gcc-wrapper.py" to be able to compile (disabling halt on unallowed warnings)
Had to disable CONFIG_DEBUG_FS
Had to disable CONFIG_MSM_SMD

Had to comment some code for cpu check.
Had to comment some include for MTD compiles however.

Now seams that HW3D doesn't compile. See you next.

Also, got the linux kernel from kernel.org, compiles for ARM without problem, but doesn't support our processor so I'm still working on the buggy kernel.
0

Share this post


Link to post
Share on other sites

Posted · Report post

All path to oem/*.h are wrong, you have to edit them.
There's also some wrong hardcoded path that have to be edited.

There's no need to comment line(s). (gcc-wrapper excluded)
0

Share this post


Link to post
Share on other sites

Posted · Report post

Indeed, all is starting to go wrong when I get:

arch/arm/mach-msm/proc_comm.c:193: error: 'SMEM_PC_OEM_CHECK_VERSION' undeclared (first use in this function)

After that, lots of fixes are needed.
Also a problem with boot_mode.h

Also I replace #include oem_smem_struct.h with a comment line. I don't know where to find this file.
0

Share this post


Link to post
Share on other sites

Posted · Report post

Hey, what a mess, it is in /include/oem/oem_smem_struct.h !

Alright will try tomorrow !
0

Share this post


Link to post
Share on other sites

Posted · Report post

That's what i said, you have to change path to <oem/*.h>.
There is around 10 path to fix.
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

[quote name='goddeex' timestamp='1354612223' post='2062039']
What a buggy kernel source !
Thks for your Makefile, this way it starts to compile

Had to edit "gcc-wrapper.py" to be able to compile (disabling halt on unallowed warnings)
Had to disable CONFIG_DEBUG_FS
Had to disable CONFIG_MSM_SMD

Had to comment some code for cpu check.
Had to comment some include for MTD compiles however.

Now seams that HW3D doesn't compile. See you next.

Also, got the linux kernel from kernel.org, compiles for ARM without problem, but doesn't support our processor so I'm still working on the buggy kernel.
[/quote]

DON'T disable msm_smd....we have a mtd device here....without that sdcard could be not work
although a request for vache....which .ko modules are needed for glow to boot???


EDIT: GREAT NEWS!!! I HAVE FINALLY A BOOTING KERNEL!!!!...ok now i have problem with sleep and with wifi that doesn't power on :( in other words when i press lockscreen phone doesn't power up anymore. seems a .ko modules....i've seen that dimension of my modules are too big compared to vache's custom_kernel.zip....vache did you stripped the modules??if yes...how did you that?? Edited by lupohirp
0

Share this post


Link to post
Share on other sites

Posted · Report post

You don't need any module to boot, and i didn't stripped them. Did you had a look at system and kernel logs ?
0

Share this post


Link to post
Share on other sites

Posted · Report post

Hello, I finally managed to boot my own linux kernel, although I didn't have sim card support and wifi !
I have put the path to the .h files in the LINUXINCLUDE section of Makefile.

Now trying to play with menuconfig to get it work.

How do you access kernel logs, please ?
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='goddeex' timestamp='1354699818' post='2062344']
Hello, I finally managed to boot my own linux kernel, although I didn't have sim card support and wifi !
I have put the path to the .h files in the LINUXINCLUDE section of Makefile.

Now trying to play with menuconfig to get it work.

How do you access kernel logs, please ?
[/quote]

you can use dmesg from adb

[quote name='vache' timestamp='1354661805' post='2062287']
You don't need any module to boot, and i didn't stripped them. Did you had a look at system and kernel logs ?
[/quote]

kernel logs stopped when i press the on/off button....for wifi it says that system can't load module.....i had similar problems with p500 when i was workin' at cm9 and i remembered that i compiled kernel with android ndk toolchain instead of linaro (also i had big sizes of module with ndk)....later i will try to recompile with linaro and codesourcery
0

Share this post


Link to post
Share on other sites

Posted · Report post

I can't access to my phone using usb, so can't do "adb shell", so I thing something is missing in my .config file.

I also activated USB OTG in the config file, but an error appears at compile time. Put some coments in the C file, that compiles, but i'm unsure about what I've done. Result: no USB OTG.
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

[quote name='lupohirp' timestamp='1354700124' post='2062345']
kernel logs stopped when i press the on/off button....for wifi it says that system can't load module.....i had similar problems with p500 when i was workin' at cm9 and i remembered that i compiled kernel with android ndk toolchain instead of linaro (also i had big sizes of module with ndk)....later i will try to recompile with linaro and codesourcery
[/quote]

Try to add "CFLAGS_MODULE = -fno-pic" in makefile then rebuild modules.
Or you can try to disable CONFIG_MODVERSIONS.

[quote name='goddeex' timestamp='1354709430' post='2062375']
I can't access to my phone using usb, so can't do "adb shell", so I thing something is missing in my .config file.

I also activated USB OTG in the config file, but an error appears at compile time. Put some coments in the C file, that compiles, but i'm unsure about what I've done. Result: no USB OTG.
[/quote]

Using the provided msm7627a-perf_defconfig is enought to have a working kernel. Edited by vache
0

Share this post


Link to post
Share on other sites

Posted · Report post

Yes, with this default config I have a working kernel, but the wifi and the sim card are not enabled. So I can't even make a call.

From what I have seen, it seams that if you try to modify .config your going to have problem because the arm code is somehow beta version.
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

ok i've resolved wifi problems....but when screen goes off phone is dead and doesn't worked anymore...must pull out battery for start another time...any suggestions??


EDIT: NO MATTER I HAVE RESOLVED THIS ERROR FINALLY!!!!WE HAVE A FULL BOOTING KERNEL NOW!!!!BUT WHAT A CRAP THESE SOURCES!!! even lg's sources was better than these....i will upload all my code on github....BUT A HUGE THANKS GOES TO VACHE :) Edited by lupohirp
0

Share this post


Link to post
Share on other sites

Posted · Report post

Hello, I have found that some files are "read only" in the kernel, this is why I had problems when modifying .config. I did "chmod a+w -R *" and it seams to solve the automatic "make oldconfig" problem asking for every parameter when launching make.

However, hub.c doesn't compile when activating USB_OTG.
0

Share this post


Link to post
Share on other sites

Posted · Report post

Could you post the error you get ?
0

Share this post


Link to post
Share on other sites

Posted · Report post

Yes I get this error:

drivers/usb/core/hub.c: In function 'usb_enumerate_device_otg':
drivers/usb/core/hub.c:1814: error: 'struct usb_otg_descriptor' has no member named 'bcdOTG'

And, it's true, I searched everywhere in the kernel source, I found that there is no member named 'bcdOTG' in the struct. So I think it doesn't come from a dependency error.

There are comments "FIXME" everywhere in hub.c
The new generic linux kernel 3.6.9 has new code for this function in hub.c

The problem comes from this line in the function that enumerates usb OTG devices:

/* a_hnp_support is not required for devices
* compliant to revision 2.0 or subsequent
* versions.
*/
if (le16_to_cpu(desc->bcdOTG) >= 0x0200)
goto out;

I put a comment on the if and goto out lines, that compiles but I get no usb OTG !
Wonder what is a_hnp_support ?
0

Share this post


Link to post
Share on other sites

Posted · Report post

I found out that commenting this is a good way for compiling, keeping USB OTG support.

I think that the issue is not here.
0

Share this post


Link to post
Share on other sites

Posted · Report post

my sources are up

https://github.com/lupohirp/Acer_Liquid_Glow_Kernel
0

Share this post


Link to post
Share on other sites

Posted · Report post

Unfortunately, my sim card is still not recognized. Do you know if I have to enable something in the kernel (like a modem driver) to be able to use it as a phone ? I must C I work with acer sources and .config from the device's stock kernel (with mod for USB-OTG that does not work, don't recognize my usb key with usb host cable).
0

Share this post


Link to post
Share on other sites

Posted · Report post

Ok, I searched a little bit, it may because of msm_proc_version_check() that I don't have modem enabled. I will test it.
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='goddeex' timestamp='1354814706' post='2062757']
Ok, I searched a little bit, it may because of msm_proc_version_check() that I don't have modem enabled. I will test it.
[/quote]

nope...it isn't that...that function check only if your processor is single or dual-core....but it works only if you have a dual core and add some special routines.....haveyou tried my kernel using msm7627a-perf-defconfig?? on my phone it works good...
0

Share this post


Link to post
Share on other sites

Posted · Report post

Thkx for the info, yes, but indeeed SMEM_PC_OEM_CHECK_VERSION didn't exist, so I commented the code and let only return 0;
However my kernel didn't work. But: I found that my kernel hang only if I copy the modules to the system directory of the initramfs. Also I did a chmod on the *.ko files and copied them in a zip that I restored using vache's restore CWM, however using kernel from CustomKernel.zip. After that, I had wifi and rfcomm on the kernel from CustomKernel.
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='goddeex' timestamp='1355127537' post='2063791']
Thkx for the info, yes, but indeeed SMEM_PC_OEM_CHECK_VERSION didn't exist, so I commented the code and let only return 0;
However my kernel didn't work. But: I found that my kernel hang only if I copy the modules to the system directory of the initramfs. Also I did a chmod on the *.ko files and copied them in a zip that I restored using vache's restore CWM, however using kernel from CustomKernel.zip. After that, I had wifi and rfcomm on the kernel from CustomKernel.
[/quote]

try my kernel published yesterday if works....if works then my sources works also for you...and i can get UTG for you in next releases
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.