Date: Fri, 9 May 2014 11:30:44 -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=2f8xW6nPmyg44adH%2BKsn6KikbGgWtReF4gF40JPCuUi%2BVPg@mail.gmail.com> In-Reply-To: <CAFR4v_v1KevcvAqg-L_gTAHUH1PphvV5Rv=eCXq3kwh2yJsyCQ@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> <CAB=2f8y_WdoKRcjracBdkOuyv3n8mG7d42z2rcFUP2snyBfL1w@mail.gmail.com> <CAFR4v_v1KevcvAqg-L_gTAHUH1PphvV5Rv=eCXq3kwh2yJsyCQ@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] With the changes committed up to r265775 (and with the attached kernel and hints), me and Andy were able to boot ours RB433[U]AH. Thanks Andy for the help with the tests. Luiz On 29 April 2014 01:54, 陆欣慰 <luxinweiandy@gmail.com> wrote: > > Sorry to trouble you again. > I have tried your kernel file and hint file and set the TARGET_ARCH to mips, but I failed again. > At first, I got this error: > > It told it's not a 64-bit elf image and I think maybe that is because my system on PC is 64-bit, so I install FreeBSD10.0-i386 on my PC and try again. This time I got a new error as follows: > > It told me again with the wrong architecture but in the bracket pair the information is different at first. It said 0300!=0008. I have been confused with these architecture. > > Could you offer some help again? > > Thanks! > > Andy Matos > > > 2014-04-23 21:59 GMT+08:00 Luiz Otavio O Souza <lists.br@gmail.com>: > >> 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 hint.arge.0.invertunits=1 # arg0 uses base MAC address + 1 # 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="led0" # 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 --] # # RB433[U]: Mikrotik RouterBoard 433 # # $FreeBSD$ # include "AR71XX_BASE" ident "RB433U" hints "RB433.hints" # RB433[U] doesn't have any spi flash. nodevice mx25l nooptions INVARIANTS nooptions INVARIANT_SUPPORT nooptions WITNESS nooptions WITNESS_SKIPSPIN nooptions DEBUG_REDZONE nooptions DEBUG_MEMGUARD #nodevice usb #nodevice ehci #nodevice scbus #nodevice umass #nodevice da # 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\"help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB=2f8xW6nPmyg44adH%2BKsn6KikbGgWtReF4gF40JPCuUi%2BVPg>
