lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 16 May 2018 15:42:44 +0900
From:   Yoshinori Sato <ysato@...rs.sourceforge.jp>
To:     Rich Felker <dalias@...c.org>
Cc:     John Paul Adrian Glaubitz <glaubitz@...sik.fu-berlin.de>,
        Rob Landley <rob@...dley.net>, linux-sh@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [J-core] [PATCH v5 00/22] sh: LANDISK and R2Dplus convert to device tree

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  <text/plain; utf-8 (7bit)>]
> > > 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ