{"id":2684,"date":"2015-03-21T09:28:41","date_gmt":"2015-03-21T00:28:41","guid":{"rendered":"http:\/\/yasu2.prosou.nu\/blog\/index.php\/2015\/03\/21\/zybo_freebsd_3\/"},"modified":"2015-03-21T09:28:41","modified_gmt":"2015-03-21T00:28:41","slug":"zybo_freebsd_3","status":"publish","type":"post","link":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2015\/03\/21\/2684\/","title":{"rendered":"ZYBO \u3067 FreeBSD \u304c\u52d5\u304f\u307e\u3067 (3)"},"content":{"rendered":"<p>\u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f ZedBoard \u7528\u306e\u30ab\u30fc\u30cd\u30eb\u3067 ZYBO \u3092\u8d77\u52d5\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u66f8\u304d\u307e\u3057\u305f\u3002ZedBoard \u7528\u306e\u30ab\u30fc\u30cd\u30eb\u3067\u306f\u3001Ethernet \u306e\u30dd\u30fc\u30c8\u3068\u3057\u3066 cgem0 \u304c\u8a8d\u8b58\u3055\u308c\u307e\u3059\u304c\u3001ifconfig \u3067\u3042\u308c\u3084\u3053\u308c\u3084\u9811\u5f35\u3063\u3066\u307f\u3066\u3082\u3069\u3046\u306b\u3082\u4f7f\u3048\u307e\u305b\u3093\u3002dmesg \u3092\u307f\u308b\u3068\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<br \/>\n[code:plain]<br \/>\ncgem0: <Cadence CGEM Gigabit Ethernet Interface> mem 0xb000-0xbfff irq 54,55 on simplebus1<br \/>\nmiibus0: <MII bus> on cgem0<br \/>\nukphy0: <Generic IEEE 802.3u media interface> PHY 0 on miibus0<br \/>\nukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto<br \/>\nukphy1: <Generic IEEE 802.3u media interface> PHY 1 on miibus0<br \/>\nukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto<br \/>\ncgem0: Ethernet address: 00:1e:c0:ac:bf:8e<br \/>\n[\/code]<br \/>\n\u4e00\u65b9\u300110.1-RELEASE \u3092\u307f\u308b\u3068\u3001src\/sys\/arm\/conf\/ZEDBOARD \u306b\u306f<br \/>\n[code:plain]<br \/>\ndevice          ether<br \/>\ndevice          cgem      # Zynq-7000 gig ethernet device<br \/>\ndevice          mii<br \/>\ndevice          e1000phy<br \/>\n[\/code]<br \/>\n\u3068\u66f8\u304b\u308c\u3066\u304a\u308a\u3001cgem \u306b e1000phy \u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u3046\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002e1000phy \u306f Marvell 88E1000 \u7528\u306e\u30c9\u30e9\u30a4\u30d0\u3067\u3059\u304c\u3001ZYBO \u306b\u8f09\u3063\u3066\u3044\u308b\u306e\u306f Realtek RTL8211E \u306a\u306e\u3067\u3001rgephy \u3092\u4f7f\u3046\u306e\u304c\u6b63\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\n\u305d\u3046\u3044\u3046\u308f\u3051\u3067\u3001ZYBO \u7528\u306e\u30ab\u30fc\u30cd\u30eb\u30b3\u30f3\u30d5\u30a3\u30ae\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u306f ZEDBOARD \u306e\u3092\u3061\u3087\u3063\u3068\u3060\u3051\u3044\u3058\u308c\u3070 OK \u3067\u3059\u3002<br \/>\n[code:plain]<br \/>\n-ident          ZEDBOARD<br \/>\n+ident          ZYBO<br \/>\n[\/code]<br \/>\n[code:plain]<br \/>\ndevice         ether<br \/>\ndevice         cgem                    # Zynq-7000 gig ethernet device<br \/>\ndevice         mii<br \/>\n-device         e1000phy<br \/>\n+device         rgephy                  # RealTek GbE PHY<br \/>\n[\/code]<br \/>\nFreeBSD \u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30bd\u30fc\u30b9\u30c4\u30ea\u30fc\u3092\u53d6\u5f97\u3057\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002root \u6a29\u9650\u306f\u4f7f\u308f\u305a\u306b\u3075\u3064\u3046\u306b\u30e6\u30fc\u30b6\u6a29\u9650\u3067\u3084\u308c\u3070\u3088\u3044\u3067\u3057\u3087\u3046\u3002\/usr\/obj \u306e\u304b\u308f\u308a\u306b\u3069\u3053\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3059\u308b\u304b\u306f MAKEOBJDIRPREFIX \u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n[code:plain]<br \/>\n% setenv MAKEOBJDIRPREFIX=${pwd}\/obj<br \/>\n% svn co https:\/\/svn0.us-west.freebsd.org\/base\/stable\/10 src<br \/>\n% cd src<br \/>\n% cp sys\/arm\/conf\/ZEDBOARD sys\/arm\/conf\/ZYBO<br \/>\n% vi sys\/arm\/conf\/ZYBO<br \/>\n% make -j8 buildworld TARGET_ARCH=armv6<br \/>\n% make -j8 buildkernel TARGET_ARCH=armv6 KERNCONF=ZEDBOARD<br \/>\n[\/code]<br \/>\n\u3042\u3068\u306f SD \u30ab\u30fc\u30c9\u3092\u30de\u30a6\u30f3\u30c8\u3057\u3066\u3075\u3064\u3046\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n[code:plain]<br \/>\n% su<br \/>\n# mount \/dev\/da0s2a\/mnt<br \/>\n# setenv MAKEOBJPREFIX=&#8230;<br \/>\n# make installworld DESTDIR=\/mnt<br \/>\n# make installkernel DESTDIR=\/mnt KERNCONF=ZYBO<br \/>\n[\/code]<br \/>\ninstallworld \u3067\u306f chflags noschg \u3068\u304b\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3068\u3053\u308d\u304c\u4f55\u30ab\u6240\u304b\u3042\u308a\u307e\u3059\u304c\u3001\u307e\u3001\u306a\u3093\u3068\u304b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\nports \u3068\u304b\u3082\u3075\u3064\u3046\u306b\u4f7f\u3048\u308b\u306e\u3067\u3001\u3042\u308b\u7a0b\u5ea6\u306e\u958b\u767a\u74b0\u5883\u306f ZYBO \u30cd\u30a4\u30c6\u30a3\u30d6\u3067\u3084\u308b\u306e\u304c\u3088\u3055\u305d\u3046\u3067\u3059\u3002\u50d5\u306e\u7814\u7a76\u5ba4\u306e\u74b0\u5883\u3067\u306f\u3075\u3064\u3046\u306b ZYBO \u306e\u30ed\u30b0\u30a4\u30f3\u3092 LDAP \u3067\u8a8d\u8a3c\u3057\u3066\u3001NFS \u7d4c\u7531\u3067\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u898b\u3048\u3066\u3044\u307e\u3059 \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f ZedBoard \u7528\u306e\u30ab\u30fc\u30cd\u30eb\u3067 ZYBO \u3092\u8d77\u52d5\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u66f8\u304d\u307e\u3057\u305f\u3002ZedBoard \u7528\u306e\u30ab\u30fc\u30cd\u30eb\u3067\u306f\u3001Ethernet \u306e\u30dd\u30fc\u30c8\u3068\u3057\u3066 cgem0 \u304c\u8a8d\u8b58\u3055\u308c\u307e\u3059\u304c\u3001ifconfig \u3067\u3042\u308c\u3084\u3053 &hellip; <a href=\"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2015\/03\/21\/2684\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;ZYBO \u3067 FreeBSD \u304c\u52d5\u304f\u307e\u3067 (3)&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-2684","post","type-post","status-publish","format-standard","hentry","category-unix-"],"_links":{"self":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2684","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=2684"}],"version-history":[{"count":0,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2684\/revisions"}],"wp:attachment":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=2684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=2684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=2684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}