UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor hjo
Visitor
11,500 Views
Registered: ‎04-25-2013

boot problem with xilinx master-next on Zedboard

Jump to solution

Hello

After I got can4linux working months ago with kernel 3.6 outside the kernel tree

I now want to port the can4linux to the latest kernel tree (drivers/char/can4linux). I downloaded and configured the kernel using:

make ARCH=arm clean
make ARCH=arm xilinx_zynq_defconfig
make ARCH=arm UIMAGE_LOADADDR=0x8000 uImage

the kernel compiles and loads from u-boot, but stops very early:

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 3.10.0-xilinx-14840-g5ad0256-dirty (oe@heinz.site) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-49) ) #12 SMP PREEMPT Wed Aug 7 19:04:59 CEST 2013
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Generic DT based system, model: Xilinx Zedboard
bootconsole [earlycon0] enabled
cma: CMA: reserved 16 MiB at 1e800000
Memory policy: ECC disabled, Data cache writealloc

--- here it stops ---

 

What can be the reason for stopping that early? I hope someone hast the answer.

Is there a special config file available for the Zedboard?
Thanks.

Heinz


 

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
Visitor hjo
Visitor
14,302 Views
Registered: ‎04-25-2013

Re: boot problem with xilinx master-next on Zedboard

Jump to solution

Hello

I used

./arch/arm/boot/dts/zynq-zed.dts

and got the error message

xemacps e000b000.ps7-ethernet: eth0: no PHY found

After changing the mdio section in the Ethernet description my kernel boots up with the rootfs mounted via nfs.

 

 Heinz

0 Kudos
13 Replies
Xilinx Employee
Xilinx Employee
11,490 Views
Registered: ‎03-13-2012

Re: boot problem with xilinx master-next on Zedboard

Jump to solution

master-next with the xilinx_zynq_defconfig is supposed to work, and I just double checked: It boots fine here.

Make sure though, that you also use the DT blob coming with the kernel tree when you replace your kernel.

0 Kudos
Visitor hjo
Visitor
11,484 Views
Registered: ‎04-25-2013

Re: boot problem with xilinx master-next on Zedboard

Jump to solution

Thanks will check that tomorrow.

Heinz

0 Kudos
Visitor hjo
Visitor
14,303 Views
Registered: ‎04-25-2013

Re: boot problem with xilinx master-next on Zedboard

Jump to solution

Hello

I used

./arch/arm/boot/dts/zynq-zed.dts

and got the error message

xemacps e000b000.ps7-ethernet: eth0: no PHY found

After changing the mdio section in the Ethernet description my kernel boots up with the rootfs mounted via nfs.

 

 Heinz

0 Kudos
Scholar vanmierlo
Scholar
11,181 Views
Registered: ‎06-10-2008

Re: boot problem with xilinx master-next on Zedboard

Jump to solution

So what did you change to make it work exactly? Stating that you changed something doesn't really help.

0 Kudos
Visitor nocomer
Visitor
11,121 Views
Registered: ‎11-29-2013

Re: boot problem with xilinx master-next on Zedboard

Jump to solution
I believe, it was smth. like replacing phy@7 with phy@0
And this change is not master-next specific
0 Kudos
Visitor hjo
Visitor
11,111 Views
Registered: ‎04-25-2013

Re: boot problem with xilinx master-next on Zedboard

Jump to solution

That is what I'm using

 

ps7_ethernet_0: ps7-ethernet@e000b000 {
            #address-cells = <1>;
            #size-cells = <0>;
            clock-names = "ref_clk", "aper_clk";
            clocks = <&clkc 13>, <&clkc 30>;
            compatible = "xlnx,ps7-ethernet-1.00.a";
            interrupt-parent = <&ps7_scugic_0>;
            interrupts = <0 22 4>;
            local-mac-address = [00 0a 35 00 00 00];
            phy-handle = <&phy0>;
            phy-mode = "rgmii-id";
            reg = <0xe000b000 0x1000>;
            xlnx,enet-reset = <0xffffffff>;
            xlnx,eth-mode = <0x1>;
            xlnx,has-mdio = <0x1>;
            xlnx,ptp-enet-clock = <111111115>;
            mdio {
                #address-cells = <1>;
                #size-cells = <0>;
                phy0: phy@0 {
                    compatible = "marvell,88e1510";
                    device_type = "ethernet-phy";
                    reg = <0x0>;
                    marvell,reg-init = <0x3 0x10 0xff00 0x1e 0x3 0x11 0xfff0 0xa>;
                } ;
            } ;
        } ;

0 Kudos
Visitor portolan
Visitor
11,087 Views
Registered: ‎10-18-2013

Re: boot problem with xilinx master-next on Zedboard

Jump to solution

I just found the exact same problem after updating the kernel tree this morning: zynq-zed.dtsis broken, to work Ethenert needs needs the correction in the previous post to work. I made the corrections and now it work perfectly!

 

Is it possible to push this update to the git tree?

 

Regards,

 

Michele

0 Kudos
Visitor portolan
Visitor
11,085 Views
Registered: ‎10-18-2013

Re: boot problem with xilinx master-next on Zedboard

Jump to solution
BTW, the devicetree.dtb in the 14.7 official release suffers from the same problem: Ethernet won't work on it
0 Kudos
Xilinx Employee
Xilinx Employee
11,064 Views
Registered: ‎03-13-2012

Re: boot problem with xilinx master-next on Zedboard

Jump to solution

It looks like there have been changes between Zed board revisions: https://lists.yoctoproject.org/pipermail/meta-xilinx/2013-November/000249.html .

 

If possible it would be nice to get a picture of the situation. Could people please post their Zed revision and the statuf of Ethernet functionality for different phy addresses (looks like 7, 1 and 0 are supposed to be the relevant ones)?

But it might be the case that a single file is not able to serve all Zed revisions.

0 Kudos
Visitor hjo
Visitor
4,559 Views
Registered: ‎04-25-2013

Re: boot problem with xilinx master-next on Zedboard

Jump to solution

used with Zedboard PB200-248 Rev C

0 Kudos
Visitor nocomer
Visitor
4,554 Views
Registered: ‎11-29-2013

Re: boot problem with xilinx master-next on Zedboard

Jump to solution

I used phy@0 with Zedboard PB200-248 Rev. D and it worked for me.

phy@7 did not work and I never tried phy@1

Also, as I know, phy@0 is used in .dtb shipped with this board by Digilent

0 Kudos
Xilinx Employee
Xilinx Employee
4,547 Views
Registered: ‎03-13-2012

Re: boot problem with xilinx master-next on Zedboard

Jump to solution

I have only rev C boards here. And those respond to address 0 but not 1 or 7. Anybody has a pre rev C board?

0 Kudos
Xilinx Employee
Xilinx Employee
4,527 Views
Registered: ‎03-13-2012

Re: boot problem with xilinx master-next on Zedboard

Jump to solution

The phy-address is changed to zero in the latest sources https://github.com/Xilinx/linux-xlnx/commit/9a3832f0ac6fa697d4c7798970ba14a3bfed5517 . I hope that works for the majority and does not lead to plenty of people complaining that we broke boards that work with 7 as phy-address.

0 Kudos