[Sprint Samsung Galaxy Note 3] sansari123:
Greetings

I have been trying to modify a stock image, and here is what I have done so far:

I found this link, and followed it in this manner: [MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$ umkbootimg boot.img

unmkbootimg version 1.2 - Mikael Q Kuisma <kuisma@ping.se>

Kernel size 8262680

Kernel address 0x8000

Ramdisk size 1064985

Ramdisk address 0x2000000

Secondary size 0

Secondary address 0xf00000

Kernel tags address 0x1e00000

Flash page size 2048

Board name is ""

Command line "console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3"

*** WARNING ****

This image is built using NON-standard mkbootimg!

OFF_KERNEL_ADDR is 0xFE208100

OFF_RAMDISK_ADDR is 0x00200100

OFF_SECOND_ADDR is 0xFF100100

Please modify mkbootimg.c using the above values to build your image.

****************

Extracting kernel to file zImage ...

Extracting root filesystem to file initramfs.cpio.gz ...

All done.

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

To recompile this image, use:

mkbootimg --kernel zImage --ramdisk initramfs.cpio.gz --base 0x1dfff00 --cmdline 'console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3' -o new_boot.img

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

I copied the original zImage to a backup file:

I copied the original zImage to a backup file: [MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$ cp zImage backup_zImage

I moved my new zImage over: [MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$ cp ~/androidkernel3/arch/arm/boot/zImage .

[MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$ ls

aboot.mbn cache.img.ext4 modem.bin NON-HLOS.bin sbl1.mbn system.img.ext4

backup_zImage info N900PVPUCNC5_N900PSPTCNC5_N900PVPUCNC5_HOME.tar.md5 recovery.img sdi.mbn tz.mbn

boot.img initramfs.cpio.gz N900PVPUCNC5_N900PSPTCNC5_SPR.zip rpm.mbn SS_DL.dll zImage

ran the command again to "recompile" I assume this uses the new zImage [MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$ mkbootimg --kernel zImage --ramdisk initramfs.cpio.gz --base 0x1dfff00 --cmdline 'console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3' -o new_boot.img

sansari@ubuntu:~/expermental_stock$ ls

aboot.mbn cache.img.ext4 modem.bin new_boot.img rpm.mbn SS_DL.dll zImage

backup_zImage info N900PVPUCNC5_N900PSPTCNC5_N900PVPUCNC5_HOME.tar.md5 NON-HLOS.bin sbl1.mbn system.img.ext4

boot.img initramfs.cpio.gz N900PVPUCNC5_N900PSPTCNC5_SPR.zip recovery.img sdi.mbn tz.mbn [MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$ rm N900PVPUCNC5_N900PSPTCNC5_SPR.zip [MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$ mv backup_zImage /tmp/ [MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$ ls

aboot.mbn info N900PVPUCNC5_N900PSPTCNC5_N900PVPUCNC5_HOME.tar.md5 recovery.img sdi.mbn tz.mbn

boot.img initramfs.cpio.gz new_boot.img rpm.mbn SS_DL.dll zImage

cache.img.ext4 modem.bin NON-HLOS.bin sbl1.mbn system.img.ext4 [MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$ mv boot.img /tmp/

Renamed the new_boot.img to original name [MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$ mv new_boot.img boot.img [MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$

Oh I also moved the original files to /tmp [MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$ mv backup_zImage /tmp/ [MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$ mv boot.img /tmp/

sansari@ubuntu:~/expermental_stock$ ls

aboot.mbn info N900PVPUCNC5_N900PSPTCNC5_N900PVPUCNC5_HOME.tar.md5 rpm.mbn SS_DL.dll zImage

boot.img initramfs.cpio.gz NON-HLOS.bin sbl1.mbn system.img.ext4

cache.img.ext4 modem.bin recovery.img sdi.mbn tz.mbn

moved the original tar file to another directory

sansari@ubuntu:~/expermental_stock$ mv N900PVPUCNC5_N900PSPTCNC5_N900PVPUCNC5_HOME.tar.md5 /tmp/ [MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$

Then I used this link to create a tar.md5 file, and I ziped the whole thing again : [MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$ tar -H ustar -c * > N900PVPUCNC5_N900PSPTCNC5_N900PVPUCNC5_HOME.tar [MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$ md5sum -t N900PVPUCNC5_N900PSPTCNC5_N900PVPUCNC5_HOME.tar >> N900PVPUCNC5_N900PSPTCNC5_N900PVPUCNC5_HOME.tar [MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$ mv N900PVPUCNC5_N900PSPTCNC5_N900PVPUCNC5_HOME.tar N900PVPUCNC5_N900PSPTCNC5_N900PVPUCNC5_HOME.tar.md5 [MENTION=248784]ubuntu[/MENTION]:~/expermental_stock$zip -r N900PVPUCNC5_N900PSPTCNC5_SPR *

I moved the zip file to a location I have used to to flash other images before. I get the unable to mount error, which I got before and was able to flash before. I have twrp on my phone. I also get the error "unable to open zip file".

Do you see anything wrong with what I have done?