[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-mips
Subject:    Re: Compiling FreeBSD 12.0 for MIPS 14kc
From:       Adrian Chadd <adrian.chadd () gmail ! com>
Date:       2020-10-28 15:23:14
Message-ID: CAJ-Vmo=V4s=AvJCfXQ=2rs1=nxmSXRkzpKhug-NUzkADJLag8g () mail ! gmail ! com
[Download RAW message or body]

hi!

i remember you coming in and asking about it. Let's see if i can find
some hardware.



-adrian

On Thu, 8 Oct 2020 at 11:33, Georg Bege <georg@bege.email> wrote:
>
> Hi,
>
> wanna give some heads up - conversation about this took mainly place in
> #bsdmips @EFnet and for a short time #FreeBSD-social @Freenode.
>
> I've posted the complete boot up here:
>
> https://pastebin.com/6HCFJRWD
>
>
> According to the Linux and /proc/cpuinfo, it says:
>
> --------------------------------snip--------------------------------
>
> system type        : MT7621
> machine            : Unknown
> processor        : 0
> cpu model        : MIPS 1004Kc V2.15
> BogoMIPS        : 583.68
> wait instruction    : yes
> microsecond timers    : yes
> tlb_entries        : 32
> extra interrupt vector    : yes
> hardware watchpoint    : yes, count: 4, address/irw mask: [0x0ffc,
> 0x0ffc, 0x0ffb, 0x0ffb]
> isa            : mips1 mips2 mips32r1 mips32r2
> ASEs implemented    : mips16 dsp mt
> shadow register sets    : 1
> kscratch registers    : 0
> core            : 0
> VPE            : 0
> VCED exceptions        : not available
> VCEI exceptions        : not available
> --------------------------------snip--------------------------------
>
>
> I've tried to build a FreeBSD12 along with a proper kernel, now Im stuck
> at loading the kernel via tftp in Uboot:
>
> https://pastebin.com/Ujx7t4SE
>
> Im not using compression, it seems the old U-Boot 1.1.5 only supports
> LZMA and using lzma from ports gives me a decompression error.
>
> As the paste says, Im using XIP (kernel in place) and trying to boot off
> 80001000, the 'md' output seems to be correct and that's where the bin
> also is located in memory.
>
> However upon start it just stucks and doesnt continue....
>
> Im using a kernconf now which is inspired by the MT7621_FDT
> configuration, this seems to be not soo wrong as  this seems to be the
> same chip.
>
>
> best regards,
>
> Georg
>
>
> Am 08.10.20 um 15:27 schrieb Kyle Evans:
> > On Thu, Oct 8, 2020 at 7:13 AM Georg Bege <georg@bege.email> wrote:
> >> Hello folks,
> >>
> >> Im trying to compile FreeBSD 12.0 for mips/mipshf and targetting
> >> specifically an mips 14kc CPU.
> >>
> >> I know this is not officially supported by any means, but I want to try
> >> it nonetheless.
> >>
> >> FreeBSD seem's to work on various platforms including a couple of MIPS
> >> families like 24kc.
> >>
> >> At least it's supposed to work on them... the device I have at hand is
> >> an EdgeRouter ER-X which is *not* an Octeon device.
> >>
> >> The steps buildworld seems to work fine so far, at least it compiles but
> >> on buildkernel I get an error upon linking:
> >>
> >>     ld: unrecognised emulation mode: -Bdynamic
> >>
> >> It seems to come from an erroneous ld command which includes "ld -m
> >> -Bdynamic", which is obviously wong.
> >>
> >> I just dont understand why it is there :-( Im not super familiar with
> >> the inner details of the FreeBSD make files and building steps.
> >>
> >> Maybe someone can help me here...
> > 08:19 < kevans91> hmm
> > 08:20 < kevans91> actually, these are probably mostly legit
> > 08:20 < kevans91> You should still do a clean build, but that almost
> > certainly won't fix it on its own
> > 08:22 -!- Netsplit efnet.port80.se <-> se.hub quits: rap2, hugohagog,
> > @adalava, cognet, @dim, wkoszek, joneum3,
> >           ganbold_, idwer, arrowd,  (+23 more, use /NETSPLIT to show
> > all of them)
> > 08:22 < kevans91> DELAY is defined in mips/mips/tick.c, which isn't in
> > the standard sys/conf/files.mips because some
> >                   platforms have their own implementation
> >
> > So basically, you'll need to start building your own files.ERX to
> > include some of the stuff that isn't globally included; see, for
> > instance, sys/mips/mediatek/files.mediatek and copy the
> > mips/mips/tick.c line from that. Some of these are also being caused
> > by
> >
> > #device loop # Network loopback
> > #device ether # Ethernet support
> >
> > You'll need at least loop/ether for some things in the tree you're buiilding.
> >
> > Thanks,
> >
> > Kyle Evans
> _______________________________________________
> freebsd-mips@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-mips
> To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"
_______________________________________________
freebsd-mips@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-mips
To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic