Jump to content
Sign in to follow this  
serial115200

resize /boot partition

Recommended Posts

sorry for my mistake

---------------------------------------------

Hi,ALL:

I want to update debian’s kernel to 5.10+ for intel ax210 wireless card.

According to the article below, I did and failed.

https://jensd.be/968/linux/install-a-newer-kernel-in-debian-10-buster-stable

root@linaro-alip:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/root 15G 2.7G 11G 20% / devtmpfs 1.9G 8.0K 1.9G 1% /dev tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 1.9G 8.7M 1.9G 1% /run tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/mmcblk1p7 4.9M 374K 4.3M 8% /boot tmpfs 385M 0 385M 0% /run/user/0 tmpfs 385M 12K 385M 1% /run/user/1000

there is not enough space for update kernel in /boot or /dev/mmcblk1p7

I rebuild the boot image with follow patch:

diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h index 4103342d42..63be6cddcc 100644 --- a/include/configs/rockchip-common.h +++ b/include/configs/rockchip-common.h @@ -91,7 +91,7 @@ "name=loader1,start=32K,size=4000K,uuid=${uuid_gpt_loader1};" \ "name=loader2,start=8MB,size=4MB,uuid=${uuid_gpt_loader2};" \ "name=trust,size=4M,uuid=${uuid_gpt_atf};" \ - "name=boot,size=112M,bootable,uuid=${uuid_gpt_boot};" \ + "name=boot,size=512M,bootable,uuid=${uuid_gpt_boot};" \ "name=rootfs,size=-,uuid="ROOT_UUID

and,I update the boot 

dd if=uboot.img of=/dev/mmcblk1p1

everything is fine, and size of boot is changed. 

When the device restarts, everything resumes as before。

I am in trouble

Share this post


Link to post
Share on other sites

hello @serial115200

please try use the command below to update boot.img

sudo dd if=boot.img of=/dev/mmcblk1p4 status=progress && sync

Share this post


Link to post
Share on other sites

Hi @tooz

not work. 

Does balenaEtcher modify the boot when it burns the image?

Here is the operation process:

  • sudo dd if=uboot.img of=/dev/mmcblk1p4 status=progress && sync
  • burns the image by balenaEtcher
  • reboot 
diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h
index 4103342d42..e2d364fbe1 100644
--- a/include/configs/rockchip-common.h
+++ b/include/configs/rockchip-common.h
@@ -91,7 +91,7 @@
        "name=loader1,start=32K,size=4000K,uuid=${uuid_gpt_loader1};" \
        "name=loader2,start=8MB,size=4MB,uuid=${uuid_gpt_loader2};" \
        "name=trust,size=4M,uuid=${uuid_gpt_atf};" \
-       "name=boot,size=112M,bootable,uuid=${uuid_gpt_boot};" \
+       "name=boot,size=512M,bootable,uuid=${uuid_gpt_boot};" \
        "name=rootfs,size=-,uuid="ROOT_UUID
root@linaro-alip:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        15G  2.7G   11G  20% /
devtmpfs        1.9G  8.0K  1.9G   1% /dev
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           1.9G   17M  1.9G   1% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/mmcblk1p7  4.9M  374K  4.3M   8% /boot
tmpfs           385M   12K  385M   1% /run/user/1000
tmpfs           385M     0  385M   0% /run/user/0

 

Share this post


Link to post
Share on other sites

hello @serial115200

the commmand is used for boot.img update.

sudo dd if=boot.img of=/dev/mmcblk1p4 status=progress && sync

you'll have to build your own .img file if you'd like to resize the partition.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...