Editing the read-only parts of an image

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • scruff1963
    Junior Member
    • Mar 2008
    • 27

    #31
    Not sure as I won't put gemini on my box (clone killer) but is'nt gemini a maxvar image ?

    Not sure if this method works with maxvar images ? you could try specifying the blocksize with -b <blocksize> , I think the default is 65535
    ./mksquashfs -help
    will give more info


    Another thing to check is that you have the correct version of mksquashfs.
    Last edited by scruff1963; 28 January, 2009, 18:12.

    Comment

    • baderh
      Newbie
      • Jan 2009
      • 8

      #32
      how to know which version i have to use? i used 2 versions and still same...

      maybe as you said... i have to mention the size also... once i reach home i will give it a try....

      Comment

      • drhg
        Junior Member
        • Apr 2008
        • 34

        #33
        Originally posted by baderh
        how to know which version i have to use? i used 2 versions and still same...

        maybe as you said... i have to mention the size also... once i reach home i will give it a try....
        just use mksquashfs with lzma patch & all will be ok
        note that all squashfs parts in the recent images need mksquashfs with lzma patch to be recompressed in right way ( pli needs mksquashfs 3 with lzma)
        hope this help
        cheers

        drhg
        Last edited by drhg; 29 January, 2009, 22:21.
        Dreambox Developer
        --CLi Team--
        --U.R Team--


        Comment

        • exclusive2020
          Newbie
          • Nov 2008
          • 18

          #34
          Devilfish hi

          how i can extract all xxxx.img and compress this after edit enything
          plase

          Comment

          • redmarx
            Newbie
            • Jan 2009
            • 2

            #35
            this method works with mtd0 too?

            Comment

            • micromouse
              Top Poster
              • May 2008
              • 162

              #36
              22222222222222222222222222222222
              Last edited by micromouse; 12 September, 2013, 11:45.

              Comment

              • PDApunch
                Newbie
                • Sep 2008
                • 3

                #37
                Hi All

                Perhaps the ones who got this to work could let us know which distro they are using and any additional software they installed on there x86 machine.

                I couldn't get this to work with Slax 6.1.1 mounted on HDD which has squashfs-lzma 3.x support built in. I don't know how to check if the byte order patch has been built in to squashfs? PPC big endian, x86 little endian.

                I did get a different solution working tho using the dreambox itself to put the image back together after editing.

                1. On the dreambox mount an NFS share to your x86 machine.

                2. Create a swap file, format it and turn on swap.

                3. Put your tools and image you want edit in the mounted HDD.

                4. Now you can open a complete image, edit it then pack it back together again.

                Tools and scripts needed:

                mkcramfs
                mkdreamboxfs
                mksquashfs
                uncramfs
                undreamboxfs

                NOTE: The tools I have will not pack it as the same version of squashfs as the newest images, so the image will be slightly larger, but I can CONFIRM this works.

                PS
                This is not a tutorial, just a summary of what I did to edit an image. If there is much interest I will try and document more of what I did.

                Best regards

                Comment

                • badboy123
                  Junior Member
                  • Apr 2009
                  • 39

                  #38
                  I followed the steps by devilfish using ubuntu 9.04...

                  I got upto "
                  ./mksquashfs root mtd5.img -be
                  After putting in that command I got the following error:

                  bash: ./mksquashfs: No such file or directory

                  So I tried the above command without "./" at the begining of mksquashfs and it created the image...I then typed the following in telnet:

                  cd /tmp && eraseall /dev/mtd/5 && cp mtd5.img /dev/mtd/5 && reboot

                  It erased successfully but then gave the error:

                  cp: Write Error: No space left on device

                  I did not make many alterations...I also tried the above process without any changes but still got the above error...

                  Any suggestions on how to resolve this? Thanks

                  Comment

                  • PDApunch
                    Newbie
                    • Sep 2008
                    • 3

                    #39
                    @badboy123

                    Try a reboot of the dreambox before you FTP mtd5.img back to the dreambox, lets us know how you get on.

                    Comment

                    • badboy123
                      Junior Member
                      • Apr 2009
                      • 39

                      #40
                      I tried rebooting before I uploaded the image but still the same issue...do you have any other suggestions?

                      Thanks

                      Comment

                      • PDApunch
                        Newbie
                        • Sep 2008
                        • 3

                        #41
                        @badboy123

                        What is the size of your .img file?

                        Comment

                        • badboy123
                          Junior Member
                          • Apr 2009
                          • 39

                          #42
                          5.29 MB...This transfers across with no problems

                          Comment

                          • duracell
                            Junior Member
                            • Aug 2008
                            • 30

                            #43
                            Are you using mksquashfs from the the dreambox cdk?

                            Code:
                             /home/ubuntu/tuxbox-cvs/root/cdkflash/mksquashfs

                            Comment

                            • badboy123
                              Junior Member
                              • Apr 2009
                              • 39

                              #44
                              I wasnt using that mksquashfs...tried it with that and managed to sort it out...

                              Thanks.

                              Comment

                              • Wizard1
                                Junior Member
                                • Nov 2008
                                • 25

                                #45
                                Black Screen issue

                                Hi Guys

                                I too kept experiencing the blank screen issue after following the Devilfish Tut. I found that the problem was down to the wrong mksquashfs file. The one attatched works perfect for me. Put it on my Desktop (Ubuntu) along with the tuxbox-cvs & root directory. The ''./mksquashfs'' is a correct command. A big thanks to Devilfish for an excellent Tut.

                                Regards

                                Wizard
                                Attached Files
                                Last edited by Wizard1; 11 January, 2010, 11:37.

                                Comment

                                Working...