Jump to content


Photo

OpenPLi v1.0 Enigma1 boot logo change


  • Please log in to reply
56 replies to this topic

Re: OpenPLi v1.0 Enigma1 boot logo change #21 PaphosAL

  • Senior Member
  • 251 posts

+2
Neutral

Posted 3 April 2011 - 18:58

Timed out for editing-

As I was saying- I did not tell you to edit rcS like you have done it: You just need that ONE command line:

/bin/showlogo /var/etc/bild

and not the lines directly above and below it!! You are no longer mounting and unmounting the mtd6 cramfs partition, remember!

Re: OpenPLi v1.0 Enigma1 boot logo change #22 hemertje

  • Forum Moderator
    PLi® Core member
  • 33,471 posts

+118
Excellent

Posted 3 April 2011 - 19:21

and all this for a logo you'll see only ones in a few months ;)

on the Glassfibre 1GB DVB-C...


Re: OpenPLi v1.0 Enigma1 boot logo change #23 PaphosAL

  • Senior Member
  • 251 posts

+2
Neutral

Posted 3 April 2011 - 20:17

and all this for a logo you'll see only ones in a few months ;)



Agreed, Hemertje- but for some people it's the challenge of doing it (and learning how to master the editing / modding of SquashFS in the process).

For others- it's to impress friends and family when they visit. And then I suppose there is a sub-species living in the mud at the bottom of the pond who want a different boot logo for entirely different reasons.

I sense that the OP is a hobbyist, like me, who is a fast learner. Unlike me, LOL! But remember what I suggested earlier in the thread- that you can replace the Radio Mode b/g picture with one of your own, for instance.. It's just fun, really...

Cheers- AL Posted Image

Re: OpenPLi v1.0 Enigma1 boot logo change #24 mamujim

  • Member
  • 22 posts

0
Neutral

Posted 3 April 2011 - 21:09

thanks for clearing things up for me,
i will try again as you suggested.

all this is new to me, i've only been using linux/ubuntu for a day or two...lol
but i think i'm getting the hang of it.../images/smiley/smile.gif

Re: OpenPLi v1.0 Enigma1 boot logo change #25 mamujim

  • Member
  • 22 posts

0
Neutral

Posted 3 April 2011 - 21:51

o.k i have started everything again from the start.
firstly i have flashed the latest openpli-maxvar image.
i am using the desktop as my working directory.
so then, i used ./squazma OpenPLi.img which produced the squashfs-root folder.
the following is displayed in the terminal window:
jim@jimmy-ubuntu:~/Desktop$ ./squazma OpenPLi.img

+------------------------------------------------------------------------+
| SQUAZMA-TOOLS by LraiZer - (tuxbox DM500 squashfs image modding tools) |
+------------------------------------------------------------------------+
| SYNTAX: ./squazma [ -c | dm500 squashfs image file ]			    |
|														  |
| ./squazma -c											    |
| creates DM500 squashfs root partition image from squashfs-root folder. |
|														  |
| ./squazma dm500.img										  |
| extracts the DM500 squashfs root partition from an image file.	    |
| auto stripping CRAMFS (0<0x120000) partition from DM500 image,	    |
| before extracting DM500 squashfs root partition from the image.	   |
+------------------------------------------------------------------------+

4+0 records in
4+0 records out
4 bytes (4 B) copied, 0.0002262 s, 17.7 kB/s
4+0 records in
4+0 records out
4 bytes (4 B) copied, 0.0002276 s, 17.6 kB/s
4+0 records in
4+0 records out
4 bytes (4 B) copied, 0.00023076 s, 17.3 kB/s
OpenPLi.img : found DM500 SQUASHFS partition
OpenPLi.img.squazma : stripping CRAMFS(0<0x100000) partition
8144+0 records in
8144+0 records out
4169728 bytes (4.2 MB) copied, 0.193453 s, 21.6 MB/s
Reading a different endian SQUASHFS filesystem on OpenPLi.img.squazma

created 574 files
created 93 directories
created 197 symlinks
created 0 devices
created 0 fifos

then i edit the /etc/init.d/rcS files and replace the three lines with /bin/showlogo /var/etc/bild and save the file.
then i used ./squazma -c which produced a mtd-root.img on the Desktop.
the following is displayed in the terminal window:
jim@jimmy-ubuntu:~/Desktop$ ./squazma -c

+------------------------------------------------------------------------+
| SQUAZMA-TOOLS by LraiZer - (tuxbox DM500 squashfs image modding tools) |
+------------------------------------------------------------------------+
| SYNTAX: ./squazma [ -c | dm500 squashfs image file ]			    |
|														  |
| ./squazma -c											    |
| creates DM500 squashfs root partition image from squashfs-root folder. |
|														  |
| ./squazma dm500.img										  |
| extracts the DM500 squashfs root partition from an image file.	    |
| auto stripping CRAMFS (0<0x120000) partition from DM500 image,	    |
| before extracting DM500 squashfs root partition from the image.	   |
+------------------------------------------------------------------------+

Creating DM500 root partition image from SQUASHFS-ROOT folder...
Creating big endian 2.1 filesystem on mtd-root.img, block size 65536.

Big endian filesystem, data block size 65536, compressed data, compressed metadata, compressed fragments
Filesystem size 4071.39 Kbytes (3.98 Mbytes)
    33.97% of uncompressed filesystem size (11984.01 Kbytes)
Inode table size 4654 bytes (4.54 Kbytes)
    24.43% of uncompressed inode table size (19047 bytes)
Directory table size 6365 bytes (6.22 Kbytes)
    55.69% of uncompressed directory table size (11429 bytes)
Number of duplicate files found 14
Number of inodes 864
Number of files 574
Number of fragments 36
Number of symbolic links  197
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 93
Number of uids 1
    jim (1001)
Number of gids 1
    jimmy (1000)

then i ftp the mtd-root.img file to the /tmp folder on the dreambox and use the following command:

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

when the box reboots i check the /etc/init.d/rcS file and can see the changes made in that file.
i then ftp your bild file into /var/etc and reboot the dm500s.
when the dm500s reboots i get a black screen where the bootlogo would show up but the menus and everything else work fine.

i'm pretty sure i've done everything right this time, but still no bootlogo .../images/smiley/sad.gif

Re: OpenPLi v1.0 Enigma1 boot logo change #26 PaphosAL

  • Senior Member
  • 251 posts

+2
Neutral

Posted 4 April 2011 - 09:50

Good- that all looks sound. But it remains a mystery why the test logo works for me, but not for you. I uploaded it as a WinRAR archive; I take it you ARE using WinRar to extract the bild file first, and that you haven't transferred bild.rar to /var/etc 'as' bild ???

If so, then please attach a copy of your edited rcS in zip or rar form for me to check.

Thanks- AL Posted Image

Re: OpenPLi v1.0 Enigma1 boot logo change #27 mamujim

  • Member
  • 22 posts

0
Neutral

Posted 4 April 2011 - 11:18

yes, i have extracted the file from bild.rar using ubuntu.
if i play the bild file in ubuntu i can see the commando logo.

can you please confirm that you have done the same using the latest openpli maxvar image and the logo works for you?

i will attach the rcS when i finish work.

btw i am just a hobbyist doing this for fun and a challenge /images/smiley/grin.gif

cheers
mamujim

Re: OpenPLi v1.0 Enigma1 boot logo change #28 mamujim

  • Member
  • 22 posts

0
Neutral

Posted 4 April 2011 - 17:59

please find attached the edited rcS file.

cheers
mamujim

Attached Files

  • Attached File  rcs.zip   1.38KB   8 downloads


Re: OpenPLi v1.0 Enigma1 boot logo change #29 PaphosAL

  • Senior Member
  • 251 posts

+2
Neutral

Posted 5 April 2011 - 10:17

It's OK, I think we have nailed the problem. I asked LraiZer to browse this thread, and he spotted something vital missing, that I'd forgotten all about...

Basically, it's a conflict of Ownership problem in Ubuntu, which LraiZer cured in this line of the squazma script, by adding the bit in red:

./mksquazma squashfs-root mtd-root.img -be -all-root

Just to be sure, I've attached a new Squazma Tools fileset that incorporates this tweak. I'm sure this will resolve your problem, m8.

Cheers- AL Posted Image

Attached Files



Re: OpenPLi v1.0 Enigma1 boot logo change #30 mamujim

  • Member
  • 22 posts

0
Neutral

Posted 5 April 2011 - 11:31

excellent, can't wait to try it when i get home. /images/smiley/grin.gif
so do i still use ./squazma -c or do i use ./mksquazma squashfs-root mtd-root.img -be -all-root , they will both do the same thing right?
i got told off for using the later syntax earlier.....lol
Big thanks to PaphosAL and LraiZer for all your help.
i think i'm getting the hang of this linux/ubuntu system.
/images/smiley/smile.gif

cheers
mamujim

Re: OpenPLi v1.0 Enigma1 boot logo change #31 PaphosAL

  • Senior Member
  • 251 posts

+2
Neutral

Posted 5 April 2011 - 12:12

I strongly recommend that for the root image recompile, you stick to the ./squazma -c command from the Ubuntu terminal console.

AL Posted Image

Re: OpenPLi v1.0 Enigma1 boot logo change #32 mamujim

  • Member
  • 22 posts

0
Neutral

Posted 5 April 2011 - 17:47

arrrrrrrrrgh, still not working !!! /images/smiley/angry.gif

Re: OpenPLi v1.0 Enigma1 boot logo change #33 PaphosAL

  • Senior Member
  • 251 posts

+2
Neutral

Posted 5 April 2011 - 18:55

One last try, as I'm clutching at straws now, LOL! Move your new line in rcS from where it is now (near the top) down to almost near the bottom, like so:

/bin/showlogo /var/etc/bild
exec /bin/start_enigma

exit 0

I think the issue is to do with trying to access the var partition, before it's even been mounted. I have a good feeling about this now, so give it a go, please.

Cheers- AL Posted Image

Re: OpenPLi v1.0 Enigma1 boot logo change #34 mamujim

  • Member
  • 22 posts

0
Neutral

Posted 5 April 2011 - 21:41

now we're getting somewhere...lol

tried as suggested and the commando logo is displayed /images/smiley/grin.gif but it is corrupted /images/smiley/more_sad/6.gif
so looking at the rcS file, i put it under the line where the var partition is mounted, so it's at the start and not the end

echo Mounting /var
/bin/mount -t jffs2 /dev/mtdblock/1 /var
/bin/showlogo /var/etc/bild

but still corrupted bootlogo.

can you please check your rcS file to see where your /bin/showlogo..... line is?

thanks again for all your help so far.

Re: OpenPLi v1.0 Enigma1 boot logo change #35 hemertje

  • Forum Moderator
    PLi® Core member
  • 33,471 posts

+118
Excellent

Posted 5 April 2011 - 21:45

define corrupted?

on the Glassfibre 1GB DVB-C...


Re: OpenPLi v1.0 Enigma1 boot logo change #36 mamujim

  • Member
  • 22 posts

0
Neutral

Posted 5 April 2011 - 22:16

top few lines and bottom few lines of the picture displayed with black blocks on the rest of the screen.

Re: OpenPLi v1.0 Enigma1 boot logo change #37 WanWizard

  • PLi® Core member
  • 68,625 posts

+1,739
Excellent

Posted 5 April 2011 - 22:36

How did you create the logo? It should be a 1-frame mpeg2 file.

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: OpenPLi v1.0 Enigma1 boot logo change #38 mamujim

  • Member
  • 22 posts

0
Neutral

Posted 5 April 2011 - 22:47

created using tmpgenc as described earlier in the thread.
can i extract the mtd6 cramfs kernel partition and replace /root/root/platform/kernel/bild with my own bootlogo then recompile and flash mtd6 partition back?

Re: OpenPLi v1.0 Enigma1 boot logo change #39 PaphosAL

  • Senior Member
  • 251 posts

+2
Neutral

Posted 6 April 2011 - 09:04

created using tmpgenc as described earlier in the thread.
can i extract the mtd6 cramfs kernel partition and replace /root/root/platform/kernel/bild with my own bootlogo then recompile and flash mtd6 partition back?



Yes, you could do it that way, but be very careful to make sure your new logo is not larger than the PLi original you intend to replace! The cramfs mtd6 partition must not exceed 0x100000 Hex (1,048,576 bytes) in size.

In my rcS here, I have the showlogo line near the bottom, like I showed you. You could also try removing it from rcS altogether, and pop that line into /var/etc/init - which is called from rcS (if it exists) during boot. Note that init will only carry that one single line, (unless you already have an init file, in which case you append the line) and it can stay at the default chmod 644 permissions.

Cheers- AL Posted Image

Re: OpenPLi v1.0 Enigma1 boot logo change #40 mamujim

  • Member
  • 22 posts

0
Neutral

Posted 6 April 2011 - 09:50

is there a squazma equivalent for cramfs ?
will try adding the line to /var/etc/init tonight.


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users