linux-nilfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* NiLFS support on Pinebook
@ 2020-02-26 10:22 Reinoud Zandijk
       [not found] ` <20200226102235.GA2060-WweU7nrmO3INqjISwOrxaLFspR4gePGN@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Reinoud Zandijk @ 2020-02-26 10:22 UTC (permalink / raw)
  To: linux-nilfs; +Cc: Ryusuke Konishi

Dear folks, dear Ryusuke,

I am trying to use NiLFS2 on my Pinebook that identifies itself as GNU/Linux
on aarch64. It allows me to install nilfs-tools wich seem to work fine but
when i mount a partition it gives the error "mount.nilfs2: cannot find or load
nilfs2 filesystem". Does this mean the linux kernel has no nilfs2 module
shipped with it, but only the tools?

How can I install the nilfs2 filesystem? Or is that up to the distribution and
out of my control?

With regards,
Reinoud


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: NiLFS support on Pinebook
       [not found] ` <20200226102235.GA2060-WweU7nrmO3INqjISwOrxaLFspR4gePGN@public.gmane.org>
@ 2020-02-26 15:14   ` Ryusuke Konishi
       [not found]     ` <20200227.001457.2102675267682326035.konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Ryusuke Konishi @ 2020-02-26 15:14 UTC (permalink / raw)
  To: Reinoud Zandijk
  Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA,
	konishi.ryusuke-Re5JQEeQqe8AvxtiuMwx3w

Hi Reinoud,

> when i mount a partition it gives the error "mount.nilfs2: cannot find or load
> nilfs2 filesystem". Does this mean the linux kernel has no nilfs2 module
> shipped with it, but only the tools?

We see this message if nilfs2 kernel module (nilfs2.ko) doesn't exists in
/lib/modules/$(uname -r)/... .

Some distros don't have nilfs2 module (e.g. RHEL/CentOS), and some
need an extra package like kernel-modules-extra (e.g. Fedora).

I don't know that is there in the Pinebook.

Regards,
Ryusuke Konishi

On Wed, 26 Feb 2020 11:22:35 +0100, Reinoud Zandijk <reinoud-qavaossjCcEdnm+yROfE0A@public.gmane.org> wrote:
> Dear folks, dear Ryusuke,
> 
> I am trying to use NiLFS2 on my Pinebook that identifies itself as GNU/Linux
> on aarch64. It allows me to install nilfs-tools wich seem to work fine but
> when i mount a partition it gives the error "mount.nilfs2: cannot find or load
> nilfs2 filesystem". Does this mean the linux kernel has no nilfs2 module
> shipped with it, but only the tools?
> 
> How can I install the nilfs2 filesystem? Or is that up to the distribution and
> out of my control?
> 
> With regards,
> Reinoud
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Qemu (Re: NiLFS support on Pinebook)
       [not found]     ` <20200227.001457.2102675267682326035.konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
@ 2020-02-28 10:55       ` Reinoud Zandijk
       [not found]         ` <20200228105503.GA345-WweU7nrmO3INqjISwOrxaLFspR4gePGN@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Reinoud Zandijk @ 2020-02-28 10:55 UTC (permalink / raw)
  To: Ryusuke Konishi; +Cc: Reinoud Zandijk, linux-nilfs-u79uwXL29TY76Z2rM5mHXA

On Thu, Feb 27, 2020 at 12:14:57AM +0900, Ryusuke Konishi wrote:
> Hi Reinoud,
> 
> > when i mount a partition it gives the error "mount.nilfs2: cannot find or load
> > nilfs2 filesystem". Does this mean the linux kernel has no nilfs2 module
> > shipped with it, but only the tools?
> 
> We see this message if nilfs2 kernel module (nilfs2.ko) doesn't exists in
> /lib/modules/$(uname -r)/... .
> 
> Some distros don't have nilfs2 module (e.g. RHEL/CentOS), and some
> need an extra package like kernel-modules-extra (e.g. Fedora).
> 
> I don't know that is there in the Pinebook.

Problem with pinebook is that there are distro's around to test but they seem
to like the 3.10 kernel too much and update all but the kernel. The linux
headers they ship are for 4.x and 5.x so no use for compiling the kernel
module itself.

Can you recommend a lightweigth linux distro with nilfs support that runs fast
in `unaided' Qemu?  I.e. with only the `tcg' acceleration and with no
graphics?

Thanks in advance,
Reinoud


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Qemu (Re: NiLFS support on Pinebook)
       [not found]         ` <20200228105503.GA345-WweU7nrmO3INqjISwOrxaLFspR4gePGN@public.gmane.org>
@ 2020-02-28 19:20           ` Reinoud Zandijk
  0 siblings, 0 replies; 4+ messages in thread
From: Reinoud Zandijk @ 2020-02-28 19:20 UTC (permalink / raw)
  To: linux-nilfs-u79uwXL29TY76Z2rM5mHXA; +Cc: Ryusuke Konishi

Hi Ryusuke,

On Fri, Feb 28, 2020 at 11:55:03AM +0100, Reinoud Zandijk wrote:
> Can you recommend a lightweigth linux distro with nilfs support that runs fast
> in `unaided' Qemu?  I.e. with only the `tcg' acceleration and with no
> graphics?

I've settled for a Debian without graphics and it works quite well AND it has
NiLFS2 support!

Testing it on one of my older test NiLFS2 images I had around it paniced when
I did this:

qemu-system-x86_64 -drive file=root.debian.fs,format=raw -accel
  tcg,thread=multi -smp cpus=4 -m 4096 -drive
  file=/usr/tmp/nilfs.4g.img,format=raw
....
    mount.nilfs2 /dev/sdb1 /mnt
    touch /mnt/UDF
wait a second or two
    CRASH

Note that /mnt/UDF exists and is a directory. It gives a NULL pointer
dereference at 0xa8
Call trace:
    __test_set_page_writeback+0x38c/0x3f0
    nilfs_segctor_do_construct+0x190f
    nilfs_segctor_construct+0x1f5
    nilfs_segctor_thread+0x127
....
RIP: 0010:percpu_counter_add_batch+0x04
....

Do you like to receive a copy of this image? It used to work fine and should
only be touched by your NiLFS code.

With regards,
Reinoud


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-28 19:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-26 10:22 NiLFS support on Pinebook Reinoud Zandijk
     [not found] ` <20200226102235.GA2060-WweU7nrmO3INqjISwOrxaLFspR4gePGN@public.gmane.org>
2020-02-26 15:14   ` Ryusuke Konishi
     [not found]     ` <20200227.001457.2102675267682326035.konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
2020-02-28 10:55       ` Qemu (Re: NiLFS support on Pinebook) Reinoud Zandijk
     [not found]         ` <20200228105503.GA345-WweU7nrmO3INqjISwOrxaLFspR4gePGN@public.gmane.org>
2020-02-28 19:20           ` Reinoud Zandijk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).