Okay status update. After reading a bit longer, i figured out i should format my nand to get rid of the eraseblock errors. I had to apply to patches to get everything working, they're essentially from this thread https://forum.openwrt.org/viewtopic.php?id=19714
But here are the patches to save anyone here time:
This one patches the size of the mtd partitions, so that you can more or less be sure that your kenrel fits:
diff --git a/linux-2.6.30.10/drivers/mtd/nand/rb4xx_nand.c b/linux-2.6.30.10/drivers/mtd/nand/rb4xx_nand.c
index 5087794..950ca15 100644
--- a/linux-2.6.30.10/drivers/mtd/nand/rb4xx_nand.c
+++ b/linux-2.6.30.10/drivers/mtd/nand/rb4xx_nand.c
@@ -92,7 +92,7 @@ static struct mtd_partition rb4xx_nand_partitions[] = {
{
.name = "kernel",
.offset = (256 * 1024),
- .size = (4 * 1024 * 1024) - (256 * 1024),
+ .size = (10 * 1024 * 1024) - (256 * 1024),
},
{
.name = "rootfs",
this one patches the gigabit and afterwards eth0 will work (while booting from tftp, described below):
diff --git a/linux-2.6.30.10/arch/mips/ar71xx/mach-rb-4xx.c b/linux-2.6.30.10/arch/mips/ar71xx/mach-rb-4xx.c
index a8e97c3..f7a9969 100644
--- a/linux-2.6.30.10/arch/mips/ar71xx/mach-rb-4xx.c
+++ b/linux-2.6.30.10/arch/mips/ar71xx/mach-rb-4xx.c
@@ -238,12 +238,12 @@ static void __init rb450_generic_setup(int gige)
ar71xx_add_device_mdio(0xffffffe0);
- ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;
+ ar71xx_eth0_data.phy_if_mode = (gige) ? PHY_INTERFACE_MODE_RGMII : PHY_INTERFACE_MODE_MII;
ar71xx_eth0_data.phy_mask = 0x0000000f;
ar71xx_eth0_data.speed = (gige) ? SPEED_1000 : SPEED_100;
ar71xx_eth0_data.duplex = DUPLEX_FULL;
- ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
+ ar71xx_eth1_data.phy_if_mode = (gige) ? PHY_INTERFACE_MODE_RGMII : PHY_INTERFACE_MODE_RMII;
ar71xx_eth1_data.phy_mask = 0x00000010;
ar71xx_add_device_eth(1);
CAVEAT: one really big caveat is that at the moment eth0 WILL ONLY work when you tftpboot the image. I'm not sure why, but i'm writing mikrotik's support right now.
Hope this helps someone.
EDIT: oh and one more thing, to install to flash, format the nand in bios, then create a tgz image and put openwrt-ar71xx-rootfs.tgz and openwrt-ar71xx-vmlinux.elf onto a web/ftp server. Then simply install with wget2nand http://yourserver/path/to/files
(Last edited by russo. on 13 Dec 2009, 21:49)