Jump to content

Clover General discussion


ErmaC
30,171 posts in this topic

Recommended Posts

 

It's a pity I have no test machine to known what is the problem. Some user/coder/hacker with such cpu should inform me what to change in Clover.

 

If you give me some instruments to debug I'll be glad to help you

Link to comment
Share on other sites

If you give me some instruments to debug I'll be glad to help you

You have to be a programmer to do this.

Briefly:

Clover's boot file consists of three packed parts. Look ebuild.sh

    echo Compressing DUETEFIMainFv.FV ...
    "$BASETOOLS_DIR"/LzmaCompress -e -o "${BUILD_DIR}/FV/DUETEFIMAINFV${TARGETARCH}.z" "${BUILD_DIR}/FV/DUETEFIMAINFV${TARGETARCH}.Fv"

    echo Compressing DxeCore.efi ...
    "$BASETOOLS_DIR"/LzmaCompress -e -o "${BUILD_DIR}/FV/DxeMain${TARGETARCH}.z" "$BUILD_DIR_ARCH/DxeCore.efi"

    echo Compressing DxeIpl.efi ...
    "$BASETOOLS_DIR"/LzmaCompress -e -o "${BUILD_DIR}/FV/DxeIpl${TARGETARCH}.z" "$BUILD_DIR_ARCH/DxeIpl.efi"

    echo "Generate Loader Image ..."
        "$BASETOOLS_DIR"/GenFw --rebase 0x10000 -o "$BUILD_DIR_ARCH/EfiLoader.efi" "$BUILD_DIR_ARCH/EfiLoader.efi"
        "$BASETOOLS_DIR"/EfiLdrImage -o "${BUILD_DIR}"/FV/Efildr32 \
        "${BUILD_DIR}"/${TARGETARCH}/EfiLoader.efi                \
        "${BUILD_DIR}"/FV/DxeIpl${TARGETARCH}.z                   \
        "${BUILD_DIR}"/FV/DxeMain${TARGETARCH}.z                  \
        "${BUILD_DIR}"/FV/DUETEFIMAINFV${TARGETARCH}.z
        cat $BOOTSECTOR_BIN_DIR/start32H.com2 $BOOTSECTOR_BIN_DIR/efi32.com3 \
        "${BUILD_DIR}"/FV/Efildr32 > "${BUILD_DIR}"/FV/boot

When boot file (it is actually DUET) is started then it unpacks all three parts in their own memories.

Clover/CloverEFI/OsxEfiLdr/EfiLoader.c

When you get the red panic you can see the panic address. This address corresponds to one of these parts with its own memory location.

When you find this address is in the unpacked module then you can disassemble this module and find a place in sources where it happens.

After that I will be ready to continue the dialog.

  • Like 2
Link to comment
Share on other sites

 

4305 is ontheway

svn diff -r 3333:4035 https://svn.code.sf.net/p/cloverefiboot/code/ > huUuUuUge.diff

 

vimdiff /Users/cuthead/FSInject-64.efi /Users/cuthead/Downloads/FSInject-32.efi

clover different is BOOTX64.efi because clover is boot.

  • Like 1
Link to comment
Share on other sites

Hi @gils83, a question. The support for this cpu is already added to the xnu -AMD-kernel by someone? If yes, can you post a link to that source?

Thanks

 Hello Micky1979 :) 

 

No, I have no information on path Ryzen kernel, I just want to make an attempt with Maveriks or Mountain Lion but I do not exceed the bootloader.
 
I thought of Modbin kernel 10.0 32 bit, maybe it would work for first test ? :)
 
cdt.Gilles
Link to comment
Share on other sites

Sorry, I mean that someone can start patching the kernel at xnu-xxxx/osfmk/i386/cpuid.c, and show here the result.

(I know that it will never work w/o bootloader support, but this isn't a job for AMD devs with hardware to test with?)

  • Like 1
Link to comment
Share on other sites

Sorry, I mean that someone can start patching the kernel at xnu-xxxx/osfmk/i386/cpuid.c, and show here the result.

(I know that it will never work w/o bootloader support, but this isn't a job for AMD devs with hardware to test with?)

 

Hello,

 

Bronya works on bootloader :) 

 

Royal Bronya :D 

  • Like 1
Link to comment
Share on other sites

Hi. I think all you need is a hacked kernel for AMD instead of Bootloader support? Clover is ready now.  :yes:

 

Hello, 

 

Yes Clover works good for AMD but not Ryzen 7 AMD , now Ryzen works with chameleon bootloader 2667 Bronya ;) 

 

pas de kernel pour l'instant :)

 

cordialement Gilles

Link to comment
Share on other sites

Hello, 

 

Yes Clover works good for AMD but not Ryzen 7 AMD , now Ryzen works with chameleon bootloader 2667 Bronya ;)

Well, could someone provide the patches? If yes, then everything will be clear. 

 

 

pas de kernel pour l'instant  :)

 

cordialement Gilles

What did this mean... Sorry I don't understand France.

Link to comment
Share on other sites

 

நீங்கள் ஹலோ பிரான்ஸ் இருந்து!
 
நான் கர்னல் எனக்கு Ryzen 7 சிபியு இப்போது தெரியவில்லை அர்த்தம்.
 
உண்மையுள்ள கில்லஸ் டெ பிரான்ஸ்
 
:)

 

Got it :P , but to the end no one has nothing to watch to create the support for this kind of cpu... maybe next chameleon will have a closed source (using a module?).. so to force peoples to share their secrets in exchange for other secrets  :yes:. From me, I can only advice Slice to remove any kind of support for AMD in Clover.... as policy, my 2 cents.

Link to comment
Share on other sites

Got black screen after i update to clover 4035 !

it was working gr8 on clover 3974.

Ive tried, Dual link = Nil,0,1 no effect clear.png

If i Inject ROM then display = 4 MB(VRAM)
same for Inject ATI
No changes wen i edit EDID.

There are some major changes in Clover 4K related to ATI.
System is loading(Confirmed by running Voice Over clear.png )

Link to comment
Share on other sites

Slice sir, wats the new way of ATI connector patch in clover 4K !

<dict>
	<key>KernelAndKextPatches</key>
	<dict>
		<key>KextsToPatch</key>
		<array>
			<dict>
				<key>Comment</key>
				<string>AMD Connectors Patch</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				AgAAAAABAAAZAQEAAAAAABIEAwMAAAAAAAQAAAQDAAAA
				AQIBAAAAABECAQEAAAAAAAQAAAABAAAACQMAAAAAACED
				AgIAAAAAAAQAAAABAAAACQQAAAAAACIFBAQAAAAAAAQA
				AAQDAAAAAQUAAAAAABAABQUAAAAA
				</data>
				<key>Name</key>
				<string>AMD7000Controller</string>
				<key>Replace</key>
				<data>
				AAQAAAQDAAAAAQJRAAAAABIEBAEAAAAAAAQAAAQDAAAA
				AQNhAAAAACIFBQIAAAAAAAgAAAQCAAAAAQFDAAAAABEC
				AQMAAAAABAAAABQCAAAAAQQxAAAAABAABgYAAAAABAAA
				AAQCAAAAAQURAAAAACEDAgUAAAAA
				</data>
			</dict>
		</array>
	</dict>
</dict>
</plist>
  • Like 4
Link to comment
Share on other sites

×
×
  • Create New...