I have a working kexeced system on a TP-Link TL-WR741ND. After making the USB mod, and additional experimenting, I ended up with a working kexeced system.
svn checkout svn://svn.openwrt.org/openwrt/branches/backfire
cd backfire && ./scripts/feeds update && ./scripts/feeds install -a
make V=s defconfig && make menuconfig
Target System → Atheros AR71xx/AR7240/AR913xTarget Profile → TP-LINK TL-WR741ND v1Target Images → ramdisk → Compression → lzmaTarget Images → tar.gzKernel modules → Filesystems → kmod-fs-ext2kmod-fs-ext3Kernel modules → USB Support → kmod-usb-corekmod-usb-ohcikmod-usb-storageUtilities → kexec tools → Configuration → (mips) Target name for kexec kernelmake V=s
./build_dir/linux-ar71xx/linux-2.6.32.27/arch/mips/kernel/machine_kexec.ckexec_start_address = (unsigned long) phys_to_virt(image→start);./build_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/linux-2.6.32.27/arch/mips/kernel/machine_kexec.ckexec_start_address = (unsigned long) phys_to_virt(image→start);./target/linux/ar71xx/files/arch/mips/ar71xx/Kconfigconfig AR71XX_MACH_TL_WR741ND): select AR71XX_DEV_USB./target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr741nd.cincludes): #include “dev-usb.h”static void __init tl_wr741nd_setup(void)): ar71xx_add_device_usb();make kernel_menuconfig
Kernel type → Kexec system callGeneral setup → Support initial ramdisks compressed using LZMABuilt-in initramfs compression mode → LZMADevice Drivers → SCSI device support → M SCSI device supportM SCSI disk supportProbe all LUNs on each SCSI deviceDevice Drivers → USB support → M Support for Host-side USBM OHCI HCD support → USB OHCI support for Atheros AR71xxM USB Mass Storage supportUSB announce new devicesKernel hacking → Default kernel command string → rootfstype=ext2 noinitrd console=ttyS0,115200 board=TL-WR741ND./package/base-files/files/etc/preinit. /etc/diag.sh, add line: rootfs=/dev/sda1./target/linux/generic-2.6/base-files/initmount $rootfs /mnt -o noatime make clean && make V=s
make V=s
./bin/ar71xx/openwrt-ar71xx-rootfs.tar.gz to root of file system./bin/ar71xx/openwrt-ar71xx-vmlinux-initramfs.elf to root of file system(to be continued)