All,
I bought a WRT400N last night because it doesn't have Broadcom. :-) I
soldered a header to the serial port and used a FTDI USB 3.3V cable to
interrupt u-boot and get a prompt. So far, so good.
My problem is pretty basic. I found instructions [1] to burn an image
to the flash, but I don't want to do that yet. I'd like to test images
I load via tftp by executing straight from RAM.
I can get the image to load successfully, but can't get it to execute.
This [2] forum thread has been a huge help. I've tried just sending the
lzma compressed kernel image, the gzip compressed kernel image, the blob
created with mkimage-wrt400n [3], and everything fails like so:
----------------- Start ----------------------------------------
ar7100> tftpboot 0x80800000 openwrt-ar71xx-vmlinux.lzma
Using eth0 device
TFTP from server 192.168.1.88; our IP address is 192.168.1.1
Filename 'openwrt-ar71xx-vmlinux.lzma'.
Load address: 0x80800000
Loading: #################################################################
#################################################################
##################################################
done
Bytes transferred = 917504 (e0000 hex)
ar7100> go 0x80800000
## Starting application at 0x80800000 ...
---------------- End -------------------------------------------
then nothing. No leds change. So I try 'bootm':
---------------- Start -----------------------------------------
ar7100> <INTERRUPT>
ar7100> tftpboot 0x80800000 openwrt-ar71xx-vmlinux.lzma
Using eth0 device
TFTP from server 192.168.1.88; our IP address is 192.168.1.1
Filename 'openwrt-ar71xx-vmlinux.lzma'.
Load address: 0x80800000
Loading: #################################################################
#################################################################
##################################################
done
Bytes transferred = 917504 (e0000 hex)
ar7100> bootm 0x80800000
## Booting image at 80800000 ...
Bad Magic Number
TFTP Server IP is : 192.168.1.1
Load address: 0x80000000
T
---------------- End -------------------------------------------
I googled around for the bad magic number, and decided to give [3] a shot:
---------------- Start -----------------------------------------
$ ../../../mkimage-wrt400n/mkimage-wrt400n openwrt-ar71xx-vmlinux.lzma
openwrt-ar71xx-root.squashfs openwrt-ar71xx-fw.bin
openwrt-ar71xx-vmlinux.lzma: size 917504 (0xe0000), crc32 = 0x2c365a8e
openwrt-ar71xx-root.squashfs: size 2359296 (0x240000), crc32 = 0x4cace020
crc = 0xcf01d17a, total size = 3276860 (0x32003c)
$
---------------- End -------------------------------------------
I then repeated the above u-boot commands with openwrt-ar71xx-fw.bin,
same results. Nothing, and bad magic number.
What am I missing?
thx,
Jason.
[1] - https://forum.openwrt.org/viewtopic.php?pid=83476#p83476
[2] - https://forum.openwrt.org/viewtopic.php?id=19633&p=1
[3] - http://sandeepmistry.ca/openwrt/mkimage-wrt400n.c
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users