本帖最后由 wykooo 于 2015-6-7 13:37 编辑
修改了kernel分区bin文件,主要是是修改了/etc/initd./rcS文件,在里面加了个启动脚本,文件为/usr/local/ct/wy,里面的内容用户可以自己随意修改。请大家升级时先备份原来的bin文件
升级命令 dd if=kernel.bin of=/dev/mtd3 或者 dd if=kernel.bin of=/dev/mtd6 注意写到启动分区
下面是具体的升级过程及方法
1、开启猫的ftp功能 telnet登陆 执行vsftpd -s
2、通过ftp将busybox上传到猫的任意地方 如/usr/local/ct
3、将kernel.bin上传到跟目录 /
4、在跟目录 执行/usr/local/ct/busybox dd if=./kernel.bin of=/dev/mtd6
新增busybox命令如下
root@F660:~ # /usr/local/sbin/busybox
BusyBox v1.16.0 (2013-07-27 00:00:37 CST) multi-call binary.
Copyright (C) 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.
Usage: busybox [function] [arguments]...
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, [[, addgroup, adduser, adjtimex, ar, arp, arping, ash, awk,
basename, beep, blkid, brctl, bunzip2, bzcat, bzip2, cal, cat, catv,
chat, chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt,
cksum, clear, cmp, comm, cp, cpio, crond, crontab, cryptpw, cttyhack,
cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,
dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du,
dumpkmap, dumpleases, echo, ed, egrep, eject, env, envdir, envuidgid,
ether-wake, expand, expr, fakeidentd, false, fbset, fbsplash, fdflush,
fdformat, fdisk, fgrep, find, findfs, fold, free, freeramdisk, fsck,
fsck.minix, fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep,
gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid, hostname, httpd,
hush, hwclock, id, ifconfig, ifdown, ifenslave, ifplugd, ifup, inetd,
init, insmod, install, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink,
iproute, iprule, iptunnel, kbd_mode, kill, killall, killall5, klogd,
last, length, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap,
logger, login, logname, logread, losetup, lpd, lpq, lpr, ls, lsattr,
lsmod, lzmacat, lzop, lzopcat, makedevs, makemime, man, md5sum, mdev,
mesg, microcom, mkdir, mkdosfs, mkfifo, mkfs.minix, mkfs.vfat, mknod,
mkpasswd, mkswap, mktemp, modprobe, more, mount, mountpoint, msh, mt,
mv, nameif, nc, netstat, nice, nmeter, nohup, nslookup, od, openvt,
passwd, patch, pgrep, pidof, ping, pipe_progress, pivot_root, pkill,
popmaildir, poweroff, printenv, printf, ps, pscan, pwd, raidautorun,
rdate, rdev, readahead, readlink, readprofile, realpath, reboot,
reformime, renice, reset, resize, rm, rmdir, rmmod, route, rtcwake,
run-parts, runlevel, runsv, runsvdir, rx, script, scriptreplay, sed,
sendmail, seq, setarch, setconsole, setfont, setkeycodes, setlogcons,
setsid, setuidgid, sh, sha1sum, sha256sum, sha512sum, showkey,
slattach, sleep, softlimit, sort, split, start-stop-daemon, stat,
strings, stty, su, sulogin, sum, sv, svlogd, swapoff, swapon,
switch_root, sync, sysctl, syslogd, tac, tail, tar, tcpsvd, tee,
telnet, telnetd, test, tftp, tftpd, time, timeout, top, touch, tr,
traceroute, true, tty, ttysize, tunctl, udhcpc, udhcpd, udpsvd, umount,
uname, uncompress, unexpand, uniq, unix2dos, unlzma, unlzop, unzip,
uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, volname, wall,
watch, watchdog, wc, wget, which, who, whoami, xargs, yes, zcat, zcip
大家可以单独下载busybox先测试。
其他说明
删除了固件中的hostapd文件,如果需要开启无线功能,可以在启动脚本中将文件拷贝到/sbin文件夹中,启动即可
|