一区二区三区三上|欧美在线视频五区|国产午夜无码在线观看视频|亚洲国产裸体网站|无码成年人影视|亚洲AV亚洲AV|成人开心激情五月|欧美性爱内射视频|超碰人人干人人上|一区二区无码三区亚洲人区久久精品

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

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

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

如何在樹(shù)莓派4上安裝 openwrt?

jf_70714899 ? 來(lái)源:jf_70714899 ? 作者:jf_70714899 ? 2023-06-07 10:25 ? 次閱讀
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

openwrt

安裝

At the PC:
#unzip the Image

gzip -d openwrt-21.02.0-bcm27xx-bcm2708-rpi-squashfs-factory.img.gz
# insert SD-card and check the name, alternatively check dmesg
lsblk
# copy the Image 1:1 to the SD-card
sudo dd if=openwrt-21.02.0-bcm27xx-bcm2708-rpi-squashfs-factory.img of=/dev/mmcblk0 bs=1M conv=fsync

擴(kuò)展文件系統(tǒng)

SSH INTO THE RASPBERRY PI:

opkg install kmod-usb-storage kmod-usb-ohci kmod-usb-uhci e2fsprogs fdisk resize2fs
fdisk /dev/mmcblk0

(also see the less finicky way by @SemperEnim below):

To make it clear what I entered, here the complete session of fdisk. Please note how the first sector remains unaltered:
Welcome to fdisk (util-linux 2.36.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Command (m for help): p
Disk /dev/mmcblk0: 14.99 GiB, 16096690176 bytes, 31438848 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5452574f

Device         Boot  Start    End Sectors  Size Id Type
/dev/mmcblk0p1 *      8192 139263  131072   64M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      147456 360447  212992  104M 83 Linux

Command (m for help): d
Partition number (1,2, default 2): 2

Partition 2 has been deleted.

Command (m for help): n
Partition type
   p   primary (1 primary, 0 extended, 3 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (2-4, default 2): 2
First sector (2048-31438847, default 2048): 147456
Last sector, +/-sectors or +/-size{K,M,G,T,P} (147456-31438847, default 31438847): 

Created a new partition 2 of type 'Linux' and of size 14.9 GiB.
Partition #2 contains a squashfs signature.

Do you want to remove the signature? [Y]es/[N]o: n

Command (m for help): p

Disk /dev/mmcblk0: 14.99 GiB, 16096690176 bytes, 31438848 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5452574f

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1 *      8192   139263   131072   64M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      147456 31438847 31291392 14.9G 83 Linux

Command (m for help): w
The partition table has been altered.
Syncing disks.

REBOOT AND LOG IN AGAIN

The device usage and sizes are now as follows (my SD-card is 16 GB in size). The size needs still needs to be adjusted:

df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 4.3M      4.3M         0 100% /rom
tmpfs                   217.9M     52.0K    217.9M   0% /tmp
/dev/loop0               92.7M      2.6M     83.1M   3% /overlay
overlayfs:/overlay       92.7M      2.6M     83.1M   3% /
/dev/mmcblk0p1           63.9M     17.3M     46.6M  27% /boot
tmpfs                   512.0K         0    512.0K   0% /dev

Actually this was easier than expected, simply use resize2fs:

opkg update && opkg install resize2fs

resize2fs /dev/loop0

resize2fs 1.45.6 (20-Mar-2020)
Filesystem at /dev/loop0 is mounted on /overlay; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 120
The filesystem on /dev/loop0 is now 15641408 (1k) blocks long.

AND NOW DF -H RETURNS THE ADJUSTED SIZE:

df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 4.3M      4.3M         0 100% /rom
tmpfs                   217.9M     56.0K    217.9M   0% /tmp
/dev/loop0               14.5G      3.1M     13.9G   0% /overlay
overlayfs:/overlay       14.5G      3.1M     13.9G   0% /
/dev/mmcblk0p1           63.9M     17.3M     46.6M  27% /boot
tmpfs                   512.0K         0    512.0K   0% /dev

WX:上海晶珩電子

審核編輯黃宇

聲明:本文內(nèi)容及配圖由入駐作者撰寫(xiě)或者入駐合作網(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)投訴
  • OpenWrt
    +關(guān)注

    關(guān)注

    10

    文章

    131

    瀏覽量

    40187
  • 樹(shù)莓派
    +關(guān)注

    關(guān)注

    121

    文章

    2005

    瀏覽量

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

掃碼添加小助手

加入工程師交流群

    評(píng)論

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

    「EDATEC」如何在樹(shù)莓4安裝64位操作系統(tǒng)

    本文將幫助您在樹(shù)莓 4 安裝樹(shù)莓 64 位操作
    的頭像 發(fā)表于 03-31 17:11 ?3339次閱讀
    「EDATEC」如<b class='flag-5'>何在</b><b class='flag-5'>樹(shù)莓</b><b class='flag-5'>派</b><b class='flag-5'>4</b><b class='flag-5'>上</b><b class='flag-5'>安裝</b>64位操作系統(tǒng)

    何在樹(shù)莓派上安裝并運(yùn)行 Arduino 集成開(kāi)發(fā)環(huán)境!

    ,我們將介紹如何在樹(shù)莓派上安裝并運(yùn)行ArduinoIDE。所需物品要在樹(shù)莓派上運(yùn)行ArduinoIDE,你需要以下組件:配備適當(dāng)電源的樹(shù)莓
    的頭像 發(fā)表于 07-01 17:41 ?1154次閱讀
    如<b class='flag-5'>何在</b><b class='flag-5'>樹(shù)莓</b>派上<b class='flag-5'>安裝</b>并運(yùn)行 Arduino 集成開(kāi)發(fā)環(huán)境!

    樹(shù)莓如何安裝和啟動(dòng)

    btw.我的顯示器是VGA接口的,所以用的是HDMI轉(zhuǎn)VGA安裝樹(shù)莓1.先將安裝好系統(tǒng)的SD卡插入樹(shù)莓
    發(fā)表于 06-30 23:18

    何在win系統(tǒng)下安裝樹(shù)莓的系統(tǒng)到SD卡

    何在win系統(tǒng)下安裝樹(shù)莓的系統(tǒng)到SD卡準(zhǔn)備工作:1.最好最準(zhǔn)備一張4G以上的SD卡,最好是
    發(fā)表于 06-30 23:34

    樹(shù)莓3如何刷OpenWrt?

    樹(shù)莓3如何刷OpenWrt
    發(fā)表于 11-09 06:43

    樹(shù)莓學(xué)習(xí)之樹(shù)莓4B的安裝與配置資料下載

    樹(shù)莓學(xué)習(xí)之樹(shù)莓4B的安裝與配置前期準(zhǔn)備開(kāi)啟SSH及配置無(wú)線連接
    發(fā)表于 07-02 07:56

    樹(shù)莓4B安裝及使用

    實(shí)驗(yàn)一樹(shù)莓4B安裝及使用目錄實(shí)驗(yàn)一 樹(shù)莓4B
    發(fā)表于 12-13 06:12

    樹(shù)莓設(shè)置基本流程(

    第一步,在win系統(tǒng)下安裝樹(shù)莓的系統(tǒng)到SD卡 第二步,安裝和啟動(dòng)樹(shù)莓 第三步,如何設(shè)置
    發(fā)表于 11-30 11:03 ?17次下載

    樹(shù)莓_庫(kù)函數(shù)安裝教程

    樹(shù)莓_庫(kù)函數(shù)安裝教程,樹(shù)莓嵌入式拔高篇,非常適合新手學(xué)習(xí)
    發(fā)表于 01-14 15:12 ?32次下載

    樹(shù)莓的種類_樹(shù)莓安裝教程

    樹(shù)莓(Raspberry Pi)是尺寸僅有信用卡大小的一個(gè)小型電腦,您可以將樹(shù)莓連接電視、顯示器、鍵盤(pán)鼠標(biāo)等設(shè)備使用。目前,樹(shù)莓
    發(fā)表于 11-27 22:01 ?5582次閱讀

    樹(shù)莓3硬件配置_樹(shù)莓3都能裝什么系統(tǒng)_樹(shù)莓3系統(tǒng)安裝教程

    樹(shù)莓3一直頗受電子發(fā)燒友的青睞,這篇文章主要討論的就是樹(shù)莓3的硬件配置、樹(shù)莓3都能裝什么系
    發(fā)表于 12-08 14:36 ?2.7w次閱讀

    樹(shù)莓3和樹(shù)莓4的原理圖免費(fèi)下載

    本文檔的主要內(nèi)容詳細(xì)介紹的是樹(shù)莓3和樹(shù)莓4的原理圖免費(fèi)下載。
    發(fā)表于 01-07 10:23 ?97次下載
    <b class='flag-5'>樹(shù)莓</b><b class='flag-5'>派</b>3和<b class='flag-5'>樹(shù)莓</b><b class='flag-5'>派</b><b class='flag-5'>4</b>的原理圖免費(fèi)下載

    樹(shù)莓3和樹(shù)莓4的原理圖免費(fèi)下載

    本文檔的主要內(nèi)容詳細(xì)介紹的是樹(shù)莓3和樹(shù)莓4的原理圖免費(fèi)下載。
    發(fā)表于 01-07 10:23 ?230次下載
    <b class='flag-5'>樹(shù)莓</b><b class='flag-5'>派</b>3和<b class='flag-5'>樹(shù)莓</b><b class='flag-5'>派</b><b class='flag-5'>4</b>的原理圖免費(fèi)下載

    樹(shù)莓樹(shù)莓4B新手篇:安裝官網(wǎng)Raspbian Buster系統(tǒng)及基礎(chǔ)配置

    目錄1、前言2、樹(shù)莓4B有什么特色?3、樹(shù)莓新手準(zhǔn)備4、燒錄Raspbian Buster系
    發(fā)表于 11-06 18:21 ?26次下載
    【<b class='flag-5'>樹(shù)莓</b><b class='flag-5'>派</b>】<b class='flag-5'>樹(shù)莓</b><b class='flag-5'>派</b><b class='flag-5'>4</b>B新手篇:<b class='flag-5'>安裝</b>官網(wǎng)Raspbian Buster系統(tǒng)及基礎(chǔ)配置

    人臉識(shí)別指南:如何在樹(shù)莓派上安裝和設(shè)置 Dlib

    學(xué)習(xí)如何在樹(shù)莓派上安裝Dlib并配置人臉識(shí)別功能,為您的AI項(xiàng)目奠定基礎(chǔ)。在樹(shù)莓派上安裝Dlib的詳細(xì)步驟要為
    的頭像 發(fā)表于 03-24 17:31 ?766次閱讀
    人臉識(shí)別指南:如<b class='flag-5'>何在</b><b class='flag-5'>樹(shù)莓</b>派上<b class='flag-5'>安裝</b>和設(shè)置 Dlib