By default, OpenWrt generates the image for the Ubiquiti devices that use XS5 and have 4MB of flash memory (NS5, NS Loco5, etc). Did you try with this image?
It's called openwrt-atheros-ubnt5-squashfs.bin
Saludos, Julio
OK I used it
In apps/gpl/mkfwimage/src create this file lx5-4.txt with this content:
ATTENTION: It is not space between the code, it is tab
kernel 0x01 0xBE030000 0x000D0000 0x80041000 0x80041000 openwrt-atheros-vmlinux.lzma
rootfs 0x02 0xBE100000 0x002C0000 0x00000000 0x00000000 openwrt-atheros-root.squashfs
and this command
./mkfwimage -i lx5-4.txt -v XS5.ar2313.OpenWRT-kamikaze -o nightwing_zapbslbeta2_v0.6beta4-loco5-squashfs.bin
so, you say me that to try it with openwrt-atheros-ubnt5-squashfs.bin neither openwrt-atheros-root.squashfs ?
Helene Gauthier