exit 1
}
-# first get an address for eth0 using udhcpc
+# first get an address for br-lan using udhcpc
killall udhcpc
-/sbin/udhcpc -i eth0
+/sbin/udhcpc -i br-lan
# need to find the wget server from the command line
url=$1
echo "Copying filesystem..."
( wget -O - $url/openwrt-adm5120-2.6-rootfs.tgz) | ( cd /tmp/wget2nand/; tar xvz )
-wget -O /tmp/wget2nand-boot/kernel $url/openwrt-adm5120-2.6-vmlinux
+wget -O /tmp/wget2nand-boot/kernel $url/openwrt-adm5120-2.6-vmlinux.elf
# update the command line on the kernel to boot from the right place
[ ! -e /sbin/patch-cmdline ] && {
CONFIG_USB_YEALINK=m
# CONFIG_USB_ZD1201 is not set
CONFIG_VM_EVENT_COUNTERS=y
+CONFIG_YAFFS_9BYTE_TAGS=y
# CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED is not set
CONFIG_YAFFS_AUTO_YAFFS2=y
+CONFIG_YAFFS_CHECKPOINT_RESERVED_BLOCKS=10
# CONFIG_YAFFS_DISABLE_LAZY_LOAD is not set
# CONFIG_YAFFS_DISABLE_WIDE_TNODES is not set
-# CONFIG_YAFFS_DOES_ECC is not set
CONFIG_YAFFS_FS=y
CONFIG_YAFFS_SHORT_NAMES_IN_RAM=y
CONFIG_YAFFS_YAFFS1=y