Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastboot: error: boot partition is smaller than boot image #16

Open
Ruinland opened this issue Mar 12, 2024 · 0 comments
Open

fastboot: error: boot partition is smaller than boot image #16

Ruinland opened this issue Mar 12, 2024 · 0 comments

Comments

@Ruinland
Copy link

Hi,

I just build the AOSP with main_2023_7_7 tagged manifest.
Following the instructions, I can flash most of the partitions with their corresponding images without problems.

Yet while flashing boot partition, it gives out the error :

fastboot: error: boot partition is smaller than boot image

And on the console, I can witness the flashing process slipped :

Flashing Raw Image
........ wrote 8388608 bytes to 'bootpart_a'
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
Starting download of 33554432 bytes
request 00000000fbb4e180 was not queued to ep1in-bulk
..........................................................................
..........................................................................
..........................................................................
..................................
downloading of 33554432 bytes finished
request 00000000fbb4e180 was not queued to ep1in-bulk
cmd_parameter: vendor_boot_a, imagesize: 33554432
Flashing Raw Image
........ wrote 33554432 bytes to 'vendor_boot_a'
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
Starting download of 117436592 bytes
request 00000000fbb4e180 was not queued to ep1in-bulk
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
.......
downloading of 117436592 bytes finished
request 00000000fbb4e180 was not queued to ep1in-bulk
cmd_parameter: super, imagesize: 117436592
Flashing sparse image at offset 462848
Flashing Sparse Image
........ wrote 117456896 bytes to 'super'

Besides, during the first round of U-boot flash-and-reboot, I saw GPT table was written :

U-Boot 2020.01-g7794d97f84-dirty (Aug 05 2023 - 04:03:55 +0800)

CPU:   rv64imafdcvsu
Model: T-HEAD c910 light
DRAM:  4 GiB
C910 CPU FREQ: 750MHz
AHB2_CPUSYS_HCLK FREQ: 250MHz
AHB3_CPUSYS_PCLK FREQ: 125MHz
PERISYS_AHB_HCLK FREQ: 250MHz
PERISYS_APB_PCLK FREQ: 62MHz
GMAC PLL POSTDIV FREQ: 1000MHZ
DPU0 PLL POSTDIV FREQ: 1188MHZ
DPU1 PLL POSTDIV FREQ: 1188MHZ
MMC:   sdhci@ffe7080000: 0, sd@ffe7090000: 1
Loading Environment from MMC... OK
Error reading output register
Warning: cannot get lcd-en GPIO
LCD panel cannot be found : -121
splash screen startup cost 13 ms
In:    serial
Out:   serial
Err:   serial
## Resetting to default environment
ethaddr=76:1b:b2:01:f2:0b
eth1addr=76:1b:b2:01:f2:0c
Saving Environment to MMC... Writing to MMC(0)... OK
Writing GPT: success!
dwc3_gadget_start maximum_speed:5 revision:0x5533330b
dwc3_gadget_start DWC3_DCFG:0x80804
dwc3_gadget_conndone_interrupt speed:4 dwc3_dsts:0x2021c
dwc3_gadget_conndone_interrupt speed:4 dwc3_dsts:0x2593c
Writing GPT: success!
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
Starting download of 1032184 bytes
request 00000000fbb4e180 was not queued to ep1in-bulk
.......

Thus I am wondering shall I tweak the GPT table / size on the U-boot side ?
The boot.img I generated from the AOSP is around 32/33 megabytes :

[ruinland-x1c beaglev_ahead]# ls -la ./boot.img 
-rwxrwxrwx 1 ruinland ruinland 33554432 Mar 11 11:32 ./boot.img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant