Skip to content

Commit

Permalink
scripts: Add sg2042-blacklist.conf file in rootfs
Browse files Browse the repository at this point in the history
Cancel the startup loading of the switchtec module

Signed-off-by: zhaohui-yan <[email protected]>
  • Loading branch information
zhaohui-yan authored and xingxg2022 committed Nov 8, 2023
1 parent 7995335 commit eba6556
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion scripts/envsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,11 @@ EOT
sudo chroot . /bin/bash << "EOT"
sed -i '/UEFI/d' /etc/fstab
dpkg -i /home/ubuntu/bsp-debs/linux-image-*[0-9].deb
cat > /etc/modprobe.d/sg2042-blacklist.conf << EOF
blacklist switchtec
EOF
exit
EOT
popd
Expand Down Expand Up @@ -928,7 +933,11 @@ label euler_sophgo
menu label euler Sophgo in SD
linux /boot/vmlinuz-$kernel_version
initrd /boot/initramfs-$kernel_version.img
append console=ttyS0,115200 root=LABEL=ROOT rootfstype=ext4 rootwait rw earlycon selinux=0 LANG=en_US.UTF-8 nvme.use_threaded_interrupts=1 nvme_core.io_timeout=3000
append console=ttyS0,115200 root=LABEL=ROOT rootfstype=ext4 rootwait rw earlycon selinux=0 LANG=en_US.UTF-8 nvme.use_threaded_interrupts=1 nvme_core.io_timeout=3000
EOF
cat > /etc/modprobe.d/sg2042-blacklist.conf << EOF
blacklist switchtec
EOF
exit
Expand Down Expand Up @@ -1066,6 +1075,10 @@ LABEL=BOOT /boot ext4 defaults,noatime,x-systemd.device-timeout=300s,x-systemd.
LABEL=EFI /boot/efi vfat defaults,noatime,x-systemd.device-timeout=300s,x-systemd.mount-timeout=300s 0 0
EOF
cat > /etc/modprobe.d/sg2042-blacklist.conf << EOF
blacklist switchtec
EOF
exit
EOT

Expand Down

0 comments on commit eba6556

Please sign in to comment.