From owner-freebsd-mips@freebsd.org Wed Nov 14 07:52:51 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 7620F110D8DB for ; Wed, 14 Nov 2018 07:52:51 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6967F6BCDC for ; Wed, 14 Nov 2018 07:52:50 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm1-x344.google.com with SMTP id f1-v6so12840115wmg.1 for ; Tue, 13 Nov 2018 23:52:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=2hoPopPpnGN7WoSQl7l8BDJxk7mi6HHNJndNFaUFtCk=; b=PA1NJel4nFVDwygfquy/H2k1hXfrx/sMocXghVKmLFV3g7GPi7aomiR557IXzipewp ykj3mOjpzu4zVb6qnmjaXjQ4vTlQg5xCqYa/dvUU3CZtpQOa1agqEaxsrhof13PPvqY3 yjaMIeq0+h+B7L0sr1UGpt9qSzSe69QCCT/lJkUD9MvS7sqdhqeTveiWgFEqTT5HIFes RJ2VPuHybNl+jZNQ1Uqz1W+Br8P/auFKbxuBSsfD3QfiU/CLeQX490F3Yw4tmJHnEZwt YBj+nHbwOa2wLBIkIvfD5lSuQMaVXMhhlb9oR9slaYAnb1etErhVAkaVx+1rP8ha9Sgy Br0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=2hoPopPpnGN7WoSQl7l8BDJxk7mi6HHNJndNFaUFtCk=; b=o7EOhefLbnctwe2gSZD6HQLq3V8xMEIUhuH5MQ+2R+J02N1YVzsQ6ZESZGDohzpc4C 3R5t3329PRmziH5y7Bhlxag2Bzqwm+QhI2NtzCAVFRsFyJYtQL8ia3+RSuDDjcJUiwRe fkFdilhceIn3RibdGTJhPV8hhDualOw0iB3+5l/uBSVIqaqduyIk9MRqqOgK9Yu1dRpk Hj/HLPW+zn6kew1c7LgLZa8y/AcbpPRklGZCUXedtY6Pw+adwKNz9YL7EggV9aeXRtl+ l/jDSti4ni7pLTvqACJVqHLlRGxBgVWy0Vw4Lt0CjpKowNHXxuaC0+itwttLUgVKjdfh Yo4Q== X-Gm-Message-State: AGRZ1gL1tQ9Hw6pzKR/MgZZA/oSGq5wnAtKMbkcSvN+ceJ1govp8lqLx BUvO+zVBm5FdVl3V4aCDdmA= X-Google-Smtp-Source: AJdET5ephU8g8M5/0jJbi/rFuGHegCrcnWMFaaa+sLQBcxTVa1tygElbmAvuHHFR0s87zY9zcZUgZQ== X-Received: by 2002:a1c:c70f:: with SMTP id x15mr275939wmf.130.1542181969270; Tue, 13 Nov 2018 23:52:49 -0800 (PST) Received: from ?IPv6:2001:67c:2154:ffff:6012:dfa5:5875:e91f? ([2001:67c:2154:ffff:6012:dfa5:5875:e91f]) by smtp.gmail.com with ESMTPSA id 137-v6sm20090703wmo.43.2018.11.13.23.52.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 23:52:48 -0800 (PST) From: Stanislav Galabov Message-Id: Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\)) Subject: Re: Building a new version for my WiTi board Date: Wed, 14 Nov 2018 09:52:43 +0200 In-Reply-To: Cc: Michael Zhilin , freebsd-mips@freebsd.org To: Willem Jan Withagen References: <09b2150d-ef55-c032-59c4-4b218a03f186@digiware.nl> X-Mailer: Apple Mail (2.3445.100.39) X-Rspamd-Queue-Id: 6967F6BCDC X-Spamd-Result: default: False [-2.95 / 200.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[gmail.com]; URI_COUNT_ODD(1.00)[5]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.68)[-0.683,0]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(-0.76)[ipnet: 2a00:1450::/32(-1.87), asn: 15169(-1.82), country: US(-0.10)]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[gmail.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-mips@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[4.4.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; FREEMAIL_CC(0.00)[gmail.com] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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 07:52:51 -0000 Hi Willem, Can you try this kernel: https://www.dropbox.com/s/t1wevprzlsfegr0/kernel.uboot?dl=3D0 = 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. Best wishes, Stanislav > On 13 Nov 2018, at 18:38, Willem Jan Withagen wrote: >=20 > On 13-11-2018 14:13, Willem Jan Withagen wrote: >> On 13-11-2018 13:59, Michael Zhilin wrote: >>> Hi, >>>=20 >>> You need to specify FDT DTS file. Try to uncomment first line of = kernel configuration file MT7621_FDT: >>> #makeoptions FDT_DTS_FILE=3DWITI.dts >>>=20 >> Hi Michael, >> That helps.... >=20 > What I've done.... >=20 > sudo make KERNCONF=3DMT7621_FDT FDT_DTS_FILE=3DWITI.dts TARGET=3Dmips > TARGET_ARCH=3Dmipsel kernel-toolchain buildkernel >=20 > 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 >=20 > mkimage -A mips -O linux -T kernel -C none -a 0x80001100 -e 0x80001100 = -n 'FreeBSD Kernel Image' -d kernel kernel.uboot >=20 > And then I TFTPboot this kernel in uboot on the WiTi board >=20 > 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 =3D 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 >=20 > Starting kernel ... >=20 > ---------------------- >=20 > And then it freezes. >=20 > Is this because there is no serial device in the kernel any longer? >=20 > Or do I need to do different things. >=20 > --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"