Sorry to ask but I seem at a lost on this one. I can compile kamikaze, but have been unable to load it on a a WHR-HP-AG108, or at least I cannot find the way to do it.
The flash table on the router was originally like this:
RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0xBE000000 0xBE000000 0x00050000 0x00000000
RedBoot config 0xBE3DF000 0xBE3DF000 0x00001000 0x00000000
FIS directory 0xBE3D0000 0xBE3D0000 0x0000F000 0x00000000
vmlinux.bin.gz 0xBE050000 0x80002000 0x000B4B98 0x80182398
rootfs 0xBE120000 0xBE120000 0x0029C000 0x00000000
user.property 0xBE3E0000 0xBE3E0000 0x00010000 0x00000000
Radio.Config 0xBE3F0000 0xBE3F0000 0x00010000 0x00000000
RedBoot>
And I modified it to this:
RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0xBE000000 0xBE000000 0x00050000 0x00000000
RedBoot config 0xBE3DF000 0xBE3DF000 0x00001000 0x00000000
FIS directory 0xBE3D0000 0xBE3D0000 0x0000F000 0x00000000
rootfs 0xBE050000 0xBE050000 0x002A0000 0x00000000
linux 0xBE2F0000 0x80100000 0x000C0000 0x80100000
nvram 0xBE3B0000 0xBE3B0000 0x00010000 0x00000000
Here's the redboot version:
RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version v2_0 - built 17:04:25, Jan 13 2006
Buffalo Version: 1.00.1.00
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
RAM: 0x80000400-0x81000000, 0x80000400-0x80fe1000 available
FLASH: 0xbe000000 - 0xbe3f0000, 63 blocks of 0x00010000 bytes each.
And here's what I did:
RedBoot> ip -l 192.168.1.4 -h 192.168.1.88
IP: 192.168.3.4/255.255.255.0, Gateway: 192.168.1.1
Default server: 192.168.1.88, DNS server IP: 192.168.1.1
RedBoot> load -r -v -b 0x80041000 openwrt-atheros-2.6-root.squashfs
-
Raw file loaded 0x80041000-0x80160fff, assumed entry at 0x80041000
RedBoot> load -r -v -b 0x80100000 openwrt-atheros-2.6-vmlinux.lzma
-
Raw file loaded 0x80100000-0x801affff, assumed entry at 0x80100000
RedBoot> exec
Now booting linux kernel:
Base address 0x80080000 Entry 0x80100000
Cmdline :
*** Exception error!! -> vecter (2), error (12)
Any hints where to look and what to do? How do I get the correct entry point of the vmlinuz image?
Thank you.