Editing the read-only parts of an image - Page 3
Register
Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 60
  1. #31
    Junior Member
    Join Date
    Mar 2008
    Posts
    27
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    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; 28th January, 2009 at 06:12 PM.

  2. #32
    Newbie
    Join Date
    Jan 2009
    Posts
    8
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    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....

  3. #33
    Junior Member drhg's Avatar
    Join Date
    Apr 2008
    Location
    every where
    Posts
    32
    Thanks Thanks Given 
    7
    Thanks Thanks Received 
    7
    Thanked in
    5 Posts

    Default

    Quote Originally Posted by baderh View Post
    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; 29th January, 2009 at 10:21 PM.
    Dreambox Developer
    --CLi Team--
    --U.R Team--



  4. #34
    Newbie
    Join Date
    Nov 2008
    Posts
    18
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Devilfish hi

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

  5. #35
    Newbie
    Join Date
    Jan 2009
    Posts
    2
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    this method works with mtd0 too?

  6. #36
    Top Poster
    Join Date
    May 2008
    Posts
    162
    Thanks Thanks Given 
    3
    Thanks Thanks Received 
    44
    Thanked in
    29 Posts

    Default

    22222222222222222222222222222222
    Last edited by micromouse; 12th September, 2013 at 11:45 AM.

  7. #37
    Newbie
    Join Date
    Sep 2008
    Posts
    3
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    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

  8. #38
    Junior Member
    Join Date
    Apr 2009
    Posts
    39
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    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

  9. #39
    Newbie
    Join Date
    Sep 2008
    Posts
    3
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    @badboy123

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

  10. #40
    Junior Member
    Join Date
    Apr 2009
    Posts
    39
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

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

    Thanks

  11. #41
    Newbie
    Join Date
    Sep 2008
    Posts
    3
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    @badboy123

    What is the size of your .img file?

  12. #42
    Junior Member
    Join Date
    Apr 2009
    Posts
    39
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    5.29 MB...This transfers across with no problems

  13. #43
    Junior Member
    Join Date
    Aug 2008
    Posts
    30
    Thanks Thanks Given 
    1
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Are you using mksquashfs from the the dreambox cdk?

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

  14. #44
    Junior Member
    Join Date
    Apr 2009
    Posts
    39
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

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

    Thanks.

  15. #45
    Junior Member
    Join Date
    Nov 2008
    Posts
    25
    Thanks Thanks Given 
    1
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default 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 Attached Files
    Last edited by Wizard1; 11th January, 2010 at 11:37 AM.

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.