From: Richard Weinberger <richard@nod.at>
To: Pintu Agarwal <pintu.ping@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
linux-mtd <linux-mtd@lists.infradead.org>,
linux-fsdevel <linux-fsdevel@vger.kernel.org>,
Miquel Raynal <miquel.raynal@bootlin.com>
Subject: Re: qemu: arm: mounting ubifs using nandsim on busybox
Date: Thu, 10 Jun 2021 15:52:32 +0200 (CEST) [thread overview]
Message-ID: <361047717.98543.1623333152629.JavaMail.zimbra@nod.at> (raw)
In-Reply-To: <CAOuPNLhPiVgi5Q343VP-p7vwBtA1-A5jt8Ow4_2eF4ZwsiA+eQ@mail.gmail.com>
Pintu,
----- Ursprüngliche Mail -----
> Von: "Pintu Agarwal" <pintu.ping@gmail.com>
>> nandsim works as expected. It creates a new and *erased* NAND for you.
>> So you have no UBI volumes. Therfore UBIFS cannot be mounted.
>> I suggest creating a tiny initramfs that creates UBI volumes before mounting
>> UBIFS on
>> one of the freshly created (and empty) volumes.
>>
> oh sorry I forgot to mention this.
> I am able to create and update volumes manually after booting the
> system with initramfs.
> {{{
> Creating rootfs volume:
> mknod /dev/ubi0 c 250 0
> mknod /dev/ubi0_0 c 250 1
> ubiattach /dev/ubi_ctrl -m 2
> ubimkvol /dev/ubi0 -N rootfs -m
> ubiupdatevol /dev/ubi0_0 ubifs-rootfs.img
> mount -t ubifs ubi0:rootfs ubi-root/
> }}}
>
> But I wanted to do all these automatically during boot time itself.
> Also I wanted to use ubinize.cfg as is from the original system and
> simulate everything using qemu and nadsim (if possible)
> So I thought it must be possible by setting some parameters in qemu such as:
> mtdparts=nand:,
> -device nand,chip_id=0x39,drive=mtd0,
> -drive if=mtd,file=./ubi-boot.img,id=mtd0,
> anything else ?
Well, this has nothing to do with nandsim.
If qemu can emulate a NAND chip (plus a controller) all you need is a driver on the Linux side.
Thanks,
//richrd
next prev parent reply other threads:[~2021-06-10 13:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-09 18:08 qemu: arm: mounting ubifs using nandsim on busybox Pintu Agarwal
2021-06-09 18:22 ` Richard Weinberger
2021-06-10 12:51 ` Pintu Agarwal
2021-06-10 13:52 ` Richard Weinberger [this message]
2021-06-10 15:34 ` Pintu Agarwal
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=361047717.98543.1623333152629.JavaMail.zimbra@nod.at \
--to=richard@nod.at \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=miquel.raynal@bootlin.com \
--cc=pintu.ping@gmail.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
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