Re: RB450 - using Five Ethernet Ports

I want to use 5 ethernet port like 5 ethernet adapter.Default kernel configuration is :port 0, configured to eth0port 1,2,3,4 , configured like switch to eth1------------------------Is very interting to use it separated to use dual link internetconnection.-------------------------I just tried to change compilation like showed in http://wiki.openwrt.org/Ip175C.but it not work in RB450.--------------------------I just tried to compile admswconfig , but it don't find compatiblehardware.have any body a sugestion ?-----Thanks in advance.Edison

Right now I think you still need to apply the "phyfix" kernel patch, which should go in your "target/linux/sometarget/patches-2.6.26/" and then you have a few choices for actually enabling the VLANs. Since this uses ar7 I don't know if that goes in atheros or somewere else. Also not sure if they switched to 2.6.27 or 26 so make sure the patch goes in the right place.

You will still need to set the switch section in your /etc/config/network which sets up the appropriate ethernet devices eth0.1 and eth0.2

If you want a simple fix, download the "user-switch" program and you can run it on the command line like:./user-switch +v "" "0 1 2 3 5*" "4 5"However these settings will be lost on each boot.This is a quick C program I hacked up that's kind of like the admswconfig but of compatible with ip175c instead.

Also note that if you set up vlan network devices you will lose connection if you are plugged into the ethernet port (unless you also set up the same vlans on your linux computer) until you run the user-switch program.

If you want it to work directly with the /etc/config/network system and have an entry in /proc/switch/eth0 you should donwload the "switch-ip175c.c", and compile it in the package/switch directory. Then you have to copy the kernel modules switch-core and switch-ip175c over to /lib/modules and set them to load on boot.

Re: RB450 - using Five Ethernet Ports

Wow, they stupidly made the IP175C and IP178C use different MII registers but have the same PHY ID so it's hard to tell them apart!

Luckily I just found out that somebody has written an updated icplus.c driver for the IP178C:https://dev.openwrt.org/ticket/4075This one seems to check the PHY ID of port 5 which does not exist on the 175 so I'll try doing that.

They also seem to have a patch for the RB493 in this tracker report. Did you apply that?

Download that icplus.c (or icplus.2.c, not sure which one) and try it out: it should cause the chip to be detected so you can use the device albeit without vlan-port mappings. You may need to put that at "drivers/net/phy/icplus.c" in your kernel tree after it is extracted since it's not in a patch format.

I'll try and add the register mappings in my switch-ip175c.c driver now that I know how to distinguish them, so you should also be able to have vlans.

Re: RB450 - using Five Ethernet Ports

Re: RB450 - using Five Ethernet Ports

I just added IP178C support (untested but it's pretty similar to my 175C so it should work in theory) to my VLAN driver up here along with instructions for patching openwrt with everything:http://inst.eecs.berkeley.edu/~pathorn/ip175c/

Yours should probably have a different network device instead of the "ar2313" and most importantly you should see the message "ICPlus: IP178C detected".

If you want to include the switch-ip175c, the only reference I can find is in "package/switch/src/Makefile". If you open that in a text editor and go to the "export-objs" line and add the switch-ip175c.o next to the switch-core.o that may cause it to be correctly included. But I am not completely sure.

I give up, I'm going back to the rb493's RouterOS. It's really too bad because the RB493AH is a monster with 128MB of RAM, 64MB of flash, a 680MHz MIPS CPU, and 9 external ethernet ports. Hopefully it will end up a build choice in make menuconfig.

Re: RB450 - using Five Ethernet Ports

I've never been able to boot kamikaze on the RB493AH with any ethernet port working and I have been using the AR71xx target image.

Which svn are you working with? It appears the rb493.patch is for 8.09, not the trunk. Does the order of patches matter? It seems the first patch installed, rb493 or rb493_eth_pci will install and the second gives an error.

When I compile after using the rb493_eth_pci patch I get a dialog asking about installing EISA support and a bunch of ethernet adapters, none of which look familiar.