Wndows 7/2008 R2 Loaders

Discussion in 'MDL Projects and Applications' started by nikmb, Mar 17, 2010.

  1. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    806
    826
    30
    then a compile time option would be best
     
  2. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    It's never ending. Just when I thought I had it cracked thre's another problem.
    There are 2 other tables pointed to by addresses in the FACP table which funnily enough has the same structure as the FADTtable.
    These 2 tables are not displayed using the Slic Toolkit so I didn't know that they may need relocating too.

    I'm tempted to just relocate to the EBDA but I think I'm nearly there now.
     
  3. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,557
    3,832
    120
    Nice to see you have been 'Challenged' and improving stuff

    BTW, have you have any idea why the grldrslic.iso refuses to boot on Virtual Box, i keep getting the 'open /oem.bin fail' error (is it a Virtual Box bug?)
    I tried about everything, all lowercase, all uppercase to comply with iso9660 standard etc.
     
  4. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    No idea..... yet but I've installed Sun VirtuaBox at work and so I will test it out on Monday if that's alright.

    Solution for DSDT table is to bail out and go for EBDA relocation as the DSDT is a massive table.

    That's me done for today.
    @Freestyler. I will double check my code tomorrow and re up a link as a little insurance aginst unexpected Bus and Truck interrupts if you know what I mean.
     
  5. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    I think it must be a VirtualBox problem. I get the same here with all configurations. Even burning to CD and settig the Virual machine to use the host CD gives the same problem.
     
  6. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    #106 nikmb, Mar 28, 2010
    Last edited: Mar 28, 2010
    (OP)
    Hi

    I have completed my latest changes.

    In place update RSDT/XSDT, better places for SLIC (but it appears from what I've read that it really doesn't matter where you put the SLIC because the OS (windows) just maps around anything used for ACPI). Failing that relocate to EBDA.
    I have tested for ACPI 1.0, tomorrow I can test 2 other scenarios and then will publish the code, new bootable CD iso for Freestyler and the SCRIPTS folder to install for everybody else.

    I will also provide the windows/linux environment so anybody wanting to can compile the code using just windows. A single download will be provided, ignore what you don't want. The changes to do the code are in stage2/builtins.c if you want to know.

    schöne Grüsse aus Österreich.
     
  7. Hazar

    Hazar MDL Guru

    Jul 29, 2009
    2,507
    456
    90
    My German isn't brilliant, but does that mean "Hello/Greetings from Austria" or something? :p
     
  8. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,527
    4,112
    270
    #108 timesurfer, Mar 28, 2010
    Last edited: Mar 28, 2010
    "nice greetings from Austria"

    Ich brauche, um Bier zu holen heute :p
     
  9. Hazar

    Hazar MDL Guru

    Jul 29, 2009
    2,507
    456
    90
    I need to get beer today? I think anyway.

    Back on topic already :p
     
  10. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    806
    826
    30
    #111 nononsence, Mar 28, 2010
    Last edited by a moderator: Apr 20, 2017
    I have started coding and I settled on the idea of comparing the oem field of the
    RSD PTR and the first 6 bytes of the oem field of the ACPI tables and only changing
    it if they match, so ACPI tables like yours will be untouched, but the tables on the
    machine below will get updated.

    EDIT: on second thought maybe 4 bytes to grab machines like "Sony " for
    RSD PTR and "SonyViao " for tables

    Code:
    Please select the 'Courier' font format to read !
    
    Table NameOEMID&TableIDAddress  LenthDescription Table  (ACPI 1.0)
    
    RSD PTR DELL          000FC9B0    20Root System Desc.Pointer
     |
     |- RSDTACRSYSACRPRDCT7FFD9C00    68Root System Desc.Table
           |
        00 |- FACP  DELL  CPi R   7FFDB400   116
        01 |- APIC  DELL  CPi R   7FFDBC00   104
        02 |- MCFG  DELL  CPi R   7FFDBBC0    62
        03 |- BOOT  DELL  CPi R   7FFDB7C0    40
        04 |- SSDT  PmRefCpu0Ist  7FFDABE6   640
        05 |- SSDT  PmRefCpu0Cst  7FFDAA0E   472
        06 |- SSDT  PmRefCpuPm    7FFDA813   507
      * 07 |- SLIC  ACRSYSACRPRDCT7FFD9E00   374Software Licensing Desc.Table
    
          --- Scan  Finished ---
    
     
  11. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    806
    826
    30
    #112 nononsence, Mar 28, 2010
    Last edited by a moderator: Apr 20, 2017
    coding is done before and after tables.

    Code:
    before-------------------------------------------------------------------------
    
    Table NameOEMID&TableIDAddress  LenthDescription Table  (ACPI 2.0)
    
    RSD PTR PTLTD         000F6940    36Root System Desc.Pointer
     |
     |- RSDTINTEL 440BX   7FEE4568    56Root System Desc.Table
     |     |
     |  00 |- FACP  INTEL 440BX   7FEFEF8C   116
     |  01 |- BOOT  PTLTD $SBFTBL$7FEE46FC    40
     |  02 |- APIC  PTLTD  APIC  7FEE46AC    80
     |  03 |- MCFG  PTLTD $PCITBL$7FEE4670    60
     |  04 |- SRAT  VMWAREMEMPLUG 7FEE45A0   208
     |  
     |- XSDTINTEL 440BX   7FEE451C    76Extended System Desc.Table
           |
        00 |- FACP  INTEL 440BX   7FEFEE98   244
        01 |- BOOT  PTLTD $SBFTBL$7FEE46FC    40
        02 |- APIC  PTLTD  APIC  7FEE46AC    80
        03 |- MCFG  PTLTD $PCITBL$7FEE4670    60
        04 |- SRAT  VMWAREMEMPLUG 7FEE45A0   208
    
    After--------------------------------------------------------------------------
    
    Table NameOEMID&TableIDAddress  LenthDescription Table  (ACPI 2.0)
    
    RSD PTR ACRSYS        000F6940    36Root System Desc.Pointer
     |
     |- RSDTACRSYSACRPRDCT7FFFFC00    60Root System Desc.Table
     |     |
     |  00 |- FACP  INTEL 440BX   7FEFEF8C   116
     |  01 |- BOOT  ACRSYSACRPRDCT7FEE46FC    40
     |  02 |- APIC  ACRSYSACRPRDCT7FEE46AC    80
     |  03 |- MCFG  ACRSYSACRPRDCT7FEE4670    60
     |  04 |- SRAT  VMWAREMEMPLUG 7FEE45A0   208
     |* 05 |- SLIC  ACRSYSACRPRDCT7FFFFE00   374Software Licensing Desc.Table
     |  
     |- XSDTACRSYSACRPRDCT7FFFFD00    84Extended System Desc.Table
           |
        00 |- FACP  INTEL 440BX   7FEFEE98   244
        01 |- BOOT  ACRSYSACRPRDCT7FEE46FC    40
        02 |- APIC  ACRSYSACRPRDCT7FEE46AC    80
        03 |- MCFG  ACRSYSACRPRDCT7FEE4670    60
        04 |- SRAT  VMWAREMEMPLUG 7FEE45A0   208
      * 05 |- SLIC  ACRSYSACRPRDCT7FFFFE00   374Software Licensing Desc.Table
    
     
  12. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    Ich auch, und Schnaps dazu!
     
  13. secr9tos

    secr9tos MDL Addicted

    Jul 28, 2009
    999
    133
    30
    :D:D but only > 40% if u know what I mean:p
     
  14. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,770
    1,101
    60
    Schnaps ist für die kleinen Mädchen, lassen die Männer trinken ihren alten Scotch.

    Translation, I like whiskey that has a bite to it.
     
  15. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    #116 nikmb, Mar 29, 2010
    Last edited: Mar 29, 2010
    (OP)
    Ich hab nicht gewusst dass so viele Leute gut Deutsch sprechen können.
    Back to English.
    Final testing nearly finished but there's still some bugs I think. I'll publish tonight and have a week off I think.
     
  16. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,557
    3,832
    120
    #117 FreeStyler, Mar 29, 2010
    Last edited: Mar 29, 2010
    Ever heard of Google translate? :)

    I'm back up and running again... ready to test, had serious issues loading my user profile in windows 7 after resizing a partition... took me about 2 days to get it restored and up and running as before... pffff
     
  17. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,557
    3,832
    120
    I can remember having a huge headache after drinking that stuff ;)
     
  18. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    Funny. I never remember ANYTHING when I drink it :(