Jump to content


Photo

dreambox-secondstage-dm7020hd update erases second stage loader


  • Please log in to reply
20 replies to this topic

#1 socks

  • Senior Member
  • 54 posts

+3
Neutral

Posted 20 November 2014 - 20:03

Today I got a new online update for the second stage loader of the DM7020HD.

After booting the box hangs in the first bootloader with error message '2nd failed!'.

I reflashed the second stage bootloader using latest DreamUP with USB cable and this nfi file: http://www.dreamboxu...dm7020hd-84.nfi

Afterwards the box was booting correctly again.

 

Then I manually installed the update again:

root@dm7020hd:~# opkg --force-reinstall install dreambox-secondstage-dm7020hd
Downloading http://downloads.pli-images.org/feeds/openpli-4/dm7020hd/dreambox-secondstage-dm7020hd_88-r18.0.0_dm7020hd.ipk.
Reinstalling dreambox-secondstage-dm7020hd (88-r18.0.0) on root.
Configuring dreambox-secondstage-dm7020hd.
Erasing 256 Kibyte @ 100000 - 100% complete.
nandwrite: invalid option -- 'o'
BusyBox v1.22.1 (2014-06-02 09:29:42 CEST) multi-call binary.

Usage: nandwrite [-p] [-s ADDR] MTD_DEVICE [FILE]

Write to MTD_DEVICE

        -p      Pad to page size
        -s ADDR Start address

As you can see the flash gets erased successfully but the following flash write fails because nandwrite does not support the option '-o'.

I extracted the ipk file and this is the postinst command:

        if [ -z "$D" ] && grep -q '\<dm7020hd\>' /proc/stb/info/model; then
                if [ -f /tmp/secondstage-dm7020hd.bin ]; then
                        # first try mtd-utils, and fallback to busybox applets
                        flash_erase /dev/mtd1 0 0 2>/dev/null || flash_eraseall /dev/mtd1
                        nandwrite -m -n -o /dev/mtd1 /tmp/secondstage-dm7020hd.bin 2>/dev/null || nandwrite -o /dev/mtd1 /tmp/secondstage-dm7020hd.bin
                        rm /tmp/secondstage-dm7020hd.bin
                fi
        fi

The first nandwrite command works only when mtd-utils is installed (which I hadn't). The second one works only if you remove the '-o' option and replace it with the '-p' option.

I've tried both commands and both were successful.

So either the the dreambox-secondstage-dm7020hd package should depend on mtd-utils or '-o' is replaced with '-p' in postinst.

 

So for the moment do NOT make an automatic update on your DM7020HD! It will not boot afterwards!

As a workaround you can install mtd-utils manually before upgrading the bootloader:

root@dm7020hd:/media/hdd# opkg install mtd-utils
Installing mtd-utils (1.5.1+git0+9f107132a6-r0) on root.
Downloading http://downloads.pli-images.org/feeds/openpli-4/mips32el/mtd-utils_1.5.1+git0+9f107132a6-r0_mips32el.ipk.
Configuring mtd-utils.

Please could one of the devs update the repository accordingly?

 

Thank you.



Re: dreambox-secondstage-dm7020hd update erases second stage loader #2 rolf2

  • Member
  • 17 posts

0
Neutral

Posted 20 November 2014 - 20:36

same problem with dm500hd

 

http://forums.openpl...hd/#entry456376



Re: dreambox-secondstage-dm7020hd update erases second stage loader #3 spartak73

  • Senior Member
  • 28 posts

+1
Neutral

Posted 21 November 2014 - 12:17

same problem with DM800HDse. 2nd failed after reboot.


Octagon SF8008 4K Twin, Formuler F3, Vu+ Duo² Toroidal T-90 14°W -- 42°E


Re: dreambox-secondstage-dm7020hd update erases second stage loader #4 siemed

  • Member
  • 4 posts

0
Neutral

Posted 22 November 2014 - 10:29

Same problem with 7020hd. Only did a software update from the menu.

Re: dreambox-secondstage-dm7020hd update erases second stage loader #5 WanWizard

  • PLi® Core member
  • 71,236 posts

+1,842
Excellent

Posted 22 November 2014 - 10:30

Why did you ignore the big fat warning not to update the box?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (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: dreambox-secondstage-dm7020hd update erases second stage loader #6 siemed

  • Member
  • 4 posts

0
Neutral

Posted 22 November 2014 - 20:44

I did it from the menu on the Dreambox, so there was no warning.

Re: dreambox-secondstage-dm7020hd update erases second stage loader #7 WanWizard

  • PLi® Core member
  • 71,236 posts

+1,842
Excellent

Posted 22 November 2014 - 21:13

Hmm... Odd. Perhaps the warning mechanism was broken when the "unstable message" screen was added?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (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: dreambox-secondstage-dm7020hd update erases second stage loader #8 Meega

  • Senior Member
  • 3,000 posts

+51
Good

Posted 22 November 2014 - 23:32

Nope, because I saw it, when try to update my dm8000.

ET10000+ Openpli 6.1,1m schotel 4x duo-lnb op vaste opstelling.

Momolights teensy 2.0 met 50 leds op een string ,150 channels
DM8000 Openpli 6.1 Release


Re: dreambox-secondstage-dm7020hd update erases second stage loader #9 littlesat

  • PLi® Core member
  • 57,624 posts

+709
Excellent

Posted 22 November 2014 - 23:48

So the message was there?
Problqble I should conaider when it iis there that you simply completely blicked to upgrade via the ui!

Edited by littlesat, 22 November 2014 - 23:50.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: dreambox-secondstage-dm7020hd update erases second stage loader #10 rolf2

  • Member
  • 17 posts

0
Neutral

Posted 23 November 2014 - 10:08

instead of lecture about fat warnings - just remove broken secondstage loaders from openpli feeds .



Re: dreambox-secondstage-dm7020hd update erases second stage loader #11 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 23 November 2014 - 11:47

There is no broken second stage. It's busybox nandwrite that doesn't support OOB.

Install mtd-utils and everything will run smooth. Until new images appear.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: dreambox-secondstage-dm7020hd update erases second stage loader #12 rolf2

  • Member
  • 17 posts

0
Neutral

Posted 23 November 2014 - 12:59

If installing secondstage ipk bricks the box - for simple user it's broken.

as OP wrote :

 

 

So either the the dreambox-secondstage-dm7020hd package should depend on mtd-utils or '-o' is replaced with '-p' in postinst.



Re: dreambox-secondstage-dm7020hd update erases second stage loader #13 socks

  • Senior Member
  • 54 posts

+3
Neutral

Posted 23 November 2014 - 17:50

Looks like this has already been fixed on friday:

 

http://sourceforge.n...5a53c2419928a9/



Re: dreambox-secondstage-dm7020hd update erases second stage loader #14 littlesat

  • PLi® Core member
  • 57,624 posts

+709
Excellent

Posted 23 November 2014 - 20:02

Indeed... nut currently we have issues with our build server we're working on... So no new images are build yet :(


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: dreambox-secondstage-dm7020hd update erases second stage loader #15 Leshiy_D

  • Member
  • 1 posts

0
Neutral

Posted 26 November 2014 - 14:03

Updated its 7020HD , all okay . Updated 15 minutes


Dreambox DM7020 HD


Re: dreambox-secondstage-dm7020hd update erases second stage loader #16 sebsto

  • Senior Member
  • 52 posts

0
Neutral

Posted 26 November 2014 - 20:40

Thank you for the root cause analysis.  I was hit by this on DM800se too.  Now recovered :-)



Re: dreambox-secondstage-dm7020hd update erases second stage loader #17 fcs001fcs

  • Senior Member
  • 244 posts

+2
Neutral

Posted 29 November 2014 - 11:06

Today, 29 Nov, I tried update via GUI menu on my DM7020HD and there is a warning that image is unstable/not working correctly.

 

Has the problem been corrected and just the warning was not turned off by Devs? Is it still not to be updated due to the original problem?

 

Seems from reading prior posts that all is fixed now.


Edited by fcs001fcs, 29 November 2014 - 11:07.


Re: dreambox-secondstage-dm7020hd update erases second stage loader #18 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 29 November 2014 - 11:16

It seems the problem has been resolved (we cannot test ourselves though).


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: dreambox-secondstage-dm7020hd update erases second stage loader #19 fcs001fcs

  • Senior Member
  • 244 posts

+2
Neutral

Posted 29 November 2014 - 12:20

It seems the problem has been resolved (we cannot test ourselves though).

 

My experience on a DM7020HD:

 

Tried GUI update via menu “Update and Ask to reboot”. Listed 256 packages as needing update.

Updated for a few minutes but then box froze (progress bar stopped and PIP froze) on “enigma2-fonts” package (do not know if package is relevant). Left it for about 2 minutes but no change, still frozen.

 

Powered down via power switch and restarted with channel up button to install new firmware from scratch via web browser.

I have the autobackup plugin installed that really helps on automatically reinstalling plugins and OSCAM config setup for my home network of DMs. Note that I specifically select the OSCAM config files for backup by adding the config directory to be backed up.

 

Did a fresh install of today’s OpenPLi 4 image and all went OK. Took about 5 minutes to reboot. I uninstalled a few plugins I do not use that are part of the default OpenPLi image but all my specific plugins were automatically installed by the autobackup plugin on reboot.

 

Seems to be working OK.

 

Did a check via GUI for update and 1 package (openwebif) is listed as to be updated. Did not update as I will wait a few days to see if all is still OK.



Re: dreambox-secondstage-dm7020hd update erases second stage loader #20 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 29 November 2014 - 17:27

The out of date enigma-fonts is another issue, all models have this problem.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users