152 [fpga] petalinux issues
Product Update Release Notes and Known Issues # Knowledge
- 000037095 - PetaLinux 2024.2 - Product Update Release Notes and Known Issues
- 76526 - PetaLinux 2021.1 - Product Update Release Notes and Known Issues
- 72293 - PetaLinux 2019.1 - Product Update Release Notes and Known Issues
Comments
konosubakonoakua · 2025-02-26T09:32:26Z
VFS: Cannot open root device "mmcblk1p2" or unknown-block(179,26)
- wrong fs type
selected
INITRAMFSbut have no rootfs file found. use another type, e.g.INITRD, or copy the rootfs file to SD. Or device tree set wrong bootargs, check it atcomponents/plnx_workspace/device-tree/device-tree/system-conf.dtsi - sdcard level-shifter/write protect issue (fixed by dt)
- sd1-sd-20-partition-table-detected-by-uboot-but-not-by-linux-kernel
konosubakonoakua · 2025-02-26T09:33:53Z
petalinux 2019.1 fpga manager causes build error
do not check
fpga managerinpetalinux-config
konosubakonoakua · 2025-02-26T09:56:50Z
petalinux 2019.1 device-tree (system-confi.dtsi) does not update automatically after re-config
Delete the device-tree at components/plnx_workspace/device-tree/device-tree, then petalinux-build
konosubakonoakua · 2025-02-26T10:26:56Z
messed up building
try
konosubakonoakua · 2025-02-26T12:45:01Z
petalinux booting hangs at loop: module loaded
- zcu208-petalinux-20222-boot-hangs-at-loop-module-loaded
Maybe because I didn't check
include bitstreamwhen exporting hardware.
If so, try to enable petalinux-config --> DTG Settings --> Remove PL from devicetreeIt's better to include bitstream?
konosubakonoakua · 2025-03-14T08:22:03Z
fpga manager sysfs write error: Connection timed out
- you may have a broken
.binfile, check if you use the following command to generate bin files.
konosubakonoakua · 2025-03-19T00:09:42Z
trenz petalinux issues
- https://wiki.trenz-electronic.de/display/PD/Petalinux+Troubleshoot
konosubakonoakua · 2025-03-19T00:13:04Z
petalinux can bootup but no uart output
- check pin assignment on zynq block design, it's easy to mis-click to another assignment.
- mio configurations here:
project-spec/hw-description/ps7_init.html
konosubakonoakua · 2025-03-19T00:44:54Z
petalinux-create can't find librdi_commonxillic.so
try (I'm not sure, this error has no bad effect for me):
konosubakonoakua · 2025-03-19T01:17:37Z
ERROR: You are not inside a PetaLinux project. Please specify a PetaLinux project!
- refer to here
- you need to keep
.petalinux/metadata
konosubakonoakua · 2025-03-20T06:53:03Z
pthread not found
- add ldflags to bb file
konosubakonoakua · 2025-03-20T06:53:56Z
need to import header from another location
- add CFLAGS to bb
konosubakonoakua · 2025-03-20T06:55:16Z
petalinux app compile failed
- try to clean first
konosubakonoakua · 2025-03-20T07:11:33Z
petalinux yacto howto
- https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842475/PetaLinux+Yocto+Tips
konosubakonoakua · 2025-03-20T09:14:23Z
petalinux increase CMA size (default 16)
- 000034737 - PetaLinux 2022.1: How to increase the CMA size in the Linux kernel and its impacts
- in kernel menuconfig, serach
CMA_SIZE_MBYTES
konosubakonoakua · 2025-04-14T01:12:14Z
build/misc/config/Kconfig:223: can't open file "build/misc/config/Kconfig.syshw"
- It's because you moved or renamed project, causing path inconsistency
- fixed by modifying
<your-project-path>build/misc/config/Kconfig.syshwinbuild/misc/config/Kconfig.part.
konosubakonoakua · 2025-04-14T01:37:30Z
petalinux 2021 sstate cache issues
2021.1 PetaLinux: Package do_fetch task executes even though PREMIRRORS set to downloads path for offline builds
#User Configuration
#OE_TERMINAL = "tmux"
IMAGE_BOOT_FILES_zynqmp = "BOOT.BIN boot.scr Image ramdisk.cpio.gz.u-boot"
# Workaround solution for offline builds.
INHERIT += "own-mirrors"
SOURCE_MIRROR_URL = "file:///home/wtsemb/plnx-workspace/2021.1/downloads"
PREMIRRORS_append = ""
SSTATE_MIRRORS = ""
DL_DIR = "/home/wtsemb/plnx-workspace/2021.1/plnx-downloads"
2021.2 and 2022.x Yocto/PetaLinux: Build throws errors when PREMIRRORS is set to downloads path for offline builds
https://adaptivesupport.amd.com/s/article/000033124?language=en_US
my solution
mkdir -p /impcas/cache/petalinux/sstate/downloads
mkdir -p /impcas/cache/petalinux/sstate/aarch64
mkdir -p /impcas/cache/petalinux/sstate/arm
DL_DIR = "/impcas/cache/petalinux/sstate/downloads"
SSTATE_DIR = "/impcas/cache/petalinux/2021.1/sstate/aarch64"
PREMIRRORS_prepend = " \
git://.*/.* file:///mnt/petalinux/sstate/2021.1/downloads \n \
gitsm://.*/.* file:///mnt/petalinux/sstate/2021.1/downloads \n \
ftp://.*/.* file:///mnt/petalinux/sstate/2021.1/downloads \n \
http://.*/.* file:///mnt/petalinux/sstate/2021.1/downloads \n \
https://.*/.* file:///mnt/petalinux/sstate/2021.1/downloads \n"
#
# Add pre-mirror url
#
CONFIG_PRE_MIRROR_URL="file:///mnt/petalinux/sstate/2021.1/downloads"
#
# Local sstate feeds settings
#
CONFIG_YOCTO_LOCAL_SSTATE_FEEDS_URL="/mnt/petalinux/sstate/2021.1/aarch64"
# CONFIG_YOCTO_NETWORK_SSTATE_FEEDS is not set
# CONFIG_YOCTO_BB_NO_NETWORK is not set
# CONFIG_YOCTO_BUILDTOOLS_EXTENDED is not set
konosubakonoakua · 2025-04-22T09:08:47Z
how to not build rootfs in case user has their own
- https://adaptivesupport.amd.com/s/question/0D52E00006hpjHlSAI/petalinux-without-rootfs?language=en_US
- remove image fs types
- disable ramfs in kernel
konosubakonoakua · 2025-05-09T07:02:37Z
do_assembel_fitimage failed, extend_recipe_sysroot(d)
- sysroot softlink damaged
konosubakonoakua · 2025-05-14T03:09:14Z
Error: There's no '/dev' on rootfs
- https://adaptivesupport.amd.com/s/question/0D52E00006hprw1SAA/error-theres-no-dev-on-rootfs
- set
petalinux-config -> Image packaging configuration -> ( petalinux-image-minimal ) INITRAMFS/INITRD
konosubakonoakua · 2025-10-17T13:18:27Z
device tree not updated
Copy system-user.dtsi to petalinux_project\components\plnx_workspace\device-tree\
konosubakonoakua · 2025-10-17T13:23:21Z
Unknown command booti when booting petalinux (u-boot stage)
/* Due to a bug where having u-boot load dtb from SD card causes the boot
* command to default to using booti instead of bootm on Zynq, the defult build
* fails to boot. This boot command override is a temporary workaround.
*/
#ifdef CONFIG_BOOTCOMMAND
#undef CONFIG_BOOTCOMMAND
#define CONFIG_BOOTCOMMAND "run uenvboot; run cp_kernel2ram && run cp_dtb2ram && bootm ${netstart} - ${dtbnetstart}"
#endif