From owner-freebsd-mips@freebsd.org Wed Oct 28 15:23:29 2020 Return-Path: Delivered-To: freebsd-mips@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3DB6A44984B for ; Wed, 28 Oct 2020 15:23:29 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CLsm00wFYz4GVQ; Wed, 28 Oct 2020 15:23:27 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qk1-x743.google.com with SMTP id a23so4826104qkg.13; Wed, 28 Oct 2020 08:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wWjxsyrciJhBK/gWzbknMm/+6liQ6QbXoemP8mKrJ0o=; b=cwsRkazROYf9sbOy+UcrF2lGbM5Nt8Uxsr20ec2W4Jth0aBJO6M+/xx4OMahFBN3zJ Bmhn30U9fiJEzPu0D+TPdysw8ViMgu0sUfBPTOHMWs+yUnYu18ph3iNXA5V3mTxbQIqM pncKuIwwozCF84iufXukiC0cTPcjnLigpL162g0G5OGF7KbzCeMPg+A0c5SnNw9rmC57 70TgDaXWniU7sBWjZkrp2Xlfp3zJRvfZ/S7a/ITCKP27H4Hbgf2g7BjnauXKQqKxZKTl xmMaQYHFCAUZPCf7EwNlmC4ehOMIiEJxYVU5M/1umfd5mwzg5frRf+HDZzAGGFUa7IlX 8ScQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wWjxsyrciJhBK/gWzbknMm/+6liQ6QbXoemP8mKrJ0o=; b=kF7+mGQ2QL30QZS0dtI2sCIUlstaH/LccxtsydLEu5crN4GSYJJc4yPSTJA9zpZdpO uAqkSc373DkmLPe7//8EB3HQirZr4H40w33FLVf+xkswjCn6a7dlF9Ui7kgZ/MYX3Ty2 Spvuj5HNMoanFyc5C/vfEH1o7jbw3Ob9GvEz6Qrf8u9k5WEB86HiVQEsE4QRTkKcfB+y ArmTFZVT8sZYJ+tesMo3XqtdiZQOL3cP6ofC3u9pAHkA5gx75taivisJqm0JTvXMa4uf sOz6IWQe6HFJvk+dDsM50u1ZVf4jGBO1+3TAIv5EehuI4jhkKLMB1ZT+jojRB3VBmHZ/ 0iDA== X-Gm-Message-State: AOAM530mt+pw5rnIVnZOraBneeLo7Fyc35H5thBJJabdvi2d/k1umUW8 vyqbXTlIdNtSIB47KIg6wJldkUb0jP8xz1Yayn6ugpBFsU0= X-Google-Smtp-Source: ABdhPJyHw+1/izDdOkKDafuRAieq8aLFLCYeOClnRtvrtdVCMiZzLV7owe4ziXQCHjhIXGrmoiYQaH0grs7CD97+G7k= X-Received: by 2002:a37:e212:: with SMTP id g18mr7454997qki.366.1603898606687; Wed, 28 Oct 2020 08:23:26 -0700 (PDT) MIME-Version: 1.0 References: <6579e5af-34d8-bbaa-f9ff-daf67f071de7@bege.email> <0127f35e-d4eb-98a0-b56c-32de68d4addd@bege.email> In-Reply-To: <0127f35e-d4eb-98a0-b56c-32de68d4addd@bege.email> From: Adrian Chadd Date: Wed, 28 Oct 2020 08:23:14 -0700 Message-ID: Subject: Re: Compiling FreeBSD 12.0 for MIPS 14kc To: georg@bege.email Cc: Kyle Evans , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4CLsm00wFYz4GVQ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=cwsRkazR; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::743 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-3.48 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; NEURAL_HAM_LONG(-0.99)[-0.992]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::743:from]; NEURAL_HAM_SHORT(-0.45)[-0.446]; NEURAL_HAM_MEDIUM(-1.04)[-1.044]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-mips]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2020 15:23:29 -0000 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 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 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"