From owner-freebsd-mips@FreeBSD.ORG Sat May 10 03:27:53 2014 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 438CA847; Sat, 10 May 2014 03:27:53 +0000 (UTC) Received: from mail-qg0-x235.google.com (mail-qg0-x235.google.com [IPv6:2607:f8b0:400d:c04::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E3687B84; Sat, 10 May 2014 03:27:52 +0000 (UTC) Received: by mail-qg0-f53.google.com with SMTP id f51so5376693qge.12 for ; Fri, 09 May 2014 20:27:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Z9YhwWCSPE+iHR4wk+Ks/hYnvCr/sKKVobuT+9al7Os=; b=kU7Gg6MzXuNCDxEWOdbnfqrN/VTqd4Zjv3rzCTwr2N0RtYFnZlLISpfzyEfVkf16c6 ijlMccuuOAlnkdSCOg+oil0JNLQO9XIuqz2L3xKCeUK9Jx8I8Wb8JgZhkrDI8V6kMpDN 63zF9L2l4+vfW6Od3xvDm6Duk9pxPIbDbCxsqvobtc7yPFhLLCMKQAtOHfZhpsgughME 3qhfa4QZGK+8LnrOn87f+e/lscETsn76f3XEs2eMa456xJqfSSR983FyC3pP+H13jEOf yrkE2ggsK9x6efrAw270TojvXA1Tb5mIcdKkMSgEfPrGn4RZZqOWmuKqlR5R1kpoDh+Z 0AWA== MIME-Version: 1.0 X-Received: by 10.224.67.131 with SMTP id r3mr20197646qai.75.1399692472087; Fri, 09 May 2014 20:27:52 -0700 (PDT) Received: by 10.96.43.105 with HTTP; Fri, 9 May 2014 20:27:51 -0700 (PDT) In-Reply-To: References: <1398070819674-5905259.post@n5.nabble.com> Date: Sat, 10 May 2014 11:27:51 +0800 Message-ID: Subject: Re: netboot error on RB433--wrong architecture(0800 !=0008) From: =?UTF-8?B?6ZmG5qyj5oWw?= To: Luiz Otavio O Souza Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: Andy , "freebsd-mips@freebsd.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 May 2014 03:27:53 -0000 Great works done by Luiz! 2014-05-09 22:30 GMT+08:00 Luiz Otavio O Souza : > 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, =E9=99=86=E6=AC=A3=E6=85=B0 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 m= y > 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 th= e > information is different at first. It said 0300!=3D0008. I have been conf= used > with these architecture. > > > > Could you offer some help again? > > > > Thanks! > > > > Andy Matos > > > > > > 2014-04-23 21:59 GMT+08:00 Luiz Otavio O Souza : > > > >> On 22 April 2014 23:35, =E9=99=86=E6=AC=A3=E6=85=B0 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 routerboa= rd > >>> 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 tra= ck > down what can be stripped off. > >> > >> Cheers, > >> Luiz > >> > >> > > > > >