From owner-freebsd-mips@freebsd.org Wed May 10 23:20:21 2017 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 B96E1D67944 for ; Wed, 10 May 2017 23:20:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wr0-x22d.google.com (mail-wr0-x22d.google.com [IPv6:2a00:1450:400c:c0c::22d]) (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 5616CFAA for ; Wed, 10 May 2017 23:20:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wr0-x22d.google.com with SMTP id l9so7636955wre.1 for ; Wed, 10 May 2017 16:20:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=yyDQoiLvChnFkNiPoUD9rMKy594xgN+EWVFYU40KnY4=; b=i+EVAj+eiOuZULaeP0k+g3henaK+uqrnLOi4e1+LUXo4vDP701CVXPECQwKg/NrfCv spKUitjOmznkKdiQh0Ub1IhHtSr9tODYWdQel763VcUXkIekO1p3JBZaprt3h5qoWGxt GFHYAUOlVc7hiS7sQXoNqhNuZiX9VMm0h8/LT8ErzcV8zhx8ki/DooiKdBIF+VxkUTma N91Np3e5P/yilEhBbtX8vCBmcBdZRVWVBkGM6MT1B+hQsWzzs5jKGah4U+jk5DAkBoHw pFmqQDktSdOvMWdcL7nrmodgFlvw2ocY+LptYgtKQDc5Rh0P6GbzNlZdbwkT/Vh/e4Tw UsxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=yyDQoiLvChnFkNiPoUD9rMKy594xgN+EWVFYU40KnY4=; b=Ojy53YkH0KvWrCDw3yEHRzvqYlsV5fVO99F8y4Xob/WMqDUszcEKvX/2cC490Aic4D AwDWNjvTSqoTHZtnQFwVIHYyMjLVRln1NJeo6GF7r4AZeC8JoK1Y2kpzzEOTRmHDco8I gCV2NWUgEnwQZeUEEk5eiyO8i5zPxde/zR80Ey5823jhvsnWQN/g1oJWpfpgCwtsprzE QAnQ70TFa8rl248650ppiu8S/J/wmH+NbQAblXcA4Pg361vI3VgGBEV4UX/E8dBbI1Zo VORL/joCgZPh3sVVKKS3UHpJxrzoXcFrojtxS8SDvTfADzw0IaYkKVCdNteNrc54o5Qc UkJg== X-Gm-Message-State: AODbwcDnwmmxMP3MT3Qpwp5twYqdsgC57uKmNaSG0mlMRbBP/yFK1f8R smP6N2JHiE4bAS/Yl1Sg+aiQFBgYmw== X-Received: by 10.223.134.80 with SMTP id 16mr5892808wrw.62.1494458419170; Wed, 10 May 2017 16:20:19 -0700 (PDT) MIME-Version: 1.0 Sender: adrian.chadd@gmail.com Received: by 10.28.193.134 with HTTP; Wed, 10 May 2017 16:20:17 -0700 (PDT) In-Reply-To: References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <2c5cd01a-a8d4-3ffa-4e9c-2aad170574c1@wolman.co.uk> <39222.11970.qm@web101719.mail.ssk.yahoo.co.jp> <6f1b2d35-5d17-765a-6138-0ab85455fc09@wolman.co.uk> <5866.49154.qm@web101718.mail.ssk.yahoo.co.jp> <102de390-63ca-a156-2208-bea3d5eea0f9@wolman.co.uk> <541011.41820.qm@web101719.mail.ssk.yahoo.co.jp> <672be258-8fed-6317-1325-f9fccf2646c3@wolman.co.uk> <369335.16286.qm@web101716.mail.ssk.yahoo.co.jp> <711a889d-9701-2441-5c9c-98e0ac607ffb@wolman.co.uk> <456721.9572.qm@web101705.mail.ssk.yahoo.co.jp> <8b21a15c-3af8-bdba-cc70-6bd0e3a65f39@wolman.co.uk> <05065E4E-1D0F-49DE-B14D-D45ECCEA251F@gmail.com> <2b8211f6-9f42-0f11-678f-a2ed830b2430@wolman.co.uk> From: Adrian Chadd Date: Wed, 10 May 2017 16:20:17 -0700 X-Google-Sender-Auth: NHly4WcQ327ZB8-sQHXwCg563ZM Message-ID: Subject: Re: onion omega2+ To: Mike Wolman Cc: Aleksandr Rybalko , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2017 23:20:21 -0000 Hi, Ah, you're doing XIP. I haven't done XIP before; i typically just generate a normal image and give it a separate load address 16MB or something into physical memory so I don't overwrite it. Ie, when you use mkimage to create a uboot application, you provide it /both/ a load address and a run address. So, eg, for MIPS we do this: * load: 0x80050000 * run: 0x80050100 .. the 256 bytes is space for the ELF header. And in the std.AR* files, we specify the run address is 0x80050100 to ensure it all lines up. Then to bootm i load it somewhere else away from that load address, so it gets copied to the right spot and run. -adrian