[SOLVED] D-link dir-825 b1 - FAT

Report problems and success stories with Gargoyle on various hardware platforms.

Moderator: Moderators

Post Reply
WoodyUK
Posts: 7
Joined: Sun Jan 12, 2014 8:54 am

[SOLVED] D-link dir-825 b1 - FAT

Post by WoodyUK »

After successfully using D-Link Firmware Upgrade System (firmware recovery mode) with Gargoyle~factory.bin to flash from stock.

I have been unable use Gargoyle > System > Update Firmware to flash Gargoyle~FAT~sysupgrade.bin.
The web interface hangs forever and does not flash.
Gargoyle GUI > System > Plugins = Root Drive 2.563 MBytes Total.

Gargoyle-ispy 2014-January-03
http://www.gargoyle-router.com/phpbb/vi ... 011#p22011
Gargoyle version 1.5.X
Gargoyle revision 3afc491
Built January 03, 2014
OpenWrt revision r38863

Using info from OpenWrt wiki, Putty and WinSCP, I created flash backup files.
Then with info from OpenWrt Sysupgrade wiki, I tried once again to flash FAT firmware.
http://wiki.openwrt.org/toh/d-link/dir-825#flash.layout
http://wiki.openwrt.org/doc/howto/generic.backup
http://wiki.openwrt.org/doc/howto/gener ... sysupgrade

This also failed with...

The upgrade image is too big (size:6815744 available:6356992)
Sysupgrade is not yet supported on dir-825-b1.
Image check 'platform_check_image' failed.

Code: Select all

BusyBox v1.19.4 (2014-01-03 11:50:41 NZDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.

------------------------------------------------------------------
|            _____                             _                 |
|           |  __ \                           | |                |
|           | |  \/ __ _ _ __ __ _  ___  _   _| | ___            |
|           | | __ / _` | '__/ _` |/ _ \| | | | |/ _ \           |
|           | |_\ \ (_| | | | (_| | (_) | |_| | |  __/           |
|            \____/\__,_|_|  \__, |\___/ \__, |_|\___|           |
|                             __/ |       __/ |                  |
|                            |___/       |___/                   |
|                                                                |
|----------------------------------------------------------------|
| Gargoyle version 1.5.X    | OpenWrt Attitude Adjustment branch |
| Gargoyle revision 3afc491 | OpenWrt revision r38863            |
| Built January 03, 2014    | Target  ar71xx/default             |
------------------------------------------------------------------
root@Gargoyle-dir825:~# free
             total         used         free       shared      buffers
Mem:         61748        26232        35516            0         2360
-/+ buffers:              23872        37876
Swap:            0            0            0

root@Gargoyle-dir825:~# dmesg | grep -i -B 2 -A 12 "MTD device"
[    2.880000] m25p80 spi0.0: found s25sl064a, expected m25p80
[    2.880000] m25p80 spi0.0: s25sl064a (8192 Kbytes)
[    2.890000] 8 cmdlinepart partitions found on MTD device spi0.0
[    2.890000] Creating 8 MTD partitions on "spi0.0":
[    2.900000] 0x000000000000-0x000000040000 : "uboot"
[    2.900000] 0x000000040000-0x000000050000 : "config"
[    2.910000] 0x000000050000-0x000000150000 : "kernel"
[    2.920000] 0x000000150000-0x000000660000 : "rootfs"
[    2.920000] mtd: partition "rootfs" set to be root filesystem
[    2.930000] mtd: partition "rootfs_data" created automatically, ofs=3D0000, len=290000
[    2.940000] 0x0000003d0000-0x000000660000 : "rootfs_data"
[    2.940000] 0x000000660000-0x000000670000 : "caldata"
[    2.950000] 0x000000670000-0x000000800000 : "unknown"
[    2.960000] 0x000000050000-0x000000660000 : "firmware"
[    2.960000] 0x0000007f0000-0x000000800000 : "caldata_copy"

root@Gargoyle-dir825:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00010000 "uboot"
mtd1: 00010000 00010000 "config"
mtd2: 00100000 00010000 "kernel"
mtd3: 00510000 00010000 "rootfs"
mtd4: 00290000 00010000 "rootfs_data"
mtd5: 00010000 00010000 "caldata"
mtd6: 00190000 00010000 "unknown"
mtd7: 00610000 00010000 "firmware"
mtd8: 00010000 00010000 "caldata_copy"

root@Gargoyle-dir825:~# dd if=/dev/mtd0 of=/tmp/mtd0-uboot.backup
512+0 records in
512+0 records out
root@Gargoyle-dir825:~# dd if=/dev/mtd1 of=/tmp/mtd1-config.backup
128+0 records in
128+0 records out
root@Gargoyle-dir825:~# dd if=/dev/mtd2 of=/tmp/mtd2-kernel.backup
2048+0 records in
2048+0 records out
root@Gargoyle-dir825:~# dd if=/dev/mtd3 of=/tmp/mtd3-rootfs.backup
10368+0 records in
10368+0 records out
root@Gargoyle-dir825:~# dd if=/dev/mtd4 of=/tmp/mtd4-rootfs_data.backup
5248+0 records in
5248+0 records out
root@Gargoyle-dir825:~# dd if=/dev/mtd5 of=/tmp/mtd5-caldata.backup
128+0 records in
128+0 records out
root@Gargoyle-dir825:~# dd if=/dev/mtd6 of=/tmp/mtd6-unknown.backup
3200+0 records in
3200+0 records out
root@Gargoyle-dir825:~# dd if=/dev/mtd7 of=/tmp/mtd7-firmware.backup
12416+0 records in
12416+0 records out
root@Gargoyle-dir825:~# dd if=/dev/mtd8 of=/tmp/mtd8-caldata_copy.backup
128+0 records in
128+0 records out

root@Gargoyle-dir825:~# sysupgrade -i -d 10 -v /tmp/gargoyle_1.5.x-ar71xx-generic-dir-825-b1-fat-squashfs-sysupgrade.bin
Do you have a backup of the caldata partition? (y/N): y
The upgrade image is too big (size:6815744 available:6356992)
Sysupgrade is not yet supported on dir-825-b1.
Image check 'platform_check_image' failed.
Any help appreciated, thank you.
Last edited by WoodyUK on Tue Jan 21, 2014 2:12 pm, edited 5 times in total.
Dlink dir825 revB1 stock FW 2.09EU b09 jan2013 -> Gargoyle-ispy 1.5.X (Built 20140102-1815 git@3afc491)

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: D-link dir-825 b1 - ispy FAT sysupgrade

Post by ispyisail »

In summary the firmware is to big?

WoodyUK
Posts: 7
Joined: Sun Jan 12, 2014 8:54 am

Re: D-link dir-825 b1 - ispy FAT sysupgrade

Post by WoodyUK »

I added some backup and partition info in the code section of the opening post. Linux, OpenWrt, Gargoyle, Putty, WinSCP are all new to me. According to the dir-825 flash layout, I would have expected 'fat' firmware to have about 7744kilobyte.
http://wiki.openwrt.org/toh/d-link/dir-825#flash.layout
eg.
Expected fat firmware = mtd7 + unused part of mtd6
Expected fat firmware = 6208 + 1536
Expected fat firmware = 7744 kilobyte

Gargoyle-ispy 2014-January-03 dir-825 fat image = 6815744byte (6656kilobyte)
sysupgrade from standard reports available = 6356992bytes (6208kilobyte)

Maybe first flash from standard to fat is limited to standard firmware size?
Dlink dir825 revB1 stock FW 2.09EU b09 jan2013 -> Gargoyle-ispy 1.5.X (Built 20140102-1815 git@3afc491)

WoodyUK
Posts: 7
Joined: Sun Jan 12, 2014 8:54 am

Re: D-link dir-825 b1 - ispy FAT sysupgrade

Post by WoodyUK »

Got my dir825 FAT...
By design GUI upgrade will not work and sysupgrade must be used with -I (interactive) switch to flash a FAT firmware.

Basically from default Dlink firmware.
Used Dlink recovery to flash Gargoyle (thin?) factory.bin.
Used Putty/winSCP to make partition backup
Used Putty/sysupgrade -I to flash a ~3mb OpenWrt FAT.bin
Did not save config
Used Putty/sysupgrade -I to flash Gargoyle ispy FAT.bin
Did not save config
Done

Thanks
Dlink dir825 revB1 stock FW 2.09EU b09 jan2013 -> Gargoyle-ispy 1.5.X (Built 20140102-1815 git@3afc491)

jenom
Posts: 48
Joined: Wed Jul 06, 2011 1:38 pm
Location: Canada

Re: [SOLVED] D-link dir-825 b1 - FAT

Post by jenom »

I would like to thank you to ISPY for making Gargoyle fat-images and also WoodyUK for sharing the "fat-image" upgrade process.

Followed his instructions using D-Link 2.09 NA , Openwrt-ChaosCalmer-15.05 and Gargoyle-1.9.X-ISPY-FAT-2016-July-15

Recovery flash was done with WindowsXP+IE7, WinSCP to backup & save all partition and to copy firmware upgrade file to /tmp to do sysupgrade.

All went without any problem, now have a fully functioning DIR-825-B1 GARGOYLE-1.9.x-FAT router.

Post Reply