Creating correct cfg

Search This thread

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,254
7
2,979
gitlab.com
the SM-N975F.cfg is the same. you need to extract new files bl1, epbl.bin, bl2.bin, dram_train.bin, s-boot.bin, dram_el3mon.bin from sboot.img. compare the old files with old sboot.img and figure out offsets. extract new files from new sboot.img from same offsets. the file sizes will give you hint about length. use the SM-N975F.cfg as is.
 
Last edited:

bobbywan30

Senior Member
Nov 18, 2017
125
8
the cfg is the same. you extract new files bl1, bl2.bin, epbl.bin, el3mon.bin, s-boot.bin from sboot.img. compare the old files with old sboot.img and figure out offsets. extract new files from new sboot.img from same offsets. use the cfg as is.

the cfg is the same. you extract new files bl1, bl2.bin, epbl.bin, el3mon.bin, s-boot.bin from sboot.img. compare the old files with old sboot.img and figure out offsets. extract new files from new sboot.img from same offsets. use the cfg as is. the file sizes will give you hint about length.
please believe me and understand that I don't know how to extract and create the files you say
you help me
I beg you
you extract
make cfg from sboot.bin
I beg you
 

Attachments

  • sboot.bin
    4 MB · Views: 13

bobbywan30

Senior Member
Nov 18, 2017
125
8
the SM-N975F.cfg is the same. you need to extract new files bl1, epbl.bin, bl2.bin, dram_train.bin, s-boot.bin, dram_el3mon.bin from sboot.img. compare the old files with old sboot.img and figure out offsets. extract new files from new sboot.img from same offsets. the file sizes will give you hint about length. use the SM-N975F.cfg as is.
I beg you
help me
if you help me I will pray to God for you
I'm begging you, help me
 

bobbywan30

Senior Member
Nov 18, 2017
125
8
i opened sboot.bin
but I look like a cat at the calendar
I do not know what to do
I have no idea what everything that is seen means
 

Attachments

  • 20230125_152104.jpg
    20230125_152104.jpg
    1.4 MB · Views: 12

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,254
7
2,979
gitlab.com
left column you see offsets. jump to the offsets given in link. mark everything from offset down to next offset. copy-paste it into new empty file.
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,254
7
2,979
gitlab.com
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
 
Last edited:

bobbywan30

Senior Member
Nov 18, 2017
125
8
puteți folosi ctrl + G, apoi tastați 3000 pentru a trece la offset 0x3000. acum copiați totul din
0x0 - 0x2FFF = bl1
0x3000 - 0x15FFF = ebpl
acum ce?

**Mod Translation**

now what?
 

Attachments

  • 20230125_152104.jpg
    20230125_152104.jpg
    1.4 MB · Views: 14
  • 20230125_154740.jpg
    20230125_154740.jpg
    1.7 MB · Views: 13
  • 20230125_155412.jpg
    20230125_155412.jpg
    2 MB · Views: 12
Last edited by a moderator:

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,254
7
2,979
gitlab.com
goto offset 0x3000. now copy everying above that line. use mouse for select and ctrl + C for copy. paste into new file with ctrl + V and save as bl1.
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,254
7
2,979
gitlab.com
as I said you don't need another cfg. it is the same file! I am on mobile and don't have PC today. just split the sboot.img into pieces as described, its not that hard...
 

bobbywan30

Senior Member
Nov 18, 2017
125
8
după cum am spus, nu aveți nevoie de un alt cfg. este acelasi fisier! Sunt pe mobil și nu am PC azi. Doar împărțiți sboot.img în bucăți așa cum este descris, nu este atât de greu...
te rog, ai milă de mine și creează cfg-ul din sboot, ok
te implor

**Mod Translation**

please have mercy on me and create the cfg from sboot ok I beg you
 
Last edited by a moderator:

alecxs

Forum Moderator
Staff member
Feb 17, 2016
4,254
7
2,979
gitlab.com

no need to create SM-N975F.cfg you can use it as is​

🤦
Code:
; BL1
DNW_STORE exynos down 200 20 IMAGES/bl1
; EPBL
DNW_STORE exynos down 200 20 IMAGES/epbl.bin
; BL2
DNW_STORE exynos down 200 20 IMAGES/bl2.bin
; DRAM TRAINING
;DNW_STORE exynos down 200 20 IMAGES/dram_train.bin
; S-BOOT
DNW_STORE exynos down 2000 20 IMAGES/s-boot.bin
; Dram EL3
DNW_STORE exynos down 200 20 IMAGES/dram_el3mon.bin
 

bobbywan30

Senior Member
Nov 18, 2017
125
8

no need to create SM-N975F.cfg you can use it as is​

🤦
Code:
; BL1
DNW_STORE exynos down 200 20 IMAGES/bl1
; EPBL
DNW_STORE exynos down 200 20 IMAGES/epbl.bin
; BL2
DNW_STORE exynos down 200 20 IMAGES/bl2.bin
; DRAM TRAINING
;DNW_STORE exynos down 200 20 IMAGES/dram_train.bin
; S-BOOT
DNW_STORE exynos down 2000 20 IMAGES/s-boot.bin
; Dram EL3
DNW_STORE exynos down 200 20 IMAGES/dram_el3mon.bin
But it is not working
it gives me the error in the image
I understood that a new cfg must be created from sboot.bin from the software that was on the phone before the phone died
 

Attachments

  • 20230125_121804.jpg
    20230125_121804.jpg
    2.7 MB · Views: 9

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.