• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Thoughts On CM7

asadullah

Android Enthusiast
So I was looking at our sister phone the black and ran across this. It's a guide on compiling cm7 for the black. Right now I'm re-downloading the source in an attempt to build it and modify it to work on our phones. I don't think it would be that hard but my issue is that I don't have as much time as I would need to properly maintain it. I'm trying to get some people that have maintained multiple phones such as whyzor and tdm.
I'm going after cm7 since cm9 just isn't stable enough and this is the easiest route to go since we already have a gingerbread kernel (it's the easiest route)
 
I'm no ROM chef but I can say with certainty that I'd rather have a stable, snappy port of CM7 for my Sprint Marquee than a build of CM9 with flaws.

I, and I'm sure everybody out there, would be incredibly appreciative of any work done by you and others towards bringing CM to our Marquees. It's a wonderful Android experience and I'm sure would be very nice on our handsets.
 
Originally Posted by Asadullah
So I was looking at our sister phone the black and ran across this. It's a guide on compiling cm7 for the black. Right now I'm re-downloading the source in an attempt to build it and modify it to work on our phones. I don't think it would be that hard but my issue is that I don't have as much time as I would need to properly maintain it. I'm trying to get some people that have maintained multiple phones such as whyzor and tdm.
I'm going after cm7 since cm9 just isn't stable enough and this is the easiest route to go since we already have a gingerbread kernel (it's the easiest route)
This being my first smartphone, I have never seen or used CM7 before. Though I have heard good things about it. Thanks in Advanced for your work and any others that may decide to take on the project. Maybe you and |Monster| could work together on this, just a suggestion since he was saying something similar in his post here: (http://androidforums.com/marquee-al...ts-v1-2-beta-updated-4-6-a-7.html#post4195362)
This is what he posted:
Originally Posted by |Monster|
ok guys, i was going to post the new version without CIQ but im having a small issue so i dont want to release it. Its not a huge deal but im picky, everything is working good so far except android system fc's on boot (thats the only time). After that it runs fine.

If anybody is good at deodexing and wants to help with about 4 files that'd be awesome. (mainly the framework).
I already deoxeded it successfully but it wont boot with the new deodex framework, it does however boot with the old one.

edit: looks like it maybe the boot.img, as its doing it to me on the stock odex as well. I may be at a stand-still for a little while. I need a break and sometime to think about $h*t to change, move to a new apartment, and work on my school final. I cannot wait for bloodawn's roms because i'd rather contribute to others then do it by myself.
 
Here's my repo.

https://github.com/Craptorman

I started working on this for the AS855 Ignite and based it off the LG Black. I had it in the process of building and fixing errors as they came along but now I can't even get it to "lunch" or "brunch" like it was before.

The repo has the LS855 Marquee that I was getting ready also. Feel free to use any of whats there. The ignite is more up to date with the lastest info I had.

I'm so frustrated with it that I needed to leave it be for awhile:cool:
 
Here's my repo.

https://github.com/Craptorman

I started working on this for the AS855 Ignite and based it off the LG Black. I had it in the process of building and fixing errors as they came along but now I can't even get it to "lunch" or "brunch" like it was before.

The repo has the LS855 Marquee that I was getting ready also. Feel free to use any of whats there. The ignite is more up to date with the lastest info I had.

I'm so frustrated with it that I needed to leave it be for awhile:cool:



Thankyou I'm sure it will help.
 
I noticed that the Marquee for Boost still has the SIM toolkit in it.
I'm guessing they didn't completely change the software from the Black.
They just modified it. Will this make it easier or harder to port the ROM?

Just being curious. I've been out of the loop for a while. =|
 
I've been working on porting the Blacks CM7 but haven't been able to get it boot at all. Have another build to try when I get time.
 
I've been working on porting the Blacks CM7 but haven't been able to get it boot at all. Have another build to try when I get time.


I finally got it building. If it builds correctly then I'm gonna try the old school porting method of just switching out the kernel in the boot.img and then the proprietary files to see if it boots. Right now that's my concern as well as wondering if it has the ext 4 file system that could be a problem if it doesn't.
Also it'll save time. Well we'll know by morning.
 
I finally got it building. If it builds correctly then I'm gonna try the old school porting method of just switching out the kernel in the boot.img and then the proprietary files to see if it boots. Right now that's my concern as well as wondering if it has the ext 4 file system that could be a problem if it doesn't.
Also it'll save time. Well we'll know by morning.

good luck!
 
I finally got it building. If it builds correctly then I'm gonna try the old school porting method of just switching out the kernel in the boot.img and then the proprietary files to see if it boots. Right now that's my concern as well as wondering if it has the ext 4 file system that could be a problem if it doesn't.
Also it'll save time. Well we'll know by morning.

Amazing! Awesome. Best of luck!
 
I'm getting somewhere on porting the Black's CM7 to my AS855. I'm getting it to boot to the CM7 boot animation and looking thru logcat log. Right now its looping on me. More digging.
 
I'm getting somewhere on porting the Black's CM7 to my AS855. I'm getting it to boot to the CM7 boot animation and looking thru logcat log. Right now its looping on me. More digging.


I'm where your at. Check the mount points i know that the update script originally was targeting mmcblkp7 for system or something I gotta look. But it's wrong for my device but may be right for yours. I had better luck using the whole boot.img from the marquee to get to where I'm at
 
My mount points are the same as yours. I fixed those right away in the updater-script. My next try I'll extract the P970's boot.img and replace the kernel with mine. Then edit the dev/block/mmcblk0pX in the init.rc. Not sure if this is the way to go or not:cool:

Here's the P970 origonal
Code:
# mount mtd partitions
    # Mount /system rw first to give the filesystem a chance to save a checkpoint
    mount ext4 /dev/block/mmcblk0p8 /system ro noatime barrier=1 wait
    # We chown/chmod /data again so because mount is run as root + defaults
    mount ext4 /dev/block/mmcblk0p9 /data nosuid nodev noatime barrier=1 wait
    chown system system /data
    chmod 0771 /data

#[LGE_star]Hyunwoong.ahn^M
    mount ext3 /dev/block/mmcblk0p6 /dvp/hwkey nosuid nodev
    chown system system /dvp/hwkey
    chown system divxdrm /dvp/hwkey/key.hw
    chmod 0660 /dvp/hwkey/key.hw
    mount ext3 /dev/block/mmcblk0p6 /dvp/userdata nosuid nodev
    chown system divxdrm /dvp/userdata
    chmod 0770 /dvp/userdata
    chown system system /dev/block/mmcblk0p5
    chown system system /dev/block/mmcblk0p12
        chmod 0777 /dev/block/mmcblk0p5
        chmod 0777 /dev/block/mmcblk0p12

    mount ext4 /dev/block/mmcblk0p10 /cache nosuid nodev noatime barrier=1 wait

    mkdir /lgdrm 0770 lgdrm lgdrm_acc
    mount ext3 /dev/block/mmcblk0p5 /lgdrm nosuid nodev
And here's what I've changed it to:
Code:
# mount mtd partitions
    # Mount /system rw first to give the filesystem a chance to save a checkpoint
    mount ext4 /dev/block/mmcblk0p5 /system ro noatime barrier=1 wait
    # We chown/chmod /data again so because mount is run as root + defaults
    mount ext4 /dev/block/mmcblk0p6 /data nosuid nodev noatime barrier=1 wait
    chown system system /data
    chmod 0771 /data

#[LGE_star]Hyunwoong.ahn^M
    mount ext3 /dev/block/mmcblk0p9 /dvp/hwkey nosuid nodev
    chown system system /dvp/hwkey
    chown system divxdrm /dvp/hwkey/key.hw
    chmod 0660 /dvp/hwkey/key.hw
    mount ext3 /dev/block/mmcblk0p9 /dvp/userdata nosuid nodev
    chown system divxdrm /dvp/userdata
    chmod 0770 /dvp/userdata
    chown system system /dev/block/mmcblk0p8
    chown system system /dev/block/mmcblk0p11
        chmod 0777 /dev/block/mmcblk0p8
        chmod 0777 /dev/block/mmcblk0p11

    mount ext4 /dev/block/mmcblk0p7 /cache nosuid nodev noatime barrier=1 wait

    mkdir /lgdrm 0770 lgdrm lgdrm_acc
    mount ext4 /dev/block/mmcblk0p8 /lgdrm nosuid nodev
Not quite sure on mmcblk0p8 and mmcblk0p11. Will try this sometime today.


YEH! BOOTED INTO HOME SCREEN! NOW TO SEE WHAT WORKS AND WHAT DOESN'T.

No sound. Wifi can see networks but reboots when trying to connect. With wifi off it rarely reboots. USB works, mounts SD Card. Camera locks up when you take a pick. Phone doesn't work. ANyone know of all the radio files that need to be inplace? Now to dig thru logcat output.
 
My mount points are the same as yours. I

YEH! BOOTED INTO HOME SCREEN! NOW TO SEE WHAT WORKS AND WHAT DOESN'T.

Do you remember exactly what you changed it will save us both time? Also to get the wifi to work you will need to change out your wireless.ko and other module files in system/etc/wifi

This sucks cuz I just booted into windows now I gotta go back.
 
Yep, I already copied my wireless.ko over. Thanks for the idea tho. I had already copied over files from my phone and I was getting to CM logo and it would hang on netd error. Replaced netd file with the one from my phone and that got past that. But then it was looping at CM logo. Numerous errors about a argument not being an integer. Could figure that one out so I tried the below to see what would happen. Once I built this new boot.img I describe below it booted into the main menu.


  1. Install/setup dsixda's Android Kitchen.
  2. I grabbed the Black's update-cm-7.2.0-RC1-p970-signed.zip.
  3. Extracted the boot.img from this with Kitchen
  4. Did the same with my boot.img.
  5. Copied my kernel (zImage) to the Black's.
  6. Then in the Black's init.rc I made the mount changes I listed above. Also changed line 708 to "--baudrate 3000000 --patchram /etc/firmware/BCM43291A0_003.001.013.0141.0160.hcd /dev/ttyO1" . You may need to change this to match your .hcd file.
  7. In the Black's default.prop make these changes
    ro.secure=0
    ro.allow.mock.location=1
    ro.debuggable=1
    persist.service.adb.enable=1 *if not 1 adb logcat won't work while booting.
  8. Then I repackaged the Black's folder into boot.img with Kitchen. So now it has kernel from AS855 and modified init.rc file
  9. Replaced boot.img in update-cm-7.2.0-RC1-p970-signed.zip with this new one
  10. Then I unzipped this to a folder and replaced files from my AS855. I based what I replaced, on this, more or less. Also change mount points in updater-script.


Whew! Make any sense:D Hopefully this is of some help to you. One last note, I put the Blacks files in system\lib\hw back and now wifi doesn't crash when trying to connect. However, it won't connect tho.:confused: Also cell/data phone doesn't work. Anyone know the specific files to look at for this?
 
Yep, I already copied my wireless.ko over. Thanks for the idea tho. I had already copied over files from my phone and I was getting to CM logo and it would hang on netd error. Replaced netd file with the one from my phone and that got past that. But then it was looping at CM logo. Numerous errors about a argument not being an integer. Could figure that one out so I tried the below to see what would happen. Once I built this new boot.img I describe below it booted into the main menu.


  1. Install/setup dsixda's Android Kitchen.
  2. I grabbed the Black's update-cm-7.2.0-RC1-p970-signed.zip.
  3. Extracted the boot.img from this with Kitchen
  4. Did the same with my boot.img.
  5. Copied my kernel (zImage) to the Black's.
  6. Then in the Black's init.rc I made the mount changes I listed above. Also changed line 708 to "--baudrate 3000000 --patchram /etc/firmware/BCM43291A0_003.001.013.0141.0160.hcd /dev/ttyO1" . You may need to change this to match your .hcd file.
  7. In the Black's default.prop make these changes
    ro.secure=0
    ro.allow.mock.location=1
    ro.debuggable=1
    persist.service.adb.enable=1 *if not 1 adb logcat won't work while booting.
  8. Then I repackaged the Black's folder into boot.img with Kitchen. So now it has kernel from AS855 and modified init.rc file
  9. Replaced boot.img in update-cm-7.2.0-RC1-p970-signed.zip with this new one
  10. Then I unzipped this to a folder and replaced files from my AS855. I based what I replaced, on this, more or less. Also change mount points in updater-script.


Whew! Make any sense:D Hopefully this is of some help to you. One last note, I put the Blacks files in system\lib\hw back and now wifi doesn't crash when trying to connect. However, it won't connect tho.:confused: Also cell/data phone doesn't work. Anyone know the specific files to look at for this?

you're booted tho? care to share? (u can pm me if u want)
 
I got CM7 to boot on Boost Marquee by modifying Craptorman's files. Getting the same errors, but we'll see how it goes.

screenshot-1334610270834.png
 
I got CM7 to boot on Boost Marquee by modifying Craptorman's files. Getting the same errors, but we'll see how it goes.

screenshot-1334610270834.png
Nice to see the possibility of CM7 heading our way!! Thanks to Asadullah - Craptorman - and |Monster| for looking into this. Thanks guys!!
 
Notice the baseband is missing. I believe RIL stuff looks for that to match. If its unknown I don't believe the radio will work. Not sure tho, still new at this stuff.:)
 
Notice the baseband is missing. I believe RIL stuff looks for that to match. If its unknown I don't believe the radio will work. Not sure tho, still new at this stuff.:)

yeah, that among other things.

things that dont work: 3g, bluetooth, wi-fi can discover but not connect, camera button doesnt work.

other than that it works, home button acts funny sometimes

edit: I used hyper kernel 0.1 with this as well, and it works fine
 
voice and text working? if not then RIL isnt working. odd wifi isnt erroring too tho. I'm off work this weekend so I'll have more time to help ya out.
 
voice and text working? if not then RIL isnt working. odd wifi isnt erroring too tho. I'm off work this weekend so I'll have more time to help ya out.

Correct voice and text don't work. The wifi problem is weird. Once u try to connect it reboots, but it discovers

Sent from my LG-LG855 using Tapatalk 2 Beta-5
 
Correct voice and text don't work. The wifi problem is weird. Once u try to connect it reboots, but it discovers

Sent from my LG-LG855 using Tapatalk 2 Beta-5


I have my source building again. Running into libcamera errors and wpa supplicant errors again. I'm back to where I was before:cool:

If you want to send me the files off your phone that the extract-files.sh pulls and can start on the Marquee as well?
 
Back
Top Bottom