Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Cracking this ROM for the P700

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    It looks like when you mounted the original system the cramfs mounted with 0 files like what I am seeing. I thought you recompiled cramfs with the new modified one? Thats why it can't copy files. The original system.img must be mounted with the modified cramfs setup.

    Anyway I have made a bunch of progress on boot.img but not perfect. I am testing my last changes now. So far my recompiled boot.img is working on my FAKE Arnova / Polaroid tab

    I will have you test it in a minute if you do not mind Chidave...

    What maybe the key now is getting a good copy of system.img.

    Bob
    "Pzebacz im, bo nie wiedzą, co czynią"
    "Прости им, они не ведают, что творят"
    "Perdona loro perché non sanno quello che fanno"
    "Vergib ihnen, denn sie wissen nicht, was sie tun"
    "Vergeef hen want ze weten niet wat ze doen"
    "Pardonne-leur car ils ne savent pas ce qu'ils font"
    "Perdónalos porque no saben que lo que hacen"
    "Oprosti im, jer ne znaju što čine"
    "Forgive them as they know not what they do"





    Comment


      #32
      Here are the steps I took in modifying cramfs.

      download source and extract

      open terminal

      Code:
      cd ~/Downloads/cramfs-1.1
      export PATH=$PATH:$HOME/Downloads/cramfs-1.1
      make
      gedit linux/cramfs_fs.h
      removed the line: u32 namelen:CRAMFS_NAMELEN_WIDTH, offset:CRAMFS_OFFSET_WIDTH;

      and replace with these 2 lines:
      u32 pad:8, namelen:CRAMFS_NAMELEN_WIDTH;
      u32 offset:CRAMFS_OFFSET_WIDTH;

      saved and exited. then ran

      Code:
      touch cramfsck.c
      make
      ./cramfsck -x system system.img
      After that all files from system were in the system folder

      As I am sure you can tell, I am extremely new to linux! I know there is a couple of things I need to do to make the modified cramfsck fully accessible to the OS, but I am not fully sure of what those things are. I just started teaching myself Linux through online research 2 or 3 months ago. Only way I knew anything else about it was from following android tutorials, but I think I am coming along decently (I hope!) Any way, once again thank you for all of your help thus far and please clue me in on anything I am missing or doing wrong, helps me learn.

      just made things a little more permanent.

      Code:
      sudo cp-r ~/Downloads/cramfs-1.1/cramfsck /bin
      sudo cp-r ~/Downloads/cramfs-1.1/mkcramfs /bin
      Last edited by chidave09; 03 February 2012, 03:12.

      Comment


        #33
        starting with fresh system.img I took some advice from you run file, but modified it as follows:

        Code:
        cd ~/ptab7
        sudo cramfsck -x system system.img
        mkdir system2
        sudo dd if=/dev/zero of=system2.img bs=1M count=180
        sudo /sbin/mkfs.ext3 system2.img
        sudo mount -t ext3 -o loop system2.img system2
        sudo cp -r system/* system2
        sudo umount system2
        uploading resulting image now



        sorry it took so long to get this to you

        this is what I did with a fresh extract of update.img, even less chance of it being corrupt!

        Code:
        cd ~/ptab7
        mkdir update
        mkdir update/Image
        wine AFPTool.exe -unpack update.img update
        sudo cramfsck -x system update/Image/system.img
        mkdir system2
        sudo dd if=/dev/zero of=system2.img bs=1M count=180
        sudo /sbin/mkfs.ext3 system2.img
        sudo mount -t ext3 -o loop system2.img system2
        sudo cp -r system/* system2
        sudo umount system2
        pretty sure it is the same result though, if you don't think so, I will upload the result from that run later
        Last edited by chidave09; 03 February 2012, 05:58.

        Comment


          #34
          Cool thanks!

          OK so you replaced your cramfs in /bin. I assume the -x parameter is new to this version? I was worried about replace my proper cramfs with this one. ARe you still able to mount regular cramfs images?

          Bob
          "Pzebacz im, bo nie wiedzą, co czynią"
          "Прости им, они не ведают, что творят"
          "Perdona loro perché non sanno quello che fanno"
          "Vergib ihnen, denn sie wissen nicht, was sie tun"
          "Vergeef hen want ze weten niet wat ze doen"
          "Pardonne-leur car ils ne savent pas ce qu'ils font"
          "Perdónalos porque no saben que lo que hacen"
          "Oprosti im, jer ne znaju što čine"
          "Forgive them as they know not what they do"





          Comment


            #35
            I never mind I am an idiot. Just getting use to Ubuntu myself from old days with Unix.

            I see the others are in /sbin not /bin.

            Thanks I will try again to compile. Are you in 64bit linux? Also what linux you running?

            Bob
            "Pzebacz im, bo nie wiedzą, co czynią"
            "Прости им, они не ведают, что творят"
            "Perdona loro perché non sanno quello che fanno"
            "Vergib ihnen, denn sie wissen nicht, was sie tun"
            "Vergeef hen want ze weten niet wat ze doen"
            "Pardonne-leur car ils ne savent pas ce qu'ils font"
            "Perdónalos porque no saben que lo que hacen"
            "Oprosti im, jer ne znaju što čine"
            "Forgive them as they know not what they do"





            Comment


              #36
              Success! Your new system image you provded works! It boots on my Arnova but as I said I cant use it since the touch screen does not work. So now to do my final tweaks. I am going to make a full root ROM with no Market pre-installed and one with full market. On the Nextbook when I injected the full Market it did not work so my market files are not compatible with that OS but they maybe with this one.

              So stay tuned! Next will be the P7200 if I can get a image dump of that system.

              Bob
              "Pzebacz im, bo nie wiedzą, co czynią"
              "Прости им, они не ведают, что творят"
              "Perdona loro perché non sanno quello che fanno"
              "Vergib ihnen, denn sie wissen nicht, was sie tun"
              "Vergeef hen want ze weten niet wat ze doen"
              "Pardonne-leur car ils ne savent pas ce qu'ils font"
              "Perdónalos porque no saben que lo que hacen"
              "Oprosti im, jer ne znaju što čine"
              "Forgive them as they know not what they do"





              Comment


                #37
                I got cramfsck to compile. I got it to compile before actually but I did not expect all the warning during compile so I assumed it did not work. This time I just ignored all those warning and tried it and it worked.

                Bob
                "Pzebacz im, bo nie wiedzą, co czynią"
                "Прости им, они не ведают, что творят"
                "Perdona loro perché non sanno quello che fanno"
                "Vergib ihnen, denn sie wissen nicht, was sie tun"
                "Vergeef hen want ze weten niet wat ze doen"
                "Pardonne-leur car ils ne savent pas ce qu'ils font"
                "Perdónalos porque no saben que lo que hacen"
                "Oprosti im, jer ne znaju što čine"
                "Forgive them as they know not what they do"





                Comment


                  #38
                  OK my ROM is done but I cannot use the Market 3.4.4. files I have as it causes a boot loop. So my ROM will come without the Market pre-installed. If anyone has a set of Google Market files that they know work please upload them and I can make a ROM with Market.

                  Anyway stay tuned. New fully rooted ROM coming in a hour or 2

                  Dave, man this ROM was a beoch! I will share with you how to do it after I get some people to test the ROM and I see what the issues are.


                  Bob
                  "Pzebacz im, bo nie wiedzą, co czynią"
                  "Прости им, они не ведают, что творят"
                  "Perdona loro perché non sanno quello che fanno"
                  "Vergib ihnen, denn sie wissen nicht, was sie tun"
                  "Vergeef hen want ze weten niet wat ze doen"
                  "Pardonne-leur car ils ne savent pas ce qu'ils font"
                  "Perdónalos porque no saben que lo que hacen"
                  "Oprosti im, jer ne znaju što čine"
                  "Forgive them as they know not what they do"





                  Comment


                    #39
                    OK getting CLOSE... I am working on one litte issue I found with the sys copy and permissions but I will have a ROM today. Looks pretty good too!

                    All I will say is WHAT THE HECK did these guys do when making the stock ROM. So much stuff is out of performance and just not right! To me it looks like they ported the ROM and did JUST what was needed to get it working... Pretty lame if you ask me but I guess what do you want for a sub $200 Tab....

                    Us user will turn it into a awesome device!

                    Bob
                    "Pzebacz im, bo nie wiedzą, co czynią"
                    "Прости им, они не ведают, что творят"
                    "Perdona loro perché non sanno quello che fanno"
                    "Vergib ihnen, denn sie wissen nicht, was sie tun"
                    "Vergeef hen want ze weten niet wat ze doen"
                    "Pardonne-leur car ils ne savent pas ce qu'ils font"
                    "Perdónalos porque no saben que lo que hacen"
                    "Oprosti im, jer ne znaju što čine"
                    "Forgive them as they know not what they do"





                    Comment


                      #40
                      Version 1.82 is the most compatible version of the market for this tablet: http://goo-inside.me/gapps/gapps-mdp...020-signed.zip or http://goo-inside.me/gapps/gapps-mdp...020-signed.zip

                      Comment


                        #41
                        Originally posted by Finless View Post
                        Cool thanks!

                        OK so you replaced your cramfs in /bin. I assume the -x parameter is new to this version? I was worried about replace my proper cramfs with this one. ARe you still able to mount regular cramfs images?

                        Bob
                        My understanding is that -x is just saying extract. I don't really have any other cramfs images to try mounting so I am not sure if I can or not. The version of linux I am using is Ubuntu 11.10 x64 with all the latest updates, kernel 3.0.xxx. Pretty much unmodded except for cramfsck and a couple other little things that are in no way related to anything we have done or will be doing. I am not using a vm or anything like that, just a simple dual boot with windows 7 (although I find myself using windows less and less by the day!)

                        Downloading your new rom now!

                        Comment


                          #42
                          from xda

                          Originally posted by drob311
                          since we have no recovery and cant flash zips, you think metamorph, zipthemer, etc would work?

                          I was just starting to wonder about this to, but I seriously have no experience with this kind of stuff. I do plan on installing and attempting though!


                          Another thing I would like to fix is if you adb install -s, the apps seem to get installed on internal sd, not external. Also I would like to change default browser download location to external also. I know you can use a different browser and select your dl location, but for some odd reason I am kind of fond of the stock one

                          Bob, got any useful knowledge you could help us out with here?

                          Comment


                            #43
                            This is the comand I use over ADB to install apps fast
                            This assumes you have the apk on the SDcard that you want to install.
                            In this example lets call it tools.apk

                            Adb start-server
                            adb shell
                            # su
                            # busybox install /sdcard/tools.apk /data/app

                            That forces it to install in memory not the sdcard.

                            You can also install all your apps this way.
                            Here I did a backup of all my apps in memory to sdcard

                            # busybox cp -r data/app/* /sdcard/adb_appsback

                            That backed up all apps (note it does not back up app data!!!)

                            Now to actually install them back again. This is not a copy, it is an install!
                            # busybox install sdcard/adb_appsback/* /data/app


                            Enjoy,
                            Bob
                            "Pzebacz im, bo nie wiedzą, co czynią"
                            "Прости им, они не ведают, что творят"
                            "Perdona loro perché non sanno quello che fanno"
                            "Vergib ihnen, denn sie wissen nicht, was sie tun"
                            "Vergeef hen want ze weten niet wat ze doen"
                            "Pardonne-leur car ils ne savent pas ce qu'ils font"
                            "Perdónalos porque no saben que lo que hacen"
                            "Oprosti im, jer ne znaju što čine"
                            "Forgive them as they know not what they do"





                            Comment


                              #44
                              So, in theory, this should work too?

                              Code:
                              adb push ~/ptab7/apps/* /mnt/sdcard/external_sd/apps
                              adb shell
                              # busybox install /mnt/sdcard/external_sd/apps/* /mnt/sdcard/external_sd/data/app
                              Ok, that didn't work so I am guessing it needs to be installed in /data/app or /sdcard/.android_secure?
                              Last edited by chidave09; 07 February 2012, 00:36.

                              Comment


                                #45
                                You should not need the /mnt/ in front of the directories.


                                FYI get ready... new ROM coming soon... ext4 file system which should speed things up a little more Big thanks to Fenice for figuring out how to do ext4.

                                Bob
                                "Pzebacz im, bo nie wiedzą, co czynią"
                                "Прости им, они не ведают, что творят"
                                "Perdona loro perché non sanno quello che fanno"
                                "Vergib ihnen, denn sie wissen nicht, was sie tun"
                                "Vergeef hen want ze weten niet wat ze doen"
                                "Pardonne-leur car ils ne savent pas ce qu'ils font"
                                "Perdónalos porque no saben que lo que hacen"
                                "Oprosti im, jer ne znaju što čine"
                                "Forgive them as they know not what they do"





                                Comment

                                Working...
                                X