ARM linux开发点滴记录

1. USB转串口准备

下载Mac下USB转串口驱动, 推荐Z-tek, 性价比不错. 驱动下载www.z-tek.com.cn. 对大多数采用FTDI的USB转串口可以到www.ftdichip.com上下载驱动.安装驱动后重启.

cd /dev

ls -l

crw-rw-rw-  1 root   wheel       2,   0  9 26 11:41 tty
crw-rw-rw-  1 root   wheel      10,   2  9 26 11:41 tty.Bluetooth-Modem
crw-rw-rw-  1 root   wheel      10,   4  9 26 11:41 tty.Bluetooth-PDA-Sync
crw-rw-rw-  1 root   wheel      10,   0  9 26 11:41 tty.usbserial-ftCWUM24
crw-rw-rw-  1 root   wheel       4,   0  9 26 11:41 ttyp0
crw-rw-rw-  1 root   wheel       4,   1  9 26 11:41 ttyp1
crw-rw-rw-  1 root   wheel       4,   2  9 26 11:41 ttyp2

crw-rw-rw- 1 root wheel 10, 0 9 26 11:41 tty.usbserial-ftCWUM24

2. Mac OS下安装minicom
Mac下安装minicom需要先安装darwinports.
先到darwinports.com下载并安装 darwingports.
然后开始安装minicom
cd /opt/loca/bin
sudo ./port install minicom
安装完毕之后运行minicom
./minicom
配置波特率,数据位等, 需要注意的是如果minicom只能读不能写,检查Hard flow control是设置为NO.
配置好之后连接开发板, minicom终端登录即可.
……
TCP cubic registered
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common routines for IEEE802.11 drivers
s3c2410-rtc s3c2410-rtc: setting system clock to 2165-10-23 15:36:12 UTC (18842)
yaffs: dev is 32505858 name is “mtdblock2″
yaffs: passed flags “”
yaffs: Attempting MTD mount on 31.2, “mtdblock2″
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 128K
hwclock: settimeofday() failed: Invalid argument
[16/Sep/2029:09:08:03 +0000] boa: server version Boa/0.94.13
[16/Sep/2029:09:08:03 +0000] boa: server built Mar 26 2009 at 15:28:42.
[16/Sep/2029:09:08:03 +0000] boa: starting server pid=501, port 80
Try to bring eth0 interface up……eth0: link down
Done
Please press Enter to activate this console.
[root@FriendlyARM /]#
3. Linux下安装Qt
编译范例出错,没有安装G++。
sudo apt-get install g++
再次build出错
p, li { white-space: pre-wrap; }

/usr/bin/ld: cannot find -lfreetype

安装QtCreator的dependencies

sudo apt-get install libfreetype6 libfreetype6-dev libglib2.0-dev libSM-dev libxrender-dev libfontconfig1-dev libxext-dev

ARM linux开发点滴记录

Leave a Reply

You must be logged in to post a comment.