[Q] What is wrong with my boot.img for Samsung Note 3 SM-N900P?

sansari123

Senior Member
Jan 30, 2013
93
6
0
Greetings
I followed these procedures, and pushed the boot.img with Odin, but the phone goes into download mode stating: "Could not do normal boot." Can anyone see what I am doing wrong? How can I troubleshoot the issue? Is there some way I can look at some logs somewhere? I did save my recovery.log file from twrp to the sdcard before I loaded the backedup files and rebooted the phone. I put them here is there anything else I can do?

I tried the same thing with boot.img and I got the following:
Code:
[email protected]:~/xiaolu/mkbootimg_tools$ ./mkboot boot.img ksumag
Unpack & decompress boot.img to ksumag
  kernel         : zImage
  ramdisk        : ramdisk
  page size      : 2048
  kernel size    : 8262680
  ramdisk size   : 1064985
  dtb size       : 1300480
  base           : 0x00000000
  kernel offset  : 0x00008000
  ramdisk offset : 0x02000000
  second_offset  : 0x00f00000
  tags offset    : 0x01e00000
  dtb img        : dt.img
  cmd line       : console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3
ramdisk is gzip format.
Unpack completed.
[email protected]:~/xiaolu/mkbootimg_tools$ cd ksumag/
[email protected]:~/xiaolu/mkbootimg_tools/ksumag$ ls
dt.img  img_info  ramdisk  ramdisk.gz  zImage
[email protected]:~/xiaolu/mkbootimg_tools/ksumag$
I put the scsi_wait.ko ( name? ) file in ramdisk /dev folder, and replaced the zImage and dt.img file with the ones I made, and packed them into my own boot.img file.

Here is the output:
Code:
[email protected]:~/xiaolu/mkbootimg_tools$ ./mkboot ksumag/ boot.img
mkbootimg from ksumag//img_info.
  kernel         : zImage
  ramdisk        : new_ramdisk.gz
  page size      : 2048
  kernel size    : 8262680
  ramdisk size   : 1082259
  dtb size       : 1300480
  base           : 0x00000000
  kernel offset  : 0x00008000
  ramdisk offset : 0x02000000
  tags offset    : 0x01e00000
  dtb img        : dt.img
  cmd line       : console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3
Kernel size: 8262680, new ramdisk size: 1082259, boot.img: 10893312.
boot.img has been created.
...
Then I put all files in a tar file. I did make a couple of mistakes with files names, which I hope did not damage the boot.img file.
Code:
[email protected]:~/xiaolu/mkbootimg_tools$ tar -H ustar -c boot.img >> boot.img
tar: boot.img: file is the archive; not dumped
[email protected]:~/xiaolu/mkbootimg_tools$ ls
ARM       dtbToolCM    ksumag    mkbootimg         recovery.img
boot.img  dtbtool.txt  lz4       MyKernel.tar.md5  recovery.tar.md5
commands  dtc          mkboot    oldfiles          shahin
dtbTool   ksuamg       mkbootfs  README.md         sm-n900p-test1
[email protected]:~/xiaolu/mkbootimg_tools$ tar -H ustar -c boot.img > boot.img
tar: boot.img: file is the archive; not dumped
[email protected]:~/xiaolu/mkbootimg_tools$ tar -H ustar -c boot.img > boot.tar
[email protected]:~/xiaolu/mkbootimg_tools$
Then I took the hash of the entire thing:
Code:
[email protected]:~/xiaolu/mkbootimg_tools$ md5sum -t boot.tar >> boot.tar
[email protected]:~/xiaolu/mkbootimg_tools$ mv boot.tar boot.tar.md5
[email protected]:~/xiaolu/mkbootimg_tools$
 
Last edited:

sansari123

Senior Member
Jan 30, 2013
93
6
0
What are you trying to get
I am trying to get a flashable image. The file I get from the above procedure goes on my phone, but the kernel does not seem to be loaded. I am still learning about the boot process, and I do not know if my phone just has a bootloader or a bootstrap also; regardless it seems to not load the kernel since it goes into download mode. The recovery.log does not show anything either. I posted in pastebin. I can put link to it here if you think it would help. My goal is to flash my phone with a copy of the kernel which I built myself.