20250519使用TF卡將NanoPi NEO core開發板刷機為Ubuntu core22.04.3系統完成之后執行poweroff自動關機

1、h3-sd-friendlycore-xenial-4.14-armhf-20210618.img.gz 在WIN10下使用7-ZIP解壓縮/ubuntu20.04下使用tar
2、Win32DiskImager.exe 寫如32GB的TF卡。【以管理員身份運行】
3、TF卡如果已經做過會有3個磁盤分區,可以使用SD Card Formatter/SDCardFormatterv5_WinEN.zip格式化TF卡。DiskGenius可以嘗試。

制作好Ubuntu core22.04.3系統的IMG固件之后,還需要你編輯TF卡中的文件:
1、修改H:\eflasher.conf
autoStart=/mnt/sdcard/friendlycore-jammy
autoExit=true

2、root@NanoPi-NEO-Core:/opt# vi run-eflasher.sh?
root@NanoPi-NEO-Core:/opt# cat run-eflasher.sh?
poweroff

如果能夠直接編輯IMG固件就好了。到時候寫TF卡之后不需要每次都來編輯這兩個文件。


20250519使用TF卡將NanoPi NEO core開發板刷機為Ubuntu core22.04.3系統完成之后執行poweroff自動關機
2025/5/19 15:38


緣起:在上電之后,TF卡將NanoPi NEO core開發板刷機之后自動關機,安全/保險一點。
【不會丟數據^_】

【你放心吧】生產線的工人只會問你插入TF卡之后上電幾分鐘刷機完成。【2分鐘搞定】
不要想他們會去看DEBUG串口打印信息。


【切記,不需要在H:\eflasher.conf的autoStart項目之后手工輸入autoExit項目。conf配置文件有/自帶的。^_】
1、使用Win32DiskImager.exe寫TF卡之后,將TF卡插入讀卡器之后插入到WIN10/WIN11的電腦。
【理論上在ubuntu20.04.6下使用gedit修改也OK的。】
修改H:\eflasher.conf。【具體盤符H以您的電腦為準。^_不通的電腦肯定會變化的!】

C:\TF1emmc-jammy22.04\FriendlyARM\eflasher.conf

; This is the eFlasher configuration file.
; See http://wiki.friendlyarm.com/wiki/index.php/EFlasher for detailed information.

[General]
; Automate OS installation at system startup,
; Use the "autoStart" field to specify the image path or RAW image file,
; The RAW image file can be a gzip compressed file,
; The RAW image file extension must be ".raw" or ".gz",
; Available values: friendlycore-jammy
autoStart=friendlycore-jammy

; If the "autoExit" field set to true, the eflasher-gui will automatically exit after burning or restoring is completed,?
; You can do something else after burning or restoring by modifying /opt/run-eflasher.sh.
autoExit=false

; Don't erase the flash before burning, useful if you only want to update part of the system files
disableLowFormatting=false

[UI]
; HDMI overscan option, examples:
;?? ? screenSizePercent=auto
;?? ? screenSizePercent=90
screenSizePercent=auto

welcomeMessage=
hideMenuButton=false
hideBackupAndRestoreButton=false
hideStatusBar=false
autoRebootWhenSDBeEjected=true


修改成為:
H:\eflasher.conf

; This is the eFlasher configuration file.
; See http://wiki.friendlyarm.com/wiki/index.php/EFlasher for detailed information.

[General]
; Automate OS installation at system startup,
; Use the "autoStart" field to specify the image path or RAW image file,
; The RAW image file can be a gzip compressed file,
; The RAW image file extension must be ".raw" or ".gz",
; Available values: friendlycore-jammy
autoStart=/mnt/sdcard/friendlycore-jammy

; If the "autoExit" field set to true, the eflasher-gui will automatically exit after burning or restoring is completed,?
; You can do something else after burning or restoring by modifying /opt/run-eflasher.sh.
autoExit=true

; Don't erase the flash before burning, useful if you only want to update part of the system files
disableLowFormatting=false

[UI]
; HDMI overscan option, examples:
;?? ? screenSizePercent=auto
;?? ? screenSizePercent=90
screenSizePercent=auto

welcomeMessage=
hideMenuButton=false
hideBackupAndRestoreButton=false
hideStatusBar=false
autoRebootWhenSDBeEjected=true


2、將TF卡插入到NanoPi NEO core開發板,使用vi編輯run-eflasher.sh:【加入poweroff關機】

詳細LOG:
root@NanoPi-NEO-Core:/# ll
total 72
drwxr-xr-x ?19 root root ?4096 Mar 20 14:32 ./
drwxr-xr-x ?19 root root ?4096 Mar 20 14:32 ../
drwxr-xr-x ? 2 root root ?4096 Mar 20 14:32 Settings/
lrwxrwxrwx ? 1 root root ? ? 7 Aug 22 ?2023 bin -> usr/bin/
drwxr-xr-x ? 2 root root ?4096 Apr 18 ?2022 boot/
drwxr-xr-x ?14 root root ?3860 Mar 20 14:32 dev/
drwxr-xr-x ?65 root root ?4096 Mar 20 14:32 etc/
drwxr-xr-x ? 3 root root ?4096 Aug 22 ?2023 home/
lrwxrwxrwx ? 1 root root ? ? 7 Aug 22 ?2023 lib -> usr/lib/
drwx------ ? 2 root root 16384 Apr ?2 ?2025 lost+found/
drwxr-xr-x ? 2 root root ?4096 Aug 22 ?2023 media/
drwxr-xr-x ? 4 root root ?4096 Mar 21 ?2025 mnt/
drwxr-xr-x ? 2 root root ?4096 Nov 28 ?2024 opt/
dr-xr-xr-x 116 root root ? ? 0 Jan ?1 ?1970 proc/
drwx------ ? 2 root root ?4096 Mar 20 ?2023 root/
drwxr-xr-x ?19 root root ? 520 Mar 20 14:32 run/
lrwxrwxrwx ? 1 root root ? ? 8 Aug 22 ?2023 sbin -> usr/sbin/
drwxr-xr-x ? 2 root root ?4096 Aug 22 ?2023 srv/
dr-xr-xr-x ?12 root root ? ? 0 Feb 11 ?2016 sys/
drwxrwxrwt ?11 root root ?4096 Mar 20 14:32 tmp/
drwxr-xr-x ?11 root root ?4096 Jul 16 ?2024 usr/
drwxr-xr-x ?11 root root ?4096 Aug 22 ?2023 var/
root@NanoPi-NEO-Core:/# cd opt/
root@NanoPi-NEO-Core:/opt# ll
total 3248
drwxr-xr-x ?2 root root ? ?4096 Nov 28 ?2024 ./
drwxr-xr-x 19 root root ? ?4096 Mar 20 14:32 ../
-rwxr-xr-x ?1 root root 3309892 Mar 19 ?2025 eflasher-gui*
-rwxr-xr-x ?1 root root ? ? ?80 Aug 25 ?2022 run-eflasher.sh*
root@NanoPi-NEO-Core:/opt#?
root@NanoPi-NEO-Core:/opt#?
root@NanoPi-NEO-Core:/opt# cp run-eflasher.sh /etc/
root@NanoPi-NEO-Core:/opt# ll
total 3248
drwxr-xr-x ?2 root root ? ?4096 Nov 28 ?2024 ./
drwxr-xr-x 19 root root ? ?4096 Mar 20 14:32 ../
-rwxr-xr-x ?1 root root 3309892 Mar 19 ?2025 eflasher-gui*
-rwxr-xr-x ?1 root root ? ? ?80 Aug 25 ?2022 run-eflasher.sh*
root@NanoPi-NEO-Core:/opt#?
root@NanoPi-NEO-Core:/opt#?
root@NanoPi-NEO-Core:/opt# vi run-eflasher.sh?
root@NanoPi-NEO-Core:/opt#?
root@NanoPi-NEO-Core:/opt#?
root@NanoPi-NEO-Core:/opt# vi run-eflasher.sh?
root@NanoPi-NEO-Core:/opt# ll
total 3248
drwxr-xr-x ?2 root root ? ?4096 Nov 28 ?2024 ./
drwxr-xr-x 19 root root ? ?4096 Mar 20 14:32 ../
-rwxr-xr-x ?1 root root 3309892 Mar 19 ?2025 eflasher-gui*
-rwxr-xr-x ?1 root root ? ? ?91 Mar 20 14:34 run-eflasher.sh*
root@NanoPi-NEO-Core:/opt# cat run-eflasher.sh?
#!/bin/bash

. /usr/bin/setqt4env

cd /opt/
./eflasher-gui -qws >/dev/null 2>&1

poweroff

root@NanoPi-NEO-Core:/opt# sync
root@NanoPi-NEO-Core:/opt# sync
root@NanoPi-NEO-Core:/opt# poweroff


3、上電刷機的LOG:
【在黃燈快閃的時候,通過top可以看見:eflasher-+ 在工作ING中!】

[ ?OK ?] Finished Permit User Sessions.
[ ?OK ?] Started Serial Getty on ttyS0.
? ? ? ? ?Starting Set console scheme...
[ ?OK ?] Finished Set console scheme.
[ ?OK ?] Created slice Slice /system/getty.
[ ?OK ?] Finished Load/Save Random Seed.
[ ?OK ?] Started OpenBSD Secure Shell server.

Ubuntu 22.04 LTS NanoPi-NEO-Core ttyS0

Default Login:
Username = pi
Password = pi

NanoPi-NEO-Core login: root
Password:?
Last login: Mon Mar 20 14:32:28 UTC 2023 on ttyS0
root@NanoPi-NEO-Core:~# top
top - 14:32:38 up 0 min, ?1 user, ?load average: 1.06, 0.27, 0.09
Tasks: 102 total, ? 2 running, 100 sleeping, ? 0 stopped, ? 0 zombie
%Cpu(s): ?2.7 us, 13.6 sy, ?0.0 ni, 53.6 id, 30.0 wa, ?0.0 hi, ?0.0 si, ?0.0 st
MiB Mem : ? ?491.8 total, ? ? 32.8 free, ? ? 74.6 used, ? ?384.4 buff/cache
MiB Swap: ? ? ?0.0 total, ? ? ?0.0 free, ? ? ?0.0 used. ? ?401.8 avail Mem?

? PID USER ? ? ?PR ?NI ? ?VIRT ? ?RES ? ?SHR S ?%CPU ?%MEM ? ? TIME+ COMMAND ? ?
? 374 root ? ? ?20 ? 0 ?102776 ?40396 ?19364 S ?16.7 ? 8.0 ? 0:06.80 eflasher-+?

? 515 root ? ? ?20 ? 0 ? ?5712 ? 2068 ? 1804 R ?12.5 ? 0.4 ? 0:00.09 top ? ? ? ?
? ? 1 root ? ? ?20 ? 0 ? 31656 ? 7472 ? 5728 S ? 0.0 ? 1.5 ? 0:05.45 systemd ? ?
? ? 2 root ? ? ?20 ? 0 ? ? ? 0 ? ? ?0 ? ? ?0 S ? 0.0 ? 0.0 ? 0:00.00 kthreadd ??
? ? 3 root ? ? ?20 ? 0 ? ? ? 0 ? ? ?0 ? ? ?0 I ? 0.0 ? 0.0 ? 0:00.00 kworker/0+?
? ? 4 root ? ? ? 0 -20 ? ? ? 0 ? ? ?0 ? ? ?0 I ? 0.0 ? 0.0 ? 0:00.00 kworker/0+?
? ? 5 root ? ? ?20 ? 0 ? ? ? 0 ? ? ?0 ? ? ?0 I ? 0.0 ? 0.0 ? 0:00.05 kworker/u+?
? ? 6 root ? ? ? 0 -20 ? ? ? 0 ? ? ?0 ? ? ?0 I ? 0.0 ? 0.0 ? 0:00.00 mm_percpu+?
? ? 7 root ? ? ?20 ? 0 ? ? ? 0 ? ? ?0 ? ? ?0 S ? 0.0 ? 0.0 ? 0:00.03 ksoftirqd+?
? ? 8 root ? ? ?20 ? 0 ? ? ? 0 ? ? ?0 ? ? ?0 I ? 0.0 ? 0.0 ? 0:00.09 rcu_sched ?
? ? 9 root ? ? ?20 ? 0 ? ? ? 0 ? ? ?0 ? ? ?0 I ? 0.0 ? 0.0 ? 0:00.00 rcu_bh ? ??
? ?10 root ? ? ?rt ? 0 ? ? ? 0 ? ? ?0 ? ? ?0 S ? 0.0 ? 0.0 ? 0:00.03 migration+?
? ?11 root ? ? ?20 ? 0 ? ? ? 0 ? ? ?0 ? ? ?0 S ? 0.0 ? 0.0 ? 0:00.00 cpuhp/0 ? ?
? ?12 root ? ? ?20 ? 0 ? ? ? 0 ? ? ?0 ? ? ?0 S ? 0.0 ? 0.0 ? 0:00.00 cpuhp/1 ? ?
? ?13 root ? ? ?rt ? 0 ? ? ? 0 ? ? ?0 ? ? ?0 S ? 0.0 ? 0.0 ? 0:00.00 migration+?
? ?14 root ? ? ?20 ? 0 ? ? ? 0 ? ? ?0 ? ? ?0 S ? 0.0 ? 0.0 ? 0:00.01 ksoftirqd+?
top - 14:32:41 up 0 min, ?1 user, ?load average: 1.06, 0.27, 0.09
Tasks: 101 total, ? 2 running, ?99 sleeping, ? 0 stopped, ? 0 zombie
%Cpu(s): ?0.9 us, 13.0 sy, ?0.0 ni, 80.1 id, ?6.0 wa, ?0.0 hi, ?0.0 si, ?0.0 st
MiB Mem : ? ?491.8 total, ? ? 26.3 free, ? ? 74.6 used, ? ?390.9 buff/cache
MiB Swap: ? ? ?0.0 total, ? ? ?0.0 free, ? ? ?0.0 used. ? ?401.5 avail Mem?


4、完美謝幕/曲終人散,上電大概2分鐘之后,你就可以看到TF卡旁邊的紅燈/黃燈都滅了!
【刷機完成了。拔卡,下一個!NEXT ^_】

如果你接入了串口,就可以在串口打印中看到NanoPi NEO core開發板執行關機步驟的LOG了。

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/diannao/84084.shtml
繁體地址,請注明出處:http://hk.pswp.cn/diannao/84084.shtml
英文地址,請注明出處:http://en.pswp.cn/diannao/84084.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

編譯Qt5.15.16并啟用pdf模塊

編譯Qt5.15.16并啟用pdf模塊 標題1.目錄設置 -q-bulid –qt-everywhere-src-5.15.16 –bulid cd bulid 必須,否則會提示Project ERROR: You cannot configure qt separately within a top-level build. create .qmake.stash and .qmake.super in build folder …

“智”斗秸稈焚燒,考拉悠然以科技之力筑牢生態安全防線

清晨,薄霧籠罩著遼闊的田野,農民們開始了一天的勞作。然而,隨著收割季的到來,秸稈焚燒問題也逐漸浮現,成為威脅空氣質量與生態安全的隱患。傳統監管方式往往顯得力不從心,效率低下的困境亟待突破。在此背景…

Nockchain項目部署教程

Nockchain頭礦窗口正在打開,不拼設備,現在部署,馬上就要開挖了。 一、項目介紹 Nockchain 是結合了POW和ZKVM的區塊鏈協議。 主要特點: 1)計算存儲新域名空間三位一體架構,高吞吐量 2)使用No…

2025年氣候持續大風,消納減少,如何保收益?東潤能源整體解決方案持續保收益保增長

引言 隨著全球氣候變化加劇,2025年極端天氣頻發,風資源豐富但電網消納能力不足的問題日益突出,導致許多風電項目面臨限電、收益下滑的挑戰。如何在復雜的氣候和電力市場環境下保障投資收益,成為行業關注的焦點。東潤能源憑借領先的技術創新和綜合能源解決方案,為風電行業…

2023河南CCPC省賽vp部分補題

A 模擬 暴力 對每個合法的前綴&#xff0c;判斷后綴是不是合法 int a[29]; void solve(){string s;cin>>s;int t-1;if(s.size()1){return cout<<"NaN"<<endl,void();}for(int i0;i<27;i) a[i]0;for(int i0;i<s.size();i){a[s[i]-a];if(…

【2025保姆級】Open-WebUI五大功能區首曝!第一篇:管理員面板深度拆解,手把手講解配置AI管理中樞

【2025保姆級】Open-WebUI五大功能區首曝&#xff01;第一篇&#xff1a;管理員面板深度拆解&#xff0c;手把手講解&配置AI管理中樞 一、引言二、用戶2.1 概述2.2 權限組 三、競技場評估四、函數五、設置5.1 通用5.1.1 身份驗證5.1.2 功能 5.2 外部連接5.2.1 OpenAI API5.…

docker上傳鏡像

向Docker Hub上傳鏡像&#xff0c;需要按照一定的步驟進行操作。 Docker Hub是Docker的官方鏡像倉庫&#xff0c;用戶可以在其中存儲、管理和部署Docker鏡像。要向Docker Hub上傳鏡像&#xff0c;請遵循以下步驟&#xff1a; 創建Docker Hub賬戶&#xff1a; 訪問Docker Hub官…

(十三)深入了解AVFoundation-采集:視頻幀采集與實時濾鏡處理

引言 在移動應用中&#xff0c;實時視頻處理已成為視頻拍攝、短視頻、直播、美顏相機等功能的核心技術之一。從簡單的濾鏡疊加&#xff0c;到復雜的美顏、AR 特效&#xff0c;背后都離不開對每一幀圖像的高效采集與處理。在前幾篇文章中&#xff0c;我們已經實現了基本的視頻采…

數字政務安全實戰:等保2.0框架下OA系統防護全解析

近期在Python基礎教學領域深入鉆研函數機制、數據結構優化等內容時&#xff0c;深刻意識到信息安全作為技術基石的戰略價值。在政務數字化轉型浪潮中&#xff0c;Python憑借其高擴展性與豐富的安全生態庫&#xff0c;成為構建政務OA系統安全防護體系的核心工具。本文將以等保2.…

Pytorch項目實戰-2:花卉分類

一、前言 在深度學習項目中&#xff0c;數據集的處理和模型的訓練、測試、預測是關鍵環節。本文將為小白詳細介紹從數據集搜集、清洗、劃分到模型訓練、測試、預測以及模型結構查看的全流程&#xff0c;附帶代碼和操作說明&#xff0c;讓你輕松上手&#xff01; 二、數據集 …

React Flow 邊事件處理實戰:鼠標事件、鍵盤操作及連接規則設置(附完整代碼)

本文為《React Agent&#xff1a;從零開始構建 AI 智能體》專欄系列文章。 專欄地址&#xff1a;https://blog.csdn.net/suiyingy/category_12933485.html。項目地址&#xff1a;https://gitee.com/fgai/react-agent&#xff08;含完整代碼示?例與實戰源&#xff09;。完整介紹…

java小結(一)

java&#xff08;上&#xff09; 模塊一 1.JDK,JRE,JVM 知識點 核心內容 易混淆點 JDK定義 Java Development Kit&#xff08;Java開發工具包&#xff09;&#xff0c;包含開發所需全部工具 JDK包含JRE的關系容易混淆 JRE定義 Java Runtime Environment&#xff08;Jav…

ddns-go安裝介紹-強大的ipv6動態域名解析神器-家庭云計算專家

ddns-go 是一款輕量級開源動態域名解析工具&#xff0c;專注于解決動態IP環境下的域名綁定問題&#xff0c;尤其適配IPv6網絡環境。其核心功能包括&#xff1a; 1.IPv6動態解析&#xff1a;自動檢測本地IPv6地址變化&#xff08;支持網卡、接口或命令獲取&#xff09;&#xf…

Docker-mongodb

拉取 MongoDB 鏡像: docker pull mongo 創建容器并設置用戶&#xff1a; 要掛載本地數據目錄&#xff0c;請替換此路徑: /Users/Allen/Env/AllenDocker/mongodb/data/db docker run -d --name local-mongodb \-e MONGO_INITDB_ROOT_USERNAMEadmin \-e MONGO_INITDB_ROOT_PA…

WooCommerce緩存教程 – 如何防止緩存破壞你的WooCommerce網站?

我們在以前的文章中探討過如何加快你的WordPress網站的速度&#xff0c;并研究過各種形式的緩存。 然而&#xff0c;像那些使用WooCommerce的動態電子商務網站&#xff0c;在讓緩存正常工作方面往往會面臨重大挑戰。 在本指南中&#xff0c;我們將告訴你如何為WooCommerce設置…

貪心算法 Part04

總結下重疊區間問題 LC 452. 用最少數量的箭引爆氣球 和 LC 435. 無重疊區間 本質上是一樣的。 LC 452. 用最少數量的箭引爆氣球 是求n個區間當中 &#xff0c; 區間的種類數量 k。此處可以理解為&#xff0c;重疊在一起的區間屬于同一品種&#xff0c;沒有重疊的區間當然…

云原生CD工具-Argocd+ArgoRollout入門到精通

第一章 Argo CD簡介 課時1.1 Argo產品介紹 ARGO官網地址:https://argoproj.github.io/ 旗下產品有: Argo Workflows、ArgoCD 、Argo Rollouts 、Argo Events 課時1.2 什么是Argo CD Argo CD 是一個開源的持續交付工具, 是 Kubernetes 的聲明式 GitOps 持續交付工具。專…

數據分析與應用---數據可視化基礎

目錄 Matplotlib基礎繪圖 (一)、pyplot繪圖基礎語法與常用參數 1、pyplot基礎語法 (1) 創建畫布與創建子圖 (2) 添加畫布內容 (3) 保存與顯示圖形 案例代碼 2. 設置pyplot的動態rc參數 (二)、使用Matplotlib繪制進階圖形 1. 繪制散點圖----scatter 2. 繪制折線…

PP-YOLOE-SOD學習筆記1

項目&#xff1a;基于PP-YOLOE-SOD的無人機航拍圖像檢測案例全流程實操 - 飛槳AI Studio星河社區 一、安裝環境 先準備新環境py>3.9 1.先cd到源代碼的根目錄下 2.pip install -r requirements.txt 3.python setup.py install 這一步需要看自己的GPU情況&#xff0c;去飛漿…

力扣HOT100之二叉樹:114. 二叉樹展開為鏈表

這道題自己嘗試著做了一下&#xff0c;感覺還是得用遞歸來做比較簡單&#xff0c;但是一直想的是用前序遍歷來構造鏈表&#xff0c;導致怎么做都不對&#xff0c;去看了下靈神的題解&#xff0c;然后問了下GPT&#xff0c;現在終于弄明白了。雖然構造出來的鏈表的排列順序是按照…