public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Paul Wong" <paul.wong@digitalview.com>
To: <tglx@linutronix.de>, <linux-mtd@lists.infradead.org>
Subject: Re: compile error when using MEMREADOOB in do_mounts.c.
Date: Fri, 3 Jan 2003 17:22:36 +0800	[thread overview]
Message-ID: <001301c2b309$b85d8750$9000010a@paulwong> (raw)
In-Reply-To: 200301030952.32096.tglx@linutronix.de

Firstly, thanks Thomas,

Let me to explain my system: I separate three partitions of NAND flash
(16MB),
/dev/mtd0   for kernel image , use dd if=xxx.img of=/dev/mtd0
/dev/mtd1   for rootfs image , use dd if=roofts.img of=/dev/mtd1
/dev/mtd2   for jffs2 filesystem

Firstly, system decompress and run the compressed kernel image in mtd0, then
the kernel (kernel 2.4.20)will decompress the rootfs image in mtd1 to
ramdisk. ( I modified the do_mounts.c to do it). Finally, I success to boot
up and run normal. But, I see fill_inbuf() in do_mounts.c, it only use the
read(..) functon to get the content of the rootfs.img (/dev/mtd1), is it
care the bad block??

best regards,
Paul



----- Original Message -----
From: "Thomas Gleixner" <tglx@linutronix.de>
To: "Paul Wong" <paul.wong@digitalview.com>; <linux-mtd@lists.infradead.org>
Sent: Friday, January 03, 2003 4:52 PM
Subject: Re: compile error when using MEMREADOOB in do_mounts.c.


> On Friday 03 January 2003 08:56, Paul Wong wrote:
> > Dear All,
> >
> >     I modified the init/do_mounts.c to want to skip the invalid block.
and
> > than make bzImage, that result say: undefined reference to 'ioctl'. What
is
> > the problem?
> ioctl is part of userspace library. You can not use glibc functions inside
the
> kernel.
>
> What's the deeper sense of  this modification ? Bad block handling is done
by
> the filesystem and the mtd drivers.
>
> --
> Thomas
> ____________________________________________________
> linutronix - competence in embedded & realtime linux
> http://www.linutronix.de
> mail: tglx@linutronix.de
>

  reply	other threads:[~2003-01-03  8:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-03  7:56 compile error when using MEMREADOOB in do_mounts.c Paul Wong
2003-01-03  8:52 ` Thomas Gleixner
2003-01-03  9:22   ` Paul Wong [this message]
2003-01-04 20:32     ` Thomas Gleixner
2003-01-05  8:49       ` Paul Wong
2003-01-05  9:37         ` Thomas Gleixner
2003-01-05 15:56           ` Paul Wong

Reply instructions:

You may reply publicly 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='001301c2b309$b85d8750$9000010a@paulwong' \
    --to=paul.wong@digitalview.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=tglx@linutronix.de \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox