当前位置:网站首页>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 :
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
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
Then download pmon, Will download pmon It's all in
/tmp/
Under the folderPMON link Failure / Success shows gzrom.bin http://ftp.loongnix.cn/embedd/ls2k/ After downloading this, you can't boot , Feeling is ls1b model gzrom4g.bin http://ftp.loongnix.cn/embedd/ls2k/ After downloading this, you can't boot gzrom-2h3a300m.bin http://ftp.loongnix.cn/embedd/others/zd/ ditto ️gzrom-dtb.bin http://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 :
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
Burn
sudo ./ejtag_debug_usb -t source configs/config.ls2k program_cachelock /tmp/gzrom-dtb.bin # pmon The path of
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.iso | http://ftp.loongnix.cn/embedd/os/ | |
️loongnix-1.0-2005-livecd.iso | http://ftp.loongnix.cn/loongsonpi/pi_2/OS/Loongnix/ | This image is installed |
loongbian_buster_ls2k_base_20201220.iso | loongbian_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 .
Download the image to Ubuntu In a directory of , such as
~/loongson
, The first thing to do is to create loongson The catalog ofSwitch to the directory
cd ~/loongson
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
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 .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
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 .
边栏推荐
- stm32逆向入门
- Win10 - lightweight gadget
- Operational research 68 | the latest impact factors in 2022 were officially released. Changes in journals in the field of rapid care
- FPGA learning notes: vivado 2019.1 add IP MicroBlaze
- APICloud Studio3 API管理与调试使用教程
- How to protect user privacy without password authentication?
- Simple page request and parsing cases
- “百度杯”CTF比赛 九月场,Web:SQL
- Binder communication process and servicemanager creation process
- 数据泄露怎么办?'华生·K'7招消灭安全威胁
猜你喜欢
stm32逆向入门
LB10S-ASEMI整流桥LB10S
Can and can FD
面试官灵魂拷问:为什么代码规范要求 SQL 语句不要过多的 join?
Jenkins installation
Navigation property and entityset usage in SAP segw transaction code
DataPipeline双料入选中国信通院2022数智化图谱、数据库发展报告
Record in-depth learning - some bug handling
Binder communication process and servicemanager creation process
go 数组与切片
随机推荐
Default parameters of function & multiple methods of function parameters
Integer = = the comparison will unpack automatically. This variable cannot be assigned empty
mysql econnreset_ Nodejs socket error handling error: read econnreset
leetcode 10. Regular Expression Matching 正则表达式匹配 (困难)
聊聊异步编程的 7 种实现方式
数据湖(七):Iceberg概念及回顾什么是数据湖
Matlab paper chart standard format output (dry goods)
"Baidu Cup" CTF competition in September, web:sql
Write API documents first or code first?
MATLAB论文图表标准格式输出(干货)
Cloudcompare - point cloud slice
爱可生SQLe审核工具顺利完成信通院‘SQL质量管理平台分级能力’评测
法国学者:最优传输理论下对抗攻击可解释性探讨
手把手带你入门Apache伪静态的配置
南理工在线交流群
【 script secret pour l'utilisation de MySQL 】 un jeu en ligne sur l'heure et le type de date de MySQL et les fonctions d'exploitation connexes (3)
Summary and arrangement of JPA specifications
There is no monitoring and no operation and maintenance. The following is the commonly used script monitoring in monitoring
Put functions in modules
AVC1与H264的区别