Android 9 auto kernel compression

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Android 9 auto kernel compression

ソリューションへジャンプ
2,083件の閲覧回数
amit251291
Contributor IV

Dear team,

We are working on imx8qm-mek platform running on Android 9 automotive. I was going through menuconfig and i found that none of the compression methods are enabled :

HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4

I checked these configs and i found (n) to each of them. 

What does this mean ? 

How can change compression method ?

How can i use decompressed kernel instead of compressed one ?

Is it good idea to use decompressed kernel for boot time optimization ?

Request you to provide some light here. 

ラベル(2)
0 件の賞賛
返信
1 解決策
2,012件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Amit,

Although there is the popular misconception that the bz prefix means that bzip2 compression is used [...], says the opposite of your theory: the bz in bzImage has no relation to bzip2, and bzImage doesn’t have to be compressed with bzip2. In fact, the kernel’s default compression mode is still gzip, and there is little reason to use bzip2 nowadays — it is slower than LZMA and xz but doesn’t compress as well.

However This mean you can change the compressed method but we have not tested. you must use the compressed one.
Regards

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
2,013件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Amit,

Although there is the popular misconception that the bz prefix means that bzip2 compression is used [...], says the opposite of your theory: the bz in bzImage has no relation to bzip2, and bzImage doesn’t have to be compressed with bzip2. In fact, the kernel’s default compression mode is still gzip, and there is little reason to use bzip2 nowadays — it is slower than LZMA and xz but doesn’t compress as well.

However This mean you can change the compressed method but we have not tested. you must use the compressed one.
Regards
0 件の賞賛
返信
2,012件の閲覧回数
amit251291
Contributor IV

Thank you Bio_TICFSL‌ for the explanation. I will check this out. 

0 件の賞賛
返信