Creating correct cfg

Search This thread

bobbywan30

Senior Member
Nov 18, 2017
125
8
Try harder... all links are given...

This is WAIT Command... maybe this helps in any case...
I forgot 100 times
I extracted new files from the sboot.bin that was on the phone before I killed it
this is how I extracted the files from sboot.bin. as alecxs taught me
0 - 2FFF = bl1
3000 - 15FFF = epbl.bin
16000 - 67FFF = bl2.bin
...
A4000 - 223FFF = s-boot.bin
224000 - 263FFF = dram_el3mon.bin
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,255
7
2,982
gitlab.com
this tool is undocumented, couldn't find any information about, except what is already linked in thread.
for example don't know what the 200 means. guess it's a timeout counter.

also I still don't understand how the location is determined where the files are written. my guess is, it parses the file name for determining the label.

please wait for new information.
 

bobbywan30

Senior Member
Nov 18, 2017
125
8
this tool is undocumented, couldn't find any information about, except what is already linked in thread.
for example don't know what the 200 means. guess it's a timeout counter.

also I still don't understand how the location is determined where the files are written. my guess is, it parses the file name for determining the label.

please wait for new information.
ok. mersi
 

bobbywan30

Senior Member
Nov 18, 2017
125
8
this tool is undocumented, couldn't find any information about, except what is already linked in thread.
for example don't know what the 200 means. guess it's a timeout counter.

also I still don't understand how the location is determined where the files are written. my guess is, it parses the file name for determining the label.

please wait for new information.
thank you alecxs for your patience with me. you are a great gentleman.
thank you for
0 - 2FFF = bl1
3000 - 15FFF = epbl.bin
16000 - 67FFF = bl2.bin
...
A4000 - 223FFF = s-boot.bin
224000 - 263FFF = dram_el3mon.bin
1 downloaded the latest firmware from the internet
2 i extracted sboot.bin
I rewrote the files
3 boom
[COM8]Write thread Start################### 2023_02_05-16_36_542
[COM8]Transfer Done : IMAGES/bl1 2023_02_05-16_36_652
[COM8]Transfer Done : IMAGES/epbl.bin 2023_02_05-16_36_783
[COM8]Transfer Done : IMAGES/bl2.bin 2023_02_05-16_36_221
[COM8]Transfer Done : IMAGES/s-boot.bin 2023_02_05-16_36_546
[COM8]Transfer Done : IMAGES/dram_el3mon.bin 2023_02_05-16_36_677
[COM8]Write thread Exit##################### 2023_02_05-16_36_697
thank you from the bottom of my heart
may god give you good health
 

Attachments

  • 20230205_163924.jpg
    20230205_163924.jpg
    3.2 MB · Views: 18
  • 20230205_163911.jpg
    20230205_163911.jpg
    895.4 KB · Views: 19
  • 20230205_172214.jpg
    20230205_172214.jpg
    1.4 MB · Views: 20
  • Like
Reactions: adfree and alecxs

V0latyle

Forum Moderator
Staff member
@bobbywan30 I think you may have some misconceptions on what XDA is all about.

Firstly, you MUST obey the Forum Rules. Do not post the same message several times, do not keep posting the same files multiple times, and USE ENGLISH.

Second, you and only you are responsible for the risks you take. If you don't know what you're doing, you shouldn't be doing it. No one is obligated to help you. This forum is an excellent resource to learn things, but we aren't a "software support" forum where you can beg and demand that people do things for you. You will often find that people are more willing to offer help when it's clear that you have a general idea of what you're doing, but no one here is going to want to spoon feed you and hold your hand every step of the way. If someone tells you that you're doing something wrong, or that you don't know what you're doing, that should be your indication to STOP and do some research to gather the information you need.

It doesn't matter how big your problem is; you got yourself into this mess, and it's rude to expect other people to dig you out.
 

harif_p

Senior Member
Dec 16, 2011
134
55
Yogyakarta
you can use ctrl + G, then type 3000 to jump to offset 0x3000. now copy everything from
0x0 - 0x2FFF = bl1
0x3000 - 0x15FFF = ebpl
0x16000 - 0x67FFF = bl2
...
0xA4000 - 0x223FFF = s-boot
0x224000 - 0x263FFF = el3mon

Hello, how do you get this offset range from the github gist? I mean, on gist it only listed the beginning offset of every partition, but not the end of it.
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,255
7
2,982
gitlab.com
Hi, you are right, the focus of that gist is not on offsets for splitting sboot. "my" offsets are just guessed based on other splits. use it with precautions
 
Last edited:

harif_p

Senior Member
Dec 16, 2011
134
55
Yogyakarta
Hi, you are right, the focus of that gist is not on offsets for splitting sboot. "my" offsets are just guessed based on other splits. use it with precautions

Hmm alright, still I can't guess it properly based on other splits thought, I mean someone already make a thread (pardon me it is not note 10, but s10 in this thread), but it just fails on s-boot section while flashing since I don't know how to guess it properly, because those offset was created on 2020 which mean based on Android 10, while last update for my device is on A12. Maybe you can share how you are guessing it before? thank you
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,255
7
2,982
gitlab.com
open a set of image and its splits in hexeditor and look on the file contents. then look at your file for similar looking content (not exactly same bytes)

it's just guesswork
 

harif_p

Senior Member
Dec 16, 2011
134
55
Yogyakarta
open a set of image and its splits in hexeditor and look on the file contents. then look at your file for similar looking content (not exactly same bytes)

it's just guesswork
Umm alright, and my only source of set of image is from N975F, because the ones from G975F thread is already dead, I mean the download link to compare it and the OP doesn't seems open XDA anymore :rolleyes:
 

harif_p

Senior Member
Dec 16, 2011
134
55
Yogyakarta
doesn't matter, you can compare with N975F
Yeah, now it flashing with s-boot and el3mon offset from N975F, but phone still doesn't goes into ODIN mode (it is now stopping to disconnect frequently as before, seems phone changing the mode)

well guess I'm out of luck, anyway thank you for your reply before.

Edit: after 3 minutes, suddenly the phone turned on and showing this on the top corner left, but still not detected by ODIN lol

Edit: I think the cropped word is "USB", so it is displaying USB RECOVERY MODE and my pc didn't detect it
 

Attachments

  • photo_2023-03-25.jpg
    photo_2023-03-25.jpg
    15.5 KB · Views: 11
Last edited:

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,255
7
2,982
gitlab.com
I remember read someone suggested on gsmhosting.com you may have more luck with extra flashing tzsw/teegris from sboot image.

in case you're facing flashing issues you may insert DNW_WAIT in config, although I don't know if that makes a difference.

Consider that bootloader is downgrade protected, you need to flash recent sboot according to your current bootloader level.
 

harif_p

Senior Member
Dec 16, 2011
134
55
Yogyakarta
I remember read someone suggested on gsmhosting.com you may have more luck with extra flashing tzsw/teegris from sboot image.

Alright, lemme goes there, thank you for the suggestion.

in case you're facing flashing issues you may insert DNW_WAIT in config, although I don't know if that makes a difference.

Already tried adding DNW_WAIT line like on #179 , it just didn't work as it only showing "Wait Re-Connect AP USB Device" and "Please Run Re-Enumeration Sequence on AP" message and didn't proceed anything further.

Consider that bootloader is downgrade protected, you need to flash recent sboot according to your current bootloader level.

Yeah already using latest sboot for base, from March 2023 update since I didn't know what was this phone last software version (it comes in dead already anyway).
 
  • Like
Reactions: alecxs

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    @bobbywan30 I think you may have some misconceptions on what XDA is all about.

    Firstly, you MUST obey the Forum Rules. Do not post the same message several times, do not keep posting the same files multiple times, and USE ENGLISH.

    Second, you and only you are responsible for the risks you take. If you don't know what you're doing, you shouldn't be doing it. No one is obligated to help you. This forum is an excellent resource to learn things, but we aren't a "software support" forum where you can beg and demand that people do things for you. You will often find that people are more willing to offer help when it's clear that you have a general idea of what you're doing, but no one here is going to want to spoon feed you and hold your hand every step of the way. If someone tells you that you're doing something wrong, or that you don't know what you're doing, that should be your indication to STOP and do some research to gather the information you need.

    It doesn't matter how big your problem is; you got yourself into this mess, and it's rude to expect other people to dig you out.
    2
    XDA at it's Finest!!!
    @alecxs and @adfree
    Awesome to see you two at it helping out!

    Thank you 💯
    2
    who needs the files
    can take them from here
    2
    this tool is undocumented, couldn't find any information about, except what is already linked in thread.
    for example don't know what the 200 means. guess it's a timeout counter.

    also I still don't understand how the location is determined where the files are written. my guess is, it parses the file name for determining the label.

    please wait for new information.
    thank you alecxs for your patience with me. you are a great gentleman.
    thank you for
    0 - 2FFF = bl1
    3000 - 15FFF = epbl.bin
    16000 - 67FFF = bl2.bin
    ...
    A4000 - 223FFF = s-boot.bin
    224000 - 263FFF = dram_el3mon.bin
    1 downloaded the latest firmware from the internet
    2 i extracted sboot.bin
    I rewrote the files
    3 boom
    [COM8]Write thread Start################### 2023_02_05-16_36_542
    [COM8]Transfer Done : IMAGES/bl1 2023_02_05-16_36_652
    [COM8]Transfer Done : IMAGES/epbl.bin 2023_02_05-16_36_783
    [COM8]Transfer Done : IMAGES/bl2.bin 2023_02_05-16_36_221
    [COM8]Transfer Done : IMAGES/s-boot.bin 2023_02_05-16_36_546
    [COM8]Transfer Done : IMAGES/dram_el3mon.bin 2023_02_05-16_36_677
    [COM8]Write thread Exit##################### 2023_02_05-16_36_697
    thank you from the bottom of my heart
    may god give you good health
    1
    you have just quoted me two times. find another person that can translate english into your language very well. try to understand what you just have quoted.