chenxiaolong / DualBootPatcher

Patches Android ROMs for dual boot support
https://dbp.noobdev.io
Other
529 stars 467 forks source link

Flashing factory image fails #1399

Open klorinczi opened 5 years ago

klorinczi commented 5 years ago

Flashing factory image (Odin format patched with DualBootPatcher 9.3.0.r957) to extsd-slot-n9005 fails.

I unzipped the archive, then selected the .tar.md5 file in Patcher under Windows.

Attaching logs.

19701013.225020.tar.gz

chenxiaolong commented 5 years ago

Shoot, I don't know if I can do very much about this. The stock boot.img + mbtool is too big to fit:

1251 [1970-10-13T22:47:08.589615000+03:00][245:245][E] m/r/installer: Failed to copy /multiboot/boot.img to /dev/block/platform/msm_sdcc.1/by-name/boot: /dev/block/platform/msm_sdcc.1/by-name/boot: No space left on device
chenxiaolong commented 5 years ago

Can you try this test build? (from #1400) https://jenkins.noobdev.io/job/DualBootPatcher_Build/1155/

Not sure if it'll help, but it'll use the maximum gzip/lz4/lzma/xz compression level for the ramdisk.

klorinczi commented 5 years ago

Unfortunately failed again with r961.

Attaching screenshot. screenshot_20190214-073338

klorinczi commented 5 years ago

@chenxiaolong The boot partition size is 11MB on hlte phone. What is packed in addition to the original boot content?

I remember that boot managers on PC work this way: The MBR size is limited thus the bigger program parts of the boot manager is stored on a separate partition of the hdd.

Couldn't be possible to place some program parts outside of the boot partition on internal storage, for example to the /sdcard/multiboot?

Partition Logs:
/boot | /dev/block/mmcblk0p14 | Size: 11MB
   Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img 
   Primary_Block_Device: /dev/block/mmcblk0p14
   Display_Name: Boot
   Storage_Name: boot
   Backup_Path: /boot
   Backup_Name: boot
   Backup_Display_Name: Boot
   Storage_Path: /boot
   Current_File_System: emmc
   Fstab_File_System: emmc
   Backup_Method: dd

/data | /dev/block/mmcblk0p26 | Size: 26993MB Used: 3829MB Free: 21661MB Backup Size: 3829MB
   Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Can_Be_Encrypted Has_Data_Media Can_Encrypt_Backup Use_Userdata_Encryption Is_Storage Is_Settings_Storage 
   Symlink_Path: /data/media/0
   Symlink_Mount_Point: /sdcard
   Primary_Block_Device: /dev/block/mmcblk0p26
   Length: -16384
   Display_Name: Data
   Storage_Name: Internal Storage
   Backup_Path: /data
   Backup_Name: data
   Backup_Display_Name: Data
   Storage_Path: /data/media/0
   Current_File_System: ext4
   Fstab_File_System: ext4
   Backup_Method: files
   MTP_Storage_ID: 65537