All times are UTC-06:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: A hack for dnetc
PostPosted: Sat Mar 26, 2005 6:17 am 
Offline

Joined: Fri Sep 24, 2004 1:39 am
Posts: 50
Location: greensboro , NC U.S.A.
Hi All,

I made a hack to enable AltiVec in dnetc for kernels above 2.6.4.
using KHexEdit I modefied the text for cpu detection like so
from
Code:
000a:a9b0 37 34 35 31 00 00 00 00 37 34 34 35 00 00 00 00 7451....7445....
000a:a9c0 37 34 35 35 00 00 00 00 37 34 34 37 00 00 00 00 7455....7447....
000a:a9d0 37 34 35 37 00 00 00 00 37 34 31 30 00 00 00 00 7457....7410....
000a:a9e0 41 75 74 6f 6d 61 74 69 63 20 70 72 6f 63 65 73 Automatic proces
000a:a9f0 73 6f 72 20 74 79 70 65 20 64 65 74 65 63 74 69 sor type detecti
to
Code:
000a:a990 34 30 33 47 00 00 00 00 34 30 33 47 43 00 00 00 403G....403GC...
000a:a9a0 34 30 33 47 43 58 00 00 37 34 34 31 00 00 00 00 403GCX..7441....
000a:a9b0 37 34 35 31 00 00 00 00 37 34 34 35 00 00 00 00 7451....7445....
000a:a9c0 37 34 35 35 00 00 00 00 37 34 34 37 2f 37 34 35 7455....7447/745
000a:a9d0 37 00 00 00 00 00 00 00 37 34 31 30 00 00 00 00 7.......7410....
000a:a9e0 41 75 74 6f 6d 61 74 69 63 20 70 72 6f 63 65 73 Automatic proces
000a:a9f0 73 6f 72 20 74 79 70 65 20 64 65 74 65 63 74 69 sor type detecti
nels


Top
   
 Post subject: A hack for dnetc
PostPosted: Sat Mar 26, 2005 6:29 am 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
The other way to do it would be to replace /proc/cpuinfo in the
file with /etc//cpuinfo - the same way we hack IBM Java to run
on a modern G4. Then simply add the appropriate line to the
file /etc/cpuinfo. This is less intrusive and more flexible :)

--
Matt Sealey <matt@genesi.co.uk>
Manager, Genesi, Developer Relations


> -----Original Message-----
> From: nels664868 [mailto:nels664868@earthlink.net]
> Sent: Saturday, March 26, 2005 12:17 PM
> To: ppczone-users@forums.ppczone.org
> Subject: A hack for dnetc
>
> Hi All,
>
> I made a hack to enable AltiVec in dnetc for kernels above 2.6.4.
> using KHexEdit I modefied the text for cpu detection like so from
>
> 000a:a9b0 37 34 35 31 00 00 00 00 37 34 34 35 00 00 00 00
> 7451....7445....
> 000a:a9c0 37 34 35 35 00 00 00 00 37 34 34 37 00 00 00 00
> 7455....7447....
> 000a:a9d0 37 34 35 37 00 00 00 00 37 34 31 30 00 00 00 00
> 7457....7410....
> 000a:a9e0 41 75 74 6f 6d 61 74 69 63 20 70 72 6f 63 65 73
> Automatic proces 000a:a9f0 73 6f 72 20 74 79 70 65 20 64
> 65 74 65 63 74 69 sor type detecti
>
> to
>
> 000a:a990 34 30 33 47 00 00 00 00 34 30 33 47 43 00 00 00
> 403G....403GC...
> 000a:a9a0 34 30 33 47 43 58 00 00 37 34 34 31 00 00 00 00
> 403GCX..7441....
> 000a:a9b0 37 34 35 31 00 00 00 00 37 34 34 35 00 00 00 00
> 7451....7445....
> 000a:a9c0 37 34 35 35 00 00 00 00 37 34 34 37 2f 37 34 35
> 7455....7447/745 000a:a9d0 37 00 00 00 00 00 00 00 37 34
> 31 30 00 00 00 00 7.......7410....
> 000a:a9e0 41 75 74 6f 6d 61 74 69 63 20 70 72 6f 63 65 73
> Automatic proces 000a:a9f0 73 6f 72 20 74 79 70 65 20 64
> 65 74 65 63 74 69 sor type detecti
>
> nels
> _________________________________________________________
> PPCZone Forums: http://www.ppczone.org/forums
>


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 53 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group