Author Topic: special kernel  (Read 20628 times)

ced

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
special kernel
« on: December 22, 2003, 06:07:10 am »
Hello,

I\'ve compiled a kernel (for the SL5600 - poodle) with the following instructions from this site:
http://tetsu.homelinux.org/zaurus/kernel/
If you want to translate to English -] http://www.excite.co.jp/world/url/

The kernel source code is based on the c860 source and 4 patches.

Here are some stats:

### default kernel
Dhrystone Benchmark, Version 2.1 (Language: C)
Register option not selected.
Microseconds for one loop:     4.2
Dhrystones per second:   240639.1
VAX MIPS rating:    136.960

### preemptif kernel -] http://www.tech9.net/rml/linux/
Dhrystone Benchmark, Version 2.1 (Language: C)
Register option not selected.
Microseconds for one loop:     2.5
Dhrystones per second:   402933.4
VAX MIPS rating:    229.330

### special kernel
Dhrystone Benchmark, Version 2.1 (Language: C)
Register option not selected.
Microseconds for one loop:     2.1
Dhrystones per second:   476099.8
VAX MIPS rating:    270.973


I\'v been using a preemptif kernel for about 3 months and I\'ve never seen any problem. I don\'t know about this \"special kernel\" but it\'s really really fast, you can see a massive difference in term of usability!

Let me know if you want the source and the binary. Don\'t know where to upload it on the ZUG...


Ced.
SL-5600, kernel 2.6.16 + GPE from .dev
Ethernet Socket LP-E
Viking 256M SD

Anonymous

  • Guest
special kernel
« Reply #1 on: December 22, 2003, 08:33:49 am »
If the preemptif and/or special kernel binary can be used as drop-in replacements
for the standard sharp kernel (ie in tkcROM) then this is very interesting.
Maybe you should contact proto and see whether he wants to bundle
this for distribution with tkcROM since the speedup seems quite significant
compared to standard sharp ROM.
I would for sure like to try running this on my sl-c860 if you have the
kernel binary available for that (I am running tkcROM 2.5.1).

edl867

  • Newbie
  • *
  • Posts: 28
    • View Profile
    • http://
special kernel
« Reply #2 on: December 22, 2003, 09:15:45 am »
What will it take to have this for the 5500, and can it include the wireless extensions

ced

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
special kernel
« Reply #3 on: December 22, 2003, 09:22:46 am »
I haven\'t got a binary for the c860, I\'ve only built it for the sl5600. But I can provide the source and the patches (and you can build it yourself with a cross compiler, if you want I can provide a howto).

I\'ve try to upload to the ZUG but it failed... maybe too big.
--

edl867--] I didn\'t see anything about the SL5500, I \"think\" it\'s only for the XScale processor familly but you can have a go with the 5500... ???
SL-5600, kernel 2.6.16 + GPE from .dev
Ethernet Socket LP-E
Viking 256M SD

Anonymous

  • Guest
special kernel
« Reply #4 on: December 22, 2003, 10:24:25 am »
If you don\'t mind, please do post those instructions and I will try to cross-compile
for c860.  Is gcc cross compiler for this available in cygwin or do you have
to do this on a linux box? I can install linux if needed but if cygwin is also possible
I will be able to try this much sooner.

offroadgeek

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
    • View Profile
    • https://www.oesf.org
special kernel
« Reply #5 on: December 22, 2003, 10:38:50 am »
Quote
Let me know if you want the source and the binary. Don\'t know where to upload it on the ZUG...

since it should be under 2mb, you can upload it directly to the zug downloads area..  I would suggest it go to:

ZUG Downloads ] kernel_source ] 5600

thanks!
Search the OESF Wiki
C1000 w/Cacko 1.23 beta (from Streamline) / 760 pdaxrom rc9 / 6000L (thanks Santa's elf!) / 5500 - OZ 3.3.5 / SIMpad SL4
1GB, 256mb SanDisk CF / 2x 1GB, 512mb, 256mb, 128mb SanDisk SD
Ambicom WL100C-CF wifi / Socket 56k CF modem / AmbiCom BT2000-CF (x2)
Pocketop keyboard, Piel Frama case (1000 & 5500), PDAir case (760 & 1000)
sip:536093@fwd.pulver.com
| OESF | ELSI | Zaurus User Group | ZaurusThemes |

ced

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
special kernel
« Reply #6 on: December 22, 2003, 12:06:02 pm »
Step by step to compile this custom kernel (I\'m NOT responsible for any damage to your zaurus by doing the following)

## setup a cross compiler --> http://docs.zaurus.com/index.php?id=linux_...ler_setup_howto

## grab the c860 kernel source --> http://more.sbc.co.jp/sl_j/source/c860/200...rom1_10.tar.bz2

## download the 4 patches
    -->
http://tetsu.homelinux.org/zaurus/kernel/v.../printk.c.patch
--> http://tetsu.homelinux.org/zaurus/kernel/v...3a/swap.c.patch
--> http://tetsu.homelinux.org/zaurus/kernel/v...l_apm.c-2.patch
    ## unpack the kernel source  
      --> bunzip2 linux-c860-20031107-rom1_10.tar.bz2
      --> tar xvf linux-c860-20031107-rom1_10.tar
        ## patch the kernel
          --> cd linux
          --> bunzip2 <patch directory>/linux-c750-20031212.patch.bz2
          --> patch -p1 < <patch directory>/linux-c750-20031212.patch
          --> patch -p1 < <patch directory>/printk.c.patch
          --> patch -p1 < <patch directory>/swap.c.patch
          --> patch -p1 < <patch directory>/sharpsl_apm.c-2.patch
            ## configure the kernel (please refer to the original web page for certitude)
              --> make xconfig (or \'make menuconfig\' for text)
              --> select \"Load Configuration from File\" and type --> arch/arm/def-configs/<device version>
                                                                   
                the device version is:
                                                                          ---> poodle (SL-5600)
                                                                          ---> poodle-j (B500)
                                                                          ---> corgi (SL-C700)
                                                                          ---> shepherd-j (SL-C750)
                                                                          ---> husky-j (SL-C760)
                                                                          ---> boxer-j (SL-C860)
                  --> select \"System Type\"
                         
                    ---> select \"Intel PXA250/210 Implementations\"
                               
                      ----> \"Use clock change (cccr_change) enable\" -> y
                                 ----> \"Boot CCCR=0x242\" --> y  (if device is SL5600/B500/C700)
                                 ----> \"Boot CCCR=0x162\" --> y (if device is C750/C760/C860)
                        ---> \"Workaround for XScale cache errata\" --> n
                               ---> \"Enable Fast Context Switch Extension\" --> y
                          --> select \"Console drivers\"
                                 
                            ---> select \"Frame-buffer support\"
                                       
                              ----> \"UNICON Support\" --> y
                                         ----> \"Double Byte GB encode\" --> y
                                         ----> \"Sharp LOGO screen support\" --> n
                                --> select \"Character devices\"
                                       
                                  ---> \"SL-Series touchscreen pressure value read\" --> y
                                         ---> \"SL-C Series power key suspend --> y (if C700/C750/C760/C860) --> n (if SL5600/B500)
                                         ---> \"SL-C Series 3 Button touch screen\" --> y
                                    --> finally save & exit
                                      ## compile the kernel
                                        --> make dep
                                        --> make clean
                                        --> make zImage
                                        --> make modules
                                          ## flash the kernel in arch/arm/boot/zImage
                                            --> copy the kernel & the updater.sh to a CF card
                                            --> flash it...
                                            --> reboot...
                                              ## run some statistic before and after flashing
                                                --> run 50 000 000 iterations --> echo 50000000 | ./dbry21
                                                --> you should have a summary file --> dbry.res
    SL-5600, kernel 2.6.16 + GPE from .dev
    Ethernet Socket LP-E
    Viking 256M SD

    ced

    • Full Member
    • ***
    • Posts: 225
      • View Profile
      • http://
    special kernel
    « Reply #7 on: December 23, 2003, 06:00:21 am »
    I\'ve created a better tutorial on the ZUG howto section:

    http://www.zaurususergroup.com/modules.php...0%28by%20Ced%29


    Enjoy and Merry Chrismas!

    Ced.
    SL-5600, kernel 2.6.16 + GPE from .dev
    Ethernet Socket LP-E
    Viking 256M SD

    Anonymous

    • Guest
    special kernel
    « Reply #8 on: December 23, 2003, 01:06:27 pm »
    ced,

    The 750 patch does not update boxer...this needs to happen.  You can manually edit boxer to make the necessary change:

    CONFIG_MTD_NAND_SHARP_SL_CORGI=y

    Anonymous

    • Guest
    special kernel
    « Reply #9 on: December 23, 2003, 01:06:41 pm »
    That was me...javab0y.

    Anonymous

    • Guest
    special kernel
    « Reply #10 on: December 23, 2003, 01:37:51 pm »
    Why did you set CONFIG_SHARP_LOGO=n?  Just a preference or is there a technical reason to shut this off?

    jscriv

    • Newbie
    • *
    • Posts: 23
      • View Profile
      • http://
    special kernel
    « Reply #11 on: December 23, 2003, 02:35:00 pm »
    Just FYI - I get a \'better\' benchmark with default kernel on 5500 with TKCROM than the default 5600 kernel:

    # cat dhry.res

    Dhrystone Benchmark, Version 2.1 (Language: C)
    Register option not selected.
    Microseconds for one loop:     3.8
    Dhrystones per second:   261396.9
    VAX MIPS rating:    148.775
    #
    # cat /proc/cpuinfo
    Processor       : Intel StrongARM-1110 rev 8 (v4l)
    BogoMIPS        : 137.21
    Features        : swp half 26bit fastmult
    CPU implementor : 0x69
    CPU architecture: 4
    CPU variant     : 0x0
    CPU part        : 0xb11
    CPU revision    : 8

    Hardware        : Sharp-Collie
    Revision        : 0000
    Serial          : 0000000000000000
    # uname -a
    Linux zaurus 2.4.18-rmk7-pxa3-embedix #5 Sun, 20 Jul 2003 01:25:30 -0500 armv4l unknown
    #

    However, a preemptive kernel on 5500 would be great.

    Also, has anyone had a go at compiling a 2.6 kernel yet?

    Jeremy.

    edl867

    • Newbie
    • *
    • Posts: 28
      • View Profile
      • http://
    special kernel
    « Reply #12 on: December 23, 2003, 03:07:48 pm »
    I would also like to make my 5500 faster!

    tumnus

    • Hero Member
    • *****
    • Posts: 1176
      • View Profile
      • http://www.cpinkney.org.uk
    special kernel
    « Reply #13 on: December 24, 2003, 03:28:01 am »
    Is this kernel exactly the same as the Sharp kernel, except for the patches? Do most kernel modules compiled for the default Sharp 5600 kernel work with this one or do the patches make them incompatible?

    It would be really great if the binary could be uploaded to the ZUG downloads area.
    # Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
    --------------------
    UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
    Qualendar for Calendar and Todo
    Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
    Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

    Anonymous

    • Guest
    special kernel
    « Reply #14 on: December 24, 2003, 04:16:32 am »
    you will get increase speed (performance) because CPU will running with 471 MHz on default.
    I buildin overclock utility in latest x11 rom, but not used overclock on defalut,
    i dont know how long live will have Z with it, but running with 471 MHz,
    Z hardware buttons slightly warm.

    Edit by Foxdie: This was most likely posted by Sashz