developercyrus / firmware-mod-kit

Automatically exported from code.google.com/p/firmware-mod-kit
0 stars 0 forks source link

FMK image not loading on D-Link DIR-868L #113

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.The source is a DD-WRT image called dir868-webflash.bin which loads properly 
on a router to which an appropriate factory-to-ddwrt.bin has been applied.
2.After extracting with the FMK, a single file is removed; I chose 
fmk/rootfs/usr/sbin/proftpd arbitrarily.
3.After rebuilding I attempt to upgrade after the factory-to-ddwrt.bin or after 
the dir868-webflash.bin.
4.The new firmware fails to load on reboot.

What is the expected output? What do you see instead?

Here is an excerpt of the boot log:

[SVN revision: 810
Decompressing...done
Found a ST compatible (Marconix) serial flash with 32 64KB blocks; total size 
2MB

CFE version 6.30.163.18 (r377098) based on BBP 1.0.37 for BCM947XX (32bit,SP,)
Build Date: Fri Mar  8 14:09:35 CST 2013 (tom_lin@RangeRover)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
Found a AMD NAND flash:
Total size:  128MB
Block size:  128KB
Page Size:   2048B
OOB Size:    64B
Sector size: 512B
Spare size:  16B
ECC level:   8-bit
Device ID: 0x01 0xf1 0x00 0x1d 0x01
DDR Clock: 533 MHz
Info: DDR frequency set from clkfreq=800,*533*
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.30.163.18 (r377098)
CPU type 0x0: 800MHz
Tot mem: 262144 KBytes

CFE mem:    0x00F00000 - 0x01092CA4 (1649828)
Data:       0x00F5A758 - 0x00F5AC9C (1348)
BSS:        0x00F5ACA8 - 0x00F90CA4 (221180)
Heap:       0x00F90CA4 - 0x01090CA4 (1048576)
Stack:      0x01090CA4 - 0x01092CA4 (8192)
Text:       0x00F00000 - 0x00F4F474 (324724)
Boot:       0x01093000 - 0x010D3000
Reloc:      I:00000000 - D:00000000

Board Name: WRGAC02
SVN revision: 810
We disable the arp for self.
emergency web server running ...
We disable the arp for self.
Device eth0:  hwaddr 00-90-4C-0F-F0-18, ipaddr 192.168.0.1, mask 255.255.255.0
        gateway not set, nameserver not set
[ALPHA] PRESS Ctrl-C TO ENTER EMERGENCY MODE ...
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: Failed.
Could not load :: Timeout occured
Dest=00008000, source =02000000, filename=nflash1.trx
verify_seama: data=0x02000000, size=20033632
SEAMA ==========================================
  magic      : 5ea3a417
  meta size  : 36 bytes
  meta data  : dev=/dev/mtdblock/7
  meta data  : type=firmware
  meta data  : 
  meta data  : 
  image size : 20033568 bytes
verify_seama: signature=[(null)], type=[firmware]
  checksum   : 0C83255EC0AFED626C4D3EA10B658A4D
  digest     : DB91339853A62C6B60150F227C7A5902
================================================
digest check fail
Loader:raw Filesys:raw Dev:nflash0.os File: Options:(null)
Loading: Image compressed with unsupported method
Failed.
Could not load nflash0.os:: Unsupported function
CFE> 

What version of the product are you using? On what operating system?

I've tried FMK versions 0.78 and 0.99 with identical results.  OS is Fedora 12 
and 19 respectively.

Please provide any additional information below.

I can provide all images and the complete boot log on request.  Previously I've 
used the FMK with great success on other routers.  Thank you.

Original issue reported on code.google.com by allen.ea...@gmail.com on 13 Sep 2013 at 12:02

GoogleCodeExporter commented 9 years ago
From the log output, the notable thing is 'digest check fail'. So, I'm going to 
take a wild guess and say the failure is in the post-processing (checksum 
update). I'll take a look at it when I can.

Original comment by jeremy.collake@gmail.com on 13 Sep 2013 at 7:31

GoogleCodeExporter commented 9 years ago
Have you had a chance to look at this issue?  Is there anything I can do to 
help? 

Original comment by allen.ea...@gmail.com on 9 Dec 2013 at 5:28