linux 烧录内核,Ubuntu中配置tftp,烧写内核用

1、安装相关软件包

sudo apt-get install tftpd (服务端)

sudo apt-get install tftp (客户端)

sudo apt-get install xinetd

2、建立配置文件

cd /etc/xinetd.d/

sudo vim tftp

输入

service tftp

{

socket_type = dgram

protocol = udp

wait = yes

user = root

server = /usr/sbin/in.tftpd

server_args = -s /tftpboot

disable = no

per_source = 11

cps = 100 2

flags = IPv4

}

存盘退出

3、建立tftp服务文件目录

sudo mkdir /tftpboot

sudo chmod 777 /tftpboot -R

4、从新启动服务

sudo /etc/init.d/xinetd restart

安装完成!

测试:

/nfsroot/rootfs/button$ tftp 192.168.2.75

tftp> put hello.c

Sent 1018 bytes in 0.0 seconds

tftp> get hello.c

Received 1018 bytes in 0.1 seconds

tftp> put book.c

Sent 1980 bytes in 0.0 seconds

tftp> get book.c

Received 1980 bytes in 0.0 seconds

注: nfsroot/rootfs/button预先有hello.c book.c0b1331709591d260c1c78e86d0c51c18.png

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值