zynq嵌入式linux启动默认设置
上电默认启动某个应用程序
改/etc/init.d/rcS文件,添加开机自动运行注释后面的
#!/bin/sh
#
# rcS Call all S??* scripts in /etc/rcS.d in
# numerical/alphabetical order.
#
# Version: @(#)/etc/init.d/rcS 2.76 19-Apr-1999 miquels@cistron.nl
#PATH=/sbin:/bin:/usr/sbin:/usr/bin
runlevel=S
prevlevel=N
umask 022
export PATH runlevel prevlevel# Make sure proc is mounted
#
[ -d "/proc/1" ] || mount /proc#
# Source defaults.
#
. /etc/default/rcS#开机自动运行
cd /home/root/test
./test &
cd#
# Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
#
trap ":" INT QUIT TSTP#
# Call all parts in order.
#
exec /etc/init.d/rc S
上电默认网口设置静态IP
改/etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)# The loopback interface
auto lo
iface lo inet loopback# Wireless interfaces
iface wlan0 inet dhcpwireless_mode managedwireless_essid anywpa-driver wextwpa-conf /etc/wpa_supplicant.confiface atml0 inet dhcp# Wired or wireless interfaces
#auto eth0
#iface eth0 inet dhcp################################dhcp改为static
auto eth0
iface eth0 inet staticaddress 192.168.1.50netmask 255.255.255.0network 192.168.1.0gateway 192.168.1.1
################################dhcp改为static
iface eth1 inet dhcp# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
iface usb0 inet staticaddress 192.168.7.2netmask 255.255.255.0network 192.168.7.0gateway 192.168.7.1# Bluetooth networking
iface bnep0 inet dhcp