Jump to content
XPEnology Community

DSM 5.x/6.x/7.x CPU name & cores infomation Change tool


FOXBI

Recommended Posts

On 9/8/2019 at 7:10 PM, FOXBI said:

 

Can you show me command result “dmidecode -t process”.

 

I think... may be script running first “dmidecode” after refer “/proc/cpuinfo”.

 

Here it is:

root@DS3615xs:~# dmidecode -t processor
# dmidecode 3.2
Scanning /dev/mem for entry point.
SMBIOS 2.8 present.
Handle 0x0400, DMI type 4, 42 bytes
Processor Information
        Socket Designation: CPU 0
        Type: Central Processor
        Family: Other
        Manufacturer: QEMU
        ID: EA 06 09 00 FF FB 8B 0F
        Version: pc-q35-3.1
        Voltage: Unknown
        External Clock: Unknown
        Max Speed: 2000 MHz
        Current Speed: 2000 MHz
        Status: Populated, Enabled
        Upgrade: Other
        L1 Cache Handle: Not Provided
        L2 Cache Handle: Not Provided
        L3 Cache Handle: Not Provided
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified
        Core Count: 2
        Core Enabled: 2
        Thread Count: 1
        Characteristics: None

 

  • Thanks 1
Link to comment
Share on other sites

What am I doing wrong?

 

I keep getting:

 

Invalid entry length (3). DMI table is broken! Stop.

Invalid entry length (3). DMI table is broken! Stop.

Invalid entry length (3). DMI table is broken! Stop.

Invalid entry length (3). DMI table is broken! Stop.

 

Also it seems broken in control panel now.

 

 

 

billede.png

Edited by NooL
addition
  • Thanks 1
Link to comment
Share on other sites

On 9/8/2019 at 9:40 PM, gadreel said:

Version: pc-q35-3.1

 

On 9/13/2019 at 8:35 AM, NooL said:

Invalid entry length (3). DMI table is broken! Stop.

 

two case is dmidecode is wrong.

 

i make ch_cpuinfo refer to 1st dmidecode after 2nd /proc/cpuinfo.

 

i'll modify source change to procedure ch_cpuinfo next version.

 

Thank you!!

Link to comment
Share on other sites

On 9/14/2019 at 5:51 AM, FOXBI said:

 

 

two case is dmidecode is wrong.

 

i make ch_cpuinfo refer to 1st dmidecode after 2nd /proc/cpuinfo.

 

i'll modify source change to procedure ch_cpuinfo next version.

 

Thank you!!

 

 

Sounds good, in my case i think i accidently overwrite the backup file too, so cant restore or anything :)

 

When do you expect the new version to be ready? :)

 

Awesome work! :)

  • Thanks 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...

hello, first of all thanks for the great effort.

I have a problem, I executed the script on my previous cpu and worked well but now I have changed it to Intel Xeon E3-1265LV2, I choose the redo option but nothing happens, tried to delete \root\xpenology and do first run but still nothing, it shows the same as before. what can I do friend?

Edited by viktortrass
Link to comment
Share on other sites

8 hours ago, viktortrass said:

hello, first of all thanks for the great effort.

I have a problem, I executed the script on my previous cpu and worked well but now I have changed it to Intel Xeon E3-1265LV2, I choose the redo option but nothing happens, tried to delete \root\xpenology and do first run but still nothing, it shows the same as before. what can I do friend?

 

when i made ch_cpuinfo, i think ed about only DSM version upgrade. but, may be don't thinked about hardware change.

 

if you can find path file location "/usr/syno/synoman/webman/modules/AdminCenter/admin_center.js" ""/usr/syno/synoman/webman/modules/AdminCenter/admin_center.js.gz"

 

after extract original file in DSMxxx.pat, copy to overwrite location.

or

edit by vi tool source.

 

and then you do run again.

Link to comment
Share on other sites

On 11/1/2019 at 8:19 AM, viktortrass said:

sorry but I don't understand what I have to do exactly, I have the original DSM pat of my actual installed version but I don't find anything about this two files

 

do use 7zip

 

1. extract DSMxxx.pat check of hda1.tgz file

 

2. extract hda1.tgz check of hda1 follder 

 

3. extract hda1 check  of hda1~ folder

 

eg.) c:\DSM_DS3615xs_24922\hda1\hda1~\usr\syno\synoman\webman\modules\AdminCenter

 

4. you can find original admin_center.js & admin_center.hs.gz

 

5 do use sftp, upload and overwite two files.

 

After checking back your DSM information

 

and then you do run again.

Link to comment
Share on other sites

  • 3 weeks later...
On 11/5/2019 at 6:02 AM, FOXBI said:

 

do use 7zip

 

1. extract DSMxxx.pat check of hda1.tgz file

 

2. extract hda1.tgz check of hda1 follder 

 

3. extract hda1 check  of hda1~ folder

 

eg.) c:\DSM_DS3615xs_24922\hda1\hda1~\usr\syno\synoman\webman\modules\AdminCenter

 

4. you can find original admin_center.js & admin_center.hs.gz

 

5 do use sftp, upload and overwite two files.

 

After checking back your DSM information

 

and then you do run again.

thank you very much I will do that tomorrow!

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...
  • 4 weeks later...

I have two E5-2696 v4 after the patch appeared
8 Cores (1 CPU / 8 Cores | 8 Threads)
Then I went to edit manually.
Here is a piece of code 
 

Цитата

 

("support_mtd_serial")=="yes"){q.push([_T("common","ds_serial"),h.serial])}q.push([_T("common","ds_model"),h.model]);h.cpu_vendor="Intel";h.cpu_family="Xeon";h.cpu_series="E5-2696 v4";h.cpu_cores="22 Cores (2 CPU/44 Cores | 44s Threads)";h.cpu_detail="<a href='https://ark.intel.com/content/www/us/en/ark/search.html?_charset_=UTF-8&q=E5-2696 v4' target=_blank>detail</a>";if(Ext.isDefined(h.cpu_vendor)&&Ext.isDefined(h.cpu_family)&&Ext.isDefined(h.cpu_series)){q.push([_T("status","cpu_model_name"),String.format("{0} {1} {2} {3} {4} {5} {6} {7} {8} {9} {10} {11} {12} {13} {14} {15} {16} {17} {18} {19} {20} {21}",h.cpu_vendor,h.cpu_family,h.cpu_series,h.cpu_detail)])}if(Ext.isDefined(h.cpu_clock_speed)){if(h.cpu_clock_speed<1000){k=Math.round(h.cpu_clock_speed);q.push([_T("status","cpu_clock_speed"),k+" MHz"])}else{k=Math.round(h.cpu_clock_speed/10)/100;q.push([_T("status","cpu_clock_speed"),k+" GHz"])}}if(Ext.isDefined(h.cpu_num)){q.push([_T("status","cpu_num"),h.cpu_num])}if(Ext.isDefined(h.cpu_cores)){q.push([_T("status","cpu_cores"),h.


 

 

And in the application the whole

admin_center (1).js

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...

For 6.2.3 in ch_cpuinfo.sh replace:

string 178:

form

sed -i "s/${dt}.model]);/${dt}.model]);${cpu_info}/g" $BKUP_DIR/admin_center.js

to

sed -i "s/${dt}.model])\}/${dt}.model])\}${cpu_info}/g" $BKUP_DIR/admin_center.js

string 659:

from

dt=h

to

dt=g

This workaroung will fix web view but break backward compatibility of script. Use it only with 6.2.3.

 

How to fix mobile view idk yet...

  • Like 3
  • Thanks 1
Link to comment
Share on other sites

47 minutes ago, Flint said:

For 6.2.3 in ch_cpuinfo.sh replace:

string 178:

form

sed -i "s/${dt}.model]);/${dt}.model]);${cpu_info}/g" $BKUP_DIR/admin_center.js

to

sed -i "s/${dt}.model])\}/${dt}.model])\}${cpu_info}/g" $BKUP_DIR/admin_center.js

string 659:

from

dt=h

to

dt=g

This workaroung will fix web view but break backward compatibility of script. Use it only with 6.2.3.

 

How to fix mobile view idk yet...

thx,that works OWO
hope ppl there can fix mobile view ~

 

Link to comment
Share on other sites

  • FOXBI changed the title to DSM 5.x/6.x/7.x CPU name & cores infomation Change tool

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...