Skip to content

Commit

Permalink
[GigaBlue - gb7252] update initrd-cfe
Browse files Browse the repository at this point in the history
*** ONLY A USB-FLASH WILL UPDATE THE STB USING BOOT.BIN, GPT.BIN, RESCUE.BIN, BOLT.BIN ***
*** PLEASE BACKUP IMAGES IN STARTUP_2 and STARTUP_3 FIRST - THEY WILL NO LONGER WORK, DUE TO UPDATED GPT.BIN (CHANGE OF PARTITION SIZES)! ***

* update boot.bin (remove old 3.14.28 entries)

* update gpt.bin STARTUP_1=1,6GB STARTUP_2=800MB STARTUP_3=800MB
Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048            8191   3.0 MiB     8300  boot
   2            8192           16383   4.0 MiB     8300  splash
   3           16384           49151   16.0 MiB    8300  rescue
   4           49152           65535   8.0 MiB     8300  kernel1
   5           65536         3342335   1.6 GiB     8300  rootfs1
   6         3342336         3358719   8.0 MiB     8300  kernel2
   7         3358720         4997119   800.0 MiB   8300  rootfs2
   8         4997120         5013503   8.0 MiB     8300  kernel3
   9         5013504         6651903   800.0 MiB   8300  rootfs3
  10         6651904         7731199   527.0 MiB   8300  swap

* update rescue.bin (increase file size limitation~500MB)

* add bolt_20181120 (bolt will only update once as last step of image flash. same file will be ignored on followup usb-flash.)
  • Loading branch information
arn354 committed Nov 24, 2018
1 parent d043986 commit 8580c6a
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 16 deletions.
5 changes: 5 additions & 0 deletions meta-brands/meta-gigablue/conf/machine/gb7252.conf
Expand Up @@ -12,6 +12,11 @@ require conf/machine/include/gigablue-arm.inc
MTD_BOOTFS = "mmcblk0p1"
MTD_BLACK = "mmcblk0"

SRCDATE_BOLT = "\
${@bb.utils.contains('MACHINEBUILD', 'gbue4k', '20181120' , '', d)}\
${@bb.utils.contains('MACHINEBUILD', 'gbquad4k', '20181120' , '', d)}\
"

MACHINE_FEATURES += "transcoding gigabluelcd ci dvb-c gigabluearmbootvideo nexusplatform blindscan-dvbs blindscan-dvbc mountboot quadpip kodi chromiumos qtegls gb-qthbbtv gbbluetooth \
${@bb.utils.contains('MACHINEBUILD', 'gbue4k', ' colorlcd220 gigabluelcd220' , '', d)} \
${@bb.utils.contains('MACHINEBUILD', 'gbquad4k', ' colorlcd400 gigabluelcd400' , '', d)} \
Expand Down
Expand Up @@ -20,9 +20,10 @@ GLIBC_EXTRA_OECONF = "--with-tls --with-__thread"
IMAGE_CMD_tar_prepend = "\
mkdir -p ${DEPLOY_DIR_IMAGE}/${IMAGEDIR}; \
${@bb.utils.contains("MACHINE_FEATURES", "bootsplash", "cp ${DEPLOY_DIR_IMAGE}/${BOOTLOGO_FILENAME} ${DEPLOY_DIR_IMAGE}/${IMAGEDIR}/${BOOTLOGO_FILENAME};" , "", d)} \
cp ${DEPLOY_DIR_IMAGE}/${MACHINE}_boot.bin ${DEPLOY_DIR_IMAGE}/${IMAGEDIR}/boot.bin; \
cp ${DEPLOY_DIR_IMAGE}/${MACHINE}_gpt.bin ${DEPLOY_DIR_IMAGE}/${IMAGEDIR}/gpt.bin; \
cp ${DEPLOY_DIR_IMAGE}/${MACHINE}_rescue.bin ${DEPLOY_DIR_IMAGE}/${IMAGEDIR}/rescue.bin; \
cp ${DEPLOY_DIR_IMAGE}/${MACHINEBUILD}_boot.bin ${DEPLOY_DIR_IMAGE}/${IMAGEDIR}/boot.bin; \
cp ${DEPLOY_DIR_IMAGE}/${MACHINEBUILD}_gpt.bin ${DEPLOY_DIR_IMAGE}/${IMAGEDIR}/gpt.bin; \
cp ${DEPLOY_DIR_IMAGE}/${MACHINEBUILD}_rescue.bin ${DEPLOY_DIR_IMAGE}/${IMAGEDIR}/rescue.bin; \
cp ${DEPLOY_DIR_IMAGE}/${MACHINEBUILD}_bolt_${SRCDATE_BOLT}.bin ${DEPLOY_DIR_IMAGE}/${IMAGEDIR}/bolt_${SRCDATE_BOLT}.bin; \
cp ${DEPLOY_DIR_IMAGE}/zImage ${DEPLOY_DIR_IMAGE}/${IMAGEDIR}/${KERNEL_FILE}; \
echo ${DISTRO_NAME}-${DISTRO_VERSION}.${BUILD_VERSION} > ${DEPLOY_DIR_IMAGE}/${IMAGEDIR}/imageversion; \
cd ${IMAGE_ROOTFS}; \
Expand Down
Expand Up @@ -188,7 +188,7 @@ MACHINE_EXTRA_RRECOMMENDS += " \
gstreamer1.0-libav \
gigablue-cfe \
${@bb.utils.contains('DISTRO_FEATURES', 'audioeffect', 'enigma2-plugin-systemplugins-audioeffect' , '', d)} \
${@bb.utils.contains('MACHINE', 'gb7252', 'gigablue-initrd-cfe-${MACHINE_DRIVER}' , '', d)} \
${@bb.utils.contains('MACHINE', 'gb7252', 'gigablue-initrd-cfe-${MACHINEBUILD}' , '', d)} \
"

EXTRA_IMAGEDEPENDS += "\
Expand Down

This file was deleted.

@@ -0,0 +1,6 @@
SRCDATE = "20181121r1"

require gigablue-initrd-cfe.inc

SRC_URI[md5sum] = "1bd92c570c8a9b8faace8e16dd99b168"
SRC_URI[sha256sum] = "e064c3936adf4385b6cb85f5d4df3023c7aed71a8b17a3dee164393f325523ea"
@@ -0,0 +1,6 @@
SRCDATE = "20181121r1"

require gigablue-initrd-cfe.inc

SRC_URI[md5sum] = "92c678d485cee8d0185ac52cb5cc9efe"
SRC_URI[sha256sum] = "62f2c65d97984ee2b22230df344f466810dc941f1a0037fce9986ba6bf6a4ad1"
15 changes: 9 additions & 6 deletions meta-brands/meta-gigablue/recipes-cfe/gigablue-initrd-cfe.inc
Expand Up @@ -3,11 +3,11 @@ SECTION = "base"
PRIORITY = "required"
MAINTAINER = "Gigablue"
LICENSE = "proprietary"
PACKAGE_ARCH := "${MACHINE}"
PACKAGE_ARCH := "${MACHINEBUILD}"

require conf/license/license-gplv2.inc

PR = "r2"
PR = "r3"
ALLOW_EMPTY_${PN} = "1"

do_install() {
Expand All @@ -20,17 +20,20 @@ FILES_${PN} = "/usr/share"
inherit deploy
do_deploy() {
if [ -e boot.bin ]; then
install -m 0644 boot.bin ${DEPLOYDIR}/${MACHINE}_boot.bin
install -m 0644 boot.bin ${DEPLOYDIR}/${MACHINEBUILD}_boot.bin
fi
if [ -e gpt.bin ]; then
install -m 0644 gpt.bin ${DEPLOYDIR}/${MACHINE}_gpt.bin
install -m 0644 gpt.bin ${DEPLOYDIR}/${MACHINEBUILD}_gpt.bin
fi
if [ -e rescue.bin ]; then
install -m 0644 rescue.bin ${DEPLOYDIR}/${MACHINE}_rescue.bin
install -m 0644 rescue.bin ${DEPLOYDIR}/${MACHINEBUILD}_rescue.bin
fi
if [ -e bolt_${SRCDATE_BOLT}.bin ]; then
install -m 0644 bolt_${SRCDATE_BOLT}.bin ${DEPLOYDIR}/${MACHINEBUILD}_bolt_${SRCDATE_BOLT}.bin
fi
}

SRC_URI = "http://source.mynonpublic.com/gigablue/initrd/initrd_${MACHINE}_${SRCDATE}.zip"
SRC_URI = "http://source.mynonpublic.com/gigablue/initrd/initrd_${MACHINEBUILD}_${SRCDATE}.zip"

S = "${WORKDIR}"

Expand Down

0 comments on commit 8580c6a

Please sign in to comment.