hdlguy / zcu104_ubuntu

A project to demonstrate Xilinx MPSOC running Ubuntu
MIT License
20 stars 11 forks source link

Install Ubuntu Desktop with Petalinux 2019.02 #7

Open ArMourMag opened 4 years ago

ArMourMag commented 4 years ago

Hello,

I would like install Ubuntu on my ZCU104 and I followed your readme in software/petalinux/. My version of Petalinux is 2019.2 and I use BSP version v2019.2 (xilinx-zcu104-v2019.2-final.bsp).

When I run this command: petalinux-config --get-hw-description=../zcu104_ubuntu/fpga/implement/results

I have this error:

INFO: Getting hardware description...
INFO: Rename top.hdf to system.hdf
[INFO] generating Kconfig for project
[INFO] menuconfig project
ERROR: Failed to menu config project component 
ERROR: Failed to config project.
ERROR: Get hw description Failed!.

Have you any ideas to resolve this problem.

Thanks.

hdlguy commented 4 years ago

Hello, My guess is that there is some kind of version difference. I can't remember which version I used to do that work on the zcu104, probably 2019.1. I have 2019.2 Vivado and Petalinux installed on my machine now. I'll see if I can reproduce the error.

hdlguy commented 4 years ago

Hi, My guess is that there is some kind of version difference. I can't remember which version I used to do that work on the zcu104, probably 2019.1. I have 2019.2 Vivado and Petalinux installed on my machine now. I'll see if I can reproduce the error.


From: ArMourMag notifications@github.com Sent: Thursday, May 28, 2020 4:03 AM To: hdlguy/zcu104_ubuntu zcu104_ubuntu@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [hdlguy/zcu104_ubuntu] Install Ubuntu Desktop with Petalinux 2019.02 (#7)

Hello,

I would like install Ubuntu on my ZCU104 and I followed your readme in software/petalinux/. My version of Petalinux is 2019.2 and I use BSP version v2019.2 (xilinx-zcu104-v2019.2-final.bsp).

When I run this command: petalinux-config --get-hw-description=../zcu104_ubuntu/fpga/implement/results

I have this error:

INFO: Getting hardware description... INFO: Rename top.hdf to system.hdf [INFO] generating Kconfig for project [INFO] menuconfig project ERROR: Failed to menu config project component ERROR: Failed to config project. ERROR: Get hw description Failed!.

Have you any ideas to resolve this problem.

Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/hdlguy/zcu104_ubuntu/issues/7, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6I7Z6V4EA42BL7SMNPHGDRTYZHXANCNFSM4NM57ORQ.

joekale commented 4 years ago

I think 2019.2 moved to xsa files for hardware descriptions. I believe that might cause an issue with Petalinux. There is the ability to change the compile.tcl script to export an xsa.

I believe I used: write_hw_platform -fixed -force results/top.xsa

ArMourMag commented 4 years ago

I don't find your tool named write_hw_platform but I found a manual with this name.

I think 2019.2 moved to xsa files for hardware descriptions. I believe that might cause an issue with Petalinux. There is the ability to change the compile.tcl script to export an xsa.

I believe I used: write_hw_platform -fixed -force results/top.xsa

joekale commented 4 years ago

It's a Vivado function to be used in the tcl script. If you add

write_hw_platform -fixed -force -file ./results/top.xsa to the bottom of the compile.tcl script vivado will output the design as a hardware platform instead of the traditional hdf file.

hdlguy commented 4 years ago

I reran the whole readme.txt instructions from a fresh checkout of the repo from github. Everything compiled through without modification in Petalinux 2019.2.

I am running Petalinux on a PC with Ubuntu 18.04 LTS. I did not recompile the fpga. I just used the hdf file that was checked into the repo.

The .xsa file format does not look ready for production in my opinion. I think you are better off staying with the .hdf file for now. The 2019.2 tools still accept the .hdf files. I find the .xsa flow very fragile. It needs a lot of obscure properties set on the project to even run write_hw_platform.


From: ArMourMag notifications@github.com Sent: Thursday, May 28, 2020 8:49 AM To: hdlguy/zcu104_ubuntu zcu104_ubuntu@noreply.github.com Cc: Pedro hdlguy@hotmail.com; Comment comment@noreply.github.com Subject: Re: [hdlguy/zcu104_ubuntu] Install Ubuntu Desktop with Petalinux 2019.02 (#7)

I don't find your tool named write_hw_platform but I found a manual with this name.

I think 2019.2 moved to xsa files for hardware descriptions. I believe that might cause an issue with Petalinux. There is the ability to change the compile.tcl script to export an xsa.

I believe I used: write_hw_platform -fixed -force results/top.xsa

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/hdlguy/zcu104_ubuntu/issues/7#issuecomment-635398129, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6I7Z6SLQHOBFW2ABUROXTRTZ2WDANCNFSM4NM57ORQ.

hdlguy commented 4 years ago

Joe,

I have been experimenting with the XSA file in Vivado and Vitus (XSDK) 2019.2 and I find it to still be very fragile.

Vivado 2019.2 asks for about a dozen obscure set_property commands to make it run and then it gives errors.


From: Joe Kale notifications@github.com Sent: Thursday, May 28, 2020 8:53 AM To: hdlguy/zcu104_ubuntu zcu104_ubuntu@noreply.github.com Cc: Pedro hdlguy@hotmail.com; Comment comment@noreply.github.com Subject: Re: [hdlguy/zcu104_ubuntu] Install Ubuntu Desktop with Petalinux 2019.02 (#7)

It's a Vivado function to be used in the tcl script. If you add

write_hw_platform -fixed -force -file ./results/top.xsa to the bottom of the compile.tcl script vivado will output the design as a hardware platform instead of

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/hdlguy/zcu104_ubuntu/issues/7#issuecomment-635400665, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6I7Z45Y3LJTQVUJHHSDOTRTZ3FVANCNFSM4NM57ORQ.

joekale commented 4 years ago

When I looked at the logs when Vivado exports an XSA through it's menu, I noticed it uses the "fixed" flag. I need to look more into it to find what it does, but I did not have to set the other properties and I noticed my warnings and errors went away and Vitis has had no issues (that I know of) using the resulting file for what I have needed it to do. I don't know much about the formats so I trust your judgement on it's current reliability and usefulness.

hdlguy commented 4 years ago

I'll try "-fixed"

hdlguy commented 4 years ago

Guys, I modified my Vivado compile.tcl script to generate both the hdf and xsa files. I also committed the xsa file to the repo. I also retested my Petalinux build instructions and it no longer complains about the deprecated hdf file. Thanks for the help. Here re the Vivado tcl commands.

write_hwdef -force -file ./results/top.hdf write_hw_platform -fixed -force -file ./results/top.xsa

ArMourMag commented 4 years ago

Your modifications fix my issue.

Thank you very much.

ArMourMag commented 4 years ago

There is an error when you extrat linaro rootfs archive.

--permissions must be replace by --preserve-permissions

The error is:

tar: option '--preserve' is ambiguous; possibilities: '--preserve-permissions' '--preserve-order'
Try 'tar --help' or 'tar --usage' for more information.
ArMourMag commented 4 years ago

I have a problem with Network Service when I reboot the card after an update. I give you the log file. zcu104-serial-error-boot.log

hdlguy commented 4 years ago

I think that is right. Tar options have changed over the years.


From: ArMourMag notifications@github.com Sent: Friday, May 29, 2020 2:57 AM To: hdlguy/zcu104_ubuntu zcu104_ubuntu@noreply.github.com Cc: Pedro hdlguy@hotmail.com; Comment comment@noreply.github.com Subject: Re: [hdlguy/zcu104_ubuntu] Install Ubuntu Desktop with Petalinux 2019.02 (#7)

There is an error when you extrat linaro rootfs archive.

--permissions must be replace by --preserve-permissions

The error is:

tar: option '--preserve' is ambiguous; possibilities: '--preserve-permissions' '--preserve-order' Try 'tar --help' or 'tar --usage' for more information.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/hdlguy/zcu104_ubuntu/issues/7#issuecomment-635858893, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6I7Z2ADAR6PBI3YSWCCH3RT52ITANCNFSM4NM57ORQ.

hdlguy commented 4 years ago

Mag,

Maybe I will pull out my ZCU104 today and run all the way through the example. On an Ultrazed setup I have I get a big delay in enumerating the Ethernet connection. It takes about an additional minute to get a connection after Linux finishes booting. I have not chased that down.


From: ArMourMag notifications@github.com Sent: Friday, May 29, 2020 5:53 AM To: hdlguy/zcu104_ubuntu zcu104_ubuntu@noreply.github.com Cc: Pedro hdlguy@hotmail.com; Comment comment@noreply.github.com Subject: Re: [hdlguy/zcu104_ubuntu] Install Ubuntu Desktop with Petalinux 2019.02 (#7)

I have a problem with Network Service when I reboot the card after an update. I give you the log file. zcu104-serial-error-boot.loghttps://github.com/hdlguy/zcu104_ubuntu/files/4701604/zcu104-serial-error-boot.log

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/hdlguy/zcu104_ubuntu/issues/7#issuecomment-635931000, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6I7Z4UXEHH3LW6Z3XN3KDRT6O25ANCNFSM4NM57ORQ.

ArMourMag commented 4 years ago

Sorry but I found some issues. :)

I add an user xilinx and when I want to connect from my PC with ssh I have this error.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Could not chdir to home directory /home/xilinx: Permission denied
/bin/bash: Permission denied
Connection to 192.168.1.25 closed.

I didn't reboot the card because the card doesn't boot.

hdlguy commented 4 years ago

Mag, I have not run through these commands in a while. I'll give them a try from scratch today with 2019.2 tools and see what happens to me.


From: ArMourMag notifications@github.com Sent: Friday, May 29, 2020 8:07 AM To: hdlguy/zcu104_ubuntu zcu104_ubuntu@noreply.github.com Cc: Pedro hdlguy@hotmail.com; Comment comment@noreply.github.com Subject: Re: [hdlguy/zcu104_ubuntu] Install Ubuntu Desktop with Petalinux 2019.02 (#7)

Sorry but I found some issues.

I add an user xilinx and when I want to connect from my PC with ssh I have this error.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Could not chdir to home directory /home/xilinx: Permission denied /bin/bash: Permission denied Connection to 192.168.1.25 closed.

I didn't reboot the card because the card doesn't boot.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/hdlguy/zcu104_ubuntu/issues/7#issuecomment-635991284, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6I7Z4YWNWVCKECCVNY34TRT66QTANCNFSM4NM57ORQ.

ArMourMag commented 4 years ago

Ok thank you very much.

hdlguy commented 4 years ago

Mag,

I went all the way through my own instructions, updating a few command for Petalinux 2019.2, but the resulting BOOT.BIN does not work. I get no output on my serial console.

I have had a lot of trouble with Xilinx 2019.2 software tools Vitis and Petalinux. I think a lot of the issues relate to the new .xsa platform definition file that is supposed to replace the .hdf file.

At this point I am going to suspend use of 2019.2 software tools, reverting to 2019.1. I will try again with 2020.1. :-)

Best of luck to you.


From: ArMourMag notifications@github.com Sent: Friday, May 29, 2020 8:20 AM To: hdlguy/zcu104_ubuntu zcu104_ubuntu@noreply.github.com Cc: Pedro hdlguy@hotmail.com; Comment comment@noreply.github.com Subject: Re: [hdlguy/zcu104_ubuntu] Install Ubuntu Desktop with Petalinux 2019.02 (#7)

Ok thank you very much.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/hdlguy/zcu104_ubuntu/issues/7#issuecomment-635997908, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6I7ZYF2UJJOPGLBTAP6GTRT7ABBANCNFSM4NM57ORQ.

ArMourMag commented 4 years ago

Ok thanks, I'll try to use 2019.1 version and I'll back.

ArMourMag commented 4 years ago

Same Network Service problem with 2019.1 :(

hdlguy commented 4 years ago

ArMourMag, I always see a long delay after linux boots on the ZynqMP and when the Ethernet port is working. I usually have to wait a minute or two before I can ssh onto the board. It is as if it is trying to do something special until it times out and defaults back to normal operation. This is just an annoyance to me but if you find the cause please post.

ArMourMag commented 4 years ago

Hello, The problem appears after the apt update command and to resolve my problem I ran this command before: chmod 755 /

Certainly a problem with the copy in the SD card but I don't know why.

Thanks for your help.

hdlguy commented 4 years ago

Armour, Yes, I frequently have problems with the permission of new files after I install the root filesystem. The owner:group gets set to root:username and then I have problems. I am constantly running, "sudo chown -R username:username ./folder".

Sometimes I get this problem and sometimes no. I just did a fresh install with a newly downloaded linaro root filesystem on an Ultrazed system and the file permissions are all ok.


From: ArMourMag notifications@github.com Sent: Friday, June 5, 2020 2:11 AM To: hdlguy/zcu104_ubuntu zcu104_ubuntu@noreply.github.com Cc: Pedro hdlguy@hotmail.com; Comment comment@noreply.github.com Subject: Re: [hdlguy/zcu104_ubuntu] Install Ubuntu Desktop with Petalinux 2019.02 (#7)

Hello, The problem appears after the apt update command and to resolve my problem I ran this command before: chmod 755 /

Certainly a problem with the copy in the SD card but I don't know why.

Thanks for your help.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/hdlguy/zcu104_ubuntu/issues/7#issuecomment-639328235, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6I7Z7HOROVYC5DSXFJ3FDRVCSBTANCNFSM4NM57ORQ.