lkml.org 
[lkml]   [2021]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: qemu: arm: mounting ubifs using nandsim on busybox
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

\
 
 \ /
  Last update: 2021-06-10 15:53    [W:0.069 / U:0.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site