Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1147637
  • 博文数量: 241
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 2279
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-27 19:53
个人简介

JustForFun

文章分类

全部博文(241)

文章存档

2023年(8)

2022年(2)

2021年(3)

2020年(30)

2019年(11)

2018年(27)

2017年(54)

2016年(83)

2015年(23)

我的朋友

分类: LINUX

2018-12-25 22:01:30

配置minicom:

# minicom -s
Serial port setup
A -    Serial Device      : /dev/ttyS0
    E -    Bps/Par/Bits       : 115200 8N1
    F - Hardware Flow Control : No       
    G - Software Flow Control : No 
Save setup as dfl

USB-Serial:

# cp 50-ftdi.rules /etc/udev/rules.d/

SD卡烧写:
# write_sd /dev/sdb u-boot-movi.bin

tftp服务:
# vim /etc/xinetd.d/tftp
disable = no
# service iptables stop
# chkconfig iptables off
# /etc/init.d/xinetd restart

烧写u-boot:
# tftp 50003000 u-boot-nand.bin
# nand erase 0 30000
# nand write 50003000 0 30000

烧写uImage:
# tftp 50003000 uImage 
# nand erase 40000 200000
# nand write 50003000 40000 200000

启动nfs服务:
# vim /etc/exports
/nfsroot *(rw)
# /etc/init.d/nfs restart
# tar -xvf rootfs-qt-2.2.0.tar.bz2 -C /nfsroot

设置启动参数:
set bootargs noinitrd console=ttySAC0,115200 root=/dev/nfs nfsroot=192.168.1.10:/nfsroot ip=192.168.1.20:192.168.1.10:255.255.255.0
set bootcmd "nand read 50008000 40000 200000;bootm 50008000"

安装交叉编译器:
# tar -xvf arm-none-linux-gnueabi-arm-2008q3-72-for-linux.tar.bz2 -C /
# vim /root/.bash_profile
PATH=$PATH:$HOME/bin:/usr/local/arm/arm-none-linux-gnueabi/bin
export PATH
# source /root/.bash_profile

 ////////////////////////////////////////
scp命令相互传数据 电脑传给板子(在ubuntu电脑输入)
cj@google:/home/www$ scp 2.bin root@192.168.1.169:/tmp
板子传给电脑(在ubuntu电脑输入)
scp root@192.168.1.169:/etc/xxk/database.db .

//////////////////////////////////////////////////////////////////////
阅读(6766) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~