[FPGA开发] 【Altera SoC体验之旅】+ DE1_SOC初识

白丁   2015-1-24 22:35 楼主
至于DE1_SOC的板子简介我就不多说了,拿到板子首先按照培训资料(见附件)中的教程安装usb blaster ii的驱动,串口驱动等等,然后按照教程下载测试例程,看到的是一个流水灯和数码管的0~F轮回计数。过程中想说的两点是, QQ截图20150124221828.png 开始是NO hardware,要稍微过一会才会有DE-SOC[USB-1](感觉时间稍微有点长),另外一个教程中在programmer界面Auto Detect器件出现的是5CSEMA5然后是SOCVHPS QQ截图20150124222100.png

而我的是 QQ截图20150124212256.png SOCVHPS在左,5CSEMA5在右,开始选中了其中的5CSEMA5然后右键up,两者位置交换如下图 QQ截图20150124222501.png
但是program出现错误,又Auto Detect一次program正常。至于两者的位置不同有什么区别还不知道,以后再探究吧。

按照教程烧SD镜像,启动系统。
  1. U-Boot SPL 2013.01.01 (Nov 04 2013 - 19:51:38)
  2. BOARD : Altera SOCFPGA Cyclone V Board
  3. SDRAM: Initializing MMR registers
  4. SDRAM: Calibrating PHY
  5. SEQ.C: Preparing to start memory calibration
  6. SEQ.C: CALIBRATION PASSED
  7. ALTERA DWMMC: 0


  8. U-Boot 2013.01.01 (Oct 24 2013 - 17:40:22)

  9. CPU   : Altera SOCFPGA Platform
  10. BOARD : Altera SOCFPGA Cyclone V Board
  11. DRAM:  1 GiB
  12. MMC:   ALTERA DWMMC: 0
  13. In:    serial
  14. Out:   serial
  15. Err:   serial
  16. Net:   mii0
  17. Warning: failed to set MAC address

  18. Hit any key to stop autoboot:  5  4  3  2  1  0
  19. reading u-boot.scr
  20. ** Unable to read file u-boot.scr **
  21. Optional boot script not found. Continuing to boot normally
  22. reading zImage
  23. 3809104 bytes read in 1297 ms (2.8 MiB/s)
  24. reading socfpga.dtb
  25. 17119 bytes read in 14 ms (1.2 MiB/s)
  26. fpgaintf
  27. ffd08028: 00000000    ....
  28. fpga2sdram
  29. ffc25080: 00000000    ....
  30. axibridge
  31. ffd0501c: 00000000    ....
  32. ## Flattened Device Tree blob at 00000100
  33.    Booting using the fdt blob at 0x00000100
  34.    Loading Device Tree to 03ff8000, end 03fff2de ... OK

  35. Starting kernel ...

  36. Booting Linux on physical CPU 0x0
  37. Initializing cgroup subsys cpuset
  38. Linux version 3.12.0-00307-g507abb4-dirty (root@matthew) (gcc version 4.6.3 (Sourcery CodeBench Lite 2012.03-57) ) #2 SMP Mon Jan 6 19:54:56 CST 2014
  39. CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
  40. CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
  41. Machine: Altera SOCFPGA, model: Altera SOCFPGA Cyclone V
  42. Memory policy: ECC disabled, Data cache writealloc
  43. PERCPU: Embedded 8 pages/cpu @80fd1000 s11328 r8192 d13248 u32768
  44. Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
  45. Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait
  46. PID hash table entries: 4096 (order: 2, 16384 bytes)
  47. Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
  48. Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
  49. Memory: 1031484K/1048576K available (5637K kernel code, 253K rwdata, 1424K rodata, 343K init, 256K bss, 17092K reserved)
  50. Virtual kernel memory layout:
  51.     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
  52.     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
  53.     vmalloc : 0xc0800000 - 0xff000000   (1000 MB)
  54.     lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
  55.     modules : 0x7f000000 - 0x80000000   (  16 MB)
  56.       .text : 0x80008000 - 0x806ed828   (7063 kB)
  57.       .init : 0x806ee000 - 0x80743c40   ( 344 kB)
  58.       .data : 0x80744000 - 0x807834f0   ( 254 kB)
  59.        .bss : 0x807834f0 - 0x807c355c   ( 257 kB)
  60. SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
  61. Hierarchical RCU implementation.
  62. NR_IRQS:16 nr_irqs:16 16
  63. sched_clock: 32 bits at 100MHz, resolution 10ns, wraps every 42949ms
  64. Console: colour dummy device 80x30
  65. Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)
  66. pid_max: default: 32768 minimum: 301
  67. Mount-cache hash table entries: 512
  68. CPU: Testing write buffer coherency: ok
  69. ftrace: allocating 17704 entries in 52 pages
  70. CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
  71. Setting up static identity map for 0x8051f018 - 0x8051f070
  72. CPU1: Booted secondary processor
  73. CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
  74. Brought up 2 CPUs
  75. SMP: Total of 2 processors activated.
  76. CPU: All CPU(s) started in SVC mode.
  77. devtmpfs: initialized
  78. VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
  79. NET: Registered protocol family 16
  80. fpga bridge driver
  81. DMA: preallocated 256 KiB pool for atomic coherent allocations
  82. L310 cache controller enabled
  83. l2x0: 8 ways, CACHE_ID 0x410030c9, AUX_CTRL 0x32460000, Cache size: 512 kB
  84. syscon fffef000.l2-cache: regmap [mem 0xfffef000-0xfffeffff] registered
  85. syscon ffd05000.rstmgr: regmap [mem 0xffd05000-0xffd05fff] registered
  86. syscon ffc25000.sdrctl: regmap [mem 0xffc25000-0xffc25fff] registered
  87. syscon ff800000.l3regs: regmap [mem 0xff800000-0xff800fff] registered
  88. syscon ffd08000.sysmgr: regmap [mem 0xffd08000-0xffd0bfff] registered
  89. hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
  90. hw-breakpoint: maximum watchpoint size is 4 bytes.
  91. altera_hps2fpga_bridge fpgabridge.2: fpga bridge [hps2fpga] registered as device hps2fpga
  92. altera_hps2fpga_bridge fpgabridge.2: init-val not specified
  93. altera_hps2fpga_bridge fpgabridge.3: fpga bridge [lshps2fpga] registered as device lwhps2fpga
  94. altera_hps2fpga_bridge fpgabridge.3: init-val not specified
  95. altera_hps2fpga_bridge fpgabridge.4: fpga bridge [fpga2hps] registered as device fpga2hps
  96. altera_hps2fpga_bridge fpgabridge.4: init-val not specified
  97. bio: create slab <bio-0> at 0
  98. FPGA Mangager framework driver
  99. SCSI subsystem initialized
  100. usbcore: registered new interface driver usbfs
  101. usbcore: registered new interface driver hub
  102. usbcore: registered new device driver usb
  103. pps_core: LinuxPPS API ver. 1 registered
  104. pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
  105. PTP clock support registered
  106. Switched to clocksource timer1
  107. NET: Registered protocol family 2
  108. TCP established hash table entries: 8192 (order: 4, 65536 bytes)
  109. TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
  110. TCP: Hash tables configured (established 8192 bind 8192)
  111. TCP: reno registered
  112. UDP hash table entries: 512 (order: 2, 16384 bytes)
  113. UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
  114. NET: Registered protocol family 1
  115. RPC: Registered named UNIX socket transport module.
  116. RPC: Registered udp transport module.
  117. RPC: Registered tcp transport module.
  118. RPC: Registered tcp NFSv4.1 backchannel transport module.
  119. hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
  120. arm-pmu arm-pmu: PMU:CTI successfully enabled
  121. NFS: Registering the id_resolver key type
  122. Key type id_resolver registered
  123. Key type id_legacy registered
  124. NTFS driver 2.1.30 [Flags: R/W].
  125. jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
  126. msgmni has been set to 2014
  127. io scheduler noop registered (default)
  128. Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
  129. ffc02000.serial0: ttyS0 at MMIO 0xffc02000 (irq = 194, base_baud = 6250000) is a 16550A
  130. console [ttyS0] enabled
  131. altera_fpga_manager ff706000.fpgamgr: fpga manager [Altera FPGA Manager] registered as minor 0
  132. brd: module loaded
  133. cadence-qspi ff705000.spi: DMA NOT enabled
  134. cadence-qspi ff705000.spi: master is unqueued, this is deprecated
  135. m25p80 spi2.0: unrecognized JEDEC id ffffff
  136. cadence-qspi ff705000.spi: Cadence QSPI controller driver
  137. dw_spi_mmio fff01000.spi: master is unqueued, this is deprecated
  138. CAN device driver interface
  139. c_can_platform ffc00000.d_can: invalid resource
  140. c_can_platform ffc00000.d_can: control memory is not used for raminit
  141. c_can_platform ffc00000.d_can: c_can_platform device registered (regs=c08e4000, irq=163)
  142. stmmac - user ID: 0x10, Synopsys ID: 0x37
  143. Ring mode enabled
  144. DMA HW capability register supported
  145. Enhanced/Alternate descriptors
  146.         Enabled extended descriptors
  147. RX Checksum Offload Engine supported (type 2)
  148. TX Checksum insertion supported
  149. Enable RX Mitigation via HW Watchdog Timer
  150. libphy: stmmac: probed
  151. eth0: PHY ID 00221611 at 1 IRQ 0 (stmmac-0:01) active
  152. usbcore: registered new interface driver usb-storage
  153. mousedev: PS/2 mouse device common for all mice
  154. i2c /dev entries driver
  155. Synopsys Designware Multimedia Card Interface Driver
  156. dwmmc_socfpga ff704000.dwmmc0: Using internal DMA controller.
  157. dwmmc_socfpga ff704000.dwmmc0: Version ID is 240a
  158. dwmmc_socfpga ff704000.dwmmc0: DW MMC controller at irq 171, 32 bit host data width, 1024 deep fifo
  159. mmc_host mmc0: Bus speed (slot 0) = 12500000Hz (slot req 400000Hz, actual 390625HZ div = 16)
  160. dwmmc_socfpga ff704000.dwmmc0: 1 slots initialized
  161. usbcore: registered new interface driver usbhid
  162. usbhid: USB HID core driver
  163. mmc_host mmc0: Bus speed (slot 0) = 12500000Hz (slot req 12500000Hz, actual 12500000HZ div = 0)
  164. mmc0: new high speed SDHC card at address 1234
  165. mmcblk0: mmc0:1234 SA16G 14.6 GiB
  166. mmcblk0: p1 p2 p3
  167. dwc2 ffb40000.usb: DWC OTG Controller
  168. dwc2 ffb40000.usb: new USB bus registered, assigned bus number 1
  169. dwc2 ffb40000.usb: irq 160, io mem 0x00000000
  170. usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
  171. usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
  172. usb usb1: Product: DWC OTG Controller
  173. usb usb1: Manufacturer: Linux 3.12.0-00307-g507abb4-dirty dwc2_hsotg
  174. usb usb1: SerialNumber: ffb40000.usb
  175. hub 1-0:1.0: USB hub found
  176. hub 1-0:1.0: 1 port detected
  177. oprofile: using arm/armv7-ca9
  178. TCP: cubic registered
  179. NET: Registered protocol family 10
  180. sit: IPv6 over IPv4 tunneling driver
  181. NET: Registered protocol family 17
  182. NET: Registered protocol family 15
  183. can: controller area network core (rev 20120528 abi 9)
  184. NET: Registered protocol family 29
  185. can: raw protocol (rev 20120528)
  186. can: broadcast manager protocol (rev 20120528 t)
  187. can: netlink gateway (rev 20130117) max_hops=1
  188. 8021q: 802.1Q VLAN Support v1.8
  189. Key type dns_resolver registered
  190. ThumbEE CPU extension supported.
  191. Registering SWP/SWPB emulation handler
  192. kjournald starting.  Commit interval 5 seconds
  193. EXT3-fs (mmcblk0p2): using internal journal
  194. EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
  195. VFS: Mounted root (ext3 filesystem) on device 179:2.
  196. devtmpfs: mounted
  197. Freeing unused kernel memory: 340K (806ee000 - 80743000)
  198. usb 1-1: new high-speed USB device number 2 using dwc2

  199. INIT: version 2.88 booting

  200. usb 1-1: New USB device found, idVendor=0424, idProduct=2512
  201. usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
  202. hub 1-1:1.0: USB hub found
  203. hub 1-1:1.0: 2 ports detected
  204. Starting Bootlog daemon: bootlogd.

  205. Configuring network interfaces... eth0: device MAC address 6a:a9:48:f6:c3:f3
  206. udhcpc (v1.20.2) started

  207. Sending discover...

  208. Sending discover...

  209. Sending discover...

  210. No lease, failing

  211. Starting portmap daemon...

  212. Sat Sep 28 04:38:00 UTC 2013


  213. INIT: Entering runlevel: 5


  214. Starting OpenBSD Secure Shell server: sshd

  215. done.

  216. Starting syslogd/klogd: done

  217. Starting Lighttpd Web Server: lighttpd.

  218. Starting blinking LED server

  219. Stopping Bootlog daemon: bootlogd.

  220. Poky 8.0 (Yocto Project 1.3 Reference Distro) 1.3
  221. ttyS0

  222. socfpga login: root
  223. root@socfpga:~# p who i am      am i
  224. BusyBox v1.20.2 (2013-09-27 23:27:54 CDT) multi-call binary.

  225. Usage: who [-a]

  226. root@socfpga:~# poweroffer  
  227. 

  228. Broadcast message from root@socfpga (ttyS0) (Sat Sep 28 04:39:11 2013):




  229. The system is going down for system halt NOW!


  230. INIT:
  231. INIT: Sending processes the TERM signal

  232. root@socfpga:~#
  233. INIT: Sending processes the KILL signal

  234. Stopping OpenBSD Secure Shell server: sshdstopped /usr/sbin/sshd (pid 148)
  235. .
  236. Stopping syslogd/klogd: stopped syslogd (pid 152)
  237. stopped klogd (pid 155)
  238. done
  239. Deconfiguring network interfaces... ifdown: interface eth0 not configured
  240. done.
  241. Stopping Lighttpd Web Server: stopped /usr/sbin/lighttpd (pid 159)
  242. lighttpd.
  243. /etc/rc0.d/K90gsrd_init.sh: line 23: kill: (204) - No such process
  244. Sending all processes the TERM signal...
  245. Sending all processes the KILL signal...
  246. Unmounting remote filesystems...
  247. Stopping portmap daemon...
  248. Deactivating swap...
  249. Unmounting local filesystems...
  250. reboot: System halted
启动过程中可以看到许多系统信息。
登陆系统:
  1. socfpga login: root
  1. root@socfpga:~#  who i am    
  2. BusyBox v1.20.2 (2013-09-27 23:27:54 CDT) multi-call binary.

关机:
  1. root@socfpga:~# poweroff





training

回复评论 (7)

2推荐 白丁 

插上SD卡启动系统时,启动系统后,linux系统poweroff之后,FPGA部分始终是流水灯加数码管轮回计数
training
点赞  2015-1-24 22:52
5_DE1-SoC_Training materials.rar (16.85 MB)
(下载次数: 1010, 2015-1-24 22:38 上传)

training
点赞  2015-1-24 22:38
哈哈 不错的开始i 继续努力哈
生活就是油盐酱醋再加一点糖,快活就是一天到晚乐呵呵的忙 =================================== 做一个简单的人,踏实而务实,不沉溺幻想,不庸人自扰
点赞  2015-1-25 23:31
好高大上的样子
点赞  2015-1-26 15:34
用户名root,密码:无
training
点赞  2017-5-10 21:42

thank u very much!!!!
点赞  2018-6-12 10:40
沙发的压缩包有问题,打不开
点赞  2018-10-16 11:05
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复