![]() ![]() *-openwrt-octeon-ubnt_unifi-usg-squashfs-sysupgrade.tar file and manually extract the kernel (which is in ELF format, ready to use but needs to be renamed) and the rootfs (which is in squashfs format) to place it on the USB flash drive.ĭownload sysupgrade-squashfs file from openwrt-octeon-ubnt_unifi-usg-squashfs-sysupgrade.tar and untar it. We need to download the OpenWrt firmware. On first boot, the OpenWrt system will use the rest of the space in this partition to create the read-write overlay partition. The second partition on the flash drive is a read-only squashfs in the stock firmware, and it's also where we will write the squashfs image of OpenWrt. The bootloader computes the md5 of the kernel while reading it, then compares it to the checksum file before continuing with the boot. The FAT32 partition on the flash drive is about 145 MB, and holds two files:Īnd md5sum named vmlinux.64.md5, which holds only the 32 digit, hex encoded md5sum of the vmlinux.64 file. Last sector, +sectors or + size ( 292864- 7579007, default 7579007 ):Ĭreated a new partition 2 of type 'Linux' and of size 3.5 GiB.Ĭalling ioctl ( ) to re-read partition table. P primary ( 1 primary, 0 extended, 3 free )Į extended (container for logical partitions )įirst sector ( 292864- 7579007, default 292864 ): I /O size (minimum /optimal ): 512 bytes / 512 bytesĭevice Boot Start End Sectors Size Id Type Sector size (logical /physical ): 512 bytes / 512 bytes Here we are re-using the original USB drive, expanding the rootfs partition (/dev/sdb2, here) to use all available space.Ĭhanges will remain in memory only, until you decide to write them.īe careful before using the write command.ĭisk /dev /sdb: 3.6 GiB, 3880452096 bytes, 7579008 sectors They can be of almost any size, within reason. If you are using a new drive, you will need to create two partitions, one FAT32 (142MB recommended) and one empty partition for OpenWrt's rootfs. Re-partitioning is not strictly necessary unless you want to make extra space available in your rootfs, but it does not hurt. Many USG-3Ps appear to ship with a 4GB drive with 2GB unallocated. The factory partition scheme is intended to fit into a 2GB drive: 142MB in a FAT32 partition (which will hold the kernel) and 1.6GB in an ext3 partition (which is used for the rootfs). CAUTION: Using the wrong drive name may cause severe loss of data on one of your other drives. The following descriptions assume it is sdb. Use lsblk to determine the drive location. Pull the flash drive out of the USB socket and plug it into a Linux computer on which you have root privileges. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |