gm8180:arm linux启动加载模块、运行程序 分类: arm-linux-Ubuntu 2013-07-22 16:30 416人阅读 评论(0) 收藏
1. init
#!/bin/busybox ash
#load modules mao 2013-02-16 14:12:48
echo "************************mao***********************************"
insmod /lib/modules/ftmac100.ko
ifconfig eth0 192.168.253.99
ifconfig
insmod /lib/modules/fcap0.ko
insmod /lib/modules/fcap100_iptv7137.ko
insmod /lib/modules/fcap100_mt9m131.ko
insmod /lib/modules/fcap100_ov7720.ko
insmod /lib/modules/fcap100_ov9710.ko
insmod /lib/modules/fcap100_sony_it1.ko
insmod /lib/modules/fcap100_tw2835.ko
insmod /lib/modules/fcap100_tw2835_m2.ko
insmod /lib/modules/fcap100_tw9910.ko
insmod /lib/modules/fcap100_tw9910_m2.ko
insmod /lib/modules/fcap1.ko
insmod /lib/modules/fcap_common.ko
insmod /lib/modules/fImgProc0.ko
insmod /lib/modules/fImgProc1.ko
insmod /lib/modules/flcd.ko
insmod /lib/modules/fotg2xx_drv.ko
insmod /lib/modules/fps2mouse.ko
insmod /lib/modules/ftsdc010.ko
insmod /lib/modules/g_file_storage.ko
insmod /lib/modules/pinmux.ko
insmod /lib/modules/pmtmr.ko
insmod /lib/modules/S35390-rtc.ko
insmod /lib/modules/security.ko
insmod /lib/modules/snd_fi2s_saa7137.ko
insmod /lib/modules/snd_fi2s_tw2835_c0.ko
insmod /lib/modules/snd_fi2s_tw2835_c1.ko
insmod /lib/modules/snd_fi2s_wm8731_c0.ko
insmod /lib/modules/snd_fi2s_wm8731_c1.ko
insmod /lib/modules/snd_ftssp010.ko
insmod /lib/modules/usbcore.ko
insmod /lib/modules/usbhid.ko
insmod /lib/modules/usb-storage.ko
insmod /lib/modules/apb_dma.ko
insmod /lib/modules/cpe-rtc.ko
insmod /lib/modules/cpe-wdt.ko
insmod /lib/modules/ct656.ko
insmod /lib/modules/fgpio.ko
insmod /lib/modules/fi2c.ko
insmod /lib/modules/fkeypad.ko
insmod /lib/modules/g_GM_udc.ko
insmod /lib/modules/g_GM_zero.ko
insmod /lib/modules/tve.ko
insmod /lib/modules/tve_tw2835.ko
insmod /ffmpeg/favc_common.ko
insmod /ffmpeg/favc_drv.ko
insmod /ffmpeg/fmcp420_drv.ko
insmod /ffmpeg/fmcp422_drv.ko
insmod /ffmpeg/fmjpeg_drv.ko
insmod /ffmpeg/fmpeg4_drv.ko
insmod /ffmpeg/fmpeg4_osd_drv.ko
echo "************************end mao***********************************"
/bin/busybox mount -t sysfs sysfs /sys
/bin/busybox mount -t proc proc /proc
# Populate /dev according to /sys
/bin/busybox mdev -s
/bin/busybox --install -s
/linuxrc
exec /sbin/init "$@" </dev/console >/dev/console 2>&1
2. /etc/init.d/rc.sysinit
cd /
chmod +x hello
./hello
./ffmpeg/ffplay -sj -fmt 2 -display tve 720.jpg
版权声明:本文为博主原创文章,未经博主允许不得转载。