1. Are you ready for the Galaxy S20? Here is everything we know so far!

Kernel Question

Discussion in 'Android Devices' started by Koumajutsu, Sep 2, 2011.

  1. Koumajutsu

    Koumajutsu Android Expert
    Thread Starter

    So, I see that people have said that the kernel for this phone wont compile. and me, being a noob too dumb to know better, thought I'd give it a try to see if maybe my test engineering experience could help find a solution.

    Here is a screenshot of my results. It looks like it compiled. I have a zImage file and got no errors that I could see during the compile, just a metric buttload of warnings.

    I'll also attach the zImage file in case someone is crazy enough to try it. I didn't change anything in any of the source files, just extracted the files from the tar.gz and followed the readme.

    Please tell me I'm crazy and this doesn't work :)
     

    Attached Files:




    1. Download the Forums for Android™ app!


      Download

       
  2. hroark13

    hroark13 Android Expert
    Recognized Developer

    well there are two kernel sources the ed13 which compiles with little or no errors, but does not boot

    and ee14 that gives alot of errors during compile and does not boot

    these images once compiled do not match the kernel zimage that is pulled from the phones boot.img, so samsung is leaving something out of the source

    the compile kernel should match the kernel on the phone exactly, unless you change the config settings of the kernel source

    hope that helps

    I have been trying to compile a working kernel, but I am new to this, so i may just be screwing something up, but Shabby has had the same problems trying to make a kernel
     
  3. Koumajutsu

    Koumajutsu Android Expert
    Thread Starter

    I see what i did, I was using the ED13 source.
    I work with people that compile kernels for ARM based processors on a near daily basis. I think I have instructions from one of them on how to compile a kernel for an ARM7.
    From what i was able to observe during my first attempt, the Prevail's processor is ARM based so it may be a similar setup.

    Due to the holiday weekend, I don't get a chance to play again until Tuesday.

    I'm a LabVIEW developer by trade, and more of a hardware guy outside of that, but sometimes when I test the waters outside my expertise, i get lucky :)
     
  4. hroark13

    hroark13 Android Expert
    Recognized Developer

    i am messing with kernel stuff this weekend too, but I am not make too much progress


    I think i might make some type of uart cable, i would like to see why the kernel is not booting, or what erros there are, i have no idea if this will work on this phone, but i got the idea from

    232 - serial - USART - UART - xda-developers
     
  5. Shabbypenguin

    Shabbypenguin Extreme Android User

    logcat and dmsg :)

    actually both of them should compile with no errors, a shitload of warnings tho.. but all kernels have em (scary eh? )
     
  6. Koumajutsu

    Koumajutsu Android Expert
    Thread Starter

    I noticed that a lot of the warnings were for functions that were not used anywhere. That's pretty normal for code meant for reuse. Optimization should be pulling that unused code out to save space.
    What does scare me is the items that give the warning that a variable might be read before the value gets initialized. I'm so used to looking at vital safety systems that it raises a huge red flag for me
     
  7. Koumajutsu

    Koumajutsu Android Expert
    Thread Starter

    That's pretty slick. It reminds me a lot of the tricks Logitech did to make the USB/PS2 mice. that little green adapter was just a straight through pin adapter and PS2 was pretty much signal level compatible with RS-232
     
  8. Koumajutsu

    Koumajutsu Android Expert
    Thread Starter

    Well, the hacker in me couldn't leave well enough alone.
    So I sat down and was reading the documentation that came with the source and after reading through kernel/Documentation/Changes I found that I didn't have many of the packages they say are required in my virtual Ubuntu install. So I found them all in the package manager and now it's installing 237 new packages!!!!
    I'll try a clean after that.
    What's the fastest way for me to learn how to disassemble boot.img so I can compare all of the mad science I perform to the real deal?
     
  9. hroark13

    hroark13 Android Expert
    Recognized Developer

    which packages are you installing
     
  10. Koumajutsu

    Koumajutsu Android Expert
    Thread Starter

    2858299 out of 2972520 bytes were different after compiling an ED13 kernel this 2nd attempt
     
  11. Koumajutsu

    Koumajutsu Android Expert
    Thread Starter

    Shoot, I can't remember which exactly were missing.

    I just went down this list in Ubuntu's package manager and flagged anything that was missing to install and accepted any dependencies. I think btrfs-progs I had to search for and iirc it was a part of btrfs-tools
     

Samsung Galaxy Prevail Forum

The Samsung Galaxy Prevail release date was April 2011. Features and Specs include a 3.2" inch screen, 2MP camera, GB RAM, MSM7627-3 processor, and 1500mAh battery.

April 2011
Release Date
0
Reviews
Loading...
Similar Threads - Kernel Question
  1. kylabeardad
    Replies:
    4
    Views:
    347
  2. corvairbob
    Replies:
    7
    Views:
    256
  3. FranzKafkaYs
    Replies:
    0
    Views:
    154
  4. jensdraht1999
    Replies:
    0
    Views:
    215
  5. AdiA
    Replies:
    6
    Views:
    381
  6. rickjohnson78
    Replies:
    1
    Views:
    358
  7. Degenhard
    Replies:
    0
    Views:
    327
  8. Brickmeister
    Replies:
    6
    Views:
    498
  9. Jbm11208
    Replies:
    4
    Views:
    2,093
  10. oneytlam
    Replies:
    3
    Views:
    4,954

Share This Page

Loading...