OpenWrt Forum Archive

Topic: Add support of VIZIO XWR100 (based on WRT400N)

The content of this topic has been archived between 22 Mar 2018 and 15 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

dony71 wrote:

btw, i don't like barrier breaker.
luci is lagging, also today i try to use USB pendrive
it's so buggy, cannot mounted to dev, not useable at all
i check backfire code, it seems ar8236 not implemented yet
then i check attitude adjustment, ar8236 is implemented, but
i don't understand why code doesn't use any phy_id detection
can you help how to modify on attitude adjustment?

I wouldn't backport to AA for you.
you can trace source code, and found out when someone add  ar8xxx_phy_ids[] into source code.

commit a1483517cd0daff3e27624ce227840562ee89ab6
Author: juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date:   Sun Feb 10 13:05:14 2013 +0000

    generic: ar8216: add sanity check to ar8216_probe
    
    Verify that the mdio bus has PHY devices with
    a supported PHY ID at address 0-4.
    
    Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
    
    git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35537 3c298f89-4303-0410-b956-a3cf2f4a3e73

Before this commit, does AA check ar8xxx_phy_ids[]? I don't know.
you need to checkout previous commit to study.

Why luci in BB is lagging? BB should use the lastest truck of luci from /feeds/script.sh install ?
Why USB is buggy? I don't build and file system module(fat32 or ntfs) into my released BB.
You cant never mount file system successfully.

Please try to build your BB(or AA) include file system module and try USB again. (include Luci, if you need it.)
Thanks,

cmtsij wrote:

I wouldn't backport to AA for you.
you can trace source code, and found out when someone add  ar8xxx_phy_ids[] into source code.

commit a1483517cd0daff3e27624ce227840562ee89ab6
Author: juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date:   Sun Feb 10 13:05:14 2013 +0000

    generic: ar8216: add sanity check to ar8216_probe
    
    Verify that the mdio bus has PHY devices with
    a supported PHY ID at address 0-4.
    
    Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
    
    git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35537 3c298f89-4303-0410-b956-a3cf2f4a3e73

Before this commit, does AA check ar8xxx_phy_ids[]? I don't know.
you need to checkout previous commit to study.

Thank you for your guidance
Like i said, BB is premature, so buggy, even wlan connectivity always disconnected
under heavy load, so I won't use BB.
Anyway I manage to backport to AA and switch works and usable.
I can use eth0.1 as vlan when assigned in br-lan interface.
I guess BB still has bug in this vlan assignment.
You can try my AA compiled image below
http://www.mediafire.com/?qystya2by62m3e5

Hi dony71,
Would you like to put your patch with source code to github ?
I think it's a good way to share your patch for XWR100  based on AA.
You may clone original AA branch here:

git clone git://git.openwrt.org/12.09/openwrt.git

and packages:

git clone git://git.openwrt.org/12.09/packages.git

and push them to your Github to reserve original commits.
And then, create a branch, put your XWR100 patch.
Thanks,

Edited:
    I mirror 12.09 on github. You can simple fork them on github.
https://github.com/cmtsij/OpenWrt_AttitudeAdjustment
https://github.com/cmtsij/OpenWrt_Attit … t_Packages
Thanks,

(Last edited by cmtsij on 7 May 2013, 18:05)

Can someone help me unbrick my XWR100?

I flashed dony71's AA firmware and I had some troubles with the wireless being incredibly slow so I tried to flash the original firmware back on but I did it wrong.  I followed these instructions that I found elsewhere for a different router and for some reason thought they would work.

cd /tmp
wget http://store.vizio.com/documents/downloads/accessories/XWR100/677VIZIO_1.01.02_Jun-9-2010.bin firmware.bin
dd bs=32 skip=1 if=firmware.bin of=firmware.trx
mtd -r write /tmp/firmware.trx firmware

But now my router is unresponsive.  The power lights and the little globe light on the front still seem to be working.  Although the globe doesn't stop flashing and I can't remember if that's normal.  I've tried connecting my PC directly to one of the ethernet ports on the router and pinging it on startup but I can't seem to get anything back (although I may be doing it wrong with this router).  If someone has some more specific instructions on different things I can try that don't involve taking the unit apart that would be awesome.  My replacement router doesn't compare at all to the XWR100.

ProvocativePanda wrote:

Can someone help me unbrick my XWR100?

I think you have brick your XWR100.
the route have no enough memory to download stock image and  extract trx  by DD. ( 4.6MB*2 - 32 => 9.xMB).
Please refer my post:
https://forum.openwrt.org/viewtopic.php … 39#p199439
And get a USB TTL console to use tftp command to unbrick your router.
Good Luck.

By the way, you need to apart your route, of course.

cmtsij wrote:
dony71 wrote:

instruction to flash image is missing
can you add this guideline?

After you build the image from source,
You can login Vizio stock WEB GUI, find the version page, and [advance] button,
and upgrade with the file "openwrt/bin/ar71xx/openwrt-ar71xx-generic-xwr100-squashfs-factory.bin".
After that, the device would become a openwrt device.
If you need upgrade again, please use "openwrt/bin/ar71xx/openwrt-ar71xx-generic-xwr100-squashfs-sysupgrade.bin"

Hint:
    factory image: from stock to openwrt
    sysupgrade image: from openwrt to openwrt

Thanks,


What are  the features of the new image? Does it for instace still support DLNA  (hopefully not as badly as the original  xwr100 software  did)?

cmtsij wrote:
ProvocativePanda wrote:

Can someone help me unbrick my XWR100?

I think you have brick your XWR100.
the route have no enough memory to download stock image and  extract trx  by DD. ( 4.6MB*2 - 32 => 9.xMB).
Please refer my post:
https://forum.openwrt.org/viewtopic.php … 39#p199439
And get a USB TTL console to use tftp command to unbrick your router.
Good Luck.

By the way, you need to apart your route, of course.

How can I connect ttl line to my router, I mean shall I open my router‘s shell to do that?
Thank you
——————————
I got it,my misunderstanding for the word “apart”

(Last edited by RolandLau on 16 Dec 2013, 02:29)

cmtsij wrote:

Sorry, no DLNA server, but you can build one for yourself.
welcome to OpenWRT.

Here is my OpenWRT Attitude Adjustment for XWR100:
https://github.com/cmtsij/OpenWrt_Attit … ard/XWR100
You can fork it if you need to add something:-)

Hi,cmtsij.
Does your modification work on BB?
I have a tp-link wr880n with ar8236.But it's cpu qca9558 only ported in BB.

(Last edited by axishero on 25 Dec 2013, 04:38)

Hi axishero,

XWR100's AR8236 is actually backporting from BB to AA.
If you are in BB, the AR8236 should work fine.
Except you have an unrecognized phy/switch ID that BB can't understand it.
please check this source code:
https://github.com/mirrors/openwrt/blob … 16.c#L2394

static const u32 ar8xxx_phy_ids[] = {
        0x004dd033,
        0x004dd034, /* AR8327 */
        0x004dd036, /* AR8337 */
        0x004dd041,
        0x004dd042,
};

Good Luck.

cmtsij wrote:

Sorry, no DLNA server, but you can build one for yourself.
welcome to OpenWRT.

Here is my OpenWRT Attitude Adjustment for XWR100:
https://github.com/cmtsij/OpenWrt_Attit … ard/XWR100
You can fork it if you need to add something:-)

Thanks. I'm learning how to build it from source, doesn't seem to be that hard. Question though, are you going to submit your port  VIZIO XWR100 to Openwrt so it can be supported as an official port by the build system?

i try compiling uboot from vizio GPL but somehow network is not working in uboot

cmtsij,
did you try to compile uboot whether network working?

(Last edited by dony71 on 2 Apr 2014, 23:40)

not a builder by any means and not even a linux person but i have this router and would be interested in testing other versions of openwrt on it. I found a version in the ddwrt forums from doni71 post is dated april 29 2013 and loaded that and it ran great for 24 hours or so, now it absolutely refuses to maintain an internet connection, it just keeps resetting every couple of minutes. Is there a stable working build any of you guys can point me to?

doni71 do you have a newer build i can test?
cmtsij I see you also working on it do you have a prebuilt image i could try?

Dont really care if  its aa or bb just need something stable with BASIC functions. Any help would be GREATLY appreciated

adm1jtg wrote:

not a builder by any means and not even a linux person but i have this router and would be interested in testing other versions of openwrt on it. I found a version in the ddwrt forums from doni71 post is dated april 29 2013 and loaded that and it ran great for 24 hours or so, now it absolutely refuses to maintain an internet connection, it just keeps resetting every couple of minutes. Is there a stable working build any of you guys can point me to?

doni71 do you have a newer build i can test?
cmtsij I see you also working on it do you have a prebuilt image i could try?

Dont really care if  its aa or bb just need something stable with BASIC functions. Any help would be GREATLY appreciated

the release which you have should be stable enough.
if it works for a while and suddently no longer work, check other device
on the network which might corrupt packet in the network.
it happened to me a while ago, while i had HDhomerun device on the network,
and somehow that device firmware has bugs and make router
resetting every couple minutes.
what i did just doing power cycle on HDhomerun device and eventually update its firmware,
then router no longer resetting
for the router, i'm still using firmware which i compile last year
if you want to try my current firmware, can grab from link below
there is no new in the kernel in this firmware, just have more feature like qos, samba, etc

http://www.mediafire.com/download/55g1p … pgrade.bin

(Last edited by dony71 on 3 Apr 2014, 18:26)

Great. I appreciate it and yes it did seem very stable so your probably right about some other network device being the culprit. Does this latest version by chance have DLNA support off the usb port? as thats really the main feature i missed.

adm1jtg wrote:

Great. I appreciate it and yes it did seem very stable so your probably right about some other network device being the culprit. Does this latest version by chance have DLNA support off the usb port? as thats really the main feature i missed.

why you need DLNA?
router is for network routing purpose, not for video streaming.
this router has only 32MB RAM and it will be easily exhausted
doing DLNA streaming which might cause instability function of the router.
buy media streaming device like roku if you need DLNA streaming.
for doing router job, openwrt enrich a lot of routing feature
such as QOS priority, extensive firewall like blocking certain
website on certain period of time and/or on certain device, etc
i have include such extensive firewall feature and QOS as well in this firmware image.

(Last edited by dony71 on 4 Apr 2014, 18:02)

Thanks for the explanation that explains why it never worked right even on original firmware. I tried to load your newest as I was very curios to see the firewall features and all but when i tried to load this showed up on my screen

Flash Firmware - Verify

The flash image was uploaded. Below is the checksum and file size listed, compare them with the original file to ensure data integrity.
Click "Proceed" below to start the flash procedure.

It appears that you try to flash an image that does not fit into the flash memory, please verify the image file!

Checksum: 78433e601278e4cfa7326f2a0a7c4b3b
Size: 6.00 MB (1.44 MB available)
Configuration files will be kept.

The original file was 3712kb in size this newest one is 6145kb.

It would appear that is has 1440kb free but the size difference is 2433kb am i misunderstanding something?

It has been a while since i flash this latest openwrt firmware
Now I remember a bit ....
Since I stuff a lot of module in the firmware,
I have to use serial port to upgrade the firmware.
If upgrade from web, it will need free rootfs to buffer the firmware
but if upgrade using serial port, will use RAM for buffer.

ok that makes sense but if I recall to use the serial you have to open the case which I dont really want to mess with could i ssh in with putty, copy the file to /tmp and the issue a
sysupgrade -n openwrt-ar71xx-generic-xwr100-squashfs-sysupgrade.bin command?

Would that work?

you can update firmware via SSH
to do this, you need to download all 3 files for env, uImage and rootfs
upload those 3 files in /tmp via SCP, go to /tmp, then issue command below :
mtd -e mtd1 write env.bin mtd1
mtd -e mtd2 write vmlinux-xwr100.uImage mtd2
mtd -e mtd3 write openwrt-ar71xx-generic-root.squashfs-64k mtd3


http://www.mediafire.com/download/p3pms … fr/env.bin
http://www.mediafire.com/download/zd02d … 100.uImage
http://www.mediafire.com/download/pyibh … uashfs-64k

dony71 wrote:

you can update firmware via SSH
to do this, you need to download all 3 files for env, uImage and rootfs
upload those 3 files in /tmp via SCP, go to /tmp, then issue command below :
mtd -e mtd1 write env.bin mtd1
mtd -e mtd2 write vmlinux-xwr100.uImage mtd2
mtd -e mtd3 write openwrt-ar71xx-generic-root.squashfs-64k mtd3


http://www.mediafire.com/download/p3pms … fr/env.bin
http://www.mediafire.com/download/zd02d … 100.uImage
http://www.mediafire.com/download/pyibh … uashfs-64k

Followed all your directions but the first command failed

root@OpenWrt:/tmp# mtd -e mtd1 write env.bin mtd1
Could not open mtd device: mtd1
Can't open device for writing!

The other two commands worked fine but now am scared to reboot. Let me know what I am doing wrong so I can get that env file to flash properly

adm1jtg wrote:
dony71 wrote:

you can update firmware via SSH
to do this, you need to download all 3 files for env, uImage and rootfs
upload those 3 files in /tmp via SCP, go to /tmp, then issue command below :
mtd -e mtd1 write env.bin mtd1
mtd -e mtd2 write vmlinux-xwr100.uImage mtd2
mtd -e mtd3 write openwrt-ar71xx-generic-root.squashfs-64k mtd3


http://www.mediafire.com/download/p3pms … fr/env.bin
http://www.mediafire.com/download/zd02d … 100.uImage
http://www.mediafire.com/download/pyibh … uashfs-64k

Followed all your directions but the first command failed

root@OpenWrt:/tmp# mtd -e mtd1 write env.bin mtd1
Could not open mtd device: mtd1
Can't open device for writing!

The other two commands worked fine but now am scared to reboot. Let me know what I am doing wrong so I can get that env file to flash properly

your current firmware has non-writeable env partition
nothing you can do
most likely your router is still boot, but might have wrong partition size

revised:
partition size shows stock firmware in my router, so no need env.bin
your partition is correct without this

(Last edited by dony71 on 7 Apr 2014, 21:03)

dony71 wrote:
adm1jtg wrote:
dony71 wrote:

you can update firmware via SSH
to do this, you need to download all 3 files for env, uImage and rootfs
upload those 3 files in /tmp via SCP, go to /tmp, then issue command below :
mtd -e mtd1 write env.bin mtd1
mtd -e mtd2 write vmlinux-xwr100.uImage mtd2
mtd -e mtd3 write openwrt-ar71xx-generic-root.squashfs-64k mtd3


http://www.mediafire.com/download/p3pms … fr/env.bin
http://www.mediafire.com/download/zd02d … 100.uImage
http://www.mediafire.com/download/pyibh … uashfs-64k

Followed all your directions but the first command failed

root@OpenWrt:/tmp# mtd -e mtd1 write env.bin mtd1
Could not open mtd device: mtd1
Can't open device for writing!

The other two commands worked fine but now am scared to reboot. Let me know what I am doing wrong so I can get that env file to flash properly

your current firmware has non-writeable env partition
nothing you can do
most likely your router is still boot, but might have wrong partition size

revised:
partition size shows stock firmware in my router, so no need env.bin
your partition is correct without this

Everything all working now thanks for all the help and the GREAT work

Ok I lied since updating everything on the staus/overview page always just reads collecting data and never displays any information. I have tried re-flashing and powering down and up the router and cant get it to display information on this page.

Not sure what else to try....

Also would you happen to have the
vmlinux-xwr100.uImage mtd2
openwrt-ar71xx-generic-root.squashfs-64k mtd
files that match your original version as the orginal updated that status page properly

I could even sysupdate with a sysupdate version of the original firmeware if you have that available

While the firmware works really well i need the status page to work so I can see things like dhcp leases and wan ip adress and all.

Let me know what you recommend