Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: Custom kernel for Galaxy 5 - I5500

  1. [translate]    #11
    Junior Member
    Join Date
    Nov 2010
    Location
    n/a
    Posts
    8

    Default

    Here's an update. I've made and tested a lot of patches. It looks like they really improve performance a lot.

    I've only got Tiny RCU and cgroup left to try out. Other than that, things are great.

    So, I will need to get the kernel on the phone soon.

    update:
    I'm going to flash the first version of the kernel to the phone today. This should be interesting.

    another update:
    The kernel Samsung has used as a base for GT-I5500 is extremely old. It doesn't even have the 2.6.29.6 patches like the 2.6.29 tree from the official Android repo does.
    I need to make individual patches to support pieces of hardware and everything. It's going to be a pain in the ass.

    update 3:
    spica style flash has failed. restoring original system.
    Last edited by flying_dutchman; 12-07-2010 at 03:24 PM.

  2. [translate]    #12
    Junior Member
    Join Date
    Dec 2010
    Location
    brazil
    Posts
    1

    Default

    Hey dutchman, i would like to help compiling and flashing the new kernel
    Please send me an email or something so we can start talking (if you want )
    Please send email to motafoca@alquest.com.br

    Thanks

  3. [translate]    #13
    Junior Member
    Join Date
    Dec 2010
    Location
    poland
    Posts
    2

    Default

    sorry I have a question:
    how to disable auto playback when headphones are connected - I5500

  4. [translate]    #14
    Junior Member
    Join Date
    Jan 2011
    Location
    Britian
    Posts
    5

    Default

    I'm also looking into compiling a modified version of the firmware for it as I wish to make some changes to the layout and other such things.

  5. [translate]    #15
    Moderator adi4motion's Avatar
    Join Date
    May 2010
    Location
    Romania
    Posts
    616

    Default

    Quote Originally Posted by loony383 View Post
    I'm also looking into compiling a modified version of the firmware for it as I wish to make some changes to the layout and other such things.
    you should wait a while since froyo is coming, it cames with 2.6.32 kernel (i've updated last night)
    Cosmote RO
    Phone: Motorola Defy
    ROM: CM 7 NIGHTLIES
    Kernel: 2.6.32.9

  6. [translate]    #16
    Junior Member
    Join Date
    Jan 2011
    Location
    Britian
    Posts
    5

    Default

    I did upgrade to Froyo (using the american one, as it is not out in Europe yet) and found it to be relatively unstable. It would lock up relatively often and I also found the changed color style to be quite un eye friendly for me. So it was almost like taking a step backwards. I might do it again with the intention of modifying and imrpoving the issues I had with it.

  7. [translate]    #17
    Junior Member
    Join Date
    May 2011
    Location
    Australia
    Posts
    2

    Cool How is it going?

    Quote Originally Posted by motafoca View Post
    Hey dutchman, i would like to help compiling and flashing the new kernel
    Please send me an email or something so we can start talking (if you want )
    Please send email to motafoca@alquest.com.br

    Thanks
    Hi Guys,
    I also want to compile and flash a new kernel for my i5500s. I have spent the last week setting up the development environment and downloaded everything good and bad. I have synced the froyo and eclair branches from the official developer site and am able to compile most of it. I hope I will soon be able to get it in the emulator at least.

    I am just curious wheter anybody of you already succeeded in flashing the own kernel on the Galaxy 5, and which difficulties are still to solve.

    Any suggestions are highly welcome

  8. [translate]    #18
    Junior Member
    Join Date
    May 2011
    Location
    Australia
    Posts
    2

    Default

    Hi Guys,
    anybody still here?

    I have made some progress in building a custom ROM.

    First I have found a decent looking tutorial which I have pasted below.

    So far I was able to

    - compile the kernel zimage in I5500XXJPG_Frojo_OpenSource.zip from Samsung Open Source Release Center

    - extract contents of boot.img of I5500LAR0JP2 from samfirmware.com, (zimage is part of this package) (Step 3 of tutorial)

    - mount the device´s filesystem from system.rfs (Step 7 of tutorial), thats amazing, you can edit the whole system and insert/remove apks, for example.


    The next things I will do is pack the whole system together and flash.
    However, before I would like to feed it into an emulator for testing, any hints here are highly appreciated.

    I also would like to change the samsung boot splash screen in the kernel. This should be standard linux kernel stuff. Does anybody know where in the kernel to look for it. So far I have found some logo.jpg penguins and logo.h bitmaps but i am not sure where the actual samsung bitmap is located and where it is loaded. I am working on that, support is appreciated.

    Some human knowledge should belong to humanity,
    Detlef



    -----------------
    source:Clip #RUS

    Hey everyone, bellow some tips on how to create custom roms based on the I5500LAR0JP2 for the Galaxy 5
    FOR ODIN HOWTO LOOK @ THEEND

    First of all we have to understand whats inside the file

    amms (dont know)
    boot.img (boot configuration files, basic system and kernel image)
    recovery.img (same as boot.img but in recoverymode, untoched)
    csc.rfs (some phone configurations and applications, works like a update.zip on top of system.rfs)
    system.rfs (all the system files, aplications and framework, also contains the bootanimation)

    Bellow there are commands and procedures
    The $ before the commands demonstrates to be run under linux
    The c:\ before the commands demonstrates to be run under windows dos prompt

    1- Extracting and odin build
    $ tar xvf ODIN_FILE.tar or $ tar xvf ODIN_FILE.tar.md5 (The md5 doesnt change the extraction)

    2- Rebuilding and odin build
    $ tar -H ustar -c amss boot.img csc.rfs recovery.img system.rfs >ODIN_FILE.tar
    $ md5sum -t ODIN_FILE.tar >>ODIN_FILE.tar (signing the file)
    $ mv ODIN_FILE.tar ODIN_FILE.tar.md5 (Changing to md5 format)
    to rar the file use:$ rar a -m5 ODIN_FILE.tar.md5.rar ODIN_FILE.tar.md5

    3- Extracting boot.img files
    Download the "tools"
    Multiupload.com - upload your files to multiple file hosting sites!
    $ /tools_folder/unpackbootimg -i boot.img -o ./ (this will extract all the files inside the boot.img, i recomend an empty folder)

    4- Packing the boot.img files
    $ mkbootimg --kernel boot.img-zImage --ramdisk boot.img-ramdisk.gz --base 00200000 --pagesize 00001000 -o boot.img


    5- Extracting the Ramdisk file
    $ mkdir ramdisk;cd ramdisk
    $ gunzip -c ../boot.img-ramdisk.gz | cpio -i

    6- Packing the ramdisk file
    $ find . | cpio -o -H newc | gzip > ../boot.img-ramdisk.gz (inside the ramdisk folder)

    7- How to access the system.rfs
    The system.rfs is a vfat based file system, you can mount it on the linux machine if vfat and loop is enabled on the kernel
    $ mkdir system_mount
    $ mount -o loop system.rfs system_mount

    8- Changing, adding or removing applications from the base system
    If you want to add, remove or change the applications installed as "default" you can mount the system.rfs (check step #7) then enter the app folder and modify the apps
    $ mkdir system_mount
    $ mount -o loop system.rfs system_mount
    $ cp /folder/application.apk system_mount/app/ (adding aplications)
    $ rm system_mount/app/application.apk (removing applications)
    $ cp /folder/application.apk system_mount/app/application.apk (replacing aplications)
    TIPS:
    Dont use 2 files of the same aplication
    Dont forget to unmount the folder before packing ($ umount system_mount)
    To repack everything again use step #2


    9- Kernel Compilation Howto
    download the toolchain: Multiupload.com - upload your files to multiple file hosting sites!
    downlaod the config file: Multiupload.com - upload your files to multiple file hosting sites!
    downlaod the kernel fix
    download kernel 2.6.29 sources ftp://ftp.kernel.org/pub/linux/kerne...2.6.29.tar.bz2
    download the latest kernel source code for the galaxy 5 on the samsung website (opensource.samsung.com)
    extract the sources
    $ unzip GT-I5500-XXXXX.zip
    $ unzip GT-I5500_OpenSource_Kernel.zip
    "Fix" the wrong file formating and copy the config image
    $ cd kernel
    $ find . -type f -name \u2018*\u2019 -exec dos2unix {} \;
    $ cp /folder/config2 ./.config
    fix the iptables files by using the fix and original kernel sources
    $ tar jxvf linux-2.6.29.tar.bz2
    $ cd linux-2.6.29
    $ cp /folder/fix ./
    $ chmod x fix
    $ ./fix samsung_kernel_folder
    extract the toolchain
    $ mkdir toolchain
    $ cd toolchain
    $ tar jxvf toolchain.tar.bz2
    enter the kernel folder and build it
    $ cd samsung_kernel_folder
    $ make ARCH=arm CROSS_COMPILE=/toolchainfolder/bin/arm-eabi- -j2
    $ make ARCH=arm CROSS_COMPILE=/toolchainfolder/bin/arm-eabi- modules_install
    the kernel zImage is located in arch/arm/boot/zImage
    the modules are located inside /lib/modules/2.6.29-perf/
    to "package" the kernel image inside the boot.img do
    $ cp arch/arm/boot/zImage /folder/unpackedbootimg/boot.img-zImage
    $ cd /lib/modules/2.6.29-perf
    $ cp `find ./ -iname *.ko` /folder/unpackedbootimg/ramdisk/lib/modules
    pack the ramdisk (step #6)
    pack the boot.img (step #4)
    pack the odin package (step #2)
    done

    @THEEND

    Preparation
    1) Backup everything you needed
    2) Download the STABLE ROM and Odin v4.28 and Ops file from here Multiupload.com - upload your files to multiple file hosting sites!
    3) Install KIES
    4) Reset your phone first to prevent problem use the following code *#*#7780#*#*

    Flashing
    1) Run ODIN Downloader
    -Select OPS tab: EUROPA_I5508_v1.0.ops
    -Check One Package, Auto Reboot and Protect Ops
    -Select the STABLE ROM from where you have extracted
    2) Turn off your phone and remove the battery for 5 seconds
    3) Hold Volume Down Button Center Home Button Power Button (End Call button). You should be in download mode now
    4) Connect your phone to the pc using the USB cable. Install KIES if having driver problems.
    5) If still get port connection errors, change the USB port
    6) After install Drivers, close Kies
    7) If the data line is successful, com port shows yellow in Odin
    8) Click start, this process should takes about 5 minutes, your phone will reboot to FroYo itself. Don’t panic and keep praying…
    9) If nothing happen, your phone should be able to reboot in FroYo and Odin will said flashing had PASS
    10) Hard reset again after flashing by dialing *2767*3855#

    Credits: samfirmware.com

  9. [translate]    #19
    Junior Member
    Join Date
    Jun 2011
    Location
    INDIA
    Posts
    3

    Default

    Cyanogen 7.0.3 (Android 2.3.3)
    Current version: galaxy5-v3.4 - 30/May/2011
    Video Reviews: Russian, Brazilian Portuguese 1, 2, 3 (thanks to the uploaders)

    Threads: MAD Team (developer's forum) / XDA

    Hey folks,

    This is a port of Cyanogen 7.0.3 (based on the stable Android Gingerbread 2.3.3 release) for the Samsung Galaxy 5 I5500 (Europa) phone. The current port status is beta - most functions work, but it is not yet suitable for everyday use. Until further notice, I recommend you use this only for testing purposes. If you have programming experience, any assistance in resolving the remaining issues will be much appreciated. See the working features and "errata" listed below for more information.

    Special thanks to Motafoca for starting Cyanogen development, and for his constant assistance.

    WARNING!
    * READ THE ERRATA BEFORE ASKING QUESTIONS OR USING THIS ROM. The most important entries are written in red.
    * If you fail to read the errata (and ask silly questions that are already answered), I will personally find out where you live and hunt you down.
    * This is beta-quality software, and some functions are still not available compared to the Froyo builds!

    Instructions:
    1. Download the latest release, and extract the .tar file from the .7z/.rar archive (using WinRAR or 7zip).
    2. Flash .tar file in Odin with One Package option - do NOT select any other options such as debug.
    3a. If upgrading from Eclair or Froyo (any version), you must data-wipe.
    3b. If you are upgrading from an older Cyanogen version, read the changelog for the newest release if you need to data wipe.
    3c. If you are flashing a hotfix, you must flash it after flashing the full release. Data wiping is not necessary for hotfixes.
    4. When the Google Setup Wizard appears, I recommend that you leave the phone idle for a minute or so. Applications are still installing in the background, and completing the wizard early may cause some icons (such as Market) to go missing. If you were impatient, and some icons are missing, install Titanium Backup and use the "unfreeze" feature.
    5. Optional: during Google account setup, you may want to disable the backup feature of Google Apps. Some users have reported that it causes lag (which will be investigated).

    Release list/changelog:
    * v3.4 + hotfix1 - 1/June/2011 - removed old patches from kernel (were causing system instability, such as framework restarts when first connecting to wifi or batch restoring apps in Titanium Backup); updated kernel source against I5503 2.2.1 source code; removed Titanium Backup from default install (as it was conflicting with the Pro/Donate version); fixed audio issues such as headphones not being detected during call / microphone not working during speakerphone call; fixed issue where Market cannot download large apps; FM Radio app will be installed (despite it still not working) in case people want to try and make it work somehow. Hotfix1 enhances app2sd support. If you already use app2sd, you must upgrade to hotfix1 and data-wipe. Previous versions of app2sd were buggy and cannot be trusted. Note that you must use an ADB shell to activate/deactivate app2sd - the phone terminal app will not work.
    * v3.31 - 31/May/2011 - improved Bluetooth reliability (now less likely to fail during initialization). Data-wipe is highly recommended if you are upgrading from 3.2 or lower. You can skip this version if you don't care about Bluetooth.
    * v3.3 - 31/May/2011 - fixed bug where phone would not wake from sleep; fixed reboot when disabling Bluetooth; changed wifi sleep policy back to defaults; fixed wifi reconnection problem when waking from sleep; converted system filesystem to EXT4; removed galaxy5_defaults script (it was causing Market and some other icons to sometimes disappear); removed need for 1 minute freeze & bootloop on every flash; added more preloaded apps: Street View for Google Maps, Blade Wifi Fix, Titanium Backup. A data-wipe is highly recommended for this version.
    * v3.2 - 30/May/2011 - fixed wrong microphone problem (again); enabled H264 codec (DIVX and MP4 videos don't work yet, but HQ Youtube video now works); improved galaxy5_defaults script (will no longer cause Market or other icons to disappear after data-wipe); preloaded more apps (Gmail, Youtube, Maps & AdFree Android); changed readahead values (to help prevent lag, especially for app2sd users); now uses Froyo 2.2.1 (JPE) proprietary files; changed kernel config (potential fix for phone not waking from standby - please test). Data-wipe is not necessary but recommended if you have problems.
    * v3.1 - 28/May/2011 - decreased Davlik VM size to 16m, set proper minimum CPU frequency/CPU scheduler settings (to hopefully fix unresponsive phone when left overnight); reduced audio latency (fixes ringtones). This version is highly recommended. Data-wipe not necessary if upgrading from 2.992+, but recommended.
    * v3.0 - 28/May/2011 - removed "test" from build name. Fixed touchscreen sensitivity (regressed in 2.994). Increased audio driver latency (fixes audio lag - games will now run 100% smooth). Fixed one other bug, not worth mentioning [edit: it was the reboot on first incoming call bug :P]... So tired. Gotta sleep.
    * test2.994 + hotfix1 - 27/May/2011 - script fixes/enhancements: 1) get_macaddrs - no longer blocks the system_server on each boot; 2) galaxy5_defaults - runs more efficiently (which means that first boot after a flash will not be delayed as much); 3) madteam_app2sd - several fixes, including a more efficient transfer procedure, and will now set the writeback journalling flag for partitions properly; 4) 04galaxy5 - readahead speed tweaks are now different between STL and MMC devices. Slightly modified microphone fix in libaudio so that it initializes the microphone only when an input device is requested (to hopefully prevent some audio lag). Recompiled entire framework with different TARGET_CPU_ABI (was armeabi-v6l, now armeabi - this appears to reduce system lagging). Removed (currently useless) FM app + some orphaned .odex files. Tweaked keyboard size. Tweaked ADWLauncher to reduce battery usage and help avoid accidental widget removal. Summary: several bug + lag fixes = better performance and reliability. Update to this version is recommended. Data-wipe not necessary, but recommended. Hotfix1 (thanks to Motafoca/npmap) includes a new kernel with several patches to EXT4, bugfixes and a new Simple IO scheduler (optimized for flash devices).
    * test2.993fix4 - 25/May/2011 - completely fixed reboot hangs (when turning off or rebooting phone); potentially fixed VPN support; tweaked touchscreen (should be more responsive at edges - please test); fixed various boot loop problems related to app2sd; fixed lockscreen widget (no longer obscures caller); reduced keyboard size; added Live Wallpapers; added USB tether option (not yet working); improved app2sd/caching to fix lag issue; updated kernel (new performance tweaks + TUN module added for VPN support). Data wipe is required if upgrading from 2.991 or older. If you have enabled app2sd in version 2.992, please see errata step 2d.
    * test2.992 - 22/May/2011 - now based on Cyanogen 7.0.3 (stable version based on Android 2.3.3 - hopefully less bugs for us!). Fixed problem with missing Market icon; improved delay during first boot; upgraded audio driver (slightly less lag); added swap support / new app2sd implementation (see errata). Data wipe is required in all cases.
    * test2.991fixed - 16/May/2011 - fixed Bluetooth & WiFi MAC on first boot, improved scripts so that data wipe should no longer be necessary when upgrading between Cyanogen versions; fixed WiFi disconnection problem; partially fixed the problem of the lockscreen hiding the incoming caller's name; enhanced status bar icons (now uses: Wifi / Mobile Data / Bluetooth / Brightness / Sound / Orientation). This ROM should now be considered BETA quality. NOTE: There was a slight problem with a script, so I reuploaded the fixed version. You may need to re-download and flash again.
    * test2.99 - 16/May/2011 - updated Cyanogen source; TELEPATHY NO LONGER REQUIRED -> for those who missed the joke, the microphone problems is fixed, so you don't need to practice telepathy with your friends while making calls :P
    * test2.98 + test2.98 hotfix3- 15/May/2011 - updated Cyanogen source; tweaked settings to keep launcher in memory and allow purging of unused assets (this should greatly reduce lag and improve multitasking); more improvements to boot scripts; Bluetooth now uses proper MAC address (see errata); tweaked cache settings for disks; changed GPS libraries (it should now connect to satellites a bit faster). Hotfix3 fixes Bluetooth speed.
    * test2.97 + 2.97 hotfix - 13/May/2011 - updated Cyanogen source; improved 2D performance; fixed slow WiFi connection on first boot; fixed WiFi tethering; fixed 3G/WiFi DNS (now uses DNS address from your APN/access point instead of forcing Google's DNS servers); added "Download" mode to list of reboot options (helpful for your once-a-day reflashing :P); reverted to stable Google Apps version (because newer version still has problems); improved boot scripts (cleaner + faster boot); updated kernel (the beginning of some performance tweaks). The hotfix will fix some sound-related lagging caused by a bad kernel configuration.
    * test2.96 + 2.96 hotfix - 11/May/2011 / 12/May/2011 (hotfix) - updated Cyanogen source; fixed WiFi signal, mac address & slow DHCP resolution; improved boot scripts; phone will now power off/restart faster (and will also no longer crash during these periods); phone seems to stay cooler (possible battery savings?); moved download cache to data partition (so you can install large apps from the Market, such as Angry Birds Seasons).
    * test2.95 - 06/May/2011 - updated Cyanogen source; improved boot scripts so that Bluetooth is initialized properly; updated Google Apps (Talk should be voice-enabled, but hasn't been tested)
    * test2.94 - 06/May/2011 - now using open source lights library; fixed USB Mass Storage; fixed headphones; removed unnecessary Cyanogen statistics and update apps; tweaked cache settings
    * test2.93 - 03/May/2011 - now based on lge_thunderg code; fixed camera & video recorder; Broke USB Mass Storage and headphones.
    * test2.92 - 01/May/2011 - rebuilt against first Cyanogen 7.1.0 (Gingerbread 2.3.4_r1) code merges, fixed WiFi for new version of Gingerbread; Broke USB Mass Storage.
    * test2.91 - 30/Apr/2011 - converted system to ext4 (more speed + stability), new kernel (improves performance), fixed regular headphones (thanks to Ronison & Motafoca for patch), fixed wifi disconnections (hopefully), added Google Setup Wizard (no longer crashes), removed RomManager (we can't use it yet), battery life improvements
    * test2.9 - 28/Apr/2011 - fixed app crashes (Angry Birds/FPSE, etc.), fully rooted, Phone dialer now locks during call, Market can now sign into Google account, tweak to prevent possible bootlooping problem. Thanks to Motafoca for discovering the crashing problem!
    * test2.8 - 27/Apr/2011 - fixed: USB Mass Storage, brightness controls, battery usage, misc telephony bugs, SD/internal drive access speed
    * test2.7 - 25/Apr/2011 - fixed 3G, Bluetooth (partial), ADWLauncher scrolling speed (fixed permissions)
    * test2.6 - 24/Apr/2011 - fixed lcd density (now 120); added low dpi resources to fix various graphical problems (such as lock widget, boot animation, overlapping widgets, badly sized icons); added FM Radio app (but hardware is not yet working).
    * test2.5 - 23/Apr/2011 - first release.

    Working:
    * GPS [1]
    * WiFi
    * WiFi tethering
    * 3G
    * Brightness controls
    * Video
    * Audio (recording and playback)
    * Touchscreen (no multitouch, don't ask because I'm not working on it)
    * Root
    * Camera (and video recorder)
    * Bluetooth
    * Microphone
    * SIM Contacts
    * MAD Team App2SD [2]
    * Swap [3]
    * Telephony
    * Sensors [4]

    Partially working:
    * SIM Toolkit
    * Battery [5]
    * Hardware encoders/decoders (H264/MP3 working, others not).

    Not working/unknown:
    * USB tethering - we need a newer kernel, or backported kernel patches.
    * FM Radio
    * Kies - note: you should never expect a custom rom to work with Kies - Cyanogen or otherwise. You can always downgrade to an official ROM to restore Kies compatibility.

    Errata:
    [1] GPS does not work with the newest Americas baseband ending in JP9. Check your version at Settings -> About phone -> Baseband. If you have the new baseband, you should downgrade to the JP2 baseband to get GPS (and possibly also 3G) working correctly. GPS is confirmed to work correctly on all European basebands (so far).
    [2a] This rom uses a custom app2sd script that I wrote, called madteam_app2sd (based on Motafoca's idea). All folders are put on the SD card, but to prevent lag, the EXT4 partition on the SD card uses a separate journalling device (stl14, which is usually configured as the /cache drive). The phone's original /data partition (stl13) is then reconfigured as the new /cache drive. Additionally, all drives are configured to use EXT4 writeback journalling, which improves performance.
    [2b] App2SD is disabled by default. To enable, run madteam_app2sd on from an ADB shell. When you run the command, your phone will freeze for a few minutes and then reboot.
    [2c] Toggling app2sd on or off will *not* cause data-loss - all your data is transferred normally. The script also does a free-disk space check on the source/destination drives, and will refuse to change the configuration if there is not enough space available to complete the requested action.
    [3] Swap is disabled by default. Run madteam_app2sd swapon or madteam_app2sd swapoff to enable/disable. Changes will be permanent (i.e., swap will be activated/deactivated on every reboot).
    [4a] Although the sensors work fine, the sensor daemon is draining a lot of battery. With sensors enabled, the phone generates between 800-1000 wakeups per 15 seconds; for comparison, other phones do around 50-100 wakeups per 15 seconds with sensors enabled. More wakeups = more battery used, so this is not good.
    [4b] With the sensors turned off, the phone does just 70-80 wakeups per 15 seconds. If you wish to conserve battery, therefore, you may wish to disable sensors whenever possible. The sensor toggle icon is the furthest on the right in the drop-down notification bar.
    [4c] Thanks to testing by LoopMind, we now know that Froyo has the same problem with high wakeups as Gingerbread, so this is not a problem with my port.
    [5] Battery usage is higher than Froyo. Although sensors are a large part of the problem, it is not the only one. We are investigating.

    Source:
    Available here: https://github.com/p...samsung_galaxy5

  10. [translate]    #20
    Junior Member
    Join Date
    Jun 2011
    Location
    INDIA
    Posts
    3

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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