I hope I found a solution.I find no way to avoid bus error except copying binary to /tmp.
@pieterg/gutemine: If I use ubiformat, I don't need to do a flash_erase before, or?
Posted 6 July 2013 - 11:38
Posted 6 July 2013 - 14:29
Edited by betacentauri, 6 July 2013 - 14:31.
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
Posted 6 July 2013 - 16:51
GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K
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
Posted 7 July 2013 - 19:37
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
Posted 7 July 2013 - 21:13
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
Posted 14 July 2013 - 13:03
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??
0 members, 1 guests, 0 anonymous users