Linux-mtd Archive on lore.kernel.org
 help / color / Atom feed
From: JH <jupiter.hce@gmail.com>
To: Sergei Poselenov <sposelenov@emcraft.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: NAND user space program
Date: Thu, 13 Jun 2019 20:41:59 +1000
Message-ID: <CAA=hcWQ708X-QuyZy_WLP4b0wg0Cpm8YcuBt3o3g2VzfP4jQvA@mail.gmail.com> (raw)
In-Reply-To: <b931537d9268184b1c98e316a6b95a72847bbe69.camel@emcraft.com>

Thanks Sergei for the clarification, good to know that mtd-utils  has
already handled bad blacks, I don't need to worry about it.

Kind regards,

- JH

On 6/12/19, Sergei Poselenov <sposelenov@emcraft.com> wrote:
> Hello JH,
>
> Going back to your original question, if your intention is to write a
> Linux image to a raw (ie without filesystem) NAND partition, so the
> bootloader (eg U-Boot) could be able to read the kernel image from
> there, then the suggestion is to use the mtd-utils "nandwrite", which
> is able to deal with the NAND bad blocks.
>
> Regards,
> Sergei
>
> On Wed, 2019-06-12 at 09:01 +1000, JH wrote:
>> Thanks Richard, can the Linux zImage or rootfs load to NAND directly
>> via JTAG or serial line?
>>
>> Thank you.
>>
>> Kind regards,
>>
>> - JH
>>
>> On 6/11/19, Richard Weinberger <richard.weinberger@gmail.com> wrote:
>> > On Tue, Jun 11, 2019 at 12:20 PM JH <jupiter.hce@gmail.com> wrote:
>> > > Hi,
>> > >
>> > > In NOR flash, access flash in user space is integrated to the
>> > > Linux
>> > > system read / write, is it the same story for NAND flash? I
>> > > installed
>> > > mtd-utils, but not sure if I can still use Linux system read /
>> > > write
>> > > to access NAND flash or not.
>> >
>> > Well, Linux exposes both NOR and NAND flashes as MTD.
>> > So there shouldn't be much difference.
>> > But make sure you can deal with specialties of NAND, such as
>> > bad blocks.
>> >
>> >
>> > --
>> > Thanks,
>> > //richard
>> >
>>
>> ______________________________________________________
>> Linux MTD discussion mailing list
>> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>>
>
>

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

      reply index

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-11 10:17 JH
2019-06-11 13:21 ` Richard Weinberger
2019-06-11 23:01   ` JH
2019-06-12  7:28     ` Richard Weinberger
2019-06-12 10:26     ` Sergei Poselenov
2019-06-13 10:41       ` JH [this message]

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAA=hcWQ708X-QuyZy_WLP4b0wg0Cpm8YcuBt3o3g2VzfP4jQvA@mail.gmail.com' \
    --to=jupiter.hce@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=sposelenov@emcraft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-mtd Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-mtd/0 linux-mtd/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-mtd linux-mtd/ https://lore.kernel.org/linux-mtd \
		linux-mtd@lists.infradead.org linux-mtd@archiver.kernel.org
	public-inbox-index linux-mtd


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-mtd


AGPL code for this site: git clone https://public-inbox.org/ public-inbox