Welcome! Log In Create A New Profile

Advanced

JFFS2 filesystem support for Pogoplug V3

Posted by schnee 
JFFS2 filesystem support for Pogoplug V3
November 20, 2022 03:49PM
Hello,

I am trying to utilize the onboard FLASh on the Pogoplug V3 board to load the kernel from it. I tried it with the latest kernel (5.4.224) and also with previous ones, but it seems that JFFS2 file system support it missing.

root@pogo:~/ ls -l /lib/modules/$(uname -r)/kernel/fs
total 64
drwxr-xr-x 16 root root 4096 Nov 20 19:30 .
drwxr-xr-x 11 root root 4096 Nov 20 19:31 ..
drwxr-xr-x  2 root root 4096 Nov 20 19:31 autofs
drwxr-xr-x  2 root root 4096 Nov 20 19:31 btrfs
drwxr-xr-x  2 root root 4096 Nov 20 19:31 cifs
drwxr-xr-x  2 root root 4096 Nov 20 19:31 configfs
drwxr-xr-x  2 root root 4096 Nov 20 19:31 ecryptfs
drwxr-xr-x  2 root root 4096 Nov 20 19:31 erofs
drwxr-xr-x  2 root root 4096 Nov 20 19:31 freevxfs
drwxr-xr-x  2 root root 4096 Nov 20 19:31 fscache
drwxr-xr-x  2 root root 4096 Nov 20 19:31 fuse
drwxr-xr-x  3 root root 4096 Nov 20 19:30 nfs
drwxr-xr-x  2 root root 4096 Nov 20 19:31 nls
drwxr-xr-x  2 root root 4096 Nov 20 19:31 ntfs
drwxr-xr-x  2 root root 4096 Nov 20 19:31 overlayfs
drwxr-xr-x  2 root root 4096 Nov 20 19:31 xfs

Is there any particular reason the supprot is missing?
I am not sure how to add the JFFS2 support to it. Do I need to compile a new kernel or it can be handled as a module?

Thanks

Schnee
Re: JFFS2 filesystem support for Pogoplug V3
November 20, 2022 04:20PM
schnee,

> I am trying to utilize the onboard FLASh on the
> Pogoplug V3 board to load the kernel from it. I
> tried it with the latest kernel (5.4.224) and also
> with previous ones, but it seems that JFFS2 file
> system support it missing.

If you are loading the kernel from flash, the rootfs has nothing to do with it. It's u-boot that loads the uImage and/or uInitrd, which have to be flashed to NAND in a mtd partition. The rootfs can be on your USB or SATA drive.

Not sure I understood your question correctly?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: JFFS2 filesystem support for Pogoplug V3
November 28, 2022 07:58PM
Sorry if i was not clear. I am trying to do the same as I did with the Pogo V4, describer here: https://forum.doozan.com/read.php?2,132241

The problem is when I try to mount the NAND as JFFS2 filesystem example
mount -t jffs2 /dev/mtdblock1
I get the error that it is unknown file system.

I am not sure how to add the support to the device.

Schnee
Re: JFFS2 filesystem support for Pogoplug V3
November 28, 2022 08:10PM
Hi Schnee,


> The problem is when I try to mount the NAND as
> JFFS2 filesystem example
>
> mount -t jffs2 /dev/mtdblock1 
>
> I get the error that it is unknown file system.

I see. Yes, JFFS2 has been not configured into this kernel (a long time ago, it was in).

I think I might have removed it when there was a problem with the kernel size when we were booting with both stock u-boot (5MB limit) and new u-boot. But now I don't support stock u-boot booting anymore, it can be added back to the kernel.

I will do that for the next release.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: JFFS2 filesystem support for Pogoplug V3
November 28, 2022 08:11PM
Thank you! I will wait till the next release

Schnee
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: