Hi,
I've added a startup script to /etc/init.d/ directory
#!/bin/sh /etc/rc.common
START=100
start() {
echo "HELLO FROM SCRIPT"
echo 7 > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio7/direction
echo 1 > /sys/class/gpio/gpio7/value
insmod fbtft >> /tmp/log.txt
insmod fb_ili9341 >> /tmp/log.txt
insmod fbtft_device name=tm022hdh26 busnum=32 >> /tmp/log.txt
mkfifo /tmp/myfifo
hello&
nano-X&
}
stop() {
killall -9 hello
rmmod fbtft_device
rmmod fb_ili9341
rmmod fbtft
}
After reboot, the hello application is running perfectly but the modules that should get loaded by insmod were not loaded. When I run the stop() function of the script it says:
module is not loaded
module is not loaded
module is not loaded
If I run start() again the modules are loaded correctly and the apps run OK.
Why can't I get the modules to load at startup ? The script clearly runs at startup since the hello app is running.
Thanks,
Bogdan