Is there a procedure to update a sdcard image of openwrt?
I have created a new openwrt 21.01 image with additional kernel drivers which I need to load onto the currently running openwrt image on sdcard.
The current sdcard layout looks like this:
root@build001:~# fdisk -l /dev/sdc The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Disk /dev/sdc: 29.7 GiB, 31914983424 bytes, 62333952 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: gpt
Disk identifier: 5452574F-2211-4433-5566-778899AABB00
Device Start End Sectors Size Type
/dev/sdc1 1024 2047 1024 512K Linux filesystem
/dev/sdc2 4096 8191 4096 2M EFI System
/dev/sdc3 8192 10239 2048 1M Linux filesystem
/dev/sdc4 12288 77823 65536 32M Linux filesystem
/dev/sdc5 77824 92159 14336 7M Linux filesystem
/dev/sdc6 92160 305151 212992 104M unknown
/dev/sdc128 34 1023 990 495K BIOS boot
Partition table entries are not in disk order.
I would like to increase the space of /dev/sdc6 which I am assuimg holds the rootfs of openwrt.
I believe the command should look something like this:
dd if=/openwrtimage.img offset=47185920(512 * start block), loopback of=/dev/sdc6
Can someone please point me in the right direction I am stuck