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: 
Observer johnsonlee0805
Observer
4,801 Views
Registered: ‎10-13-2011

can not boot Linux on zynq

Hi, 

 

I built my own zynq board based on the Zedboard design. Right now, hardware part is ok. I am trying to use the open source u-boot and Linux OS that work well on Zedboard to build the OS on my board. The differences are the memory size and serial port. Zedboard has 512MB memory and uses UART1. on my board, there is 256MB LPDDR2 and UART0. I changed those information in the zynq_config.h file when recompiling the u-boot. u-boot can boot up and print the information on TERA TERM. it stopped at "starting application at: 0x00008000...".

I don't know what's the possible problem, anyone help me?

Thanks

0 Kudos
6 Replies
Xilinx Employee
Xilinx Employee
4,800 Views
Registered: ‎11-12-2007

Re: can not boot Linux on zynq

Did you also change the equivalent information in the Linux device tree? You need to edit the DTS file to tell the kernel how much RAM you have, that you want the serial console on UART0, etc.

0 Kudos
Observer johnsonlee0805
Observer
4,777 Views
Registered: ‎10-13-2011

Re: can not boot Linux on zynq

Hi ra,

 

Thanks for your reply.

 

I modified the related parts in devicetree.dts file as following

 

original:

memory {
device_type = "memory";
reg = <0x0 0x20000000>; 
};

chosen {
bootargs = "console=ttyPS0,115200 root=/dev/ram rw initrd=0x2000000,32M earlyprintk maxcpus=2 debug ip=192.168.1.10";
linux,stdout-path = "/amba@0/uart@E0001000";
};

 

modification:

memory {
device_type = "memory";
reg = <0x0 0x10000000>;
};

chosen {
bootargs = "console=ttyPS1,115200 root=/dev/ram rw initrd=0x2000000,32M earlyprintk maxcpus=2 debug ip=192.168.1.10";
linux,stdout-path = "/amba@0/uart@E0000000";
};

 

and 

 

original:

uart@e0001000 {
compatible = "xlnx,ps7-uart-1.00.a";
reg = <0xe0001000 0x1000>;
interrupts = < 0 50 0 >;
interrupt-parent = <&gic>;
clock = <50000000>;
};

 

modification:

uart@e0000000 {
compatible = "xlnx,ps7-uart-1.00.a";
reg = <0xe0000000 0x1000>;
interrupts = < 0 50 0 >;
interrupt-parent = <&gic>;
clock = <50000000>;
};

 

This problem is still there.

The output information stopped at "starting application at 0x00008000..."

 

Did I miss somehing?

 

Thank you.

0 Kudos
Observer johnsonlee0805
Observer
4,776 Views
Registered: ‎10-13-2011

Re: can not boot Linux on zynq

I also tried "console=ttyPS0"
0 Kudos
Observer johnsonlee0805
Observer
4,766 Views
Registered: ‎10-13-2011

Re: can not boot Linux on zynq

Hi, ra,

 

I modified the device tree for Zedboard, changed the uart1 to uart0. It still can go after "starting application at 0x00008000..." but stopped at "e0000000.uart: ttyPS0 at MMIO 0xe0000000 (irq = 82) is a xuartps".

 

So, I guess there is some problem in my u-boot, am I right?

 

Thanks

0 Kudos
Observer johnsonlee0805
Observer
4,765 Views
Registered: ‎10-13-2011

Re: can not boot Linux on zynq

I also don't have the usb and ethernet port on my own board. Should I delete related information in the device tree dts file?

0 Kudos
Highlighted
Visitor apoetzsch
Visitor
3,791 Views
Registered: ‎09-02-2014

Re: can not boot Linux on zynq

Did you ever resolve this issue.  We are having a similar problem with our board which also uses LPDDR2 (we do have 512MB of LPDDR2)

0 Kudos