在线观看www成人影院-在线观看www日本免费网站-在线观看www视频-在线观看操-欧美18在线-欧美1级

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評(píng)論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會(huì)員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識(shí)你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

fireflyAIO-3399C主板創(chuàng)建Ubuntu根文件系統(tǒng)

firefly ? 來(lái)源:firefly ? 作者:firefly ? 2019-12-13 10:42 ? 次閱讀
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

創(chuàng)建 Ubuntu 根文件系統(tǒng)
準(zhǔn)備工作
安裝qemu

Linux PC主機(jī)上安裝模擬器:

sudo apt-get install qemu-user-static
下載和解壓 ubuntu-core

Firefly-rk3399 ubuntu根文件系統(tǒng)是基于Ubuntu base 16.04來(lái)創(chuàng)建的。用戶可以到ubuntu cdimg 下載,選擇下載ubuntu-base-16.04.1-base-arm64.tar.gz 。

下載完之后,創(chuàng)建臨時(shí)文件夾并解壓根文件系統(tǒng):

mkdir temp sudo tar -xpf ubuntu-base-16.04.1-base-arm64.tar.gz -C temp
修改根文件系統(tǒng)
準(zhǔn)備工作

準(zhǔn)備網(wǎng)絡(luò):

sudo cp -b /etc/resolv.conf temp/etc/resolv.conf

準(zhǔn)備qemu

sudo cp /usr/bin/qemu-aarch64-static temp/usr/bin/

進(jìn)入根文件系統(tǒng)進(jìn)行操作:

sudo chroot temp
更新及安裝

更新:

apt update apt upgrade

安裝自己需要的功能

apt install vim git ....(根據(jù)自己需求添加)

安裝xubuntu

apt install xubuntu-desktop

可能出現(xiàn)錯(cuò)誤:

E: Unable to locate package xxxx

安裝包的源沒有添加到/etc/apt/source.list中,導(dǎo)致無(wú)法識(shí)別安裝包,可以自行添加源,也可以使用下面給出的source.list覆蓋原來(lái)的/etc/apt/source.list文件:

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://ports.ubuntu.com/ubuntu-ports/ xenial main restricted deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main restricted deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main restricted ## Uncomment the following two lines to add software from the 'universe' ## repository. ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://ports.ubuntu.com/ubuntu-ports/ xenial universe deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial universe deb http://ports.ubuntu.com/ubuntu-ports/ xenial-updates universe deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-updates universe ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://ports.ubuntu.com/ubuntu-ports/ xenial-backports main restricted deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-backports main restricted deb http://ports.ubuntu.com/ubuntu-ports/ xenial-security main restricted deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-security main restricted deb http://ports.ubuntu.com/ubuntu-ports/ xenial-security universe deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-security universe deb http://ports.ubuntu.com/ubuntu-ports/ xenial-security multiverse deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-security multiverse
添加用戶及設(shè)置密碼

添加用戶

useradd -s '/bin/bash' -m -G adm,sudo firefly

給用戶設(shè)置密碼:

passwd firefly

給root用戶設(shè)置密碼:

passwd root

修改完自己的根文件系統(tǒng)就可以退出了。

exit
制作根文件系統(tǒng)

制作自己的根文件系統(tǒng),大小依據(jù)自己的根文件系統(tǒng)而定,注意依據(jù)temp文件夾的大小來(lái)修改count值

dd if=/dev/zero of=linuxroot.img bs=1M count=2048 sudo mkfs.ext4 linuxroot.img mkdir rootfs sudo mount linuxroot.img rootfs/ sudo cp -rfp temp/* rootfs/ sudo umount rootfs/ e2fsck -p -f linuxroot.img resize2fs -M linuxroot.img

這樣 linuxroot.img 就是最終的根文件系統(tǒng)映像文件了。

FAQs
根文件系統(tǒng)加載后,大小不正常,未占滿整個(gè)分區(qū):

在系統(tǒng)正確加載后執(zhí)行擴(kuò)展文件系統(tǒng)命令:

resize2fs /dev/mtd/by-name/linuxroot

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場(chǎng)。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問(wèn)題,請(qǐng)聯(lián)系本站處理。 舉報(bào)投訴
  • Linux
    +關(guān)注

    關(guān)注

    87

    文章

    11496

    瀏覽量

    213254
  • 嵌入式主板
    +關(guān)注

    關(guān)注

    7

    文章

    6097

    瀏覽量

    36222
  • Firefly
    +關(guān)注

    關(guān)注

    2

    文章

    541

    瀏覽量

    7463
收藏 人收藏
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

    評(píng)論

    相關(guān)推薦
    熱點(diǎn)推薦

    瑞芯微VS-RK3399創(chuàng)建 Ubuntu 文件系統(tǒng)》分享

    瑞芯微VS-RK3399創(chuàng)建 Ubuntu 文件系統(tǒng)》分享更新時(shí)間:2018-3-30準(zhǔn)備工作安裝qemu在Linux PC主機(jī)上安裝模
    發(fā)表于 03-30 10:03

    如何導(dǎo)出Ubuntu文件系統(tǒng)

    如何安裝fireflydev?如何導(dǎo)出Ubuntu文件系統(tǒng)
    發(fā)表于 03-02 07:37

    如何創(chuàng)建UBUNTU文件系統(tǒng)RK3288?

    如何創(chuàng)建UBUNTU文件系統(tǒng)RK3288?
    發(fā)表于 03-03 06:33

    如何制作rk3399 arm64 ubuntu18.04 文件系統(tǒng)

    如何制作rk3399 arm64 ubuntu18.04 文件系統(tǒng)
    發(fā)表于 03-07 06:34

    如何使用Ubuntu 16.04編譯文件系統(tǒng)

    如何使用Ubuntu 16.04編譯文件系統(tǒng)
    發(fā)表于 03-09 07:57

    Firefly-RK3399文件系統(tǒng)介紹

    創(chuàng)建 Ubuntu 文件系統(tǒng) 準(zhǔn)備工作 安裝qemu
    的頭像 發(fā)表于 11-23 10:55 ?2358次閱讀
    Firefly-RK<b class='flag-5'>3399</b><b class='flag-5'>根</b><b class='flag-5'>文件系統(tǒng)</b>介紹

    FireflyRK3128主板Ubuntu 文件系統(tǒng)創(chuàng)建

    創(chuàng)建 Ubuntu 文件系統(tǒng) 使用 miniroot 來(lái)創(chuàng)建并引導(dǎo)系統(tǒng)
    的頭像 發(fā)表于 11-29 09:00 ?3767次閱讀
    FireflyRK3128<b class='flag-5'>主板</b><b class='flag-5'>Ubuntu</b> <b class='flag-5'>根</b><b class='flag-5'>文件系統(tǒng)</b><b class='flag-5'>創(chuàng)建</b>

    fireflyROC-RK3328-PC編譯Ubuntu 文件系統(tǒng)簡(jiǎn)介

    編譯 Ubuntu 文件系統(tǒng)
    的頭像 發(fā)表于 12-21 09:45 ?1709次閱讀

    嵌入式Linux移植3. NFS文件系統(tǒng)掛載(從Ubuntu啟動(dòng)內(nèi)核,文件系統(tǒng)

    :通過(guò)tftp使用Ubuntu中的/tftpboot中的uImage啟動(dòng)rootfs文件系統(tǒng):通過(guò)NFS使用Ubuntu中的/nfs_rootfs中的
    發(fā)表于 11-02 12:51 ?7次下載
    嵌入式Linux移植3. NFS<b class='flag-5'>根</b><b class='flag-5'>文件系統(tǒng)</b>掛載(從<b class='flag-5'>Ubuntu</b>啟動(dòng)內(nèi)核,<b class='flag-5'>文件系統(tǒng)</b>)

    Core 3399KJ Linux文件系統(tǒng)鏡像(arm64/arm32)

    電子發(fā)燒友網(wǎng)站提供《Core 3399KJ Linux文件系統(tǒng)鏡像(arm64/arm32).txt》資料免費(fèi)下載
    發(fā)表于 09-14 10:08 ?3次下載
    Core <b class='flag-5'>3399</b>KJ Linux<b class='flag-5'>根</b><b class='flag-5'>文件系統(tǒng)</b>鏡像(arm64/arm32)

    Core 3399J Linux文件系統(tǒng)鏡像(arm64/arm32)

    電子發(fā)燒友網(wǎng)站提供《Core 3399J Linux文件系統(tǒng)鏡像(arm64/arm32).txt》資料免費(fèi)下載
    發(fā)表于 09-14 09:24 ?0次下載
    Core <b class='flag-5'>3399</b>J Linux<b class='flag-5'>根</b><b class='flag-5'>文件系統(tǒng)</b>鏡像(arm64/arm32)

    Core 3399 JD4 V2文件系統(tǒng)Linux文件系統(tǒng)鏡像(arm64/arm32)

    電子發(fā)燒友網(wǎng)站提供《Core 3399 JD4 V2文件系統(tǒng)Linux文件系統(tǒng)鏡像(arm64/arm32).txt》資料免費(fèi)下載
    發(fā)表于 09-16 09:44 ?10次下載
    Core <b class='flag-5'>3399</b> JD4 V2<b class='flag-5'>文件系統(tǒng)</b>Linux<b class='flag-5'>根</b><b class='flag-5'>文件系統(tǒng)</b>鏡像(arm64/arm32)

    ROC RK3399 PC Pro文件系統(tǒng)Linux文件系統(tǒng)鏡像(arm64/arm32)

    電子發(fā)燒友網(wǎng)站提供《ROC RK3399 PC Pro文件系統(tǒng)Linux文件系統(tǒng)鏡像(arm64/arm32).txt》資料免費(fèi)下載
    發(fā)表于 09-20 10:59 ?5次下載
    ROC RK<b class='flag-5'>3399</b> PC Pro<b class='flag-5'>文件系統(tǒng)</b>Linux<b class='flag-5'>根</b><b class='flag-5'>文件系統(tǒng)</b>鏡像(arm64/arm32)

    AIO 3399ProC Linux文件系統(tǒng)鏡像(arm64/arm32)

    電子發(fā)燒友網(wǎng)站提供《AIO 3399ProC Linux文件系統(tǒng)鏡像(arm64/arm32).txt》資料免費(fèi)下載
    發(fā)表于 09-21 09:52 ?11次下載
    AIO <b class='flag-5'>3399</b>ProC Linux<b class='flag-5'>根</b><b class='flag-5'>文件系統(tǒng)</b>鏡像(arm64/arm32)

    飛凌RK3399開發(fā)板如何在Ubuntu保留文件系統(tǒng)

    通過(guò)飛凌OK3399-C開發(fā)板為大家講解如何在Ubuntu保留文件系統(tǒng)
    的頭像 發(fā)表于 09-16 15:01 ?1046次閱讀
    飛凌RK<b class='flag-5'>3399</b>開發(fā)板如何在<b class='flag-5'>Ubuntu</b>保留<b class='flag-5'>文件系統(tǒng)</b>
    主站蜘蛛池模板: 久久精品波多野结衣 | 在线观看日本一区 | 日本写真高清视频免费网站网 | 欧美在线bdsm调教一区 | 久在草影院 | 人人艹在线视频 | 国产精品人人爱一区二区白浆 | 狠狠色噜噜狠狠狠狠米奇7777 | 在线毛片网站 | xxxx.欧美| 亚洲一区二区免费 | 特级一级毛片免费看 | 天堂在线视频 | 好大好紧好爽好湿润视频 | 国产午夜毛片一区二区三区 | 欧美高清在线播放 | 国产高清在线看 | 婷婷网五月天天综合天天爱 | 国产免费高清视频在线观看不卡 | 欧美黄页 | 亚欧美综合 | 五月丁香啪啪 | 上课被同桌强行摸下面小黄文 | 天天干天天摸 | 欧美激情综合 | 国产成人精品曰本亚洲77美色 | 国产福利vr专区精品 | 久久亚洲精品成人综合 | 欧美一卡2卡三卡4卡5卡免费观看 | 欧美性色黄在线视 | 久久青草免费91观看 | 夜夜嗷| 欧洲亚洲国产精华液 | 色天天综合久久久久综合片 | 亚洲第一页视频 | 免费三级pq | 国产精品高清久久久久久久 | 久热首页 | 欧美日本一道免费一区三区 | 国语自产免费精品视频一区二区 | 美女被拍拍拍拍拍拍拍拍 |