OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 414|回复: 5

[XILINX] petalinux2023编译出来的ZYNQ7020嵌入式linux无法通过sd卡boot

[复制链接]

1

主题

2

帖子

0

精华

新手入门

积分
5
金钱
5
注册时间
2024-2-21
在线时间
0 小时
发表于 2024-2-21 17:09:35 | 显示全部楼层 |阅读模式
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

1

主题

2

帖子

0

精华

新手入门

积分
5
金钱
5
注册时间
2024-2-21
在线时间
0 小时
 楼主| 发表于 2024-2-22 19:48:04 | 显示全部楼层
回复

使用道具 举报

3

主题

1912

帖子

0

精华

资深版主

Rank: 8Rank: 8

积分
5317
金钱
5317
注册时间
2018-10-21
在线时间
1478 小时
发表于 2024-2-23 09:08:45 | 显示全部楼层
20.2版本有试过有问题吗?主要是你这个版本也没人用过
回复

使用道具 举报

2

主题

8

帖子

0

精华

新手上路

积分
27
金钱
27
注册时间
2024-1-9
在线时间
6 小时
发表于 2024-3-18 16:29:41 | 显示全部楼层
我也用的petalinux 2023.2,但是ubuntu用的18.04版本,你的改一下设备树,
我的如下,可以编译通过并正常启动运行:
/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi
system-user.dtsi内容如下:
/include/"system-conf.dtsi"
#include "include/dt-bindings/input/input.h"
#include "include/dt-bindings/gpio/gpio.h"
#include "include/dt-bindings/phy/phy.h"
/ {
model = "Alientek Navigator Zynq Development Board";
        compatible = "xlnx,zynq-zc702", "xlnx,zynq-7000";

    leds {
                compatible = "gpio-leds";

                gpio-led1 {
                        label = "led2";
                        gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };

                gpio-led2 {
                        label = "led1";
                        gpios = <&gpio0 54 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };

                gpio-led3 {
                        label = "pl_led0";
                        gpios = <&axi_gpio_0 0 0 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };

                gpio-led4 {
                        label = "pl_led1";
                        gpios = <&axi_gpio_0 1 0 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "timer";
                };

                gpio-led5 {
                        label = "ps_led0";
                        gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };

                gpio-led6 {
                        label = "ps_led1";
                        gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "timer";
                };
        };

keys {
                compatible = "gpio-keys";
                autorepeat;

                gpio-key1 {
                        label = "pl_key0";
                        gpios = <&gpio0 55 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_LEFT>;
                        gpio-key,wakeup;
                        autorepeat;
                };

                gpio-key2 {
                        label = "pl_key1";
                        gpios = <&gpio0 56 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RIGHT>;
                        gpio-key,wakeup;
                        autorepeat;
                };

                gpio-key3 {
                        label = "ps_key1";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_UP>;
                        gpio-key,wakeup;
                        autorepeat;
                };

                gpio-key4 {
                        label = "ps_key2";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_DOWN>;
                        gpio-key,wakeup;
                        autorepeat;
                };

                touch-key {
                        label = "touch_key";
                        gpios = <&gpio0 57 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_ENTER>;
                        gpio-key,wakeup;
                        autorepeat;
                };
        };

       
       
};

教程提供的很多东西,petalinux版本升级以后就不能用了,也挺着急的
回复

使用道具 举报

2

主题

8

帖子

0

精华

新手上路

积分
27
金钱
27
注册时间
2024-1-9
在线时间
6 小时
发表于 2024-3-18 16:32:56 | 显示全部楼层
974868000 发表于 2024-3-18 16:29
我也用的petalinux 2023.2,但是ubuntu用的18.04版本,你的改一下设备树,
我的如下,可以编译通过并正常 ...

而且petalinux 2023.2版本默认启动的时候,从串口是进不去root的,你的改下配置才行。
petalinux-config -c rootfs->Image Features->serial-autologin-root.
回复

使用道具 举报

2

主题

8

帖子

0

精华

新手上路

积分
27
金钱
27
注册时间
2024-1-9
在线时间
6 小时
发表于 2024-3-18 16:35:41 | 显示全部楼层
974868000 发表于 2024-3-18 16:29
我也用的petalinux 2023.2,但是ubuntu用的18.04版本,你的改一下设备树,
我的如下,可以编译通过并正常 ...

现在教程提供的设备树基本都编译不过的,即使编译过了运行也有问题,还请官方尽早给出修改吧。另外感觉《【正点原子】领航者ZYNQ之嵌入式Linux开发指南_V3.2》这个教程写的不咋好,感觉很多东西没讲清楚。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-5-29 11:50

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表