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



  • @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
    


  • @王哥 我用了最新的0.4版本就好了,谢谢了



  • @darkgeek sudo gzip -dc RVBoards_D1_Debian_lxde_img_linux_v0.3.gz | sudo dd of=/dev/sdc,你改下命令把



  • @王哥 和那位老哥类似,我这边用的也是dd刷到sd卡启动的,报错如下:

    [00.440]DRAM:  Unhandled exception: Store/AMO access fault                     
    EPC: 0000000042070462 TVAL: 00000000beacffb8                                   
    ### ERROR ### Please RESET the board ### 
    

    dd的方法:

    gunzip RVBoards_D1_Debian_lxde_img_linux_v0.3.gz
    sudo dd if=RVBoards_D1_Debian_lxde_img_linux_v0.3 of=/dev/sda bs=1M status=progress
    


  • @mengzhuo 你有遇到啥问题嘛,报错发一下啊,,,



  • @fallenwood 没有intel机器咋整……



  • 如果是unix 系统刷要做特殊操作么?我用dd刷了镜像还是没法启动



  • @qhddz 工具链的话可以在全志的open-sdk里面自行拷贝,或者加入RVBoards的QQ群906962594,群文件里有玄铁的工具链,项目大的话,推荐交叉编译,不然编译时间太长。



  • @qhddz 过段时间会开放的,敬请期待!



  • This post is deleted!


  • @王哥 编译tina的gcc是C-SKY的8.1.0版本,但是debian自带的是gcc-10,玄铁的cpu据说加了很多特色指令。用标准的debian自带的gcc去编译玄铁的东西,请教一下会带来哪些影响呢?



  • @王哥 请问debian rootfs的编译流程开放吗?


Log in to reply