@xiaowenge debian是有riscv的支持了,我上面参考那个帖子他们这样是能这样用apt下程序
L
liuruyi 发布的帖子
-
阿里云debian系统不支持riscv64
回复: 【D1-H 哪吒开发板】Debian系统安装调教和点灯指南
为什么运行apt update提示不支持riscv64呢?root@sipeed:/opt# cat /etc/apt/sources.list deb https://mirrors.aliyun.com/debian-ports/ sid main root@sipeed:/opt# apt update Hit:1 https://mirrors.aliyun.com/debian-ports sid InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. N: Skipping acquire of configured file 'main/binary-riscv64/Packages' as repository 'https://mirrors.aliyun.com/debian-ports sid InRelease' doesn't support architecture 'riscv64'
-
由于没有公钥,无法验证下列签名
回复: 一键生成可定制的Debian rootfs,支持riscv64
按照这个帖子操作的时候,提示无法验证签名,按照网上的说法用apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv
操作之后还是同样的情况,这个应该怎么处理呢?oot@ubuntu18:/opt/riscv/debian-rootfs# ./make-rootfs.sh riscv64 multistrap_debian-ports.conf multistrap 2.2.9 using multistrap_debian-ports.conf multistrap 2.2.9 using multistrap_debian-ports.conf Using foreign architecture: riscv64 multistrap building riscv64 multistrap on 'amd64' I: Setting /opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155920Z/lib64 -> /opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155920Z/lib symbolic link. Getting package lists: APT_CONFIG=/tmp/multistrap.UQSxxX apt-get -o Apt::Architecture=riscv64 -o Dir::Etc::TrustedParts=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155920Z/etc/apt/trusted.gpg.d -o Dir::Etc::Trusted=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155920Z/etc/apt/trusted.gpg -o Apt::Get::AllowUnauthenticated=true -o Apt::Get::Download-Only=true -o Apt::Install-Recommends=false -o Dir=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155920Z/ -o Dir::Etc=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155920Z/etc/apt/ -o Dir::Etc::Parts=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155920Z/etc/apt/apt.conf.d/ -o Dir::Etc::PreferencesParts=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155920Z/etc/apt/preferences.d/ -o APT::Default-Release='*' -o Dir::State=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155920Z/var/lib/apt/ -o Dir::State::Status=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155920Z/var/lib/dpkg/status -o Dir::Cache=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155920Z/var/cache/apt/ update 获取:1 http://ftp.ports.debian.org/debian-ports unstable InRelease [87.2 kB] 错误:1 http://ftp.ports.debian.org/debian-ports unstable InRelease 由于没有公钥,无法验证下列签名: NO_PUBKEY B523E5F3FC4E5F2C NO_PUBKEY 8D69674688B6CB36 正在读取软件包列表... 完成 W: GPG 错误:http://ftp.ports.debian.org/debian-ports unstable InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY B523E5F3FC4E5F2C NO_PUBKEY 8D69674688B6CB36 E: 仓库 “http://ftp.debian-ports.org/debian unstable InRelease” 没有数字签名。 N: 无法安全地用该源进行更新,所以默认禁用该源。 N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。 apt update failed. Exit value: 100 mutltistrap with configuration file multistrap_debian-ports.conf failed root@ubuntu18:/opt/riscv/debian-rootfs# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv B523E5F3FC4E5F2C Executing: /tmp/apt-key-gpghome.eCHx9ZKFsz/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv B523E5F3FC4E5F2C gpg: key B523E5F3FC4E5F2C: 1 signature not checked due to a missing key gpg: 密钥 B523E5F3FC4E5F2C:公钥“Debian Ports Archive Automatic Signing Key (2023) <ftpmaster@ports-master.debian.org>”已导入 gpg: 合计被处理的数量:1 gpg: 已导入:1 root@ubuntu18:/opt/riscv/debian-rootfs# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 8D69674688B6CB36 Executing: /tmp/apt-key-gpghome.Zdiw1SO6tD/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 8D69674688B6CB36 gpg: 密钥 8D69674688B6CB36:公钥“Debian Ports Archive Automatic Signing Key (2024) <ftpmaster@ports-master.debian.org>”已导入 gpg: 合计被处理的数量:1 gpg: 已导入:1 root@ubuntu18:/opt/riscv/debian-rootfs# ./make-rootfs.sh riscv64 multistrap_debian-ports.conf multistrap 2.2.9 using multistrap_debian-ports.conf multistrap 2.2.9 using multistrap_debian-ports.conf Using foreign architecture: riscv64 multistrap building riscv64 multistrap on 'amd64' I: Setting /opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155947Z/lib64 -> /opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155947Z/lib symbolic link. Getting package lists: APT_CONFIG=/tmp/multistrap.IsVTPs apt-get -o Apt::Architecture=riscv64 -o Dir::Etc::TrustedParts=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155947Z/etc/apt/trusted.gpg.d -o Dir::Etc::Trusted=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155947Z/etc/apt/trusted.gpg -o Apt::Get::AllowUnauthenticated=true -o Apt::Get::Download-Only=true -o Apt::Install-Recommends=false -o Dir=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155947Z/ -o Dir::Etc=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155947Z/etc/apt/ -o Dir::Etc::Parts=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155947Z/etc/apt/apt.conf.d/ -o Dir::Etc::PreferencesParts=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155947Z/etc/apt/preferences.d/ -o APT::Default-Release='*' -o Dir::State=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155947Z/var/lib/apt/ -o Dir::State::Status=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155947Z/var/lib/dpkg/status -o Dir::Cache=/opt/riscv/debian-rootfs/build/riscv64/riscv64-rootfs-20231128T155947Z/var/cache/apt/ update 获取:1 http://ftp.ports.debian.org/debian-ports unstable InRelease [87.2 kB] 错误:1 http://ftp.ports.debian.org/debian-ports unstable InRelease 由于没有公钥,无法验证下列签名: NO_PUBKEY B523E5F3FC4E5F2C NO_PUBKEY 8D69674688B6CB36 正在读取软件包列表... 完成 W: GPG 错误:http://ftp.ports.debian.org/debian-ports unstable InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY B523E5F3FC4E5F2C NO_PUBKEY 8D69674688B6CB36 E: 仓库 “http://ftp.debian-ports.org/debian unstable InRelease” 没有数字签名。 N: 无法安全地用该源进行更新,所以默认禁用该源。 N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。 apt update failed. Exit value: 100 mutltistrap with configuration file multistrap_debian-ports.conf failed
-
哪吒d1-h开发板mmap /dev/mem设备,gdb不能访问
使用的是2G的那张哪吒开发板,镜像是使用全志提供的sdk,其中在board.dts中加入了下面的内容预留了128M内存,其它无改动。reserved-memory { #address-cells = <2>; #size-cells = <2>; ranges; foobar_reserved { compatible = "shared-dma-pool"; no-map; reg = <0x0 0xb0000000 0x0 0x08000000>; }; };
为什么代码里面可以读到这段空间的内容,但是gdb不行呢?
在本地一个centos8的虚拟机里面按照类似这样的操作,gdb是可以访问的。