7
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

2015-12-25 zynq / zybo > ZyboにてPetalinuxでEthernetを使うまでの手順

Last updated at Posted at 2015-12-25

自分の過去のメモより

  1. Hardnet から ZyboのBSPを取得
  2. BSPをもとにPetalinuxのプロジェクトを作成
  3. petalinux-config -c kernel を実行し、[Device Drivers]-[Network Device Support]-[PHY Device Support] にて 「Drivers for Realtek PHYs」のチェックをつける
  4. 下の「system-conf.dtsiの変更」のように&gem0の部分を変更する
  5. petalinux-buildする
  6. 下の「Boot.binの作成」のようにしてBoot.binとimage.ubを作成する
  7. Boot.binとimage.ubをmicroSDにコピーしてmicroSD起動する
    Ethernetを接続したまま起動するとIPを自動取得してくれる

(上記3を実行しなくてもEthernetを認識した。 他のドライバで動いているのだろうか?)

system-conf.dtsiの変更

.c
/*
&gem0 {
    local-mac-address = [00 0a 35 00 29 39];
};
*/
&gem0 {
    #address-cells = <1>;
    phy-handle = <&phy0>;
    phy-mode = "rgmii-id";
    reg = <0xe000b000 0x1000>;
    xlnx,eth-mode = <0x1>;
    xlnx,has-mdio = <0x1>;
    xlnx,ptp-enet-clock = <108333336>;
    mdio {
        #address-cells = <1>;
        #size-cells = <0>;
        phy0: phy@1 {
            compatible = "realtek,RTL8211E";
            device_type = "ethernet-phy";
            reg = <1>;
        } ;
    } ;
};

Boot.binの作成

$petalinux-package --boot --force --fsbl images/linux/zynq_fsbl.elf --uboot --fpga pre-built/linux/implementation/download.bit
7
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?