неделя, 19 декември 2010 г.

Stop the LED player!

If you need to use those GPIO pins connected to onboard LEDs the LED player should be stopped. To do this telnet to the board and with vi open this script file /etc/init.d/rcS

[root@FriendlyARM init.d]# vi rcS
(The beginning of the file omitted)
....
....
....
-------------------------------------------------------------------------------------------------------------------
syslogd                                          
/etc/rc.d/init.d/netd start                      
echo "                        " > /dev/tty1      
echo "Starting networking..." > /dev/tty1        
sleep 1                                          
/etc/rc.d/init.d/httpd start                     
echo "                        " > /dev/tty1      
echo "Starting web server..." > /dev/tty1        
sleep 1                                   
#/etc/rc.d/init.d/leds start                                        Comment out these lines!
#echo "                        " > /dev/tty1
#echo "Starting leds service..." > /dev/tty1
#echo "                        "           
#sleep 1                                   
                                          
/sbin/ifconfig lo 127.0.0.1               
/etc/init.d/ifconfig-eth0                 
                                          
/bin/qtopia &                             
echo "                                  " > /dev/tty1
echo "Starting Qtopia, please waiting..." > /dev/tty1

-------------------------------------------------------------------------------------------------------------------

Thats it. You can also remove  "sleep 1" and win two seconds faster boot time.

Няма коментари:

Публикуване на коментар