Date: Wed, 23 Apr 2014 10:59:47 -0300 From: Luiz Otavio O Souza <lists.br@gmail.com> To: =?UTF-8?B?6ZmG5qyj5oWw?= <luxinweiandy@gmail.com> Cc: Andy <luxinweiandy@hotmail.com>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> Subject: Re: netboot error on RB433--wrong architecture(0800 !=0008) Message-ID: <CAB=2f8y_WdoKRcjracBdkOuyv3n8mG7d42z2rcFUP2snyBfL1w@mail.gmail.com> In-Reply-To: <CAFR4v_tr97=o2-WtWVp-SGq5NM_uGQaMTTgSeCQF=LFy8ocL5g@mail.gmail.com> References: <1398070819674-5905259.post@n5.nabble.com> <CAJ-VmonXiWLexzfajfJoSXyd4NpfNbvSR5ndgRCrbLFSmQUhQw@mail.gmail.com> <CAFR4v_tr97=o2-WtWVp-SGq5NM_uGQaMTTgSeCQF=LFy8ocL5g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On 22 April 2014 23:35, 陆欣慰 wrote: > Ah, bad news[?] > But where could I get the new instructions or just wait for the wiki to > update? > Could you give some detail steps to build a kernel for mips routerboard > like RB433? > Sorry for the delay, $work calls :/ You are building little endian code while ar71xx expects big endian code. Just replace the value of TARGET_ARCH to 'mips' (instead of 'mipsel') and you will get a working kernel. I'm attaching a RB433 kernel and hints, but the resulting kernel is actually to big to (fully) work and i could not yet spend the time to track down what can be stripped off. Cheers, Luiz [-- Attachment #2 --] # $FreeBSD: head/sys/mips/conf/RSPRO.hints 235661 2012-05-19 20:11:18Z adrian $ # arge0 mdio bus hint.argemdio.0.at="nexus0" hint.argemdio.0.maddr=0x19000000 hint.argemdio.0.msize=0x1000 hint.argemdio.0.order=0 # arge0: nail to 100/full, MII - connected to the switch hint.arge.0.media=100 # Map to 100/full hint.arge.0.fduplex=1 # hint.arge.0.miimode=2 # MII hint.arge.0.phymask=0x0 # no directly mapped PHYs hint.arge.0.mdio=mdioproxy1 # .. off of the switch mdiobus # arge1: dedicated switch port hint.arge.1.phymask=0x10 # PHY4 hint.arge.1.miimode=4 # RMII hint.arge.1.mdio=mdioproxy1 # .. off of the switch mdiobus # IP17X switch hint.ip17x.0.at="mdio0" hint.ip17x.0.phymask=0x6 # PCI Slots IRQ hint.pcib.0.baseslot=18 # RouterBoard CPLD hint.rb_cpldbus.0.at="spibus0" hint.rb_cpldbus.0.cs=0 # SPI microSD slot hint.mmcspi.0.at="spibus0" hint.mmcspi.0.cs=1 # Don't flip on anything that isn't already enabled. # This includes leaving the SPI CS1/CS2 pins as GPIO pins as they're # not used here. #hint.gpio.0.function_set=0x00000000 #hint.gpio.0.function_clear=0x00000000 # These are the GPIO LEDs and buttons which can be software controlled. hint.gpio.0.pinmask=0x000000ff # GPIO 0: # GPIO 1: # GPIO 2: # GPIO 3: # GPIO 4: Led-1 # GPIO 5: NAND busy pin # GPIO 6: # GPIO 7: Reset Switch # Green led near the power led. hint.gpioled.0.at="gpiobus0" hint.gpioled.0.name="led-1" # pin 4 hint.gpioled.0.pins=0x0010 # RouterBoard CPLD leds hint.gpioled.1.at="gpiobus1" hint.gpioled.1.name="led1" hint.gpioled.1.pins=0x0001 hint.gpioled.2.at="gpiobus1" hint.gpioled.2.name="led2" hint.gpioled.2.pins=0x0002 hint.gpioled.3.at="gpiobus1" hint.gpioled.3.name="led3" hint.gpioled.3.pins=0x0004 hint.gpioled.4.at="gpiobus1" hint.gpioled.4.name="led4" hint.gpioled.4.pins=0x0008 [-- Attachment #3 --] # # Routerstation Pro: boot from on-board flash # # $FreeBSD$ # include "AR71XX_BASE" ident "RB433U" hints "RB433.hints" # RB433[U] doesn't have any spi flash. nodevice mx25l # GEOM modules #device geom_redboot # to get access to the SPI flash partitions #device geom_uzip # compressed in-memory filesystem support #options GEOM_UZIP # For DOS options MSDOSFS # RouterBoot support #options AR71XX_ENV_ROUTERBOOT # For etherswitch support options ARGE_MDIO device miiproxy device etherswitch device ip17x # Boot off from NAND #options ROOTDEVNAME=\"ufs:redboot/rootfs.uzip\" # XXX - NFS root for now options NFSCL options NFS_ROOT options BOOTP options BOOTP_NFSROOT options BOOTP_NFSV3 options BOOTP_WIRED_TO=arge1 options BOOTP_COMPAT #options ROOTDEVNAME=\"nfs:192.168.0.10:/data/rb/rb450g/nfsroot\"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB=2f8y_WdoKRcjracBdkOuyv3n8mG7d42z2rcFUP2snyBfL1w>
