Modify

Opened 3 years ago

Closed 2 years ago

#14414 closed defect (fixed)

w921v_fw_cutter Illegal instruction

Reported by: fld@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: lantiq, vr9, xrx200, vdsl Cc:

Description

root@OpenWrt:/tmp# md5sum Firmware_Speedport_W921V_1.20.000.bin
4d812f2c3476dadd738b022c4767c491 Firmware_Speedport_W921V_1.20.000.bin

root@OpenWrt:/tmp# w921v_fw_cutter
Arcadyan Firmware cutter v0.1


This tool extracts the different parts of an arcadyan firmware update file
This tool is for private use only. The Firmware that gets extracted has a license that forbids redistribution
Please only run this if you understand the risks

I understand the risks ? (y/N)
y
Illegal instruction

root@OpenWrt:/tmp# cat /proc/version
Linux version 3.10.17 (fld@HA) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r38578) ) #36 Mon Nov 4 00:35:36 EET 2013

root@OpenWrt:/tmp# cat /proc/cpuinfo
system type : VR9 rev 1.2
machine : TDW8970 - TP-LINK TD-W8970
processor : 0
cpu model : MIPS 34Kc V5.6
BogoMIPS : 332.54
wait instruction : yes
microsecond timers : yes
tlb_entries : 16
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0000, 0x0260, 0x0010, 0x0200]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented : mips16 dsp mt
shadow register sets : 1
kscratch registers : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by fld@…

One work-around would be to run the cutter on your PC like this:

fld@HA:~/openwrt/trunk$ cd package/kernel/lantiq/ltq-vdsl-fw/src
fld@HA:~/openwrt/trunk/package/kernel/lantiq/ltq-vdsl-fw/src$ ls
LzmaDecode.c  LzmaDecode.h  LzmaTypes.h  LzmaWrapper.c  LzmaWrapper.h  Makefile  vdsl_fw_install.sh  w921v_fw_cutter.c
fld@HA:~/openwrt/trunk/package/kernel/lantiq/ltq-vdsl-fw/src$ wget "http://hilfe.telekom.de/dlp/eki/downloads/Speedport/Speedport%20W%20921V/Firmware_Speedport_W921V_1.20.000.bin" -O /tmp/Firmware_Speedport_W921V_1.20.000.bin

2013-11-07 23:19:29 (353 KB/s) - `/tmp/Firmware_Speedport_W921V_1.20.000.bin' saved [4298776/4298776]

fld@HA:~/openwrt/trunk/package/kernel/lantiq/ltq-vdsl-fw/src$ gcc w921v_fw_cutter.c LzmaWrapper.c LzmaDecode.c -o cutter
LzmaWrapper.c: In function wlzma_inflatex:
LzmaWrapper.c:156:21: warning: comparison between pointer and integer [enabled by default]
fld@HA:~/openwrt/trunk/package/kernel/lantiq/ltq-vdsl-fw/src$ ./cutter
Arcadyan Firmware cutter v0.1
-----------------------------
This tool extracts the different parts of an arcadyan firmware update file
This tool is for private use only. The Firmware that gets extracted has a license that forbids redistribution
Please only run this if you understand the risks

I understand the risks ? (y/N)
y
Found partition at 0x00000000 with size 2883584
        This is not lzma
Found partition at 0x002C0000 with size 704512
        This is not lzma
Found partition at 0x0036C000 with size 346112
        Wrote 761108 bytes to /tmp/vr9_dsl_fw_annex_b.bin
Found partition at 0x003C0800 with size 364544
        Wrote 526476 bytes to /tmp/vr9_tapi_fw.bin
fld@HA:~/openwrt/trunk/package/kernel/lantiq/ltq-vdsl-fw/src$ md5sum /tmp/vr9*
59dd9dc81195c6854433c691b163f757  /tmp/vr9_dsl_fw_annex_b.bin
06b6ab3481b8d3eb7e8bf6131f7f6b7f  /tmp/vr9_tapi_fw.bin

and then copy the resulting files into your routers /lib/firmware/
And do: ln -s /lib/firmware/vr9_dsl_fw_annex_b.bin /lib/firmware/vdsl.bin

Another work-around that might work, would be to use the /firmware/dsl_vr9_firmware_xdsl-05.04.08.00.00.06_05.04.04.04.00.01.bin file from tp-links OEM filesystem. One way to get a hold of it is to start a TFTP server from the serial console of the OEM system like this:

~ # vsftpd -ochroot_local_user=NO -olocal_root=/

After that you can just FTP in to the box with Username: admin & Password: admin

comment:2 Changed 2 years ago by blogic

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.