当前位置:网站首页>Godson 2nd generation burn PMON and reload system

Godson 2nd generation burn PMON and reload system

2022-07-05 13:27:00 Orange civet cat

Problem description

Originally, I just turned on and couldn't enter the operating system , It was not clear at that time PMON What's the function , Think with Ubuntu Under the tty0 almost , Accidentally deleted during the process of entering the command line PMON, From then on, the development board becomes brick .

At that time, I said this question to the technicians in despair , The kind Mr. long sent me his EJTAG, So there is the next burning PMON And the process of reinstalling the system .

burning PMON

Environmental Science

Environmental Science explain
operating system Ubuntu 20.04

Burning process

according to 《 Godson Ejtag Brief introduction 》 Burn :

  1. download ejtag Software

    Because the official website provided in the document has expired , So I really csdn I found one on the Internet ejtag-debug-v3.25.19.tar.gz Download address :https://download.csdn.net/download/xiaolong1126626497/18927988

  2. I will download ejtag-debug-v3.25.19.tar.gz It's decompressed Ubuntud Of ~/Download

    tar zxvf ejtag-debug-v3.25.19.tar.gz
    

    Then go to cd /ejtag_debug

  3. Then download pmon, Will download pmon It's all in /tmp/ Under the folder

    PMON link Failure / Success shows
    gzrom.binhttp://ftp.loongnix.cn/embedd/ls2k/ After downloading this, you can't boot , Feeling is ls1b model
    gzrom4g.binhttp://ftp.loongnix.cn/embedd/ls2k/ After downloading this, you can't boot
    gzrom-2h3a300m.binhttp://ftp.loongnix.cn/embedd/others/zd/ ditto
    ️gzrom-dtb.binhttp://ftp.loongnix.cn/loongsonpi/pi_2/source/ Longxin school 2 Generation exclusive PMON
    pmon-ls2k.bin It can be turned on , But the system cannot be reinstalled , I feel it is suitable for education

    The following is the picture of unable to reinstall the system , Will be stuck here all the time :

     Insert picture description here

  4. The simulator USB End to Ubuntu On , The other section connects the development board in the way shown in the figure , Connect the development board to the power supply

     Insert picture description here
     Insert picture description here

  5. Burn

    sudo ./ejtag_debug_usb -t
    source configs/config.ls2k
    program_cachelock /tmp/gzrom-dtb.bin  # pmon The path of 
    
  6. After writing the command , Press the start key or restart key on the development board , Start burning , Wait until the terminal stops , Press the restart key on the development board .

Reshipment system

Download mirroring

Downloaded image link explain
loongnix-20180531.isohttp://ftp.loongnix.cn/embedd/os/
️loongnix-1.0-2005-livecd.isohttp://ftp.loongnix.cn/loongsonpi/pi_2/OS/Loongnix/ This image is installed
loongbian_buster_ls2k_base_20201220.isoloongbian_buster_ls2k_base_20201220.iso

Make the startup disk

According to this blog Godson education school started from scratch ( One )—— Production starts U disc 、 Turn on SSH service 、 download Loongpio library use UltraISO Failed to create startup disk ,U After disc insertion PMON I can't recognize , So only in Ubuntu Next, make a startup disk .

  1. Download the image to Ubuntu In a directory of , such as ~/loongson, The first thing to do is to create loongson The catalog of

  2. Switch to the directory cd ~/loongson

  3. Insert a greater than 4G Of U Disk as a startup disk ,U The contents of the disk will be formatted , So it's better to be empty U disc

  4. Input... At the terminal sudo fdisk -l find U The device symbol corresponding to the disk , For example, if the system comes with a hard disk , It's usually /dev/sda, Insert a U disc , The corresponding is /dev/sdb 了 , This must not be mistaken .

  5. Enter the following command at the terminal to start making the startup disk :

    sudo dd if=xxx.ios of=dev/sdy    # xxx Represents the installation disk ios Image file path ,y On behalf of U Device symbol of disk 
     Such as :sudo dd if=loongnix-1.0-2005-livecd.iso   of=dev/sdb
    #  After entering the above command , The terminal will react nothing , It will take about ten to twenty minutes , There will be a prompt that the burning is complete or something wrong happens 
    sync  #  Better input sync
    
  6. Then insert the startup disk into the development board

    There could be catons , Just wait patiently , For specific installation operations, please refer to 《Loongnix-1.0.2003 Installation manual 》

    Or reference video Godson TechLive The first phase : install Loongnix System

    ps: I partition according to the method in the video , As soon as I start up, I say I don't have enough disk space ; Another problem is that I have insufficient authority , Therefore, it is still installed according to the way in the document .

Reference link
The embedded Linux Development : Godson 2K1000 Use EJTAG burning POPM: Burned PMON There is a problem , But the steps are not wrong
Godson education school started from scratch ( One )—— Production starts U disc 、 Turn on SSH service 、 download Loongpio library : This blogger uses the education school , I don't know PMON Dissimilarity , The system disk burned according to his method cannot be read
Godson TechLive The first phase : install Loongnix System : amusing up Lord , But there is a problem with the system at the end of the operation according to his steps .

in addition
I packed the tools and files mentioned in the article into my resources .

原网站

版权声明
本文为[Orange civet cat]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207051320495311.html