openwrt openwrt镜像:https://archive.openwrt.org/releases/22.03.2/targets/bcm27xx/bcm2711/openwrt-22.03.2-bcm27xx-bcm2711-rpi-4-ext4-factory.img.gz openwrt工具链:https://archive.openwrt.org/releases/22.03.2/targets/bcm27xx/bcm2711/openwrt-toolchain-22.03.2-bcm27xx-bcm2711_gcc-11.2.0_musl.linux-x86_64.tar.xz 版本:22.03.2 安装 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 dmesglsblk# copy the image 1:1 to the sd-cardsudo dd if=openwrt-21.02.0-bcm27xx-bcm2708-rpi-squashfs-factory.img of=/dev/mmcblk0 bs=1m conv=fsync 扩展文件系统 ssh into the raspberry pi:opkg install kmod-usb-storage kmod-usb-ohci kmod-usb-uhci e2fsprogs fdisk resize2fsfdisk /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): pdisk /dev/mmcblk0: 14.99 gib, 16096690176 bytes, 31438848 sectorsunits: sectors of 1 * 512 = 512 bytessector size (logical/physical): 512 bytes / 512 bytesi/o size (minimum/optimal): 512 bytes / 512 bytesdisklabel type: dosdisk identifier: 0x5452574fdevice boot start end sectors size id type/dev/mmcblk0p1 * 8192 139263 131072 64m c w95 fat32 (lba)/dev/mmcblk0p2 147456 360447 212992 104m 83 linuxcommand (m for help): dpartition number (1,2, default 2): 2partition 2 has been deleted.command (m for help): npartition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions)select (default p): ppartition number (2-4, default 2): 2first sector (2048-31438847, default 2048): 147456last 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: ncommand (m for help): pdisk /dev/mmcblk0: 14.99 gib, 16096690176 bytes, 31438848 sectorsunits: sectors of 1 * 512 = 512 bytessector size (logical/physical): 512 bytes / 512 bytesi/o size (minimum/optimal): 512 bytes / 512 bytesdisklabel type: dosdisk identifier: 0x5452574fdevice 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 linuxcommand (m for help): wthe 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 -hfilesystem size used available use% mounted on/dev/root 4.3m 4.3m 0 100% /romtmpfs 217.9m 52.0k 217.9m 0% /tmp/dev/loop0 92.7m 2.6m 83.1m 3% /overlayoverlayfs:/overlay 92.7m 2.6m 83.1m 3% //dev/mmcblk0p1 63.9m 17.3m 46.6m 27% /boottmpfs 512.0k 0 512.0k 0% /dev actually this was easier than expected, simply use resize2fs:
opkg update && opkg install resize2fsresize2fs /dev/loop0resize2fs 1.45.6 (20-mar-2020)filesystem at /dev/loop0 is mounted on /overlay; on-line resizing requiredold_desc_blocks = 1, new_desc_blocks = 120the filesystem on /dev/loop0 is now 15641408 (1k) blocks long. and now df -h returns the adjusted size:df -hfilesystem size used available use% mounted on/dev/root 4.3m 4.3m 0 100% /romtmpfs 217.9m 56.0k 217.9m 0% /tmp/dev/loop0 14.5g 3.1m 13.9g 0% /overlayoverlayfs:/overlay 14.5g 3.1m 13.9g 0% //dev/mmcblk0p1 63.9m 17.3m 46.6m 27% /boottmpfs 512.0k 0 512.0k 0% /dev wx:上海晶珩电子
目前国内存储芯片企业的发展现状
深度解析一汽奔腾B30底盘
浊度水质分析仪的功能特性,及其在环境监测中的重要作用
开源软件的演进历程是怎样的
2019年全球将有超过二十亿个LPWAN装置联网 电信运营商积极布局
如何在树莓派4上安装 openwrt?
瞬态抑制二极管(TVS)的原理及简介
Bowers&Wilkins PX是高端蓝牙耳机的新惊喜
Kyligence完成B轮融资 公布下一代大数据智能分析产品
!!销售/收购! HP6612C HP6612C 直流电源
RX72M单芯片EtherCAT伺服方案(上)概述与功能介绍
联通5G以光为主,未来还得靠WDM/OTN技术
物联网未来广阔的发展前景体现在哪里
魅蓝5S这个配置能让友商千元机折服
大电流滑环的使用寿命一般是多久
村田电感知识
安富利携手合作伙伴共同展示AI创新技术及应用
区块链技术的难题三元悖论该如何解决
基于SOA的分布式RFID中间件是怎么一回事
从三个方面阐述高速转换器如何推动下一个千兆赫兹带宽、软件定义系统浪潮