From owner-freebsd-mips@freebsd.org Tue Nov 13 16:38:38 2018 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 46E3E112A296 for ; Tue, 13 Nov 2018 16:38:38 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [IPv6:2001:4cb8:90:ffff::3]) (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 156206CFFC for ; Tue, 13 Nov 2018 16:38:37 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router.digiware.nl (localhost.digiware.nl [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 4CE82A412A; Tue, 13 Nov 2018 17:38:34 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.com Received: from smtp.digiware.nl ([127.0.0.1]) by router.digiware.nl (router.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IvE9Aruez8TL; Tue, 13 Nov 2018 17:38:33 +0100 (CET) Received: from [192.168.10.67] (opteron [192.168.10.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id B1CFEA4123; Tue, 13 Nov 2018 17:38:33 +0100 (CET) Subject: Re: Building a new version for my WiTi board From: Willem Jan Withagen To: Michael Zhilin Cc: freebsd-mips@freebsd.org References: <09b2150d-ef55-c032-59c4-4b218a03f186@digiware.nl> Message-ID: Date: Tue, 13 Nov 2018 17:38:19 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <09b2150d-ef55-c032-59c4-4b218a03f186@digiware.nl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: nl Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 156206CFFC X-Spamd-Result: default: False [-3.89 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[digiware.nl]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: smtp.digiware.nl]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.93)[-0.930,0]; IP_SCORE(-0.65)[ipnet: 2000::/6(-1.82), asn: 12552(-1.41), country: SE(-0.02)]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:12552, ipnet:2000::/6, country:SE]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2018 16:38:38 -0000 On 13-11-2018 14:13, Willem Jan Withagen wrote: > On 13-11-2018 13:59, Michael Zhilin wrote: >> Hi, >> >> You need to specify FDT DTS file. Try to uncomment first line of >> kernel configuration file MT7621_FDT: >> #makeoptions    FDT_DTS_FILE=WITI.dts >> > > Hi Michael, > > That helps.... What I've done.... sudo make KERNCONF=MT7621_FDT FDT_DTS_FILE=WITI.dts TARGET=mips TARGET_ARCH=mipsel kernel-toolchain buildkernel cd /usr/obj/mips.mipsel/usr/srcs/Mips/src/sys/MT7621_FDT readelf -h kernel | grep 'Entry point address:' Entry point address: 0x80001100 ../../tmp/usr/bin/objcopy -O binary kernel kernel.bin mkimage -A mips -O linux -T kernel -C none -a 0x80001100 -e 0x80001100 -n 'FreeBSD Kernel Image' -d kernel kernel.uboot And then I TFTPboot this kernel in uboot on the WiTi board But it freezes like this: MT7621 # bootm ## Booting image at 80100000 ... Image Name: FreeBSD Kernel Image Image Type: MIPS Linux Kernel Image (uncompressed) Data Size: 5998108 Bytes = 5.7 MB Load Address: 80001100 Entry Point: 80001100 Verifying Checksum ... OK OK No initrd ## Transferring control to Linux (at address 80001100) ... ## Giving linux memsize in MB, 256 Starting kernel ... ---------------------- And then it freezes. Is this because there is no serial device in the kernel any longer? Or do I need to do different things. --WjW