Commit f7f238b6 authored by Mikhail Karpenko's avatar Mikhail Karpenko

Append ahci_elphel to rootfs and make load from init_elphel393.sh

ahci_elphel automatically loads upon system start up despite the fact
that it was not listed in KERNEL_MODULE_AUTOLOAD variable in bitbake
recipe. The module was blacklisted in /etc/modprobe.d/blacklist.conf
parent 4c56b141
......@@ -40,10 +40,12 @@ IMAGE_INSTALL_append += " python-core \
linux-firmware-rtl8192cu \
init-elphel393 \
init-tempmon \
ahci-blacklist \
"
#kernel-modules
IMAGE_INSTALL_append += " kernel-module-ahci-elphel \
"
IMAGE_LINGUAS = " "
LICENSE = "MIT"
......
......@@ -8,11 +8,10 @@ SENSOR_TYPE=14
IMGSRV_PORT=2323
# camogm command pipe name
CAMOGM_PIPE=/var/volatile/camogm_cmd
# enable SATA, set this to 1 if camera is equipped with SSD drive
SATA_EN=0
ifconfig eth0 192.168.0.9
#if [ ! -d /usr/local/ ]; then
# ln -sf /mnt/mmc/local/ /usr/local/
#fi
cd /usr/local/verilog/
if [ $SENSOR_TYPE -eq 5 ]; then
/usr/local/bin/test_mcntrl.py @startup5 >> /dev/null 2>&1 &
......@@ -80,8 +79,9 @@ if [ -f /usr/bin/camogm ]; then
camogm $CAMOGM_PIPE &
fi
#/mnt/mmc/local/bin/x393sata.py
#insmod /mnt/mmc/ahci_elphel.ko # &
##sleep 2
##without sleep /sys/kernel/debug/ahci_exp/loading is not yet created
##echo 1 > /sys/kernel/debug/ahci_exp/loading
if [ $SATA_EN -eq 1 ]; then
/usr/local/bin/x393sata.py
modprobe ahci_elphel &
sleep 2
echo 1 > /sys//devices/soc0/amba@0/80000000.elphel-ahci/load_module
fi
SUMMARY = "Extra initscripts for the Elphel 10393 board"
DESCRIPTION = "Add ahci_elphel kernel module to /etc/modprobe.d/blacklist.conf to prevern it from automatic loading during system boot"
AUTHOR = "Elphel Inc."
HOMEPAGE = "http://www3.elphel.com/"
PRIORITY = "optional"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"
PV = "${SRCDATE}"
PR = "r0"
PACKAGES = "ahci-blacklist"
FILES_${PN} += "${sysconfdir}/modprobe.d/blacklist.conf"
do_install() {
install -d ${D}${sysconfdir}/modprobe.d
echo "blacklist ahci_elphel" >> ${D}${sysconfdir}/modprobe.d/blacklist.conf
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment