new module list generation function for Initramfs (#3447)

* new module list generation function for Initramfs

* fix

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
This commit is contained in:
Oleg 2022-02-02 12:50:50 +03:00 committed by GitHub
parent 7d69cfeb6e
commit e7267c3fee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 129 additions and 0 deletions

View File

@ -0,0 +1,50 @@
tls
fuse
binfmt_misc
sch_fq_codel
zram
joydev
rfkill
l2tp_ppp
l2tp_netlink
l2tp_core
ip6_udp_tunnel
udp_tunnel
pppox
ppp_generic
slhc
xfrm_user
xfrm_algo
uas
snd_soc_tegra210_dmic
snd_soc_tegra210_admaif
tegra_video
snd_soc_tegra210_i2s
snd_soc_tegra_pcm
v4l2_dv_timings
videobuf2_dma_contig
videobuf2_memops
snd_soc_tegra210_ahub
videobuf2_v4l2
videobuf2_common
tegra210_adma
videodev
mc
tegra_drm
snd_soc_tegra_audio_graph_card
crct10dif_ce
snd_soc_audio_graph_card
snd_soc_simple_card_utils
snd_hda_codec_hdmi
tegra_aconnect
pwm_fan
tegra_xudc
spi_tegra210_quad
snd_hda_tegra
snd_hda_codec
snd_hwdep
snd_hda_core
r8169
at24
realtek
host1x

View File

@ -0,0 +1,53 @@
xfrm_user
xfrm_algo
l2tp_ppp
l2tp_netlink
l2tp_core
ip6_udp_tunnel
udp_tunnel
pppox
ppp_generic
slhc
rfkill
tegra_video
joydev
videobuf2_dma_contig
v4l2_dv_timings
videobuf2_memops
videobuf2_v4l2
videobuf2_common
videodev
tegra_drm
snd_hda_codec_hdmi
mc
snd_hda_tegra
snd_soc_tegra210_mixer
snd_soc_tegra210_admaif
snd_soc_tegra210_adx
snd_soc_tegra210_amx
snd_soc_tegra210_dmic
snd_soc_tegra210_i2s
snd_soc_tegra210_sfc
snd_soc_tegra210_mvc
snd_soc_tegra_pcm
snd_hda_codec
snd_soc_tegra_audio_graph_card
crct10dif_ce
snd_soc_audio_graph_card
tegra_xudc
at24
snd_hda_core
snd_soc_simple_card_utils
tegra210_adma
host1x
pwm_fan
snd_soc_tegra210_ahub
snd_hwdep
zram
sch_fq_codel
binfmt_misc
fuse
uas
spi_tegra210_quad
tegra_aconnect
r8169

View File

@ -0,0 +1,18 @@
l2tp_ppp
l2tp_netlink
l2tp_core
pppox
ppp_generic
slhc
cpufreq_interactive
cpufreq_conservative
cpufreq_powersave
cpufreq_userspace
cpufreq_ondemand
zram
sch_fq_codel
binfmt_misc
ip_tables
x_tables
ipv6
spidev

View File

@ -28,6 +28,7 @@ case $BRANCH in
KERNELPATCHDIR='media-'$BRANCH
LINUXFAMILY=media
LINUXCONFIG='linux-media-'$BRANCH
MODULES_INITRD="jetson-nano-current"
;;
edge)
@ -36,6 +37,7 @@ case $BRANCH in
KERNELPATCHDIR='media-'$BRANCH
LINUXFAMILY=media
LINUXCONFIG='linux-media-'$BRANCH
MODULES_INITRD="jetson-nano-edge"
;;
esac

View File

@ -705,6 +705,12 @@ install_distribution_specific()
esac
# use list modules INITRAMFS
if [ -f "${SRC}"/config/modules/"${MODULES_INITRD}" ]; then
display_alert "Use file list modules INITRAMFS" "${MODULES_INITRD}"
sed -i "s/^MODULES=.*/MODULES=list/" "${SDCARD}"/etc/initramfs-tools/initramfs.conf
cat "${SRC}"/config/modules/"${MODULES_INITRD}" >> "${SDCARD}"/etc/initramfs-tools/modules
fi
}