玩转赛灵思Zedboard开发板(6):如何在Zedboard上运行linux下的应用程序?
if 75c00000.axi-spdif-tx: Failed to set DAI format: -22
187 [ 0.980000] ALSA device list:
188 [ 0.980000] #0: HDMI monitor
189 [ 0.980000] TCP cubic registered
190 [ 0.980000] NET: Registered protocol family 17
191 [ 0.980000] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
192 [ 0.980000] Registering SWP/SWPB emulation handler
193 [ 0.980000] registered taskstats version 1
194 [ 0.980000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
195 [ 0.980000] Console: switching to colour frame buffer device 128x48
196 [ 1.000000] mmc0: new high speed SDHC card at address 0002
197 [ 1.030000] fb0: frame buffer device
198 [ 1.030000] mmcblk0: mmc0:0002 00000 3.70 GiB
199 [ 1.040000] drm: registered panic notifier
200 [ 1.040000] [drm] Initialized analog_drm 1.0.0 20110530 on minor 0
201 [ 1.050000] mmcblk0: p1
202 [ 1.050000] RAMDISK: gzip image found at block 0
203 [ 1.310000] EXT4-fs (ram0): warning: mounting unchecked fs, running e2fsck is recommended
204 [ 1.320000] EXT4-fs (ram0): mounted filesystem without journal. Opts: (null)
205 [ 1.320000] VFS: Mounted root (ext4 filesystem) on device 1:0.
206 [ 1.330000] Freeing init memory: 152K
207 Starting rcS.。。
208 ++ Mounting filesystem
209 ++ Setting up mdev
210 ++ Configure static IP 192.168.1.10
211 [ 1.510000] GEM: lp-》tx_bd ffdfb000 lp-》tx_bd_dma 181a9000 lp-》tx_skb d816b0c0
212 [ 1.520000] GEM: lp-》rx_bd ffdfc000 lp-》rx_bd_dma 181a8000 lp-》rx_skb d816b1c0
213 [ 1.520000] GEM: MAC 0x00350a00, 0x00002201, 00:0a:35:00:01:22
214 [ 1.530000] GEM: phydev d8b81400, phydev-》phy_id 0x1410dd1, phydev-》addr 0x0
215 [ 1.540000] eth0, phy_addr 0x0, phy_id 0x01410dd1
216 [ 1.540000] eth0, attach [Marvell 88E1510] phy driver
217 ++ Starting telnet daemon
218 ++ Starting http daemon
219 ++ Starting ftp daemon
220 ++ Starting dropbear (ssh) daemon
221 ++ Starting OLED Display
222 [ 1.580000] pmodoled-gpio-spi [zed_oled] SPI Probing
223 [ 1.730000] usb 1-1: new high-speed USB device number 2 using xusbps-ehci
224 ++ Exporting LEDs & SWs
225 rcS Complete
226 zynq>
至此,linux已经在Zedboard上启动起来。从超级终端输出的信息我们打开可以知道,"这个"linux系统的一些基本情况,如8~10行
In: serial
Out: serial
Err: serial
输入输出调试信息使用的都是serial,即串口,这里是超级终端,因而超级终端就如同linux系统下的控制台,我们可以键入linux的命令对系统进行操作,例如输入ls命令,可以显示当前目录内容:
其他命令如cd、mkdir、cp、rm等基本命令均可以执行。
77~79行提示信息
[ 0.270000] CPU1: Booted secondary processor
[ 0.310000] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.310000] Brought up 2 CPUs
可以知道ARM PS的两个CPU均被启动
再如163~171行
[ 0.840000] Initializing USB Mass Storage driver.。。
[ 0.840000] usbcore: registered new interface driver usb-storage
[ 0.850000] USB Mass Storage support registered.
[ 0.850000] Xilinx PS USB Device Controller driver (Apr 01, 2011)
[ 0.860000] mousedev: PS/2 mouse device common for all mice
[ 0.860000] Linux video capture interface: v2.00
[ 0.870000] gspca_main: v2.14.0 registered
[ 0.870000] usbcore: registered new interface driver uvcvideo
[ 0.870000] USB Video Class driver (1.1.1)
可以知道大容量USB设备驱动已经安装,包括PS USB设备等驱动均安装了,因此可以使用U盘、USB键盘、鼠标、摄像头等设备。
二、使用SDK设计linux应用程序
接下来我们就可以像其他的嵌入式