zoukankan      html  css  js  c++  java
  • uclinux 没有执行rc脚本 解决办法

    发现系统网络不能用,proc下是空的

    后来发现init没有编译到系统里

     menuconfig

    ——》

    user 

    ——》

     core app

    ——》

    init 


    修改rc文件加入网关 :

    route add default gw 192.168.1.1 eth0 


    就有下面的执行过程了 

    Shell invoked to run file: /etc/rc

    Command: hostname Samsung
    Command: /bin/expand /etc/ramfs.img /dev/ram0
    Command: /bin/expand /etc/ramfs2048.img /dev/ram1
    Command: mount -t proc proc /proc
    mount: /etc/mtab: Read-only file system
    Command: mount -t ext2 /dev/ram0 /var
    mount: /etc/mtab: Read-only file system
    Command: mount -t ext2 /dev/ram1 /ramdisk
    mount: Mounting /dev/ram1 on /ramdisk failed: No such file or directory
    pid 13: failed 256
    Command: chmod 777 /ramdisk
    /ramdisk: No such file or directory
    Command: mkdir /var/config
    Command: mkdir /var/tmp
    Command: mkdir /var/log
    Command: mkdir /var/run
    Command: mkdir /var/lock
    Command: mkdir /var/empty
    Command: ifconfig eth0 192.168.0.28 netmask 255.255.255.0 up
    Command: cat /etc/motd
    Welcome to
  • 相关阅读:
    双栈排序
    Koishi Loves Segments
    [USACO14FEB] Cow Decathlon 牛的十项全能
    [HNOI2016]网络
    koishi的数学题
    邦邦的大合唱站队
    #613(div2)
    Educational Codeforces Round 77
    #Hello 2020
    #601 (Div. 2)
  • 原文地址:https://www.cnblogs.com/ahuo/p/2580489.html
Copyright © 2011-2022 走看看