Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1599647imm; Tue, 15 May 2018 23:43:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqtQTTvOKhFo8Biaux0EeYYqAHZjJM4Ukqo7XxJJ2cHQmvyZ/+irXvWrK+vNnG98eNyS37y X-Received: by 2002:a17:902:7402:: with SMTP id g2-v6mr18349485pll.246.1526453001029; Tue, 15 May 2018 23:43:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526453000; cv=none; d=google.com; s=arc-20160816; b=iusUrX5s5gKUDnGFshMbtaZ4tNFU3ZOR8lRNFPurxYKuQcmGamk/kACeJN7yFf8AgB CH8xtyjd5BNO9XHjJYcZQFicNeg5Wr3VVS4ep8pWjc6qREV/Bd8oGofHShKKqexRAAol l4uv/fdYhqSJq/1DF40HTSuLR1k5h7s7oy1fOojaI5ISlk/lcjfm6b0FIIaP+PQ8WTGs 2im0BrWVPlJcuHDnHsY1+619AqLd96hCsQyHHAKhQNxZpkOgGnrtYaPDddAJC4wtnAEv e8Jem4MBL4kjPVZNx5a3Ft5TZm4lu6r4gXauaxXjh+ge5nFoP9/2X66//LbYAea702Fb puPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date :arc-authentication-results; bh=0HrkXuZUi7DMgr2INxLFxWNW0L76jP+h4eY7jH8TVE8=; b=a9g6rTiTkGCulrHCw9wIrZN0fXg8YX8LHDIm0g6ns3Oyw2V+4UVpjYJYQaeAnsVbCU IgI4JkTS4JPzhfatqFtefMAHmSdrROxDVZfucIRKYdPr2BtJ3o/MgbnfW5pZezEbaOoN yZzxdOFQlKvOdKG3fMBGQnOYnpDT1CGQ4S3etPGe1TFCVndtMNRGxFJrJ0tjPL6b/yf6 kd5fbUkmLprSMxVIC4ral2WNI4n2NsS2JOGAXVruGHqSrsgWymUR59Ii2oDuTEOCUhiO J3CcpU45MA8gmDN5h+79N7ORNecXlaOFZxPEbiJ6NoxAB8ovK1yZ4qL5aCBELkBZDVMb llxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b12-v6si1888798plr.42.2018.05.15.23.43.06; Tue, 15 May 2018 23:43:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752539AbeEPGmu (ORCPT + 99 others); Wed, 16 May 2018 02:42:50 -0400 Received: from mail03.asahi-net.or.jp ([202.224.55.15]:59501 "EHLO mail03.asahi-net.or.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752129AbeEPGmt (ORCPT ); Wed, 16 May 2018 02:42:49 -0400 Received: from h61-195-96-97.vps.ablenet.jp (h61-195-96-97.vps.ablenet.jp [61.195.96.97]) (Authenticated sender: PQ4Y-STU) by mail03.asahi-net.or.jp (Postfix) with ESMTPA id 888AB511CF; Wed, 16 May 2018 15:42:46 +0900 (JST) Received: from yo-satoh-debian.labs.sios.com (y159166.dynamic.ppp.asahi-net.or.jp [118.243.159.166]) by h61-195-96-97.vps.ablenet.jp (Postfix) with ESMTPSA id 2C95C240070; Wed, 16 May 2018 15:42:45 +0900 (JST) Date: Wed, 16 May 2018 15:42:44 +0900 Message-ID: <87tvr814pn.wl-ysato@users.sourceforge.jp> From: Yoshinori Sato To: Rich Felker Cc: John Paul Adrian Glaubitz , Rob Landley , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [J-core] [PATCH v5 00/22] sh: LANDISK and R2Dplus convert to device tree In-Reply-To: <20180515014152.GV1392@brightrain.aerifal.cx> References: <8c75b447-fc14-871e-1a04-733132527b65@landley.net> <20171117191706.GF1627@brightrain.aerifal.cx> <7193aa1b-50e3-11d4-f93d-f567e2e06b8c@physik.fu-berlin.de> <20180105212857.GR1627@brightrain.aerifal.cx> <20180503013708.GC1392@brightrain.aerifal.cx> <20180503023320.GD1392@brightrain.aerifal.cx> <048ab147-21b8-045d-d21c-e1be2dd0e954@physik.fu-berlin.de> <87k1sgtf8t.wl-ysato@users.sourceforge.jp> <20180515014152.GV1392@brightrain.aerifal.cx> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/24.5 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 15 May 2018 10:41:52 +0900, Rich Felker wrote: > > On Mon, May 07, 2018 at 10:40:34AM +0900, Yoshinori Sato wrote: > > On Thu, 03 May 2018 19:07:38 +0900, > > John Paul Adrian Glaubitz wrote: > > > > > > [1 ] > > > Hi Rich! > > > > > > On 05/03/2018 04:33 AM, Rich Felker wrote: > > > > I found the U-Boot stuff here: > > > > > > > > https://ja.osdn.net/users/ysato/pf/uboot/wiki/FrontPage > > > > > > > > but I'm not sure how to install it yet. Will try to figure it out. > > > > > > Interesting. It seems the HDL-160U uses u-boot instead of lilo which > > > is used on my USL-5P. Both are based on the LANDISK platform though. > > > I wonder whether it is possible to convert the USL-5P to use u-boot > > > instead of the very limited lilo. > > > > > > As for the kernel configuration, for USL-5P, I had to use the kernel > > > configuration attached to this mail. One important configuration setting > > > is CONFIG_SH_PCLK_FREQ which has to be set to "33250000" otherwise > > > the kernel won't boot properly. > > > > > > I still have my USL-5P ready to be set up for testing a new kernel > > > image with the device tree patches merged. Although I still don't > > > know how to enable the internal (pseudo) IDE controller. > > > > > > @Yoshinori: > > > > > > Did the HDL-160U LANDISK device you have use u-boot by default or > > > did you convert it from lilo? > > > > Yes. > > Replace sh-lilo's second stage with u-boot. > > With this method it is unnecessary to rewrite Flash for boot. > > Can you give me a brief explanation of how to reproduce the bootloader > installation? For now I'm just using the existing MBR/partitioning you > sent me, and replacing zImage.itb in /boot makes it attempt to load a > new kernel, but I haven't gotten any output yet to know if it's > working. landisk's u-boot using spl. You should be able to update it by the following procedure. 1. Rebuild u-boot. 2. Format ext4 for HDD first partition. 3. put u-boot.img to HDD first partition. 4. put spl/u-boot-spl.bin to HDD MBR and subsequent region. > Probably the most important thing I'm missing right now is what the > its file for generating the zImage.itb should look like. I tried > making one myself but it may be wrong. I'm also unsure whether I > should use a zImage or vmlinux file as input, and if using a zImage > file, what load address I should choose. > > For now I'm using the upstream landisk board support (maybe not > working, we'll see). Once I can confirm I'm getting some output and > the kernel seems minimally functional, I'm going to switch to DT, but > integrating the DT stuff with u-boot isn't important right away since > I can start with a linked-in DT. > > At some point I'd also like to know how to reinstall u-boot on the MBR > or whatever. > > Rich -- Yosinori Sato