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.