From owner-freebsd-mips@freebsd.org Tue Dec 22 10:12:38 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73E92A4E97E for ; Tue, 22 Dec 2015 10:12:38 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [31.223.170.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 302C61C16; Tue, 22 Dec 2015 10:12:37 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 59C90153418; Tue, 22 Dec 2015 11:12:18 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id et0q5wfR8wYU; Tue, 22 Dec 2015 11:11:59 +0100 (CET) Received: from [IPv6:2001:4cb8:3:1:3d8c:b8b4:2ad7:8a66] (unknown [IPv6:2001:4cb8:3:1:3d8c:b8b4:2ad7:8a66]) by smtp.digiware.nl (Postfix) with ESMTP id B7B83153408; Tue, 22 Dec 2015 11:11:59 +0100 (CET) Subject: Booting a FreeBSD kernel on the WiTiboard. (Was: Re: Initial support for MT7620) To: Stanislav Galabov , Adrian Chadd References: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> <17D0A04B-7164-48AE-9909-107EEBDF72E5@gmail.com> <56716BD0.1080801@digiware.nl> Cc: "freebsd-mips@freebsd.org" From: Willem Jan Withagen Organization: Digiware Management b.v. Message-ID: <567921DD.9060802@digiware.nl> Date: Tue, 22 Dec 2015 11:11:41 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <56716BD0.1080801@digiware.nl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2015 10:12:38 -0000 On 16-12-2015 14:49, Willem Jan Withagen wrote: > On 15-12-2015 17:16, Stanislav Galabov wrote: >> WiTi board looks nice, I’d go for it. >> >> I have by no means given up on MT7621 support and rolling it in >> together with RT305x would probably be best if we manage to do it. >> I’d actually like to continue after MT7620 and MT7621 and include >> support for MT7628 and MT7688 as well :-) > > Finally got the time to dig out the board and the serial connector. > This is what my WitiBoard spews at me while booting in Uboot..... > > So now I'm off to finding a suitable system here to put tftp on > and go from there. 'mmmm, After a real serious battle with tftp :( it boots. One thing to note on the WiTi board is that the uboot ethernet interface is the second single keystone/connector, NOT the one next to the power jack. Then the next issue starts: uboot runs at 57600 b/s And as far as I can conclude runs the bootloader at 9600 b/s? And once booted it switches to 115200 b/s? I can not switch cu(1) fast enough to actually watch the boot, but once I'm at 115200 I get: panic: mountroot: unable to (re-)mount root. KDB: enter: panic [ thread pid 1 tid 100001 ] Stopped at kdb_enter+0x4c: lui at,0x8047 db> Which matches the remark that there is need for a bootdisk. doesn't look like it is possible to write uboot commands to flash to actually make it do something different from the stdboot. (The device we once build would allow for a uboot-script, but I've got to refersh my uboot memory. ) So I'll try and set uboot to 9600 b/s and reconnect, ten load the kernel to see what comes of it. But is it possible to actually make the console of just the downloaded kernel image run at 57600 ?? No loader.conf etc. makes life a bit harder.... --WjW