Skip to content

Commit

Permalink
Increase block size of kernel squashfs image to 128K (#3509)
Browse files Browse the repository at this point in the history
While mksquashfs uses this value by default, Genimage's default is 4K. This is
far too low value and results in slower kernel load, especially on embedded
boards with a flash drive. Explicitly set it to 128K to generate same images as
in pre-genimage builds.

(cherry picked from commit edba18f)
  • Loading branch information
sairon committed Aug 8, 2024
1 parent ba86720 commit 42baa80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions buildroot-external/genimage/images-os.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ image kernel.img {

squashfs {
compression = "lzo"
block-size = 131072
}
}

Expand Down

0 comments on commit 42baa80

Please sign in to comment.