当前位置:网站首页>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 .
边栏推荐
- Backup and restore of Android local SQLite database
- Jenkins installation
- 【 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)
- MySQL --- 数据库查询 - 排序查询、分页查询
- APICloud Studio3 WiFi真机同步和WiFi真机预览使用说明
- 先写API文档还是先写代码?
- UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xe6 in position 76131: invalid continuation byt
- [daily question] 1200 Minimum absolute difference
- 量价虽降,商业银行结构性存款为何受上市公司所偏爱?
- Operational research 68 | the latest impact factors in 2022 were officially released. Changes in journals in the field of rapid care
猜你喜欢
Flutter draws animation effects of wave movement, curves and line graphs
STM32 and motor development (from architecture diagram to documentation)
MMSeg——Mutli-view时序数据检查与可视化
Although the volume and price fall, why are the structural deposits of commercial banks favored by listed companies?
"Baidu Cup" CTF competition in September, web:upload
Could not set property ‘id‘ of ‘class XX‘ with value ‘XX‘ argument type mismatch 解决办法
ASEMI整流桥HD06参数,HD06图片,HD06应用
RHCSA8
Record in-depth learning - some bug handling
Talk about seven ways to realize asynchronous programming
随机推荐
[深度学习论文笔记]TransBTSV2: Wider Instead of Deeper Transformer for Medical Image Segmentation
[notes of in-depth study paper]transbtsv2: wider instead of deep transformer for medical image segmentation
“百度杯”CTF比赛 九月场,Web:SQL
[MySQL usage Script] catch all MySQL time and date types and related operation functions (3)
Talking about fake demand from takeout order
面试官灵魂拷问:为什么代码规范要求 SQL 语句不要过多的 join?
My colleague didn't understand selenium for half a month, so I figured it out for him in half an hour! Easily showed a wave of operations of climbing Taobao [easy to understand]
What are the private addresses
Sorry, we can't open xxxxx Docx, because there is a problem with the content (repackaging problem)
Fragmented knowledge management tool memos
Pycharm installation third party library diagram
【Hot100】33. 搜索旋转排序数组
[深度学习论文笔记]UCTransNet:从transformer的通道角度重新思考U-Net中的跳跃连接
量价虽降,商业银行结构性存款为何受上市公司所偏爱?
【MySQL 使用秘籍】一網打盡 MySQL 時間和日期類型與相關操作函數(三)
Solve Unicode decodeerror: 'GBK' codec can't decode byte 0xa2 in position 107
Shu tianmeng map × Weiyan technology - Dream map database circle of friends + 1
Write API documents first or code first?
华为推送服务内容,阅读笔记
"Baidu Cup" CTF competition in September, web:upload