From owner-freebsd-mips@freebsd.org Wed Nov 14 09:17:37 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 14A771121179 for ; Wed, 14 Nov 2018 09:17:37 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [176.74.240.9]) (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 2FB696E8B4 for ; Wed, 14 Nov 2018 09:17:36 +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 5B16CA1AC4; Wed, 14 Nov 2018 10:17: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 QWStgcEeYPm6; Wed, 14 Nov 2018 10:17:33 +0100 (CET) Received: from [192.168.11.152] (unknown [192.168.11.152]) (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 CF4E0A1AC3; Wed, 14 Nov 2018 10:17:33 +0100 (CET) Subject: Re: Building a new version for my WiTi board To: Stanislav Galabov Cc: Michael Zhilin , freebsd-mips@freebsd.org References: <09b2150d-ef55-c032-59c4-4b218a03f186@digiware.nl> From: Willem Jan Withagen Message-ID: Date: Wed, 14 Nov 2018 10:17:34 +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: Content-Language: nl X-Rspamd-Queue-Id: 2FB696E8B4 X-Spamd-Result: default: False [-3.32 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.995,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-0.995,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[digiware.nl]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[9.240.74.176.list.dnswl.org : 127.0.9.2]; MX_GOOD(-0.01)[cached: smtp.digiware.nl]; NEURAL_HAM_SHORT(-0.83)[-0.826,0]; IP_SCORE(0.00)[country: NL(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:28878, ipnet:176.74.224.0/19, country:NL]; FREEMAIL_CC(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Wed, 14 Nov 2018 09:17:37 -0000 On 14/11/2018 08:52, Stanislav Galabov wrote: > Hi Willem, > > Can you try this kernel: > https://www.dropbox.com/s/t1wevprzlsfegr0/kernel.uboot?dl=0 > > What I notice in your build process is that after your objcopy step > you use kernel instead of kernel.bin in the mkimage step. Try using > kernel.bin produced in the objcopy step instead as input to mkimage > and that should work. That would be a typo, then. I think I had the same mistake the previous time I tried to build. I'll first try to fix my build, and then try your kernel. --WjW > > Best wishes, > Stanislav > >> On 13 Nov 2018, at 18:38, Willem Jan Withagen > > wrote: >> >> 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 >> _______________________________________________ >> 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" >