Jump to content

Samsung Galaxy Ace i (samsung-cooperve)

From Nura Wiki
Warning WARNING: This device cannot run Nura, as its architecture is unsupported.
Samsung Galaxy Ace i
S5830i Black
S5830i Black
Manufacturer Samsung
Name Galaxy Ace i
Codename samsung-cooperve
Model GT-S5830i
Released 2011
Type handset
Hardware
Chipset Broadcom BCM21553
CPU ARM11 @ 832MHz
GPU VideoCore IV
Display 320 x 480
Storage 512 MB
Memory 362 MB
Architecture armhf
Software
Original software
The software and version the device was shipped with.
Android 2.3.6
Extended version
The most recent supported version from the manufacturer.
Android
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
no

Contributors

Users owning this device

Special boot modes

  • Download/Odin Mode: With the device powered off, hold Volume Down, Home and Power while connecting the device to a computer with a USB cable. A warning screen will appear: click Volume Up to enter Download Mode and run Heimdall commands.
  • Recovery Mode: With the device powered off, hold Volume Up, Home and Power while connecting the device to a computer with a USB cable.

Installation

Note This section was written by Mabope in December 2020 and may be outdated.
  • The previous port from 2018 was outdated (using former APKBUILD format) so a new port was started. We did not achieve to flash the bootimg + initramfs on the device, even if this was stated as working in the previous port (see error in Heimdall below). Any information on how to perform this step is very welcomed. Also keep in mind that the information is not consistent: some information in this page may still reflect the status of the previous port (device booting, kernel flashing etc ...) whereas this section clearly states that we can not get pass the flashing step. If it is confirmed that this step does not work, someone should move this device to the "not booting" section and homogenize this page's content.

You need Pmbootstrap installed.

Building the kernel (working)

$ pmbootstrap init # select samsung-s5830i
$ pmbootstrap kconfig check
$ pmbootstrap checksum linux-samsung-s5830i
$ pmbootstrap build linux-samsung-s5830i
$ pmbootstrap checksum device-samsung-s5830i
$ pmbootstrap build device-samsung-s5830i

Flash the kernel to the phone (not working)

With Heimdall

See also: Heimdall

Enter flash mode and flash the kernel into the phone. Then, install rootfs to the sdcard. (As there is not enough space on the phone.)

$ pmbootstrap install --sdcard=/dev/mmcblk0
$ pmbootstrap flasher flash_kernel

Problem: flashing the kernel fails at the step Setting up interface with error error [op_set_interface] setintf failed error -1 errno 110, you can refer to the 6 years old GitLab issue on Heimdall.

Possible workaround: there is a workaround patching Heimdall for bypassing libusb checks, more info in comments of this GitHub issue.

From recovery

You can flash Clockworkmod Recovery (CWM, discontinued in 2016), which allows to flash a zip through an SD card. For S5830i there is only CWM 5.0.2.8 available (maybe others ?), which does not feature sideloading. So you have to export the zip file pmos-*.zip, copy it to the SD card and install it in recovery mode.

To create the zip:

$ pmboostrap install --android-recovery-zip
$ pmbootstrap export

The problem is the size of the Android internal partitions. From start you have the following:

$ df -h
 Filesystem                Size      Used Available Use% Mounted on
 tmpfs                   144.6M     52.0K    144.6M   0% /dev
 tmpfs                   144.6M         0    144.6M   0% /mnt/asec
 tmpfs                   144.6M         0    144.6M   0% /mnt/obb
 /dev/stl9               219.0M    151.2M     67.8M  69% /system
 /dev/stl10               35.4M      4.0M     31.4M  11% /cache
 df: /mnt/.lfs: Function not implemented
 /dev/stl11              187.3M    130.5M     56.7M  70% /data

And the zip file is 158.9MB so it does not fit into the internal storage.

Note Possible solution: find a way to extend the storage or to export only the kernel to zip while the rootfs is on the sdcard (similarly to Odin and Heimdall method).

What works

  • Kernel compiles

What does not work

  • No way to flash the kernel on the phone yet

See also

External links

Possible base kernels

Kernels from CM11 are good candidates, corresponding to version 2.6.35. They are built with GCC6 (not tested with more recent GCC versions).