+ osmio4k
This commit is contained in:
@@ -46,7 +46,7 @@ import time
|
|||||||
# warranty, use at YOUR own risk.
|
# warranty, use at YOUR own risk.
|
||||||
|
|
||||||
PLUGINVERSION = '2.05'
|
PLUGINVERSION = '2.05'
|
||||||
UPDATEVERSION = '2.10'
|
UPDATEVERSION = '2.11'
|
||||||
|
|
||||||
class MyUpgrade(Screen):
|
class MyUpgrade(Screen):
|
||||||
screenwidth = getDesktop(0).size().width()
|
screenwidth = getDesktop(0).size().width()
|
||||||
@@ -699,6 +699,16 @@ class NeoBootInstallation(Screen):
|
|||||||
os.system('python /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/findkerneldevice.py')
|
os.system('python /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/findkerneldevice.py')
|
||||||
os.system('dd if=/dev/kernel of=/media/neoboot/ImagesUpload/.kernel/flash-kernel-%s.bin' % getBoxHostName())
|
os.system('dd if=/dev/kernel of=/media/neoboot/ImagesUpload/.kernel/flash-kernel-%s.bin' % getBoxHostName())
|
||||||
|
|
||||||
|
#osmio4k arm
|
||||||
|
elif getBoxHostName == 'osmio4k':
|
||||||
|
os.system('cd /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/' )
|
||||||
|
os.system('cp -Rf /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/neoinitarm /sbin/neoinitarm; cd')
|
||||||
|
os.system('chmod 755 /sbin/neoinitarm; chmod 755 /sbin/neoinitarm')
|
||||||
|
os.system('opkg download kernel-image')
|
||||||
|
os.system('mv /home/root/*.ipk /media/neoboot/ImagesUpload/.kernel/zImage.%s.ipk' % getBoxHostName())
|
||||||
|
os.system('python /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/findkerneldevice.py')
|
||||||
|
os.system('dd if=/dev/kernel of=/media/neoboot/ImagesUpload/.kernel/flash-kernel-%s.bin' % getBoxHostName())
|
||||||
|
|
||||||
|
|
||||||
#VUPLUS MIPS
|
#VUPLUS MIPS
|
||||||
elif getCPUSoC() == '7335' or getCPUSoC() == '7413' or getCPUSoC() == '7325' or getCPUSoC() == '7356' or getCPUSoC() == 'bcm7356' or getCPUSoC() == '7429' or getCPUSoC() == '7424' or getCPUSoC() == '7241' or getCPUSoC() == '7405' or getCPUSoC() == '7405(with 3D)' or getCPUSoC() == '7362' or getCPUSoC() == 'bcm7362' or getCPUSoC() == 'BCM7362' or getCPUSoC() == 'bcm7358' or getCPUSoC() == 'bcm7424' or getBoxHostName() == 'bm750' or getBoxHostName() == 'vuduo' or getBoxHostName() == 'vusolo' or getBoxHostName() == 'vuuno' or getBoxHostName() == 'vuultimo' or getBoxHostName() == 'vuultimo' or getBoxHostName() == 'vusolo2' or getBoxHostName() == 'vuduo2' or getBoxHostName() == 'vusolose' or getBoxHostName() == 'vuzero' or getBoxHostName() == 'mbmini' or getBoxHostName() == 'mbultra' or getBoxHostName() == 'osmini' or getBoxHostName() == 'h3':
|
elif getCPUSoC() == '7335' or getCPUSoC() == '7413' or getCPUSoC() == '7325' or getCPUSoC() == '7356' or getCPUSoC() == 'bcm7356' or getCPUSoC() == '7429' or getCPUSoC() == '7424' or getCPUSoC() == '7241' or getCPUSoC() == '7405' or getCPUSoC() == '7405(with 3D)' or getCPUSoC() == '7362' or getCPUSoC() == 'bcm7362' or getCPUSoC() == 'BCM7362' or getCPUSoC() == 'bcm7358' or getCPUSoC() == 'bcm7424' or getBoxHostName() == 'bm750' or getBoxHostName() == 'vuduo' or getBoxHostName() == 'vusolo' or getBoxHostName() == 'vuuno' or getBoxHostName() == 'vuultimo' or getBoxHostName() == 'vuultimo' or getBoxHostName() == 'vusolo2' or getBoxHostName() == 'vuduo2' or getBoxHostName() == 'vusolose' or getBoxHostName() == 'vuzero' or getBoxHostName() == 'mbmini' or getBoxHostName() == 'mbultra' or getBoxHostName() == 'osmini' or getBoxHostName() == 'h3':
|
||||||
@@ -996,6 +1006,9 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
|||||||
if getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k':
|
if getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k':
|
||||||
os.system('mkdir -p /media/mmc; mount /dev/mmcblk0p5 /media/mmc')
|
os.system('mkdir -p /media/mmc; mount /dev/mmcblk0p5 /media/mmc')
|
||||||
|
|
||||||
|
#if getBoxHostName == 'osmio4k':
|
||||||
|
#os.system('mkdir -p /media/mmc; mount /dev/mmcblk0p5 /media/mmc')
|
||||||
|
|
||||||
|
|
||||||
self.list = []
|
self.list = []
|
||||||
self.setTitle(' NeoBoot %s - Menu' % PLUGINVERSION + ' ' + 'Ver. update: %s' % UPDATEVERSION)
|
self.setTitle(' NeoBoot %s - Menu' % PLUGINVERSION + ' ' + 'Ver. update: %s' % UPDATEVERSION)
|
||||||
@@ -1424,7 +1437,7 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
|||||||
def ImageInstall(self):
|
def ImageInstall(self):
|
||||||
if not fileExists('/.multinfo'):
|
if not fileExists('/.multinfo'):
|
||||||
KERNEL_VERSION = getKernelVersionString()
|
KERNEL_VERSION = getKernelVersionString()
|
||||||
if getCPUSoC() == 'hi3798mv200' or getBoxHostName == 'ax60' or getCPUSoC() == '3798mv200' or getBoxHostName() == 'sf8008' or getCPUSoC() == 'bcm7251' or getBoxHostName() == 'sf4008' or getCPUSoC() == 'bcm7251s' or getCPUSoC() == '7241' or getBoxHostName() == 'h7' or getBoxHostName() == 'dm900' or getCPUSoC() == 'BCM97252SSFF' or getCPUSoC() == '7444s' or getCPUSoC() == '7252s' or getCPUSoC() == '7376' or getCPUSoC() == '72604' or getCPUSoC() == '7278' or getCPUSoC() == '7335' or getCPUSoC() == '7413' or getCPUSoC() == '7325' or getCPUSoC() == '7356' or getCPUSoC() == 'bcm7356' or getCPUSoC() == '7429' or getCPUSoC() == '7424' or getCPUSoC() == '7362' or getCPUSoC() == 'bcm7362' or getCPUSoC() == 'BCM7362' or getCPUSoC() == 'bcm7358' or getCPUSoC() == '7405' or getCPUSoC() == '7405(with 3D)' or getCPUSoC() == 'bcm7424' or getBoxHostName() == 'vuultimo' or getBoxHostName() == 'mbmini' or getBoxHostName() == 'osmini' or getBoxHostName() == 'mbultra' or getBoxHostName() == 'h3':
|
if getBoxHostName == 'osmio4k' or getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k' or getCPUSoC() == 'hi3798mv200' or getBoxHostName == 'ax60' or getCPUSoC() == '3798mv200' or getBoxHostName() == 'sf8008' or getCPUSoC() == 'bcm7251' or getBoxHostName() == 'sf4008' or getCPUSoC() == 'bcm7251s' or getCPUSoC() == '7241' or getBoxHostName() == 'h7' or getBoxHostName() == 'dm900' or getCPUSoC() == 'BCM97252SSFF' or getCPUSoC() == '7444s' or getCPUSoC() == '7252s' or getCPUSoC() == '7376' or getCPUSoC() == '72604' or getCPUSoC() == '7278' or getCPUSoC() == '7335' or getCPUSoC() == '7413' or getCPUSoC() == '7325' or getCPUSoC() == '7356' or getCPUSoC() == 'bcm7356' or getCPUSoC() == '7429' or getCPUSoC() == '7424' or getCPUSoC() == '7362' or getCPUSoC() == 'bcm7362' or getCPUSoC() == 'BCM7362' or getCPUSoC() == 'bcm7358' or getCPUSoC() == '7405' or getCPUSoC() == '7405(with 3D)' or getCPUSoC() == 'bcm7424' or getBoxHostName() == 'vuultimo' or getBoxHostName() == 'mbmini' or getBoxHostName() == 'osmini' or getBoxHostName() == 'mbultra' or getBoxHostName() == 'h3':
|
||||||
self.extractImage()
|
self.extractImage()
|
||||||
else:
|
else:
|
||||||
self.messagebox = self.session.open(MessageBox, _('Nie wykryto odpowiedniego STB do instalacji !!!!'), MessageBox.TYPE_INFO, 8)
|
self.messagebox = self.session.open(MessageBox, _('Nie wykryto odpowiedniego STB do instalacji !!!!'), MessageBox.TYPE_INFO, 8)
|
||||||
@@ -1589,4 +1602,4 @@ from Plugins.Plugin import PluginDescriptor
|
|||||||
def Plugins(**kwargs):
|
def Plugins(**kwargs):
|
||||||
return [PluginDescriptor(name='NeoBoot ', description='NeoBoot', where=PluginDescriptor.WHERE_MENU, fnc=menu), PluginDescriptor(name='NeoBoot', description=_('Installing multiple images'), icon='neo.png', where=PluginDescriptor.WHERE_PLUGINMENU, fnc=main)]
|
return [PluginDescriptor(name='NeoBoot ', description='NeoBoot', where=PluginDescriptor.WHERE_MENU, fnc=menu), PluginDescriptor(name='NeoBoot', description=_('Installing multiple images'), icon='neo.png', where=PluginDescriptor.WHERE_PLUGINMENU, fnc=main)]
|
||||||
|
|
||||||
####################### _(-_-)_ gutosie _(-_-)_ #######################
|
####################### _(-_-)_ gutosie _(-_-)_ #######################
|
||||||
@@ -108,8 +108,8 @@ class StartImage(Screen):
|
|||||||
if fileExists('/media/mmc/etc/init.d/neobootmount.sh'):
|
if fileExists('/media/mmc/etc/init.d/neobootmount.sh'):
|
||||||
os.system('rm -f /media/mmc/etc/init.d/neobootmount.sh;')
|
os.system('rm -f /media/mmc/etc/init.d/neobootmount.sh;')
|
||||||
|
|
||||||
#DM900; AX HD60 4K
|
#ARM procesor: DM900; AX HD60 4K
|
||||||
if getCPUSoC() == 'hi3798mv200' or getBoxHostName == 'ax60' or getCPUSoC() == '3798mv200' or getBoxHostName() == 'sf8008' or getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7' or getCPUSoC() == 'BCM97252SSFF' or getBoxHostName() == 'dm900':
|
if or getBoxHostName == 'osmio4k' or getCPUSoC() == 'hi3798mv200' or getBoxHostName == 'ax60' or getCPUSoC() == '3798mv200' or getBoxHostName() == 'sf8008' or getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7' or getCPUSoC() == 'BCM97252SSFF' or getBoxHostName() == 'dm900':
|
||||||
if getImageNeoBoot() == 'Flash':
|
if getImageNeoBoot() == 'Flash':
|
||||||
if fileExists('/.multinfo'):
|
if fileExists('/.multinfo'):
|
||||||
os.system('cd /media/mmc; ln -sfn /sbin/init.sysvinit /media/mmc/sbin/init; reboot -d -f -h -i')
|
os.system('cd /media/mmc; ln -sfn /sbin/init.sysvinit /media/mmc/sbin/init; reboot -d -f -h -i')
|
||||||
@@ -128,7 +128,7 @@ class StartImage(Screen):
|
|||||||
self.messagebox = self.session.open(MessageBox, _('Wygląda na to że multiboot nie wspiera tego modelu STB !!! '), MessageBox.TYPE_INFO, 8)
|
self.messagebox = self.session.open(MessageBox, _('Wygląda na to że multiboot nie wspiera tego modelu STB !!! '), MessageBox.TYPE_INFO, 8)
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
#MiracleBox, ET8500, Formuler F1, Formuler F3, Atemio6000 - MIPS # test - ultra, osmini
|
#MIPS procesor: MiracleBox, ET8500, Formuler F1, Formuler F3, Atemio6000 - MIPS # test - ultra, osmini
|
||||||
elif getCPUtype() != 'ARMv7' and getCPUSoC() == 'bcm7358' or getCPUSoC() == 'bcm7362' or getCPUSoC() == 'bcm7356' or getCPUSoC() == 'bcm7241' or getCPUSoC() == 'bcm7362' or getBoxHostName() == 'mbmini' or getBoxHostName() == 'h3' or getTunerModel() == 'ini-1000sv': #or getCPUSoC() == 'bcm7424' or getTunerModel() == 'ini-8000sv' or getBoxHostName() == 'osmini'
|
elif getCPUtype() != 'ARMv7' and getCPUSoC() == 'bcm7358' or getCPUSoC() == 'bcm7362' or getCPUSoC() == 'bcm7356' or getCPUSoC() == 'bcm7241' or getCPUSoC() == 'bcm7362' or getBoxHostName() == 'mbmini' or getBoxHostName() == 'h3' or getTunerModel() == 'ini-1000sv': #or getCPUSoC() == 'bcm7424' or getTunerModel() == 'ini-8000sv' or getBoxHostName() == 'osmini'
|
||||||
if getImageNeoBoot() == 'Flash':
|
if getImageNeoBoot() == 'Flash':
|
||||||
self.session.open(TryQuitMainloop, 2)
|
self.session.open(TryQuitMainloop, 2)
|
||||||
|
|||||||
Reference in New Issue
Block a user