Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-10-29 Thread Pintu Agarwal
Hi All, On Wed, 8 Sept 2021 at 17:38, Greg KH wrote: > > > > > No, but you can backport it easily. Back at > > > > > http://lists.infradead.org/pipermail/openwrt-devel/2019-November/025967.html > > > > > I provided backports of this feature to OpenWrt, for the 4.14 and 4.19 > > > > > kernels. >

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-09-08 Thread Greg KH
On Wed, Sep 08, 2021 at 04:57:45PM +0530, Pintu Agarwal wrote: > Hi, > > On Mon, 6 Sept 2021 at 21:58, Pintu Agarwal wrote: > > > On Tue, 31 Aug 2021 at 18:49, Pintu Agarwal wrote: > > > > > > No, but you can backport it easily. Back at > > > >

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-09-08 Thread Pintu Agarwal
Hi, On Mon, 6 Sept 2021 at 21:58, Pintu Agarwal wrote: > On Tue, 31 Aug 2021 at 18:49, Pintu Agarwal wrote: > > > > No, but you can backport it easily. Back at > > > http://lists.infradead.org/pipermail/openwrt-devel/2019-November/025967.html > > > I provided backports of this feature to

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-09-06 Thread Pintu Agarwal
Dear Thomas, Mikulas, Need your help in root causing my dm-verity issue with squashfs. Please see my comments inline. On Tue, 31 Aug 2021 at 18:49, Pintu Agarwal wrote: > > No, but you can backport it easily. Back at > >

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-08-31 Thread Pintu Agarwal
Hi, On Tue, 31 Aug 2021 at 00:42, Thomas Petazzoni wrote: > > Hello, > > On Mon, 30 Aug 2021 23:48:40 +0530 > Pintu Agarwal wrote: > > > ohh that means we already have a working reference. > > If possible can you share the details, even 4.19 or higher will be > > also a good reference. > > > >

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-08-30 Thread Thomas Petazzoni
Hello, On Mon, 30 Aug 2021 23:48:40 +0530 Pintu Agarwal wrote: > ohh that means we already have a working reference. > If possible can you share the details, even 4.19 or higher will be > also a good reference. > > > > Or, another option is to use the new concept from 5.1 kernel that is: > > >

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-08-30 Thread Thomas Petazzoni
Hello, On Mon, 30 Aug 2021 21:55:19 +0530 Pintu Agarwal wrote: > Sorry for coming back to this again.. > Unfortunately, none of the options is working for us with squashfs > (bootloader, initramfs). > initramfs have different kinds of challenges because of the partition > size issue. > So, our

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-08-30 Thread Pintu Agarwal
On Mon, 30 Aug 2021 at 22:25, Thomas Petazzoni wrote: > > Hello, > > On Mon, 30 Aug 2021 21:55:19 +0530 > Pintu Agarwal wrote: > > > Sorry for coming back to this again.. > > Unfortunately, none of the options is working for us with squashfs > > (bootloader, initramfs). > > initramfs have

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-08-30 Thread Pintu Agarwal
On Wed, 21 Jul 2021 at 22:59, Pintu Agarwal wrote: > > On Wed, 21 Jul 2021 at 22:40, Mikulas Patocka wrote: > > > > > > > > > Try to set up dm-verity with block size 512 bytes. > > > > > > > > I don't know what block size does squashfs use, but if the filesystem > > > > block size is smaller

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-07-21 Thread Mikulas Patocka
On Wed, 21 Jul 2021, Pintu Agarwal wrote: > On Tue, 20 Jul 2021 at 17:12, Mikulas Patocka wrote: > > > > Hi > > > > Try to set up dm-verity with block size 512 bytes. > > > > I don't know what block size does squashfs use, but if the filesystem > > block size is smaller than dm-verity block

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-07-21 Thread Mikulas Patocka
Hi Try to set up dm-verity with block size 512 bytes. I don't know what block size does squashfs use, but if the filesystem block size is smaller than dm-verity block size, it doesn't work. Mikulas On Tue, 20 Jul 2021, Pintu Agarwal wrote: > Hi, > > Our ARM32 Linux embedded system

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-07-21 Thread Pintu Agarwal
On Wed, 21 Jul 2021 at 22:40, Mikulas Patocka wrote: > > > > > > Try to set up dm-verity with block size 512 bytes. > > > > > > I don't know what block size does squashfs use, but if the filesystem > > > block size is smaller than dm-verity block size, it doesn't work. > > > > > Okay thank you

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-07-21 Thread Pintu Agarwal
On Tue, 20 Jul 2021 at 17:12, Mikulas Patocka wrote: > > Hi > > Try to set up dm-verity with block size 512 bytes. > > I don't know what block size does squashfs use, but if the filesystem > block size is smaller than dm-verity block size, it doesn't work. > Okay thank you so much for this clue,

Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-07-20 Thread Pintu Agarwal
Hi, Our ARM32 Linux embedded system consists of these: * Linux Kernel: 4.14 * Processor: Qualcomm Arm32 Cortex-A7 * Storage: NAND 512MB * Platform: Simple busybox * Filesystem: UBIFS, Squashfs * Consists of nand raw partitions, squashfs ubi volumes. My requirement: We wanted to use dm-verity at