第五章、搭建S3C6410开发板的测试环境 读书笔记

 开发板是开发和学习嵌入式技术的主要硬件设备

一.安装串口调试工具:minicom

1.检测当前系统是否支持USB转串口

lsmod | grep usbserial

2.安装minicom

apt-get install minicom

3.配置minicom

         minicom –s

4.测试minicom

         minicom

二、烧写Android系统

1.使用EBoot擦除NandFlash

链接开发板和Pc机,并启动minicom。打开开发板的电源开关,出现5秒倒计时时,在Pc端按下空格键,进入EBOOT状态,输入A擦除NandFlash

2.烧写Android步骤

(1)将Sd卡按照FAT32分区格式,连接PC

(2)向SD卡中写入mmc.bin和zImage-sd.bin

(3)将SW2的引脚Pin4、5、6、7、8向右拨动为On。为SD卡启动

(4)开始从SD卡烧写Android

输入.yjsx命令,复制SD卡中的数据,出现“great!!! All jobs over”说明成功

(5)校准屏幕

关闭开发板,将开关恢复到NandFlash启动状态,重启开发板进行校准。

可以输入rm /data/pointercal删除屏幕校准文件,重新校准。

3.配置有线网络

Ifconfig eth0 192.168.17.150 netmask 255.255.255.0 up

Route add default gw 192.168.17.254 dev eth0

查看当前Ip配置和路由表:

/system/busybox/sbin/ifconfig

/system/busybox/sbin/route

希望重启不在从新配置时。可以修改linuxre,将其中#好去掉,并将Ip、子网掩码、网关修改。当不想修改时,输入:sh netconfig.sh 192.168.17.166 192.168.17.254

当多个开发板连接同一个网络时:

/system/busybox/sbin/ifconfig eth0 down(关闭网卡设备)

/system/busybox/sbin/ifconfig eeth0 hw ether 08:90:00:A0:90:80(设置新的MAC地址)

/system/busybox/sbin/ifconfig eth0 up(打开网卡设备)

原文地址:https://www.cnblogs.com/sxauzzj/p/5555844.html