Editing the read-only parts of an image - Page 2
Register
Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 60
  1. #16
    Administrator
    Devilfish's Avatar
    Join Date
    Feb 2008
    Location
    /cdk
    Posts
    7,844
    Thanks Thanks Given 
    71
    Thanks Thanks Received 
    2,545
    Thanked in
    203 Posts

    Default

    If you want to add fonts, just upload them to /var/tuxbox/config/enigma/fonts

    Adding a font would not cause the image to hang. Looking for a font that's not there would.

    Are you sure you flash erased /dev/mtd/5 and not /dev/mtd/3?
    Get Digital Kaos on your Apple or Android device with Tapatalk

  2. #17
    Newbie
    Join Date
    Jan 2009
    Posts
    12
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    hi
    I know that we can upload /var/tuxbox/config/enigma/fonts
    but only case to test
    about flash erased /dev/mtd/5 and not /dev/mtd/3
    I do steps above if it cause the problem I will check that with older versions

    /dev/mtd/3 - is bootloader then need jtag

    Thanks @Devilfish
    Last edited by ajeeb; 4th January, 2009 at 01:13 PM. Reason: fix

  3. #18
    Newbie
    Join Date
    Jan 2009
    Posts
    12
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    @Devilfish hi
    maybe this cause the problem? to get it works?

    Code:
    root@dreambox:/tmp> tar -cf root.tar root       
    tar: Names longer than 100 chars not supported
    tar: Names longer than 100 chars not supported. 
    tar: Names longer than 100 chars not supported.
    br

  4. #19
    Newbie
    Join Date
    Jan 2009
    Posts
    13
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Devil: I have some questions.

    1. What is /dev/mtdblock/5? There is also /dev/mtdblock/6 in the rcS file.

    2. If I am going to replace the "bild" file, does that mean i need to apply your method, but instead of mounting /dev/mtdblock/5 in read-only-mode, i shall mount /dev/mtdblock/6 ?

    3. In summary what you did is this:
    • Dreambox: Backup the section you want to edit
    • Dreambox: Transfer the backup file to your linux box
    • Linux Box: Extract the backup file and edit the files
    • Linux Box: Generate the squashfs file and transfer the file to the dreambox
    • Linux Box: Replace the old section with the updated file and reboot the dreambox "How is this going to work? You are still in read-only mode?!! I shall try it first!"




    thnx...
    Last edited by mat989; 19th January, 2009 at 04:49 AM.

  5. #20
    Administrator
    Devilfish's Avatar
    Join Date
    Feb 2008
    Location
    /cdk
    Posts
    7,844
    Thanks Thanks Given 
    71
    Thanks Thanks Received 
    2,545
    Thanked in
    203 Posts

    Default

    If you type more /proc/mtd it will show you the different memory locations on the dreambox.

    mtd5 is the SquashFS section that we want to edit. This is all the folders that you see when you ftp to the box, except /var and /tmp.

    So we extract mtd5 from the box, transfer it to our linux PC, edit it as you like and then recompile it back into an mtd5.img. Transfer the mtd5.img back to the box and flash it again. You are not flashing the complete image, only the mtd5 memory location. So now the complete image on the dreambox should have your edits.

    In the DK images, the bild file is in /bin so you can easily edit it using this method.

    @ajeeb, I completed that command without any problems on my dreambox. (see pic)
    Attached Images Attached Images
    Last edited by Devilfish; 19th January, 2009 at 03:12 PM.
    Get Digital Kaos on your Apple or Android device with Tapatalk

  6. #21
    Newbie
    Join Date
    Jan 2009
    Posts
    13
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    thnx...

    I am using Gemini 4.6. The bild file is in the root file. root gets mounted at boot time to show the image , and then unmounted
    mount -t cramfs /dev/mtdblock/6 /root -o loop
    /bin/showlogo /root/root/platform/kernel/bild
    umount /root
    I tried to mount it rw but w/o success. I am using putty and winscp

  7. #22
    Administrator
    Devilfish's Avatar
    Join Date
    Feb 2008
    Location
    /cdk
    Posts
    7,844
    Thanks Thanks Given 
    71
    Thanks Thanks Received 
    2,545
    Thanked in
    203 Posts

    Default

    Try backing up mtd6 instead of mtd5.
    Get Digital Kaos on your Apple or Android device with Tapatalk

  8. #23
    Newbie
    Join Date
    Jan 2009
    Posts
    13
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    thnx... i am testing it at the moment...

    i backed up mtd6 and i am currently editing the root

    will get back to you with the results

  9. #24
    Newbie
    Join Date
    Jan 2009
    Posts
    13
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    hmmm... the box is dead! I am flashing back with DreamUP....

  10. #25
    V.I.P. Member satman's Avatar
    Join Date
    Jun 2008
    Location
    Never Never Land
    Posts
    736
    Thanks Thanks Given 
    1
    Thanks Thanks Received 
    5
    Thanked in
    1 Post

    Default

    Quote Originally Posted by mat989 View Post
    hmmm... the box is dead! I am flashing back with DreamUP....

    always get serial debug log so you have idea where you went wrong
    post results of a "cat < /proc/mtd" see what the mtd partitions mounted are after you reflash back the gemini.

    regards
    boom!

  11. #26
    Newbie
    Join Date
    Jan 2009
    Posts
    4
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Hi
    I have found a sloution for the blank screen or the dead box

    after you have produce mtd5.img do a Factory reset on the db wait for the db to reboot do not load any thing to the box then ftp the mtd5.img to tmp telnet to the box and
    cd /tmp && eraseall /dev/mtd/5 && cp mtd5.img /dev/mtd/5 && reboot

    this should work in all images

    Regards

  12. #27
    Administrator
    Devilfish's Avatar
    Join Date
    Feb 2008
    Location
    /cdk
    Posts
    7,844
    Thanks Thanks Given 
    71
    Thanks Thanks Received 
    2,545
    Thanked in
    203 Posts

    Default

    Thanks for the information viper76. Hopefully will help others with problems.
    Get Digital Kaos on your Apple or Android device with Tapatalk

  13. #28
    Newbie
    Join Date
    Jan 2009
    Posts
    8
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    i will try it today... will let you know

    note: used to try it and black screen

  14. #29
    Newbie
    Join Date
    Jan 2009
    Posts
    8
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    It didnt work black screen again

  15. #30
    Newbie
    Join Date
    Jan 2009
    Posts
    12
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    not tested yet but thanks @VIPER76
    as soon as possible !will test

    thanks Devilfish for the gr8 topic

 

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