OpenWrt Forum Archive

Topic: CFE using tftp for booting how to prepare an image?

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

Hi,

I am trying to run a kernel image using tftp. But unfortuately the LZMA decoder kicks in with an error message.

This is what I have done:
- changed CFE the boot parameters so I can boot via the network.
- copied the kernel portion of the flash chip.

The first three parameters of the image, load addr. 0x80010000, entry point 0x801b3018, compressed size 0x87c2b (556075).  And the lzma compressed image

00000000  80 01 00 00 80 1b 30 18  00 08 7c 2b 5d 00 00 40  |......0...|+]..@|
00000010  00 00 00 6f fd ff ff a3  b7 7f 63 c5 55 81 b7 e0  |...o......c.U...|
00000020  8b fd 7d a1 6d 5c 6f 23  77 26 b6 b2 a3 4c ca b5  |..}.m\o#w&...L..|
...
00087c10  26 5d 8d 10 00 6c b5 0a  ff 4c 35 c9 b3 34 38 a4  |&]...l...L5..48.|
00087c20  ca 2b f3 30 5c bc 1b 68  fc 35 88 19 ba 1a e2 3d  |.+.0\..h.5.....=|
00087c30  1a 7e 42 aa c0 00 00                              |.~B....|

This results in:

CFE version 1.0.37-0.6 for BCM96348 (32bit,SP,BE)
Build Date: 2005-03-31 17:08:34 (root@ylinux)
DV-201AMR Boot ROM version: 1.6
H/W version: 02

CFE> p
Board IP address                : 192.168.1.1:ffffff00
Host IP address                 : 192.168.1.100
Gateway IP address              :
Run from flash/host (f/h)       : h
Default host run file name      : vmlinux
Default host flash file name    : bcm963xx_fs_kernel
Boot delay (0-9 seconds)        : 1
Board Id Name                   : 96348GW-10
Psi size in KB                  : 24
Number of MAC Addresses (1-32)  : 11

CFE> r
Retry loading it as a compressed image.
Loading 192.168.1.100:vmlinux ...
Finished loading 556087 bytes
Code Address: 0x80010000, Entry Address: 0x801b3018
CodeReal: invalid data
Failed on decompression.  Corrupted image?
*** command status = 556087

Has anyone a hint?


Please note that the image is already working and present in flash on the router. I am just trying to make the test process more flexible so I can skip the flash step.

(Last edited by LinuxInside on 29 Dec 2008, 15:18)

The discussion might have continued from here.