Jump to content


Photo

OFG


  • Please log in to reply
75 replies to this topic

Re: OFG #41 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 6 July 2013 - 10:29

I find no way to avoid bus error except copying binary to /tmp.

I hope I found a solution.
@pieterg/gutemine: If I use ubiformat, I don't need to do a flash_erase before, or?
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: OFG #42 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 6 July 2013 - 10:59

no, you should avoid flash_erase (because it clears erasecounters)

Re: OFG #43 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 6 July 2013 - 11:12

Thanks pieterg.

Here's a new version without using flash_erase for rootfs.

Attached Files


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: OFG #44 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 6 July 2013 - 11:28

Wait! There's something wrong. System don't reboots automatically...
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: OFG #45 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 6 July 2013 - 11:38

Strange. Flashing was successful, I only needed to reboot "manually" (switch off and on). No usb flash was needed.

After that I have flashed 2 times without problems (perhaps it has something to do that I have tested with a self build gstreamer 1.0.7 image which is known to eat much memory).
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: OFG #46 Dimitrij

  • PLi® Core member
  • 10,022 posts

+338
Excellent

Posted 6 July 2013 - 12:22

My receiver does not automatically reboot after flashing(in plugin).

In telnet ok.


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: OFG #47 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 6 July 2013 - 14:29

If you start the receiver manually everything works fine? Then flashing was successful and "only" reboot didn't work.
Currently I don't understand why sometimes the box don't reboot.
And you only have exchanged the binary. You didn't change anything in your plugin, right?

Edited by betacentauri, 6 July 2013 - 14:31.

Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: OFG #48 Dimitrij

  • PLi® Core member
  • 10,022 posts

+338
Excellent

Posted 6 July 2013 - 15:50

If you start the receiver manually everything works fine? Then flashing was successful and "only" reboot didn't work.
Currently I don't understand why sometimes the box don't reboot.
And you only have exchanged the binary. You didn't change anything in your plugin, right?

No,flashing not work.


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: OFG #49 Dimitrij

  • PLi® Core member
  • 10,022 posts

+338
Excellent

Posted 6 July 2013 - 16:51

betacentauri

working!(problem os.system)


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: OFG #50 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 6 July 2013 - 17:30

Thanks for your work! Unfortunately I have no time for testing. I hope I can test tomorrow afternoon.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: OFG #51 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 7 July 2013 - 14:46

Tested it on a Solo2  and on a duo and everything is working fine, only point of criticism is the part when a valid backup is chosen and in the title bar is displayed a message:

For flashing your receiver files are needed:

Select parameter for start flash

kernel_cfe_auto.bin, root_cfe_auto.jffs2

 

jfhsv4.jpg



Re: OFG #52 Dimitrij

  • PLi® Core member
  • 10,022 posts

+338
Excellent

Posted 7 July 2013 - 15:17

This problem = skin PLi-HD.

More precisely screen ChoiceBox.

Why you need a PIG in the window, because it does not have enough space for information...


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: OFG #53 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 7 July 2013 - 19:37

Hi Dima73,

yes, works great! Thanks!

1. To the ChoiceBox: Please exchange it with MessageBox and choose simple = True as parameter. Then it looks like in your screenshots.
Line 483: dlg = self.session.openWithCallback(self.Callbackflashing, MessageBox, text, simple = True, list = open_list)
Delete line 487

2. Some progress informations were really good. I mean while creating and restoring backup.
I can add a new parameter in ofgwrite which shows less informations and these could be shown in GUI. What do you thing?
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: OFG #54 Dimitrij

  • PLi® Core member
  • 10,022 posts

+338
Excellent

Posted 7 July 2013 - 20:56

Hi Dima73,

yes, works great! Thanks!

1. To the ChoiceBox: Please exchange it with MessageBox and choose simple = True as parameter. Then it looks like in your screenshots.
Line 483: dlg = self.session.openWithCallback(self.Callbackflashing, MessageBox, text, simple = True, list = open_list)
Delete line 487

2. Some progress informations were really good. I mean while creating and restoring backup.
I can add a new parameter in ofgwrite which shows less informations and these could be shown in GUI. What do you thing?

1)Ok.I'll post the new version in a week.

2)Information when creating a backup is added.

 

Restoring backup as?

init 2...


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: OFG #55 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 7 July 2013 - 21:13

Yeah, you're almost right. But kernel flashing is done in runlevel 3 so after that you can show some information. After that rootfs flashing is done in runlevel 2.

I'll adapt the binary and you can choose whether you like to show informations or not ;-)
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: OFG #56 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 11 July 2013 - 18:11

Hi Dima73,

 

here is the new version. With parameter -q program writes less log informations to the console.

Attached Files


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: OFG #57 Dimitrij

  • PLi® Core member
  • 10,022 posts

+338
Excellent

Posted 11 July 2013 - 19:59

Hi Dima73,

 

here is the new version. With parameter -q program writes less log informations to the console.

Checked.

			if ret == "simulate":
				text += _("Simulate (no write)")
				cmd = "%s -n %s" % (ofgwrite_bin, dir_flash)
			elif ret == "standart":
				text += _("Standart (root and kernel)")
				#cmd = "%s %s > /dev/null 2>&1" % (ofgwrite_bin, dir_flash)
				cmd = "%s -qkr %s" % (ofgwrite_bin, dir_flash)
			elif ret == "root":
				text += _("Only root")
				#cmd = "%s -r %s > /dev/null 2>&1" % (ofgwrite_bin, dir_flash)
				cmd = "%s -qr %s" % (ofgwrite_bin, dir_flash)
			elif ret == "kernel":
				text += _("Only kernel")
				#cmd = "%s -k %s > /dev/null 2>&1" % (ofgwrite_bin, dir_flash)
				cmd = "%s -qk %s" % (ofgwrite_bin, dir_flash)
			else:
				return
			message = "echo -e '\n"
			message += _('NOT found files for flashing!\n')
			message += "'"
			if ret != "simulate":
				if self.founds:
					message = "echo -e"
					#message = "echo -e '\n"
					#message += _('ofgwrite will stop enigma2 now to run the flash.\n')
					#message += _('Your STB will freeze during the flashing process.\n')
					#message += _('Please: DO NOT reboot your STB and turn off the power.\n')
					#message += _('The image or kernel will be flashing and auto booted in few minutes.\n')
					#message += "'"
			else:
				if self.founds:
					message = "echo -e '\n"
					message += _('Show only found image and mtd partitions.\n')
					message += "'"
			try:
				if os.path.exists(ofgwrite_bin):
					os.chmod(ofgwrite_bin, 0755)
			except:
				pass
			self.session.open(Console, text,[message, cmd])

 


It looks like this->'self.session.open(Console, text,[message, cmd])':

ofgwrite Utility v0.5
Author: Betacentauri
Based upon: mtd-utils-native-1.4.9
Use at your own risk! Make always a backup before use!
Don't use it if you use multiple ubi volumes in ubi layer!

Found kernel file: /media/hdd/et9x00/kernel.bin
Found rootfs file: /media/hdd/et9x00/rootfs.bin

Found /proc/mtd entries:
Device:   Size:     Erasesize:  Name:         Image:
/dev/mtd1 00600000  00020000    "kernel"  ->  /media/hdd/et9x00/kernel.bin
/dev/mtd2 07900000  00020000    "rootfs"  ->  /media/hdd/et9x00/rootfs.bin


Flashing kernel ...

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: OFG #58 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 11 July 2013 - 20:17

Looks good. Will try it tomorrow.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: OFG #59 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 14 July 2013 - 13:03

Hi Dima73,
 
it's a little bit strange. When I execute ofgwrite manually in telnet I see this:
root@et9x00:/media/hdd/automatic_fullbackup/20130714_1307/et9x00# /hdd/ofgwrite -rkq ./

ofgwrite Utility v0.5
Author: Betacentauri
Based upon: mtd-utils-native-1.4.9
Use at your own risk! Make always a backup before use!
Don't use it if you use multiple ubi volumes in ubi layer!

Found kernel file: ./kernel.bin
Found rootfs file: ./rootfs.bin

Found /proc/mtd entries:
Device:   Size:     Erasesize:  Name:         Image:
/dev/mtd1 00600000  00020000    "kernel"  ->  ./kernel.bin
/dev/mtd2 0f900000  00020000    "rootfs"  ->  ./rootfs.bin


Flashing kernel ...done
Flashing rootfs. System will reboot in less than 2 minutes. If it don't reboot you most likely need to flash via USB stick!
....
After printing "Flashing rootfs. System will..." text to console, I execute "init 2". Why is the text not shown in GUI when you flash via plugin? Could that be related to kernel flashing??
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: OFG #60 Dimitrij

  • PLi® Core member
  • 10,022 posts

+338
Excellent

Posted 14 July 2013 - 14:25

Need pause.

 

1)Flashing kernel ...done
Flashing rootfs. System will reboot in less than 2 minutes. If it don'
t reboot you most likely need to flash via USB stick!
2)pause 2 seconds

3)init 2


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users