Wndows 7/2008 R2 Loaders

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

  1. nononsence

    nononsence MDL Addicted

    Joined:
    Aug 18, 2009
    Messages:
    809
    Likes Received:
    821
    Trophy Points:
    30
    then a compile time option would be best
     
  2. nikmb

    nikmb MDL Member

    Joined:
    Feb 22, 2010
    Messages:
    107
    Likes Received:
    55
    Trophy Points:
    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

    Joined:
    Jun 23, 2007
    Messages:
    3,520
    Likes Received:
    3,730
    Trophy Points:
    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

    Joined:
    Feb 22, 2010
    Messages:
    107
    Likes Received:
    55
    Trophy Points:
    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

    Joined:
    Feb 22, 2010
    Messages:
    107
    Likes Received:
    55
    Trophy Points:
    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

    Joined:
    Feb 22, 2010
    Messages:
    107
    Likes Received:
    55
    Trophy Points:
    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

    Joined:
    Jul 29, 2009
    Messages:
    2,523
    Likes Received:
    457
    Trophy Points:
    90
    My German isn't brilliant, but does that mean "Hello/Greetings from Austria" or something? :p
     
  8. timesurfer

    timesurfer MDL Developer

    Joined:
    Nov 22, 2009
    Messages:
    8,527
    Likes Received:
    4,103
    Trophy Points:
    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

    Joined:
    Jul 29, 2009
    Messages:
    2,523
    Likes Received:
    457
    Trophy Points:
    90
    I need to get beer today? I think anyway.

    Back on topic already :p
     
  10. ireneuszp

    ireneuszp MDL Novice

    Joined:
    Sep 26, 2009
    Messages:
    19
    Likes Received:
    12
    Trophy Points:
    0
  11. nononsence

    nononsence MDL Addicted

    Joined:
    Aug 18, 2009
    Messages:
    809
    Likes Received:
    821
    Trophy Points:
    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 ---
    
     
  12. nononsence

    nononsence MDL Addicted

    Joined:
    Aug 18, 2009
    Messages:
    809
    Likes Received:
    821
    Trophy Points:
    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
    
     
  13. nikmb

    nikmb MDL Member

    Joined:
    Feb 22, 2010
    Messages:
    107
    Likes Received:
    55
    Trophy Points:
    10
    Ich auch, und Schnaps dazu!
     
  14. secr9tos

    secr9tos MDL Addicted

    Joined:
    Jul 28, 2009
    Messages:
    999
    Likes Received:
    133
    Trophy Points:
    30
    :D:D but only > 40% if u know what I mean:p
     
  15. Mr Jinje

    Mr Jinje MDL Expert

    Joined:
    Aug 19, 2009
    Messages:
    1,773
    Likes Received:
    1,098
    Trophy Points:
    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.
     
  16. nikmb

    nikmb MDL Member

    Joined:
    Feb 22, 2010
    Messages:
    107
    Likes Received:
    55
    Trophy Points:
    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.
     
  17. FreeStyler

    FreeStyler MDL Guru

    Joined:
    Jun 23, 2007
    Messages:
    3,520
    Likes Received:
    3,730
    Trophy Points:
    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
     
  18. nikmb

    nikmb MDL Member

    Joined:
    Feb 22, 2010
    Messages:
    107
    Likes Received:
    55
    Trophy Points:
    10
  19. FreeStyler

    FreeStyler MDL Guru

    Joined:
    Jun 23, 2007
    Messages:
    3,520
    Likes Received:
    3,730
    Trophy Points:
    120
    I can remember having a huge headache after drinking that stuff ;)
     
  20. nikmb

    nikmb MDL Member

    Joined:
    Feb 22, 2010
    Messages:
    107
    Likes Received:
    55
    Trophy Points:
    10
    Funny. I never remember ANYTHING when I drink it :(