From owner-freebsd-arm@freebsd.org Fri Mar 31 10:57:00 2017 Return-Path: Delivered-To: freebsd-arm@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 53363D272F4 for ; Fri, 31 Mar 2017 10:57:00 +0000 (UTC) (envelope-from jensrasmus@gmail.com) Received: from mail-lf0-x231.google.com (mail-lf0-x231.google.com [IPv6:2a00:1450:4010:c07::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C9472129 for ; Fri, 31 Mar 2017 10:56:59 +0000 (UTC) (envelope-from jensrasmus@gmail.com) Received: by mail-lf0-x231.google.com with SMTP id h125so41707693lfe.0 for ; Fri, 31 Mar 2017 03:56:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:reply-to:mail-followup-to :references:mime-version:content-disposition:in-reply-to; bh=a0ab8G/EgSTR+3OUH1FarYXEphhgOPitrCyEkqK7a/w=; b=EnQedmNBIqdrKCCDKumuhOwQfpfzA5RZAJ8627neT/K1FH0kPjoPNga4Xe/8npG/dP pi4Sm7VNqRDA6pnEINnI4UIgscr3Y1Gyme1nvWnUrtt2sdSRYIHRJbq+jUFQ0QzVc9pO phFcwypgr9PxScvEPXrwalEXFnPXcGWfjUbGEdxOI9fjEaf6C2miro2ZsnZbXJ0bsqrr W9sc3vbrrBK49Q9PtRyXBn6QAExdEgytVddeLlIWM5PAAPji0FZZk/bFf4tMrIbiSlHT rMLPU5PyDMhdaC9JVNJ1kaM2n/Tv+m2QHeSAx6IoDa+5kRxw6TWzTsxL/M2oyIdr3ccW tFxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:reply-to :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=a0ab8G/EgSTR+3OUH1FarYXEphhgOPitrCyEkqK7a/w=; b=Xsx1Nk8H6pOt3W1oMtIIMxxrYQy+qmp49apk9BeyDcjcvp4XE0V+CXbHUVI/ZK9kbS P4eiKGwx+W+pZzNGBnpZ/vONlGC7cYk+3F59k16hUksMKF12QlqQ+0nuPEkSYUgpRjRQ FPWKTy9EQpv0geOXHfz9pBZn9J+dv4+0x+XYjZHveYqWz/Dz7c2ML420FZERG8Ri+QMj 5nTmO3kysvPTVxQ2jYjadHe5bfR9J/Cb1CkVq6hhdcuJD0qVmg88xT/mSo6MG9QjwRW3 YD+fP6QrvpO4nuLB7CoiLYgL0riVl9PXiRXFdUIjXPYMj7uk4Ak1JjK/2qXkOksBbgLY H+FQ== X-Gm-Message-State: AFeK/H3OOvTgJ1QfhY451p6ckAUBeLLqLs69xPgww2ib3IL4lKfomzfte596SasFrdHgVw== X-Received: by 10.25.56.1 with SMTP id f1mr855071lfa.83.1490957817571; Fri, 31 Mar 2017 03:56:57 -0700 (PDT) Received: from jrl.uk.to (cm-84.211.229.154.getinternet.no. [84.211.229.154]) by smtp.gmail.com with ESMTPSA id e10sm849530ljb.38.2017.03.31.03.56.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Mar 2017 03:56:56 -0700 (PDT) Date: Fri, 31 Mar 2017 12:56:06 +0200 From: Rasmus Liland To: Jan Sieka , freebsd-arm Subject: Re: DB-88F6XXX kernel on 88F6281_A0 (GoFlex Net) Message-ID: <20170331105606.GA31398@jrl.uk.to> Reply-To: Rasmus Liland Mail-Followup-To: Jan Sieka , freebsd-arm References: <20170330232907.GA21389@jrl.uk.to> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-GPG-Key-Server: http://pgp.mit.edu X-GPG-Key-FingerPrint: DD51 6042 15B2 DC18 B546 B847 9807 9AF9 3DFD 5DF7 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Mar 2017 10:57:00 -0000 On 2017-03-31 09:01 +0200, Jan Sieka wrote: > Hi Rasmus! > > I searched a little and based on that file: > https://svnweb.freebsd.org/base/releng/10.3/sys/arm/mv/kirkwood/std.kirkwood?view=markup > and the wiki you mentioned I'd try to load the kernel under > 900000 and go to that address: > > tftpboot 900000 kernel.bin > go 900000 Hi Jan! When I try to load the kernel.bin at address 900000, this happens: | Marvell>> tftpboot 900000 kernel.bin | Using egiga0 device | TFTP from server 10.6.6.1; our IP address is 10.6.6.26 | Filename 'kernel.bin'. | Load address: 0x900000 | Loading: ################################################################# | ################################################################# | ############# U-boot is stalling here, and at the other end of the ethernet cable the FreeBSD tftpd process is discovering it as a timeout ACK in stderr. Thus, what I did in the earlier email was decrementing the address to 500000, or even as high as 600000, then this happens: | Marvell>> tftpboot 600000 kernel.bin | Using egiga0 device | TFTP from server 10.6.6.1; our IP address is 10.6.6.26 | Filename 'kernel.bin'. | Load address: 0x600000 | Loading: ################################################################# | ################################################################# | ################################################################# | ################################################################# | ####################################### | done | Bytes transferred = 4380232 (42d648 hex) | Marvell>> go 600000 | ## Starting application at 0x00600000 ... | KDB: debugger backends: ddb | KDB: current backend: ddb | Copyright (c) 1992-2016 The FreeBSD Project. | Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 | The Regents of the University of California. All rights reserved. | FreeBSD is a registered trademark of The FreeBSD Foundation. | FreeBSD 10.3-STABLE #0 r304297: Thu Mar 30 19:28:22 CEST 2017 | root@node:/usr/obj/arm.arm/usr/src/stable/10/sys/DB-88F6XXX arm | FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 The std.kirkwood file header specifically mentions 900000 to be the right place for the kernel to account for the page table in another place, and the possibility for these to be bounced higher if there is a problem. The next step would be to change the addresses of KERNPHYSADDR, and KERNVIRTADDR to something new. What is the right procedure to calculate new addresses for these? /Rasmus