Editing the read-only parts of an image

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Devilfish
    Administrator
    • Feb 2008
    • 7872

    #16
    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?

    Comment

    • ajeeb
      Newbie
      • Jan 2009
      • 12

      #17
      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; 4 January, 2009, 13:13. Reason: fix

      Comment

      • ajeeb
        Newbie
        • Jan 2009
        • 12

        #18
        @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

        Comment

        • mat989
          Newbie
          • Jan 2009
          • 13

          #19
          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; 19 January, 2009, 04:49.

          Comment

          • Devilfish
            Administrator
            • Feb 2008
            • 7872

            #20
            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 Files
            Last edited by Devilfish; 19 January, 2009, 15:12.

            Comment

            • mat989
              Newbie
              • Jan 2009
              • 13

              #21
              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

              Comment

              • Devilfish
                Administrator
                • Feb 2008
                • 7872

                #22
                Try backing up mtd6 instead of mtd5.

                Comment

                • mat989
                  Newbie
                  • Jan 2009
                  • 13

                  #23
                  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

                  Comment

                  • mat989
                    Newbie
                    • Jan 2009
                    • 13

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

                    Comment

                    • satman
                      V.I.P. Member
                      • Jun 2008
                      • 736

                      #25
                      Originally posted by mat989
                      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!

                      Comment

                      • viper76
                        Newbie
                        • Jan 2009
                        • 4

                        #26
                        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

                        Comment

                        • Devilfish
                          Administrator
                          • Feb 2008
                          • 7872

                          #27
                          Thanks for the information viper76. Hopefully will help others with problems.

                          Comment

                          • baderh
                            Newbie
                            • Jan 2009
                            • 8

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

                            note: used to try it and black screen

                            Comment

                            • baderh
                              Newbie
                              • Jan 2009
                              • 8

                              #29
                              It didnt work black screen again

                              Comment

                              • ajeeb
                                Newbie
                                • Jan 2009
                                • 12

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

                                thanks Devilfish for the gr8 topic

                                Comment

                                Working...