「RVBoards-哪吒」D1 Debian系统镜像和安装方法



  • This post is deleted!


  • 系统分区5g太小了,能够把系统调大,5g装一些依赖就没有空间了,希望能对python的pip支持



  • @phebe
    弄清楚了,镜像分为两种版本,windows和linux,目前0.4版本提供了win和linux两种平台的烧录镜像。

    而0.4.1和0.5目前只提供了linux平台的烧录镜像。

    上图中,在windows平台,使用了linux的烧录镜像,所以报错



  • 7a374162-d714-4496-98da-272bb4be8886-image.png

    各位怎么解决啊?



  • @traits v0.5 版本的 win 版本下载镜像什么时候可以释放出来?



  • 使用官方推荐的PhoenixCard烧写SD卡出错。如图:1.png



  • @aiminick 复议,谢谢



  • @traits 请在新版系统加上内核模块 nf_nat.ko 的支持,以便可以测试docker



  • @darkgeek 删除包 connman
    apt purge connman -y
    然后编辑 /etc/network/interfaces 为固定地址就好



  • @darkgeek 我也是,但是用wget手动下载可以



  • 最近这两天,咱们的这个mirror好像不能更新了哈,很多包缺失了:

    Hit:1 http://mirrors.perfxlab.cn/debian-ports sid InRelease
    Hit:2 http://mirrors.perfxlab.cn/debian-ports unreleased InRelease
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    44 packages can be upgraded. Run 'apt list --upgradable' to see them.
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Calculating upgrade... Done
    The following packages will be upgraded:
      cups-common exim4-base exim4-config exim4-daemon-light git git-man
      golang-1.15-go golang-1.15-src isc-dhcp-client isc-dhcp-common
      keyboard-configuration libcups2 libdebconfclient0 libgcrypt20
      libgnutls-dane0 libgnutls30 libgtk2.0-0 libgtk2.0-common libmariadb3
      libnginx-mod-http-geoip libnginx-mod-http-image-filter
      libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream
      libnginx-mod-stream-geoip libqt5core5a libudfread0 libx11-6 libx11-data
      libx11-dev libx11-xcb1 libxml2 linux-libc-dev mariadb-common nginx
      nginx-common nginx-core openjdk-17-jdk openjdk-17-jdk-headless
      openjdk-17-jre openjdk-17-jre-headless python3-yaml tasksel tasksel-data
    44 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 242 MB/249 MB of archives.
    After this operation, 91.1 kB of additional disk space will be used.
    Err:1 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libdebconfclient0 riscv64 0.259
      404  Not Found [IP: 47.99.187.160 80]
    Err:2 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libgcrypt20 riscv64 1.8.7-6
      404  Not Found [IP: 47.99.187.160 80]
    Err:3 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libgnutls-dane0 riscv64 3.7.1-5
      404  Not Found [IP: 47.99.187.160 80]
    Err:4 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libgnutls30 riscv64 3.7.1-5
      404  Not Found [IP: 47.99.187.160 80]
    Err:5 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 isc-dhcp-client riscv64 4.4.1-2.3
      404  Not Found [IP: 47.99.187.160 80]
    Err:6 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 isc-dhcp-common riscv64 4.4.1-2.3
      404  Not Found [IP: 47.99.187.160 80]
    Err:7 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 exim4-daemon-light riscv64 4.94.2-6
      404  Not Found [IP: 47.99.187.160 80]
    Err:8 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 exim4-base riscv64 4.94.2-6
      404  Not Found [IP: 47.99.187.160 80]
    Err:9 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 git riscv64 1:2.32.0~rc2-1
      404  Not Found [IP: 47.99.187.160 80]
    Err:10 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 golang-1.15-src riscv64 1.15.9-4
      404  Not Found [IP: 47.99.187.160 80]
    Err:11 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 golang-1.15-go riscv64 1.15.9-4
      404  Not Found [IP: 47.99.187.160 80]
    Err:12 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libcups2 riscv64 2.3.3op2-3+deb11u1
      404  Not Found [IP: 47.99.187.160 80]
    Err:13 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libx11-dev riscv64 2:1.7.1-1
      404  Not Found [IP: 47.99.187.160 80]
    Err:14 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libx11-xcb1 riscv64 2:1.7.1-1
      404  Not Found [IP: 47.99.187.160 80]
    Err:15 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libx11-6 riscv64 2:1.7.1-1
      404  Not Found [IP: 47.99.187.160 80]
    Err:16 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libgtk2.0-0 riscv64 2.24.33-2
      404  Not Found [IP: 47.99.187.160 80]
    Err:17 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libmariadb3 riscv64 1:10.5.10-2
      404  Not Found [IP: 47.99.187.160 80]
    Err:18 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 nginx-core riscv64 1.18.0-6.1
      404  Not Found [IP: 47.99.187.160 80]
    Err:19 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libnginx-mod-stream-geoip riscv64 1.18.0-6.1
      404  Not Found [IP: 47.99.187.160 80]
    Err:20 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libnginx-mod-stream riscv64 1.18.0-6.1
      404  Not Found [IP: 47.99.187.160 80]
    Err:21 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libnginx-mod-mail riscv64 1.18.0-6.1
      404  Not Found [IP: 47.99.187.160 80]
    Err:22 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libxml2 riscv64 2.9.10+dfsg-6.7
      404  Not Found [IP: 47.99.187.160 80]
    Err:23 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libnginx-mod-http-xslt-filter riscv64 1.18.0-6.1
      404  Not Found [IP: 47.99.187.160 80]
    Err:24 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libnginx-mod-http-geoip riscv64 1.18.0-6.1
      404  Not Found [IP: 47.99.187.160 80]
    Err:25 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libnginx-mod-http-image-filter riscv64 1.18.0-6.1
      404  Not Found [IP: 47.99.187.160 80]
    Err:26 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libqt5core5a riscv64 5.15.2+dfsg-6
      404  Not Found [IP: 47.99.187.160 80]
    Err:27 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 libudfread0 riscv64 1.1.2-1
      404  Not Found [IP: 47.99.187.160 80]
    Err:28 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 linux-libc-dev riscv64 5.10.40-1
      404  Not Found [IP: 47.99.187.160 80]
    Err:29 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 openjdk-17-jdk riscv64 17~24-1
      404  Not Found [IP: 47.99.187.160 80]
    Err:30 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 openjdk-17-jdk-headless riscv64 17~24-1
      404  Not Found [IP: 47.99.187.160 80]
    Err:31 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 openjdk-17-jre riscv64 17~24-1
      404  Not Found [IP: 47.99.187.160 80]
    Err:32 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 openjdk-17-jre-headless riscv64 17~24-1
      404  Not Found [IP: 47.99.187.160 80]
    Err:33 http://mirrors.perfxlab.cn/debian-ports sid/main riscv64 python3-yaml riscv64 5.3.1-4
      404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/c/cdebconf/libdebconfclient0_0.259_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/libg/libgcrypt20/libgcrypt20_1.8.7-6_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/g/gnutls28/libgnutls-dane0_3.7.1-5_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/g/gnutls28/libgnutls30_3.7.1-5_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/i/isc-dhcp/isc-dhcp-client_4.4.1-2.3_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/i/isc-dhcp/isc-dhcp-common_4.4.1-2.3_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/e/exim4/exim4-daemon-light_4.94.2-6_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/e/exim4/exim4-base_4.94.2-6_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/g/git/git_2.32.0~rc2-1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/g/golang-1.15/golang-1.15-src_1.15.9-4_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/g/golang-1.15/golang-1.15-go_1.15.9-4_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/c/cups/libcups2_2.3.3op2-3+deb11u1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/libx/libx11/libx11-dev_1.7.1-1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/libx/libx11/libx11-xcb1_1.7.1-1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/libx/libx11/libx11-6_1.7.1-1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/g/gtk+2.0/libgtk2.0-0_2.24.33-2_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/m/mariadb-10.5/libmariadb3_10.5.10-2_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/n/nginx/nginx-core_1.18.0-6.1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/n/nginx/libnginx-mod-stream-geoip_1.18.0-6.1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/n/nginx/libnginx-mod-stream_1.18.0-6.1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/n/nginx/libnginx-mod-mail_1.18.0-6.1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/libx/libxml2/libxml2_2.9.10+dfsg-6.7_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/n/nginx/libnginx-mod-http-xslt-filter_1.18.0-6.1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/n/nginx/libnginx-mod-http-geoip_1.18.0-6.1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/n/nginx/libnginx-mod-http-image-filter_1.18.0-6.1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/q/qtbase-opensource-src/libqt5core5a_5.15.2+dfsg-6_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/libu/libudfread/libudfread0_1.1.2-1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/l/linux/linux-libc-dev_5.10.40-1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/o/openjdk-17/openjdk-17-jdk_17~24-1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/o/openjdk-17/openjdk-17-jdk-headless_17~24-1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/o/openjdk-17/openjdk-17-jre_17~24-1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/o/openjdk-17/openjdk-17-jre-headless_17~24-1_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Failed to fetch http://mirrors.perfxlab.cn/debian-ports/pool-riscv64/main/p/pyyaml/python3-yaml_5.3.1-4_riscv64.deb  404  Not Found [IP: 47.99.187.160 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    


  • @darkgeek 第四个分区,如果你有全志sdk的源码的话,你可以看见分区表里第四个分区里的文件时kernel生成的boot.img文件



  • 还想再问个问题哈。一般内核镜像文件是放/boot的,但我看/boot目录下是空的,那么kernel放在哪个分区了呢?



  • @王哥 就是启动的时候哈,这个是UART倒出来的



  • 发现了一个小问题:mac地址并不固定,重启后会变化。



  • @王哥 谢谢,明白了,第八个分区确实可以利用起来做home。不过我也想补充下哈,在mkfs格式化之前,还需要扩充一下GPT 分区信息(sgdisk -e /dev/sda,参考:https://wiki.archlinux.org/title/GPT_fdisk ),删除第八个分区,再重新创建第八个分区,否则仍然不能利用那空闲的空间:

    # sgdisk -e /dev/sda
    Warning: The kernel is still using the old partition table.
    The new table will be used at the next reboot or after you
    run partprobe(8) or kpartx(8)
    The operation has completed successfully.
    
    # partprobe
    Warning: Not all of the space available to /dev/sda appears to be used, you can fix the GPT to use all of the space (an extra 41430 blocks) or continue with the current setting? 
    
    # gdisk /dev/sda
    ...
    Command (? for help): d 8
    Command (? for help): n
    Using 8
    First sector (58478646-124694024, default = 58478646) or {+-}size{KMGTP}: 
    Last sector (58478646-124694024, default = 124694024) or {+-}size{KMGTP}: 
    Current type is 'Linux filesystem'
    Hex code or GUID (L to show codes, Enter = 8300): 
    Changed type of partition to 'Linux filesystem'
    Command (? for help): w
    
    Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
    PARTITIONS!!
    
    Do you want to proceed? (Y/N): Y
    OK; writing new GUID partition table (GPT) to /dev/sda.
    The operation has completed successfully.
    
    # /sbin/mkfs.ext4 /dev/sda8 -F
    


  • @mengzhuo 能说一下这是哪里的报错嘛,
    如果是卡在uboot启动那,您用的是0.4版本的镜像嘛,0.4之前不支持2G内存的板子。



  • @darkgeek /sbin/mkfs.ext4 /dev/mmcblk0p8 -F执行这条命令试试
    因为剩下的空间已经分给了第八个分区,直接格式化为ext4格式就行;
    可以挂载在home目录下,或者在根文件下新建一个文件夹,挂载在该文件夹下;
    如果需要自动挂载的话,需要修改/etc/fstab;
    参照一下步骤:
    修改/etc/fstab,在里面增加一条

    /dev/mmcblk0p8	/home	ext4	rw	0	0
    


  • @王哥 还有一个问题,我用的是64G的SD卡,但系统刷完后只能用32G,那我怎么样才能把那“空闲”的32G给利用起来(分给rootfs或者再挂载一个分区)?我尝试用gdisk去新增分区,但提示我partition table已经满了。

    # sudo gdisk /dev/sda                          
    GPT fdisk (gdisk) version 1.0.3                                                 
                                                                                    
    Partition table scan:                                                           
      MBR: protective                                                               
      BSD: not present                                                              
      APM: not present                                                              
      GPT: present                                                                  
                                                                                    
    Found valid GPT with protective MBR; using GPT.                                 
                                                                                    
    Command (? for help): n                                                         
    No table partition entries left 
    


  • @王哥

    [01.070]out of usb burn from boot: not need burn key
    GPT: last_usable_lba incorrect: 3B14FFC > 3a44000
    part_get_info_efi: *** ERROR: Invalid GPT ***
    GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
    part_get_info_efi: *** ERROR: Invalid Backup GPT ***
    [01.095]update part info
    GPT: last_usable_lba incorrect: 3B14FFC > 3a44000
    part_get_info_efi: *** ERROR: Invalid GPT ***
    GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
    part_get_info_efi: *** ERROR: Invalid Backup GPT ***
    [01.117]update bootcmd
    GPT: last_usable_lba incorrect: 3B14FFC > 3a44000
    part_get_info_efi: *** ERROR: Invalid GPT ***
    GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
    part_get_info_efi: *** ERROR: Invalid Backup GPT ***
    GPT: last_usable_lba incorrect: 3B14FFC > 3a44000
    part_get_info_efi: *** ERROR: Invalid GPT ***
    GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
    part_get_info_efi: *** ERROR: Invalid Backup GPT ***
    [01.160]change working_fdt 0x7eaafda8 to 0x7ea8fda8
    [01.181]update dts
    Hit any key to stop autoboot:  0
    ## Error: "distro_bootcmd" not defined
    

Log in to reply