共2条
1/1 1 跳转至页
uClinux 请问怎么在uClinux启动的时候 脱机自动运行自己的程序

问
smart2200那样 出厂演示程序一样 一通电就能自动运行程序了
看到原来的帖子
好象是修改/etc/rc文件吧
insmod /usr/bin/rtl8019
ifconfig eth0 192.168.15.15
ifconfig eth0 netmask 255.255.255.0
ifconfig eth0 down
ifconfig eth0 hw ether 00:14:97:0f:00:0
ifconfig eth0 up
route add default gw 192.168.0.1
cd /usr/pro/i2c
./loadi2c
cd ..
./hello
覆盖了原来的
insmod /usr/bin/rtl8019
ifconfig eth0 192.168.15.15
ifconfig eth0 netmask 255.255.255.0
ifconfig eth0 down
ifconfig eth0 hw ether 00:14:97:0f:00:0
ifconfig eth0 up
route add default gw 192.168.0.1
怎么通电还是自动演示出厂程序 没有运行hello程序呢?
谢谢~~~
答 1: 还要再改一处地方记得要让Default选项选择4——启动ucLinux,而不是3——他的内置程序
我记得哪里还要再改的啊 答 2: 还需要改什么那不是要用串口么 我的意思是一上电就运行自己的程序 就像演示程序一样~没人知道么 是不是要重新编译内核啊 答 3: 记得要改根目录下的某个文件我记得要改根目录下的某个文件
事实上脱机运行自定义程序的过程和用串口相连时候的过程是一样的。我问了ZLG的技术支持人员的,绝对可行!
不要编译内核的,和这个没关系的
看到原来的帖子
好象是修改/etc/rc文件吧
insmod /usr/bin/rtl8019
ifconfig eth0 192.168.15.15
ifconfig eth0 netmask 255.255.255.0
ifconfig eth0 down
ifconfig eth0 hw ether 00:14:97:0f:00:0
ifconfig eth0 up
route add default gw 192.168.0.1
cd /usr/pro/i2c
./loadi2c
cd ..
./hello
覆盖了原来的
insmod /usr/bin/rtl8019
ifconfig eth0 192.168.15.15
ifconfig eth0 netmask 255.255.255.0
ifconfig eth0 down
ifconfig eth0 hw ether 00:14:97:0f:00:0
ifconfig eth0 up
route add default gw 192.168.0.1
怎么通电还是自动演示出厂程序 没有运行hello程序呢?
谢谢~~~
答 1: 还要再改一处地方记得要让Default选项选择4——启动ucLinux,而不是3——他的内置程序
我记得哪里还要再改的啊 答 2: 还需要改什么那不是要用串口么 我的意思是一上电就运行自己的程序 就像演示程序一样~没人知道么 是不是要重新编译内核啊 答 3: 记得要改根目录下的某个文件我记得要改根目录下的某个文件
事实上脱机运行自定义程序的过程和用串口相连时候的过程是一样的。我问了ZLG的技术支持人员的,绝对可行!
不要编译内核的,和这个没关系的
共2条
1/1 1 跳转至页