Sign up here and you can log into the forum!

[SOLVED] Bricked SMP

Yes, this is your place to show off. Let us see what you're doing with your device[s]

[SOLVED] Bricked SMP   

Postby Big » Thu Feb 12, 2015 5:53 am

Hi,

My wdtv Gen 3 is stuck in a boot loop (fails to boot up completely). After powering it shows WD logo in 720p, then screen blanks, then it switches to 1080p and shows WD logo. But it stays at this stage no matter what I do - attempt to boot it from a USB drive or without a USB drive, it simply shows the splash screen and then goes blank (power light is still on, but no telnet access nor any network signal). Ther only thing it does - it creates sysconfig.patched file everytime I try to boot with usb. Anyone knows how I can fix this? Is it bricked?

This is content of the sysconfig.patched file:

Code: Select all
export SYSCONF_BUILD_DATE=2014.08.04-1534
export SYSCONF_BUILD_VERSION=2.02.32
export SYSCONF_NAND_DRIVER=MTD
export SYSCONF_FIRMWARE_BIN=wdtvlivegen3.bin
export SYSCONF_FIRMWARE_VER=wdtvlivegen3.ver
export SYSCONF_BOOTLOADER_MTD_PARTITION=/dev/mtdblock1
export SYSCONF_KERNEL_MTD_PARTITION=/dev/mtdblock3
export SYSCONF_FIRMWARE_MTD_PARTITION=/system/rootfs/rootfs.bin
export SYSCONF_FIRMWARE_MTD_SIZE=165675008
export SYSCONF_WRITABLE_PARTITION_BLOCK_NAME=/dev/mtdblock9
export SYSCONF_WRITABLE_PARTITION_CHARACTER_NAME=/dev/mtd9
export SYSCONF_WRITABLE_PARTITION_MOUNT_POINT=/usrdata
export SYSCONF_LAST_PARTITION_NODE_NAME=/dev/mtdblock10
export SYSCONF_STATIC_CONFIG_MOUNT_POINT=/tmp/static_config
export SYSCONF_LAST_PARTITION_CHARACTER_NAME=/dev/mtd10
export SYSCONF_PRODUCT_EXT_WDTV_RV=y
export IS_DTS=y
export CHANGE_DEFAULT_STACK_SIZE=y
export DEFAULT_STACK_SIZE=8388608
export UPPER_STACK_SIZE_LIMIT=16777216
export SYSCONF_LAST_PARTITION_IN_YAFFS2_FS=y
export ENABLE_APP_SECURITY=n
export SYSCONF_ROOTFS2=n
export SYSCONF_ROOTFS2_DEVICE=/usrdata/rootfs/root2.bin
export SYSCONF_ROOTFS2_IS_LOOPBACK=y
export SYSCONF_ROOTFS2_PATH=/opt/osd
export SYSCONF_ROOTFS2_FILE_SYSTEM=squashfs


Naturally I've tried to make reset using switch found under case but it doesn't work. I even tried solution found somewhere on this forum with reset:
Code: Select all
1. hold the reset button in, count to 10 while holding
2. pull the plug
3. keep holding, plug it back in, hold for 10 seconds
4. unplug
5. stop holding
6. plug back in

But sadly it doesn't work either :-(
Any help?
Last edited by Big on Thu Feb 12, 2015 3:41 pm, edited 1 time in total.
Big
Donor
 
Posts: 30
Joined: Sat Oct 02, 2010 9:19 am

Re: Bricked SMP   

Postby KAD » Thu Feb 12, 2015 8:51 am

it's probably not actually bricked
in fact it's well known that invalid xml entries in theme's can cause a boot loop like this, this is true even of stock firmware, so it's not a wdlxtv thing

have you tried to boot stock yet? ie. no thumbdrives attached

it would also be useful to know what you were working on / doing
which led to this activity
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: Bricked SMP   

Postby Big » Thu Feb 12, 2015 9:29 am

Naturally I've tried to boot it without any thumbdrives attached - results are exactly the same (WD logo in 1080p).

And yes - you've guessed well. I've been working on new theme and tried to substitute embedded font. I've changed XML with definition (removing old font and uncommenting entries for TTF file) and put TTF file with new font. So I didn't change internal font file but it was removed from XML definition file. Nothing changed after applying new theme - old font was used. So I decided to do reboot. And after reboot this loop happened.

How can I go out of this loop?
Last edited by Big on Thu Feb 12, 2015 11:32 am, edited 1 time in total.
Big
Donor
 
Posts: 30
Joined: Sat Oct 02, 2010 9:19 am

Re: Bricked SMP   

Postby KAD » Thu Feb 12, 2015 11:27 am

yeah, WD really did a number of this one

since they store the theme on internal storage there's no easy way to remove the offending files

I would definetely try to resolve this without any thumbdrives plugged in - ie on official firmware
it's just one less thing to troubleshoot

as for solutions
you're already on the right track

use the reset button on the bottom, or you can also try and while booting (before you hit the loop point) pull the power cord to see if you can get the device to enter
emergency firmware recovery mode

my only other note on this is once resolved
I would recommend to run your theme's from usb drive while in development
WDLXTV has quite a few ways you can do this
and if something does happen, it's easy to unplug the thumbdrive and remove the problem theme files
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: Bricked SMP   

Postby Big » Thu Feb 12, 2015 11:57 am

Good suggestions - thanks!

I've one more idea: File config.patched is created so runsit.sh is executed during boot. Maybe good thing would be to boot with thumbdrive with modified runsit.sh which has command to delete bad file from internal filesystem or simply remove whole font dir from my theme. I think it might work but I need to know exact path where user theme is keeped. Could you provide it for me? Them I'll add simple "rm -rf <path>/font/" to runsit.sh and that should do the trick :-)
Big
Donor
 
Posts: 30
Joined: Sat Oct 02, 2010 9:19 am

Re: Bricked SMP   

Postby KAD » Thu Feb 12, 2015 12:43 pm

very good point, runsit.sh could remove the theme

do this
Code: Select all
rm -rf /usrdata/.wd_tv/theme/*


this will get rid of any uploaded theme
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: Bricked SMP   

Postby Big » Thu Feb 12, 2015 2:03 pm

It seemed to bee good point but I don't know why it doesn't work :-(

I've put diagnostic messages to check if it works:
Code: Select all
echo TEST > /share/sysconfig.patched
rm -rf /usrdata/.wd_tv/theme/* 2>> /share/sysconfig.patched
sed -e 's/export SYSCONF_ROOTFS2=y/export SYSCONF_ROOTFS2=n/' /sysconfig >> /share/sysconfig.patched

Effect:
Code: Select all
TEST
export SYSCONF_BUILD_DATE=2014.08.04-1534
export SYSCONF_BUILD_VERSION=2.02.32
export SYSCONF_NAND_DRIVER=MTD
.
.
.

So as you can see everything works but loop still exists :-(
Big
Donor
 
Posts: 30
Joined: Sat Oct 02, 2010 9:19 am

Re: Bricked SMP   

Postby KAD » Thu Feb 12, 2015 2:22 pm

sorry to hear it did not work

a possiblity is that /usrdata may not be mounted yet, when runsit.sh gets executed
in fact it's probably not mounted yet

some other thoughts

1.
Code: Select all
config_tool -c THEME_PATH=/osd && sync && sync

this line, instead of deleting the theme, would alter /conf/config changing the selected theme back to the default theme instead of your uploaded theme
but we might be dealing with the same issue, I'm not sure if /conf is mounted before or after runsit.sh gets executed

2. reset EVERYTHING script on WDLXTV webend does this
Code: Select all
rm -rf /conf/* && sync && sync

but we have the same problem possiblity of number 1

also here's a copy of init and runsit.sh if your interested in seeing the boot process
https://svn.wdlxtv.com/filedetails.php?repname=2.02.32-wdlxtv-gen3&path=%2Ftrunk%2Finit
https://svn.wdlxtv.com/filedetails.php?repname=2.02.32-wdlxtv-gen3&path=%2FBootScripts%2Frunsit.sh
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: Bricked SMP   

Postby KAD » Thu Feb 12, 2015 2:25 pm

another possiblity, looking at patched.sysconfig

maybe you can manually mount /usrdata to make it available

Code: Select all
export SYSCONF_WRITABLE_PARTITION_BLOCK_NAME=/dev/mtdblock9
export SYSCONF_WRITABLE_PARTITION_CHARACTER_NAME=/dev/mtd9
export SYSCONF_WRITABLE_PARTITION_MOUNT_POINT=/usrdata


something like this - note untested
Code: Select all
mount -o loop /dev/mtdblock9 /usrdata


but usually on official firmware, this is all solved with some magic amount / timing of the reset button on the bottom of device
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: Bricked SMP   

Postby Big » Thu Feb 12, 2015 2:38 pm

Earlier in runsit.sh there was "umount /usrdata" so it's only needed to comment it :-)

Right now I'm diagnosing whole situation based on idea that I can run any command from runsit.sh :-)

I try to delete theme dir but right now I've realized that maybe simplest method would be to erase also whole configuration :-)
Big
Donor
 
Posts: 30
Joined: Sat Oct 02, 2010 9:19 am

Next

Return to Look at Me!!!

Who is online

Users browsing this forum: No registered users and 1 guest

cron