OpenWrt Forum Archive

Topic: help to upload kamikaze to my ZYXEL P660HW-D1

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

hi
i have a zyxel p660hw-d1 and i want to upload kamikaze, i know how to do it, but i have some question.

what is the correct frimware
openwrt-AG1B-jffs2-128k-code.bin                   22-Jan-2009 20:13  2.9M 
openwrt-AG1B-jffs2-64k-code.bin                    22-Jan-2009 20:13  2.8M 
openwrt-AG1B-squashfs-code.bin                     22-Jan-2009 20:13  2.1M 
openwrt-AG241v1-jffs2-128k-code.bin                22-Jan-2009 20:13  2.9M 
openwrt-AG241v1-jffs2-64k-code.bin                 22-Jan-2009 20:13  2.8M 
openwrt-AG241v1-squashfs-code.bin                  22-Jan-2009 20:13  2.1M 
openwrt-AG241v2-jffs2-128k-code.bin                22-Jan-2009 20:13  2.9M 
openwrt-AG241v2-jffs2-64k-code.bin                 22-Jan-2009 20:13  2.8M 
openwrt-AG241v2-squashfs-code.bin                  22-Jan-2009 20:13  2.1M 
openwrt-AG241v2b-jffs2-128k-code.bin               22-Jan-2009 20:13  2.9M 
openwrt-AG241v2b-jffs2-64k-code.bin                22-Jan-2009 20:13  2.8M 
openwrt-AG241v2b-squashfs-code.bin                 22-Jan-2009 20:13  2.1M 
openwrt-AG310-jffs2-128k-code.bin                  22-Jan-2009 20:13  2.9M 
openwrt-AG310-jffs2-64k-code.bin                   22-Jan-2009 20:13  2.8M 
openwrt-AG310-squashfs-code.bin                    22-Jan-2009 20:13  2.1M 
openwrt-EVA-2.6-jffs2-128k.bin                     22-Jan-2009 20:13  2.9M 
openwrt-EVA-2.6-jffs2-64k.bin                      22-Jan-2009 20:13  2.8M 
openwrt-EVA-2.6-squashfs.bin                       22-Jan-2009 20:13  2.1M 
openwrt-WA21-jffs2-128k-code.bin                   22-Jan-2009 20:13  2.9M 
openwrt-WA21-jffs2-64k-code.bin                    22-Jan-2009 20:13  2.8M 
openwrt-WA21-squashfs-code.bin                     22-Jan-2009 20:13  2.1M 
openwrt-WA22-jffs2-128k-code.bin                   22-Jan-2009 20:13  2.9M 
openwrt-WA22-jffs2-64k-code.bin                    22-Jan-2009 20:13  2.8M 
openwrt-WA22-squashfs-code.bin                     22-Jan-2009 20:13  2.1M 
openwrt-WA31-jffs2-128k-code.bin                   22-Jan-2009 20:13  2.9M 
openwrt-WA31-jffs2-64k-code.bin                    22-Jan-2009 20:13  2.8M 
openwrt-WA31-squashfs-code.bin                     22-Jan-2009 20:13  2.1M 
openwrt-WA32-jffs2-128k-code.bin                   22-Jan-2009 20:13  2.9M 
openwrt-WA32-jffs2-64k-code.bin                    22-Jan-2009 20:13  2.8M 
openwrt-WA32-squashfs-code.bin                     22-Jan-2009 20:13  2.1M 
openwrt-WA7A-jffs2-128k-code.bin                   22-Jan-2009 20:13  2.9M 
openwrt-WA7A-jffs2-64k-code.bin                    22-Jan-2009 20:13  2.8M 
openwrt-WA7A-squashfs-code.bin                     22-Jan-2009 20:13  2.1M 
openwrt-WA7B-jffs2-128k-code.bin                   22-Jan-2009 20:13  2.9M 
openwrt-WA7B-jffs2-64k-code.bin                    22-Jan-2009 20:13  2.8M 
openwrt-WA7B-squashfs-code.bin                     22-Jan-2009 20:13  2.1M 
openwrt-WAG2-jffs2-128k-code.bin                   22-Jan-2009 20:13  2.9M 
openwrt-WAG2-jffs2-64k-code.bin                    22-Jan-2009 20:13  2.8M 
openwrt-WAG2-squashfs-code.bin                     22-Jan-2009 20:13  2.1M 
openwrt-WAG54GP2v1-jffs2-128k-code.bin             22-Jan-2009 20:13  2.9M 
openwrt-WAG54GP2v1-jffs2-64k-code.bin              22-Jan-2009 20:13  2.8M 
openwrt-WAG54GP2v1-squashfs-code.bin               22-Jan-2009 20:13  2.1M 
openwrt-WAG54GP2v2-jffs2-128k-code.bin             22-Jan-2009 20:13  2.9M 
openwrt-WAG54GP2v2-jffs2-64k-code.bin              22-Jan-2009 20:13  2.8M 
openwrt-WAG54GP2v2-squashfs-code.bin               22-Jan-2009 20:13  2.1M 
openwrt-ar7-jffs2-128k.bin                         22-Jan-2009 20:13  2.9M 
openwrt-ar7-jffs2-64k.bin                          22-Jan-2009 20:13  2.8M 
openwrt-ar7-squashfs.bin 

i think is  openwrt-ar7-squashfs.bin   but i don´t know waht is the different 128k, 64k, jffs, squahsfs???'

this images have a kernerl inside and lzma descompressor.

i need a kernel???
could some one give a  validkernel image to upload??
the router motherboard have the famous  tnetd7200zdw processor andadm6996I chip.

thanks

thefkboss,

Your router have the current status of "Untested " this means that is not tested and you will be and a unexplored territory.

The cpu AR7 TNETD7200 give you 210mhz, but and about the flash size? there no information about.
You may try at your own risk the openwrt-ar7-squashfs.bin, this is the generic one, and include the kernel and the rootfs.

perfect this is what i was looking for " openwrt-ar7-squashfs.bin, this is the generic one, and include the kernel and the rootfs."
i dont have any problem testing on my router i have all the electronic equipment for this router.
i also have another router the same model but is really new is from this year an it have instead of TNETD7200 an infineon PSB7200ZDW chip i guest it have the same arquitecture.
i´m going to trie.
another question what is the diferrent between squashfs and jffs??

and when you upload a bin file to the router this execute itself or you have to tipe something in the shell.
thanks

thefkboss wrote:

another question what is the diferrent between squashfs and jffs??

squashfs is a readonly filesystem, whereas jffs2 is read/write. Both file system do compress data, but compression on squashfs is much better.
You can put more software on the router using an initial squashfs image. The rest of the flash is formatted as jffs2 and overlayed to the squashfs partition, to provide read/write access for configuration and installation of new packages.
The advantage of jffs2 is, that you can upgrade packages contained in the initial firmware-image, without loosing flash space, and you can modify all files used in the boot process. This is very useful when testing firmware packages. The drawback is, if you do something wrong, there is no failsafe mode to boot into.

For testing only, I suggest a ramdisk only image - one that does not touch flash at all. You may have to build it yourself, may not be pre-packaged for download.

I have done this:

first:
i tiped:
ATMP and the router answer:

ROMIO image start at b0010000                             
code version:             
code start: 94008000                   
code length: 17A930                   
memMapTab: 15 entries, start = b0037000, checksum = 03ED                                                       
$RAM Section:             
  0: BootExt(RAMBOOT), start=94008000, len=38000                                               
  1: HTPCode(RAMCODE), start=94040000, len=C0000                                               
  2: RasCode(RAMCODE), start=94040000, len=FC0000                                                 
$ROM Section:             
  3: BootBas(ROMIMG), start=b0000000, len=4000                                             
  4: DbgArea(ROMIMG), start=b0004000, len=2000                                             
  5: RomDir2(ROMDIR), start=b0006000, len=A000                                             
  6: BootExt(ROMIMG), start=b0010030, len=17FD0                                               
  7: HTPCode(ROMBIN), start=b0028000, len=F000                                             
          (Compressed)                     
          Version: HTP_P660 V 0.05, start: b0028030                                                   
          Length: 25A14, Checksum: 33BD                                       
          Compressed Length: 97E7, Checksum: 6EF1                                                 
  8: MemMapT(ROMMAP), start=b0037000, len=C00                                             
< Press any key to Continue >                             
  9: termcap(ROMIMG), start=b0037c00, len=400                                             
10: tiadsl(ROMBIN), start=b0038000, len=32D00                                             
          (Compressed)                     
          Version: ADSL ATU-R, start: b0038030                                             
          Length: 58EB6, Checksum: 3931                                       
          Compressed Length: 28A1B, Checksum: 20F2                                                 
11: tiwlan(ROMBIN), start=b006ad00, len=F500                                             
          (Compressed)                     
          Version: WLAN, start: b006ad30                                       
          Length: 14B50, Checksum: 4661                                       
          Compressed Length: C034, Checksum: 46E3                                                 
12: RomDefa(ROMIMG), start=b007a200, len=A000                                             
13: RasCode(ROMBIN), start=b0084200, len=16BE00                                               
          (Compressed)                     
          Version: P660HW-D1 ATU-R, start: b0084230                                                   
          Length: 478660, Checksum: 7951                                       
          Compressed Length: 106730, Checksum: 8D31                                                   
14: EeProm(ROMIMG), start=b01f0000, len=10000                                             
< Press any key to Continue >                             
$USER Section:             
Msecs   96         
Heap0   16   640 64                   
Heap1   32   640 64                   
Heap2   64   550 64                   
Heap3   128  360 64                   
Heap4   192  200 100                   
Heap5   256  100 64                   
Heap6   320  36  16                   
Heap7   384  16  16                   
Heap8   448  30  16                   
Heap9   512  36  16                   
Heap10  576  20  8                 
Heap11  1024 70  8                 
Heap12  2560 250  64                   
Heap13  4096 16  2                 
Heap14  0 0           
Heap15  0 0           
MbufInt 20 20 20               
MbufIO  100 160 600 400 0                         
Queue   128           
Cbuf    160           
< Press any key to Continue >                             
FuncId  35         
Proc    40         
Timer   128           
DNS     128           
Model 1 9114           
FilterSet 12           
IpRoute 16         
IpxRoute 4         
IpMaxRt     128               
IpxMaxRt    128               
IpxMaxSap   128               
FwTos 1200 10 10 10                   
CommonTos 2048 10 10 10 10 10 10 10 10 10                                         
AclType0   20480 9  100    #Firewall                                   
AclType1   2048  8  100         #IPSEC                                     
AclType2   2048  8  20          #NAT                                   
AclType3   2048  8  128         #MISC Firewall                                             
AclType4   2048  8  128         #AVE                                   
AclType5   32768 8  128         #CYBER PAT                                         
AppleTalkRoute  0                 
Bridge          4                 
< Press any key to Continue >                             
RemoteNode      8                 
Profile         32                 
Endpoint        4                 
NATServerSet    10                 
DHCPEntry       254                   
PoeSvrCnt       4                 
ScheduleSet     12                 
AclBuffer       1                 
IPSecManualSA   10                 
IPSecIkePeer    10                 
IPSecIkeSA      10                 
IPSecAclBuffer  1                 
IPSecSPD        10                 
IPSecExtendNum  10                 
NatAclBuffer    1                 
CustomPort      10                 
NatSessions     2048                   
IpPolicySet     12                 
CoeFixedPart    0                 
CpeFixedPart    1                 
MiscFirewallBuffer      1                         
< Press any key to Continue >                             
CyberPatrolBuffer       1                         
CyberPatrolListBuffer   1                         
TrustedIPNum    0                 
AccessSecHost   0                 
NatRulePerSet   24                 
UPNPNum         1
IPBUFixpart     1
AveBuffer       1
IEEE8021X       1
Vendor          1 0
HwVerRange      2 0 0
WanBackup      1
ZyCNM 1
Logs 1
BmCbqIfNum      9
BmCbqClassNum   30
BmCbqFilterNum  30
VCHuntSet       10
DHCPMacNum 8
VCHuntMang      1
ComTos                  1
< Press any key to Continue >
WlanExt       1
ZyDaylight 1
AutoSec 1
DDNS 1

so I tried to upload to 1: HTPCode(RAMCODE), start=94040000, len=C0000 

the size of the file openwrt-ar7-squashfs.bin is (2.162.692 bytes) in hex is 0x210004
so i typed
ATUP94040000,21004
It upload fine but when i tried to execute:
ATGO94040000
Exception occured!
EPC = 0x94040000
CAUSE = 0x00808028
STATUS = 0x10007C03
$RA= 0x940104A4

I think i ´m doing somtehing wrong but i don´t know what it is.
somebody know???

Maybe, like the 660HW-61, the router works in big endian mode, while the other ar7 works in little endian.

(Last edited by Pteridium on 10 Sep 2009, 12:47)

Is this issue solved? I have this router too.

The discussion might have continued from here.