Date: Wed, 15 Jan 2014 10:40:53 +0400 From: =?UTF-8?B?QW50b24=?= <felix_mail@mail.ru> To: =?UTF-8?B?QWRyaWFuIENoYWRk?= <adrian@freebsd.org> Cc: =?UTF-8?B?XGZyZWVic2QtbWlwc0BmcmVlYnNkLm9yZ1w=?= <freebsd-mips@freebsd.org> Subject: =?UTF-8?B?UmVbNl06IFJCNDUwRyBjb21waWxpbmcgdGhlIGtlcm5lbA==?= Message-ID: <1389768053.407517990@f357.i.mail.ru> In-Reply-To: <CAJ-VmomrkYKqmUq=B_b6FQ4Qn60Lf0oR%2Bjy0CnyKj-A6w3CVGQ@mail.gmail.com> References: <1388404360.131024714@f310.i.mail.ru> <1388826328.503909163@f428.i.mail.ru> <CAJ-VmomrkYKqmUq=B_b6FQ4Qn60Lf0oR%2Bjy0CnyKj-A6w3CVGQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Hi Adrian, I use the kernel created from the rev. 234999 with some patches. I added mmcsd because my system is installed to the memory card and I use etherswitch implementation taken from the last HEAD revisions. Суббота, 4 января 2014, 17:29 -08:00 от Adrian Chadd <adrian@freebsd.org>: >Right. Well, let's try and figure out exactly what we should commit to >freebsd-head so we have a known working kernel config + hints for the >RB450. > >Thanks! > > >-a > > >On 4 January 2014 01:05, Anton < felix_mail@mail.ru > wrote: >> Adrian, >> >> I'm using the custom hints for RB450 without including other hint files. >> Maybe my mistake was in this. >> -- >> >> вторник, 31 декабря 2013г., 21:57 +0400 от Adrian Chadd >> < adrian@freebsd.org >: >> >> Which kernel configuration file are you building with? >> >> -a >> >> On 31 December 2013 00:23, Anton < felix_mail@mail.ru > wrote: >>> Adrian thanks! >>> >>> I resolved the problem. There was need to add both options in hints file >>> at >>> the same time. >>> >>> hints.argemdio.0.at="nexus0" >>> hints.argemdio.0. >>> .... >>> hints.arge.0.at="nexus0" >>> hints.arge.0. >>> .... >>> >>> Понедельник, 30 декабря 2013, 11:38 -08:00 от Adrian Chadd >>> < adrian@freebsd.org >: >>> >>> On 30 December 2013 03:52, Антон Петухов < felix_mail@mail.ru > wrote: >>>> >>>> Hi, >>>> Can you help me? How can I use AR7161 + AR8316 as two interfaces >>>> available >>>> to the kernel? Etherswitch is very good solution, but he's black box for >>>> me. >>>> If I try to compile kernel with switch - all is Ok, but in this case >>>> system >>>> have only one arge1. >>>> I need to route traffic between arge0 and arge1 ports... How, how can I >>>> do >>>> it? :) >>> >>> Well, it depends on how it's wired up. >>> >>> The AR8316 (and other atheros switches) have an option to peel off one >>> of the ports as a dedicated PHY port, for situations where you have >>> two MACs on the SoC and you want to have a WAN port and multiple LAN >>> ports. >>> >>> Theres three ways to do it: >>> >>> * have one MAC port, map all switch ports to it, then peel off lan/wan >>> via VLAN ids >>> * have two MAC ports, have one port dedicated as a pass-through PHY >>> for the WAN port and the rest be switch ports for the LAN (vlan or >>> otherwise) >>> * a hybrid - have two MAC ports, and just map them using vlan ids or >>> per-port vlans as required. >>> >>> So it boils down to whether the RB450G wires both arge interfaces to >>> the switch. If so, you can peel off a dedicated WAN PHY/port by >>> configuring up the 'phy4cpu' option in the hints file. Otherwise it's >>> vlans all the way down. >>> >>> >>> -adrian >>> >>> >>> >>> -- >>> Anton -- Феликс К. [-- Attachment #2 --] ident RB4XX makeoptions TARGET_BIG_ENDIAN makeoptions KERNLOADADDR=0x80050000 options HZ=1000 options HWPMC_HOOKS hints "RB450.hints" include "../atheros/std.ar71xx" makeoptions MODULES_OVERRIDE="pf pflog ipfw if_bridge" options SCHED_4BSD #4BSD scheduler options INET #InterNETworking #options NFSCL #Network Filesystem Client #options NFSCLIENT #Network Filesystem Client #options NFS_ROOT #NFS usable as /, requires NFSCLIENT options PSEUDOFS #Pseudo-filesystem framework options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions options FFS #Berkeley Fast Filesystem options SOFTUPDATES #Enable FFS soft updates support options UFS_DIRHASH #Improve performance on big directories options GEOM_PART_GPT # GUID Partition Tables. options GEOM_LABEL # Provides labelization #device pci #device ar71xx_pci options ARGE_MDIO device miiproxy device etherswitch device arswitch device arge device mii device spibus device ar71xx_spi device mmc device mmcsd device mmcspi device ar71xx_wdog device uart device loop device ether device md device bpf device random device gpio device gpioled options ROOTDEVNAME=\"ufs:/dev/mmcsd0a\" #options BOOTP #options BOOTP_NFSROOT #options BOOTP_NFSV3 #options BOOTP_WIRED_TO=arge1 #options BOOTP_COMPAT #options ROOTDEVNAME=\"nfs:\" [-- Attachment #3 --] hint.apb.0.at="nexus0" hint.apb.0.irq=4 # uart0 hint.uart.0.at="apb0" # see atheros/uart_cpu_ar71xx.c why +3 hint.uart.0.maddr=0x18020003 hint.uart.0.msize=0x18 hint.uart.0.irq=3 # arge0 mdio bus hint.argemdio.0.at="nexus0" hint.argemdio.0.maddr=0x19000000 hint.argemdio.0.msize=0x1000 hint.argemdio.0.irq=2 hint.argemdio.0.order=0 # arge0: nail to 1000/full, RGMII - connected to the switch hint.arge.0.media=1000 # Map to 1000/full hint.arge.0.fduplex=1 # hint.arge.0.miimode=3 # RGMII hint.arge.0.phymask=0x0 # no directly mapped PHYs hint.arge.0.at="nexus0" hint.arge.0.maddr=0x19000000 hint.arge.0.msize=0x1000 hint.arge.0.irq=2 hint.arge.0.phymask=0x0 hint.arge.0.miimode=3 # RGMII # arge1: dedicated switch port hint.arge.1.at="nexus0" hint.arge.1.maddr=0x1a000000 hint.arge.1.msize=0x1000 hint.arge.1.irq=3 hint.arge.1.phymask=0x10 # PHY4 hint.arge.1.miimode=3 # RGMII hint.arge.1.mdio=mdioproxy1 # .. off of the switch mdiobus hint.arswitch.0.at="mdio0" hint.arswitch.0.is_8316=1 hint.arswitch.0.is_7240=0 hint.arswitch.0.numphys=4 hint.arswitch.0.phy4cpu=1 hint.arswitch.0.is_rgmii=1 hint.arswitch.0.is_gmii=0 # SPI controller hint.spi.0.at="nexus0" hint.spi.0.maddr=0x1f000000 hint.spi.0.msize=0x10 # SPI microSD slot hint.mmcspi.0.at="spibus0" hint.mmcspi.0.cs=2 # Watchdog hint.ar71xx_wdog.0.at="nexus0" # GPIO hint.gpio.0.at="apb0" hint.gpio.0.maddr=0x18040000 hint.gpio.0.msize=0x1000 hint.gpio.0.irq=2 # User led hint.gpioled.0.at="gpiobus0" hint.gpioled.0.name="user" # pin 4 hint.gpioled.0.pins=0x0010 # hwpmc device hint.ar71xx_pmc.0.at="apb0" hint.ar71xx_pmc.0.irq=5
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1389768053.407517990>
