Project

General

Profile

RE: LCD Framebuffer Problem » do_load_fpga_lcd.sh

Alexander Block, 12/04/2015 03:11 PM

 
1
#!/bin/sh
2

    
3
cd /home/root
4

    
5
do_enum=1
6
if [ "x-p" == "x$1" ]
7
then
8
    do_enum=1
9
    shift
10
fi
11
if [ "x" != "x$1" ]
12
then
13
    /home/root/industrialio_lcd_lx45.bin=$1
14
fi
15
rmmod fpga_ctrl.ko
16
insmod /home/root/fpga_ctrl.ko
17
insmod /home/root/ads7843.ko
18
insmod /home/root/fpga_lcdctlr.ko
19
echo "1" > /sys/devices/fpga_ctrl/cmd
20
echo "2" > /sys/devices/fpga_ctrl/cmd
21
cat /home/root/industrialio_lcd.bin > /sys/devices/fpga_ctrl/image
22
if [ 1 -eq $do_enum ]
23
then
24
    echo "3" > /sys/devices/fpga_ctrl/cmd
25
fi
26
echo -n "FPGA State = "
27
cat /sys/devices/fpga_ctrl/state
28
cat /sys/devices/fpga_ctrl/version
29

    
30
sleep 1
31

    
32
echo "1" > /sys/devices/fpga_ctrl/3/backlight
33

    
34
sleep 1
35

    
36
echo "50" > /sys/devices/fpga_ctrl/3/duty
37

    
38
sleep 5
39

    
40
ts_calibrate
(1-1/2) Go to top
Add picture from clipboard (Maximum size: 1 GB)