6410SD卡啟動流程

來源:互聯網
上載者:User

1.開始啟動一個最小系統minifs_sd

2.然後啟動busybox檔案系統

lrwxrwxrwx  1 root root    11  7月  5  2011 linuxrc -> bin/busybox

3.執行etc/init.d/rcS檔案

#!/bin/shrm -f /var/run/dbus/*rm -rf /tmp/.*rm -rf /tmp/*#/bin/sh /etc/init.d/modulesmount -a/sbin/mdev -s#hwclock -sl#mkfs.ext3 /dev/ram0#mount /dev/ram0 /tmp#mount -t sysfs none /sys/sbin/syslogd#/usr/sbin/telnetd#** install system **#/bin/sh /minifs_sh/install_cx_ctrl.sh&

4.執行rcS檔案內的install_cx_ctrl.sh

#!/bin/sh###############################################################Todo on led for start/bin/mount /dev/mmcblk0p1 /mnt/sdecho "******** write backup kerner ********"/usr/sbin/flash_eraseall /dev/mtd1/usr/sbin/nandwrite -p /dev/mtd1 /mnt/sd/zImage*echo "******** write use kerner ********"/usr/sbin/flash_eraseall /dev/mtd2/usr/sbin/nandwrite -p /dev/mtd2 /mnt/sd/zImage*echo "******** write minifs ********"/usr/sbin/ubiformat /dev/mtd3 -f /mnt/sd/minifs_ubi*echo "******** write userdata ********"/usr/sbin/ubiformat /dev/mtd4 -f /mnt/sd/user_data_ubi*echo "******** write rootfs ********"/usr/sbin/ubiformat /dev/mtd5 -f /mnt/sd/rootfs_ubi*sync#Todo off led for endecho "*** OK ***"poweroff##############################################################

5.然後掛接檔案執行安裝程式

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.