Kernelupdate
Dear list, I am a bit confused with upgrading my kernel to a newer minor version. My current kernel 4.14 is from https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git , but there are no minor tags available like 4.14.15. I figured out there is another repo on git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git Is the second git-url the prefered one? best fs ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Aw: jffs2: Empty flash at 0x0000ff54 ends at 0x00010000 CLEANMARKER node found
When building the flash with these options: sudo mkfs.jffs2 -r -o rootfs.jffs2 -e 256 -s 4096 -p=0x0 the CLEANMARKER disappears, but after the second reboot there are these errors: jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x002d63e8: Read 0xa6669468, calculated 0x87b8a949 jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x002d64d4: Read 0x, calculated 0xb6e13cc2 jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002d685c: 0x0005 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002d6864: 0x0008 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002d6868: 0x0006 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002d686c: 0x81a4 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002d6874: 0x0613 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002d6878: 0x7567 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002d687c: 0x7567 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002d6880: 0x7567 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002d6884: 0x0484 instead jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002d6888: 0x00cb instead jffs2: Further such events for this erase block will not be printed jffs2: Empty flash at 0x002d6900 ends at 0x002d6968 jffs2: Empty flash at 0x002d6b00 ends at 0x002d6b94 jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x002d6bc0: Read 0x01001408, calculated 0x7d5e960d jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x002d6fd4: Read 0x044c0464, calculated 0x62a4b5ca jffs2: Empty flash at 0x002d7100 ends at 0x002d7200 jffs2: Empty flash at 0x002d7300 ends at 0x002d73bc jffs2: jffs2_scan_dirent_node(): Node CRC failed on node at 0x002d75ec: Read 0x0200, calculated 0xcc5f4e55 jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x002d76d8: Read 0x, calculated 0x5be9e982 VFS: Mounted root (jffs2 filesystem) on device 31:2. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
jffs2: Empty flash at 0x0000ff54 ends at 0x00010000 CLEANMARKER node found
Hello list, jffs-dev seems to be off. Thats why I am asking here. I can not figure out, what causes this CLEANMARKER-Error. The NOR-Flash is flashed with the following configuration. I also can not understand why the jffs2 driver is also acting in the lower addressrange (below rootfs starts). 0x - 0x 0008 u-boot 0x 0008 - 0x 005f 8000uImage (size: 0x 0057 8000) 0x 005f 8000 - 0x 0060 dt (size: 0x 8000) 0x 0060 - 0x 0100 rootfs Hardware: Kernel 4.14, mdt-utils v.2.0.1, ARMv7 This is my dmesg bootlog: jffs2: Empty flash at 0xff54 ends at 0x0001 jffs2: CLEANMARKER node found at 0x0001, not first node in block (0x000) jffs2: Empty flash at 0x0001fffc ends at 0x0002 jffs2: CLEANMARKER node found at 0x0002, not first node in block (0x000) jffs2: Empty flash at 0x0002fffc ends at 0x0003 jffs2: CLEANMARKER node found at 0x0003, not first node in block (0x000) jffs2: Empty flash at 0x0004fffc ends at 0x0005 jffs2: CLEANMARKER node found at 0x0005, not first node in block (0x0004000) jffs2: Empty flash at 0x0005fffc ends at 0x0006 jffs2: CLEANMARKER node found at 0x0006, not first node in block (0x0004000) jffs2: Empty flash at 0x0006fffc ends at 0x0007 jffs2: CLEANMARKER node found at 0x0007, not first node in block (0x0004000) jffs2: Empty flash at 0x0008fffc ends at 0x0009 jffs2: CLEANMARKER node found at 0x0009, not first node in block (0x0008000) jffs2: Empty flash at 0x0009fffc ends at 0x000a jffs2: CLEANMARKER node found at 0x000a, not first node in block (0x0008000) jffs2: Empty flash at 0x000afffc ends at 0x000b jffs2: CLEANMARKER node found at 0x000b, not first node in block (0x0008000) jffs2: Empty flash at 0x000cfffc ends at 0x000d jffs2: CLEANMARKER node found at 0x000d, not first node in block (0x000c000) jffs2: Empty flash at 0x000dfffc ends at 0x000e jffs2: CLEANMARKER node found at 0x000e, not first node in block (0x000c000) jffs2: Empty flash at 0x000efffc ends at 0x000f jffs2: CLEANMARKER node found at 0x000f, not first node in block (0x000c000) jffs2: Empty flash at 0x0010fffc ends at 0x0011 jffs2: CLEANMARKER node found at 0x0011, not first node in block (0x001) jffs2: Empty flash at 0x0011fffc ends at 0x0012 jffs2: CLEANMARKER node found at 0x0012, not first node in block (0x001) jffs2: Empty flash at 0x0012fffc ends at 0x0013 jffs2: CLEANMARKER node found at 0x0013, not first node in block (0x001) jffs2: Empty flash at 0x0014ff5c ends at 0x0015 jffs2: CLEANMARKER node found at 0x0015, not first node in block (0x0014000) jffs2: Empty flash at 0x0015fffc ends at 0x0016 jffs2: CLEANMARKER node found at 0x0016, not first node in block (0x0014000) jffs2: Empty flash at 0x0016fffc ends at 0x0017 jffs2: CLEANMARKER node found at 0x0017, not first node in block (0x0014000) jffs2: CLEANMARKER node found at 0x0019, not first node in block (0x0018000) jffs2: CLEANMARKER node found at 0x001a, not first node in block (0x0018000) jffs2: Empty flash at 0x001affa8 ends at 0x001b jffs2: CLEANMARKER node found at 0x001b, not first node in block (0x0018000) jffs2: Empty flash at 0x001cfffc ends at 0x001d jffs2: CLEANMARKER node found at 0x001d, not first node in block (0x001c000) jffs2: Empty flash at 0x001dfffc ends at 0x001e jffs2: CLEANMARKER node found at 0x001e, not first node in block (0x001c000) jffs2: Empty flash at 0x001efffc ends at 0x001f jffs2: CLEANMARKER node found at 0x001f, not first node in block (0x001c000) jffs2: Empty flash at 0x0020fffc ends at 0x0021 jffs2: CLEANMARKER node found at 0x0021, not first node in block (0x002) jffs2: Empty flash at 0x0021fffc ends at 0x0022 jffs2: CLEANMARKER node found at 0x0022, not first node in block (0x002) jffs2: Empty flash at 0x0022fffc ends at 0x0023 jffs2: CLEANMARKER node found at 0x0023, not first node in block (0x002) jffs2: Empty flash at 0x0024fffc ends at 0x0025 jffs2: CLEANMARKER node found at 0x0025, not first node in block (0x0024000) jffs2: Empty flash at 0x0025fffc ends
Re: How to use V4L2 dmafd with sendfile?
> Step 0: Define "really fast". (I work with boxes that have LACP bonds of > 2x40gbit ethernet interfaces - your v4l2 device is probably the slow link at > that point, and sendfile won't matter). Yes, I previously checked the performance boost. It is a 100MBit/s Ethernet connection on an armv7. - send ~70MBit/s, 50% CPU usage, the bottleneck is in tcp_sendmsg -> __copy_from_user - sendfile ~90MBit/s, but almost 0% CPU Usage -> uses the dma engine That's why I want to use sendfile. I need a mechanism to put the memory buffer into a filedescriptor, sendfile can handle. v4l2's ioctl VIDIOC_EXPBUF exports a dmafd, which is not suitable. sendfile returns with error -29, which is ESPIPE. Looking into sendfile's kernel source the if conndition !(in.file->f_mode & FMODE_PREAD) causes these error, because FMODE_PREAD is not set in the dmafd. How to make the dmafd suitable? http://elixir.free-electrons.com/linux/v4.0/source/fs/read_write.c#L1276 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
How to use V4L2 dmafd with sendfile?
Hi there, I want to use sendfile to send my images really fast over the network. The V4L2 driver supports a ioctl called VIDIOC_EXPBUF which exports a mmaped memory area as a fd, but sendfile does not work on this dmafd. read, write, seek returns with EINVAL. - What is the proper way to get a filedescriptor from a memory region on V4L2? (memfd does not work) - What needs to be changed on V4L2-capture driver or sendfile? Thanks, Frank ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies