Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 52
  1. #11
    Untangler
    Join Date
    May 2012
    Location
    Slovakia
    Posts
    92

    Default

    Quote Originally Posted by dmorris View Post
    "\dev" no idea what this would mean.

    put it in your home directory or in /tmp/ or something
    use the full path.

    /tmp/blah.trx
    if=/tmp/blah.trx
    Can we use the *.img file downloaded from Linksys website, rename it to *.trx file and repeat the dd command as you suggest? Or we need some other trx files and where to get them please?

  2. #12
    Untanglit
    Join Date
    Mar 2017
    Posts
    15

    Default

    Ok, looking at it, I'm so close...

    Just get this when writing the file now:

    ~ # dd if=/tmp/FW_WRT1900ACS.trx of=/dev/mtdblock2 bs=1M
    dd: error writing '/dev/mtdblock2': No space left on device
    1+0 records in
    0+0 records out
    262144 bytes (262 kB) copied, 0.0682685 s, 3.8 MB/s

  3. #13
    Untangle Junkie dmorris's Avatar
    Join Date
    Nov 2006
    Location
    San Carlos, CA
    Posts
    17,747

    Default

    you can name the file whatever you want.
    Its just an example.

    Ironically the linksys device complains if you upload an 'img' file saying its the wrong extension, but it works anyway.
    meanwhile they actually use the img extension on their website. makes perfect sense.
    Attention: Support and help on the Untangle Forums is provided by volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com

  4. #14
    Untanglit
    Join Date
    Mar 2017
    Posts
    15

    Default

    Thanks for all the info.

    I finally did it.

    had to run :

    rm /dev/mtdblock2 before running the flash to allow it to fit

  5. #15
    Untangler
    Join Date
    May 2012
    Location
    Slovakia
    Posts
    92

    Default

    So here is the procedure, how to revert to stock.
    Prerequisites:
    putty (http://www.putty.org/)
    winscp (https://winscp.net/eng/download.php)
    original firmware (http://www.linksys.com/us/support-ar...icleNum=165487)

    Procedure
    1. download all prerequisites and install putty and winscp
    2. use WinSCP to connect to the Linksys and copy the firmware to /tmp and rename to foobar.trx (login: root, pwd: your admin password)
    3. use putty to ssh to the Linksys (login: root, pwd: your admin password)
    4. cd /tmp
    5. rm /dev/mtdblock2
    6. dd if=foobar.trx of=/dev/mtdblock4 bs=1M
    7. dd if=foobar.trx of=/dev/mtdblock6 bs=1M
    8. remove the USB drive from Linksys
    9. power off, wait a minute and power on
    10. let the router do it's thing, it will reboot a couple of times
    You should be back to stock.

    Thanks and kudos go to dmorris and Gouldin
    Last edited by dmorris; 05-31-2017 at 09:57 AM.
    Gouldin and ZMK7 like this.

  6. #16
    Untanglit
    Join Date
    Mar 2017
    Posts
    15

    Default

    I'd say that tutorial could probably do with being added to the 1900ACS wiki FAQ page as that Linksys tftp utility does nothing

  7. #17
    Seb
    Seb is offline
    Untangle Junkie Seb's Avatar
    Join Date
    Jul 2007
    Posts
    82

    Default

    Do not remove /dev/mtdblock2: if you do that, and then use dd to write to it, you're just writing a plain file on the hard-drive, but you are definitely not flashing the actual MTD memory. with your procedure, you end just flashing mtd4 and not mt2, which the Linksys doesn't like (this is why you see it "rebooting a couple of times"), even it finally settles down.

    dd complaining about "No space left on device" is normal (MTD physical layouts are tricky, see for instance https://wiki.openwrt.org/toh/linksys...storage_layout), and never fatal: it's still wrote what it needed to.

  8. #18
    Untanglit
    Join Date
    Mar 2017
    Posts
    15

    Default

    But when I didn't do that it just booted back into untangle.

  9. #19
    Seb
    Seb is offline
    Untangle Junkie Seb's Avatar
    Join Date
    Jul 2007
    Posts
    82

    Default

    Take my word for it: removing /dev/mtdblock2 and then writing stuff to it is a no-op. You can redo your entire procedure from the start if you really want to confirm it.

  10. #20
    Untanglit
    Join Date
    Mar 2017
    Posts
    15

    Default

    I believe you. (was too painful to get back onto stock)
    But mine wouldn't boot correctly without doing that.
    I assume, that if I were to flash another firmware onto it from stock that it would replace what I've done anyway.?

Page 2 of 6 FirstFirst 1234 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2