About

Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

10/9/12

Rooting and modding Samsung Galaxy S2

If you just have to mess with your phone all the time and try out every option and setting, you'll probably have heard about replacing stock software with custom kernels and flashing in mods. This could expand battery life, give you new features and make your phone faster.

It can also render your latest phone investment as useful as a brick. Yeah, brick. That's what they call it when either you or some software you tried to run makes your phone shut down for good and it will never boot up again. So be warned, even though I am about to tell you how to possibly avoid it.

I DO NO TAKE RESPONSIBILITY FOR YOUR ACTIONS! YOUR PHONE IS YOUR OWN AND ANY OF THIS WILL VOID YOUR WARRANTY!

And don't try to be clever, the phone will tell your technician that you installed a custom binary. This feature is called the 'ROM counter'.


  • First of all, some phones are known to have a bad FLASH chip, and this includes most versions of the Samsung Galaxy S2, from what I can read. 
  • Personally I have the GT-I9100 which came with GingerBread 2.3.5. 
  • If you, like me, have Samsung Kies installed (if not, do that NOW) and updated the firmware, you will discover that GingerBread 2.3.5 will be updated to Ice Cream Sandwich 4.0.4.


At this point, download the following:


  • Siyah kernel - Will give you a temporary rooted phone. Get the correct version, and put it on your SD card.  (you do need an SD card)
  • ClockWorkRecoveryMod (aka CWM)


There is a particular problem that seems to come with the stock ICS 4.0.4 when you install the 'clockworkrecovery' mod. Therefore, first of all you need to root your phone to be able to actually check your phone. (with Siyah)



You also want the Google Apps extras


  1. At this point, you have to boot up into recovery mode, and wipe the phone and the cache. 
  2. Then, load this binary into the phone. 
  3. When it reboots, it will show you a yellow triangle below the Galaxy logo at bootup, and if you go to Settings->About Phone you will see that the kernel has been replaced. 
  4. If you forget to wipe the cache as well, the phone will not boot. (It is not bricked, just repeat the process.)


Then download an app called eMMC checker from the Play Store. Move CM and Google Apps over to the SDcard.


  1. Download eMMC Brickbug Check from Play Store
  2. Run check. It will probably say 'Insane chip: Yes' and then you must check the memory, for which you need to have the phone already rooted.
  3. If the memory check passes, your phone's flash chip is functioning well enough to flash the ROM, but it will still kill it of you skip to the CWM step now!


Note: Just to be clear, both the memory needs to be OK and the Siyah kernel must be installed or else you will have a dead phone before this tutorial is over.


  1. Boot phone into Recovery Mode. (Home + Vol Up + Power.
  2. Hold until logo appears, release keys.
  3. You will be presented with the recovery menu. Some phones has alternate combinations.

Lastly:


  1. Wipe and factory reset
  2. Wipe cache
  3. Install CM from SDcard
  4. Install Apps from SDcard
  5. Reboot phone


Now, when you reboot, the phone will be a completely different beast. Modded or not, the S2 and S3 are  formidable devices, featuring multi-core CPU and GPU processing, as well as standardized USB connectors, an array of special-purpose sensor chips and last, but not least, a Linux-based operating system to glue it all together. With the right add-ons installed, your phone is essentially a powerful hand-held computer that can be used for a multitude of uses. While the comparison  is not fair, I would guess an S2 outperforms 5 year old laptops.

I think this was everything. Please comment if I missed something.

Anyway, here's the result:







5/8/12

Computer Techie Toolbox Round-Up:

Computer Techie Toolbox Round-Up:

After about a couple of years with little work to do, I've built and refurbished a few computers in the past few months.
Again, better than MacGyver's

Dispensable spare parts
For instance, I used a Pentium 3 to boot a Phenom with a broken pin

  1. Scissors
  2. Wide plyer/wirestripper
  3. Pointed plyer
  4. Wide Philips/flat screwdrivers
  5. Magnifying glass
  6. Multitool pocketknife
  7. The screwdriver that comes with Noctua SE fans
  8. Multi-bit screwdriver

Mini screwdriver set for repairing and cleaning laptops.

Assortment of parts: (Label the boxes!)
  1. Screws, sorted!
  2. Pins
  3. USB sticks (I like to keep special purpose USB sticks separate and labeled)
  4. Flash RAM
  5. Small cables (CrossFire/SLI,molex adapters)
  6. Stickers
  7. Misc++



Toolbox:
  1. Pens
  2. CPU cooling paste
  3. Glue
  4. Tape
  5. Antistatic wristband
  6. Q-tips
  7. Other tools!

A straight fan can improve RPM

Keep your rescue and OS disks sorted!
  1. Retail Diagnostic CD's
  2. Retail Driver CD's
  3. Your own accumulated custom driver compilations
  4. Windows/Linux OS CD's
  5. Live distros
  6. Rescue distros
  7. Forensic distros













6/15/11

Ultimate Boot CD

UBCD is perfect when you just installed the newest Ubuntu with GRUB2, which happily kills all other Linux partition MBR's and installs it self as the sole booting OS. It doesn't even try to detect GRUB partitions! This is absurd. With this console-based CD you can fix most partition woes, but I was not able to restore Linux partitions on logical partitions. I had the following partition setup:

UBCD Homepage: http://www.ultimatebootcd.com/

sda1 (Primary, bootable) WinXP
sda2 (Extended)
sda5 (Logic) Slackware
sda8 (Logic)Windows 7
sda6 (Logic, bootable (on an extended partition??)Ubuntu 8.04
sda7 (Logic)Linux Swap

After I installed Ubuntu 11.04 it suddenly had shifted some partitions up one step and created a new unused partition, even no resizing or partition changes where made in the installer other than setting sda6 as home partition.

sda1 (Primary, bootable) WinXP
sda2 (Extended)
sda4 (Logic)Unused Partition
sda5 (Logic)Ubuntu 11.04
sda6 (Logic)Windows 7
sda7 (Logic, bootable)Ubuntu 8.04
sda8 (Logic)Linux Swap

Later I tried to install Linux Mint 5 (based on Ubuntu 8.04) over 11.04 to get a new GRUB, but to no avail. (It thinks the partitions are invalid).

Also tried Testdisk to restore MBR from backup sectors, but that made all partition unreadable. So I had to revert.

So I am stuck booting into Windows via UBCD's Super GRUB Disk. If I try to boot into a Linux partition I get 'unbootable partition', I can only boot into Windows 7's bootloader, wich happily let's me boot into XP too.

If anyone has ideas about what is wrong, please comment.