• Recent
    • Docs
    • Github
    • 百度网盘
    • Onedrive
    • Official
    • Shop
    • Register
    • Login

    Cool pi 4B & CM5 探索快速安装系统新方法

    Scheduled Pinned Locked Moved Maker
    147 Posts 11 Posters 18.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jugg @大法师
      last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • J
        jugg @大法师
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • J
          jugg
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • J
            jugg
            last edited by

            628172c3-9c48-4941-89a0-39b1913ebef9-image.png
            这里这么多镜像
            到底怎么用
            用哪个

            我刷了
            42b341fd-f64f-4ee0-876a-0cc8563a44a1-image.png

            打不开啊
            c3d9a111-3bf2-4070-8a73-6e0be7ad7bc7-image.png

            怎么备份?怎么还原?能不能描述清楚
            备份是备份emmc的所以还是只备份了文件系统

            G 1 Reply Last reply Reply Quote 0
            • 大法师大
              大法师 @edwardzhou
              last edited by

              @edwardzhou said in Cool pi 4B & CM5 探索快速安装系统新方法:

              最近一直在用这个方法,非常太好用太方便了。

              我对上面的备份安装放在同一个U盘实现的方法,做了一些改进,通过启动菜单选择 备份 还是 安装, 比每次去改 initrd.img 要方便很多。

              步骤1. 编辑 /extlinux/extlinux.conf 如下

              menu title Select the boot mode
              TIMEOUT 60
              default Linux coolpi backup
              
              label Linux coolpi backup
              	kernel /Image
              	initrd /initrd-backup.img
              	fdt    /rk3588s-cp4.dtb
              	append root=LABEL=writable rw rootfstype=ext4 console=ttyS0,115200n81 quiet splash plymouth.ignore-serial-consoles vt.global_cursor_default=1 irqchip.gicv3_pseudo_nmi=0 net.ifnames=0
              
              label Linux coolpi install
              	kernel /Image
              	initrd /initrd-install.img
              	fdt    /rk3588s-cp4.dtb
              	append root=LABEL=writable rw rootfstype=ext4 console=ttyS0,115200n81 quiet splash plymouth.ignore-serial-consoles vt.global_cursor_default=1 irqchip.gicv3_pseudo_nmi=0 net.ifnames=0
              
              

              步骤2, 把 install 中的 initrd.img 复制过来,并改名为 initrd-install.img

              步骤3, 把 backup 中的 initrd.img 复制过来,并改名为 initrd-backup.img

              U盘查到板子上,上电启动。
              你局可以看到菜单

              Capacity: 30436.5 MB = 29.7 GB (62333952 x 512)
              ... is now current device
              Scanning usb 0:1...
              Found /extlinux/extlinux.conf
              Retrieving file: /extlinux/extlinux.conf
              reading /extlinux/extlinux.conf
              629 bytes read in 39 ms (15.6 KiB/s)
              Select the boot mode
              1:	Linux coolpi backup
              2:	Linux coolpi install
              Enter choice:
              

              输入1 或 2 回车即可,默认是1, 60秒无输入,则自动启动backup

              可以参考 edwardzhou 整理的内容
              @jugg

              jack@cool-pi.com

              J 1 Reply Last reply Reply Quote 0
              • J
                jugg @大法师
                last edited by

                @大法师
                根本就还原不了 各种问题

                1 Reply Last reply Reply Quote 0
                • J
                  jugg
                  last edited by

                  f7b006ea-46d7-4129-878e-89e9dd64a829-image.png
                  这就是还原出来的系统 两次都这样 根本启动不了

                  大法师大 1 Reply Last reply Reply Quote 0
                  • 大法师大
                    大法师 @jugg
                    last edited by

                    @jugg 梳理下使用方法,顶楼有iso下载链接

                    jack@cool-pi.com

                    J 2 Replies Last reply Reply Quote 0
                    • J
                      jugg @大法师
                      last edited by

                      @大法师
                      553d4e48-15ce-4861-92bb-8043f37e75f1-image.png
                      把备份盘的放到这里 不就可以了?
                      备份的时候显示器有进度 还原过程显示器也有进度 中间都没有异常
                      但是还原的系统就是上面那样 开不了机

                      1 Reply Last reply Reply Quote 0
                      • J
                        jugg @大法师
                        last edited by

                        @大法师
                        fef9e19b-c316-4d79-a85e-5dc1c297f6e7-image.png

                        24b0e1b8-3447-469d-9302-fe709a7ff5b1-image.png
                        备份盘的backup里面的内容已经剪切出来了

                        209b1691-823c-403f-be1a-18aea0134702-image.png

                        3b496848-bff3-44ef-9cb5-d89e806302a2-image.png
                        rufus 做的系统盘和备份盘
                        这中间有什么问题?

                        这些系统盘和备份盘 都是我新做的
                        之前做的盘备份、还原都行
                        这次的不行 我就重新刷了一遍 结果还是一样

                        1 Reply Last reply Reply Quote 0
                        • J
                          jugg
                          last edited by

                          昨天我用我之前做的备份盘 备份系统 发现一备份就死机
                          然后重新刷了备份盘 备份成功
                          结果还原的系统进不去
                          然后又刷了还原盘
                          结果还原的还是进不去
                          (https://cool-pi.com/topic/360/系统备份异常/6)

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            jack_admin @jugg
                            last edited by

                            @jugg 可以试下把你本地内核源码目录,编译生成的Image、dtb文件拷贝到U盘(U盘 根目录 install盘或backup盘)

                            J 2 Replies Last reply Reply Quote 0
                            • J
                              jugg @jack_admin
                              last edited by

                              @jack_admin 没用 刷了 还是进不去

                              1 Reply Last reply Reply Quote 0
                              • J
                                jugg @jack_admin
                                last edited by

                                @jack_admin
                                有没有一个靠谱的方法备份、还原系统?

                                1 Reply Last reply Reply Quote 0
                                • 大法师大
                                  大法师
                                  last edited by 大法师

                                  这个方法我一直在用,没遇到你说的现象。U盘多大容量,需要备份的系统有多大,系统还原异常的完整log输出一份

                                  jack@cool-pi.com

                                  J 1 Reply Last reply Reply Quote 0
                                  • J
                                    jugg @大法师
                                    last edited by

                                    @大法师
                                    U盘16G 备份的系统3个G不到
                                    这个就是备份盘 备份出来的backup文件夹的内容
                                    0cf2f974-94fd-402b-a83c-5534aac63be4-image.png

                                    串口输出

                                    COOLPI LOADER BY YANYI(Jan 04 2023)
                                    
                                    DRAM:  8 GiB
                                    Using default environment
                                    
                                    0 2 1 3 6 8 7 9 trsv ln0 mon rx cdr lock timeout
                                    dp@fde50000 disconnected
                                    Monitor has basic audio support
                                    hdmi info isn't saved in main block
                                    mode:1920x1080 bus_format:0x100a
                                    hdmi@fde80000:  detailed mode clock 148500 kHz, flags[5]
                                        H: 1920 2008 2052 2200
                                        V: 1080 1084 1089 1125
                                    bus_format: 100a
                                    VOP update mode to: 1920x1080p0, type: HDMI0 for VP0
                                    dclk:148500,if_pixclk_div;2,if_dclk_div:4
                                    rockchip_vop2_init: hdmi0_phy_pll may not define
                                    rockchip_vop2_init: hdmi1_phy_pll may not define
                                    assigned-clock-parents's node not define
                                    VP0 set crtc_clock to 148500KHz
                                    VOP VP0 enable Esmart0[356x124->356x124@782x478] fmt[1] addr[0xedf21000]
                                    CEA mode used vic=16
                                    mtmdsclock:148500000
                                    bus_width:0x16a8c8,bit_rate:1485000
                                    hdptx_ropll_cmn_config bus_width:16a8c8 rate:1485000
                                    hdptx phy pll locked!
                                    hdptx phy lane locked!
                                    dw_hdmi_setup HDMI mode
                                    don't use dsc mode
                                    dw hdmi qp use tmds mode
                                    Autoboot in 1 seconds
                                    trsv ln0 mon rx cdr lock timeout
                                    dp@fde50000 disconnected
                                    VOP VP0 enable Esmart0[356x124->356x124@782x478] fmt[1] addr[0xedf21000]
                                    starting USB...
                                    Bus usb@fc880000: USB EHCI 1.00
                                    scanning bus usb@fc880000 for devices... 2 USB Device(s) found
                                           scanning usb for storage devices... 1 Storage Device(s) found
                                    
                                    Device 0: Vendor: Generic  Rev: 8.07 Prod: Flash Disk      
                                                Type: Removable Hard Disk
                                                Capacity: 30000.0 MB = 29.2 GB (61440000 x 512)
                                    ... is now current device
                                    Scanning usb 0:1...
                                    Found /extlinux/extlinux.conf
                                    Retrieving file: /extlinux/extlinux.conf
                                    reading /extlinux/extlinux.conf
                                    274 bytes read in 35 ms (6.8 KiB/s)
                                    1:	Linux coolpi
                                    Retrieving file: /initrd.img
                                    reading /initrd.img
                                    8913121 bytes read in 807 ms (10.5 MiB/s)
                                    Retrieving file: /Image
                                    reading /Image
                                    37706240 bytes read in 3478 ms (10.3 MiB/s)
                                    append: root=LABEL=writable rw rootfstype=ext4 console=tty0 quiet splash plymouth.ignore-serial-consoles vt.global_cursor_default=1 irqchip.gicv3_pseudo_nmi=0 net.ifnames=0 rtleth=ethaddr:d6:c9:c9:a0:cf:46
                                    Retrieving file: /rk3588s-cp4.dtb
                                    reading /rk3588s-cp4.dtb
                                    141838 bytes read in 47 ms (2.9 MiB/s)
                                    ## Flattened Device Tree blob at 0x0a100000
                                       Booting using the fdt blob at 0x0a100000
                                       Loading Ramdisk to eb154000, end eb9d40e1 ... OK
                                       Loading Device Tree to 00000000eb12e000, end 00000000eb153a0d ... OK
                                    Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000)
                                    Adding bank: 0x09400000 - 0xf0000000 (size: 0xe6c00000)
                                    Adding bank: 0x100000000 - 0x200000000 (size: 0x100000000)
                                    Adding bank: 0x2f0000000 - 0x300000000 (size: 0x10000000)
                                    
                                    Starting kernel ...
                                    
                                    I/TC: Secondary CPU 4 initializing
                                    I/TC: Secondary CPU 4 switching to normal world boot
                                    I/TC: Secondary CPU 5 initializing
                                    I/TC: Secondary CPU 5 switching to normal world boot
                                    I/TC: Secondary CPU 6 initializing
                                    I/TC: Secondary CPU 6 switching to normal world boot
                                    I/TC: Secondary CPU 7 initializing
                                    I/TC: Secondary CPU 7 switching to normal world boot
                                    I/TC: Secondary CPU 1 initializing
                                    I/TC: Secondary CPU 1 switching to normal world boot
                                    I/TC: Secondary CPU 2 initializing
                                    I/TC: Secondary CPU 2 switching to normal world boot
                                    I/TC: Secondary CPU 3 initializing
                                    I/TC: Secondary CPU 3 switching to normal world boot
                                    

                                    显示器输出
                                    5c627cb5-be0f-481a-bf2e-e94f366c8c24-lQDPJw74dWd2tbrNC9DND8CwtgQ9wjD5uyQEiOtafIAzAA_4032_3024.jpg

                                    我这备份出来的系统无法还原 我都试了很多次了

                                    大法师大 1 Reply Last reply Reply Quote 0
                                    • 大法师大
                                      大法师 @jugg
                                      last edited by

                                      @jugg backup文件夹的内容传一份私发我试下

                                      jack@cool-pi.com

                                      J 2 Replies Last reply Reply Quote 0
                                      • J
                                        jugg @大法师
                                        last edited by

                                        @大法师
                                        新做的安装盘可以刷系统
                                        备份盘的backup更新到安装盘的install目录下 就刷不了系统 直接就进系统了
                                        有没有详细操作过程 到底怎么操作才能保证能刷

                                        1 Reply Last reply Reply Quote 0
                                        • J
                                          jugg @大法师
                                          last edited by

                                          @大法师
                                          是不是新的系统备份出来的不能 旧的系统备份出来的才能还原
                                          可以试试0613的系统备份出来的 能不能还原

                                          大法师大 1 Reply Last reply Reply Quote 0
                                          • 大法师大
                                            大法师 @jugg
                                            last edited by

                                            @jugg 先确认安装U盘是否可用,备份U盘是否可用。用备份好的U盘,把backup目录文件拷贝到安装U盘install目录

                                            jack@cool-pi.com

                                            J 2 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 5 / 8
                                            • First post
                                              Last post