Samsung Nexus S (samsung-crespo)

From postmarketOS
Jump to: navigation, search
Samsung (Google) Nexus S
200px
CHANGE_ME
Manufacturer Samsung (Google)
Name Nexus S
Codename samsung-crespo
Released 2010
Category testing
Original software Android 2.3
postmarketOS kernel 3.0.101
Hardware
Chipset Exynos 3 Single 3110
CPU 1.0 GHz Hummingbird
GPU PowerVR SGX540
Display 480x800 Super AMOLED
Storage 16 GB
Memory 512 MB
Architecture armv7
Features
USB Networking
Works
Flashing
Partial
Touchscreen
Works
Display
Works
WiFi
Works
Xwayland
FDE
Mainline
Broken
Battery
3D Acceleration
Accelerometer
Audio
Broken
Bluetooth
Broken
Camera
Broken
GPS
Broken
Mobile data
Broken
SMS
Broken
Calls
Broken
USB OTG



Contributors

  • joeblos

Maintainer(s)

Users owning this device

How to enter flash mode

Hold volup+power to power up in bootloader/fastboot mode.

Installation

The Nexus S fastboot flasher mode cannot be used to flash the system (rootfs) image, for two reasons:

  • There is a size limit of ~340MB (RAM limitation I assume)
  • The system image generated is rejected by the bootloader (bad magic number error)

So we can use the recovery zip flashing method, except for the boot.img (kernel+initramfs) as the pmos install script fails to correctly find the boot partition.

Thus, we use fastboot to flash the boot.img, and use recovery zip to flash the rootfs.

Here are the instructions:

  1. Setup your pmos environment (pmbootstrap init)
  2. Generate the initramfs (pmbootstrap initfs build)
  3. Generate the recovery zip without boot partition (pmbootstrap install --android-recovery-zip --recovery-no-kernel)
  4. Put the device in fastboot mode
  5. Flash the boot partition (pmbootstrap flasher flash_kernel)
  6. Reboot the device in recovery (e.g. TWRP v2.8.7.0) and enable "ADB Sideload"
  7. **temp fix** manually edit and flash the recovery zip (this won't be required once the script fix is merged)
    1. Make a copy of the recovery zip
    2. Edit the install script as per this commit
    3. Manually sideload the edited recovery zip (adb sideload pmos-samsung-crespo.zip)
  8. Done!


See also