Results 1 to 15 of 27

Thread: KMSEmulator for Linux (including home routers with *WRT/Tomato)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Join Date
    Mar 2009
    Location
    Default City
    Posts
    2,694
    Blog Entries
    4
    Works correctly on any endian now. Checked with x86 and my ar71xx router.
    Also, I've tried to workaround GCC 4.2/3 bug. Funny even older GCC 3 used for mips work fine
    http://rghost.ru/50248390 - kms_linux_src_2.zip

    Couldn't test your big endian fixes but the diffs show you made the right changes.

    gcc 4.2.3 doesn't know optimize("1") and shows rpc.c:132: warning: 'optimize' attribute directive ignored. However it works perfectly with -O2, -O3 and -Os.

    Changing to

    Code:
    // Workaround for buggy GCC 4.2/4.3
    #if __GNUC__ == 4 && __GNUC_MINOR__ < 4 //#if __GNUC__ < 4 || __GNUC_MINOR__ < 4 (small bug in condition)
    __attribute__((noinline))
    #endif
    static void MakeHmacKey(void *ts, unsigned long long *key)
    {
            PUT_UA64LE( key,
                            ( GET_UA64LE(ts) / 0x00000022816889BDULL ) * 0x000000208CBAB5EDULL + 0x3156CD5AC628477AULL );
    }
    works without warning and limits fix to 4.0, 4.1, 4.2 and 4.3.


    brcm or ar71xx build

    http://rghost.ru/50248281 - big-endian, just tested to work on my router.

    http://rghost.ru/50248316 - little-endian, built with tomato toolchain, have no device to test on, but little-endian on x86 works.
    Last edited by TReX; 17-11-2013 at 18:47.

Similar Threads

  1. Tomato - открытая прошивка для SOHO маршрутизаторов
    By ABATAPA in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 86
    Last Post: 25-02-2014, 01:22
  2. New Asus RT-N56U & RT-N76U Routers
    By hggomes in forum English Discussion
    Replies: 9
    Last Post: 18-08-2011, 14:08
  3. Linux guru please help restore my hdd !!
    By engtteo in forum WL-700g Q&A
    Replies: 1
    Last Post: 06-06-2009, 01:50
  4. Asus recogizes error and wil replace routers with 62KOhm R17 resistor
    By Sjoerd-WL500gP in forum WL-500gP Pics & Specs
    Replies: 14
    Last Post: 10-01-2009, 18:59
  5. USB audio - from Linux
    By mangodan in forum WL-500g Custom Development
    Replies: 5
    Last Post: 10-04-2007, 12:25

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •