[ROM] Unoffical Sailfish OS for Huawei Y6

Search This thread

neochapay

Member
Jul 18, 2012
22
21
Innopolis
PHP:
/*
 * Your warranty is now void.
 *
 * We're not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at us for messing up your device, we will laugh at you.
 *
 */

Devices Confirmed working.
SCL-L21

PH7qNz_zyUI.jpg

q-9gACuXktc.jpg

su9VdL5zavA.jpg


Work:
Cellural
3/4G
WiFi
BT
GPS
And other

Not work:
Camera
On first boot not work WiFi and BT

Download: https://yadi.sk/d/UZE7mX1735WJrp

Installation:
1. Flash TWRP if not flashed yet
2. Flash CM-12.1 From tis thread http://forum.xda-developers.com/android/development/rom-unoffical-cm12-1-huawei-y6-t3404674
3. Flash Sailfish OS

Sources here: https://github.com/sailfishos-huawei-y6
 

neochapay

Member
Jul 18, 2012
22
21
Innopolis
Self build instructiion

Build only on Ubnutu

1. Setup evenroment:
Code:
cat <<'EOF' > $HOME/.hadk.env
export MER_ROOT="$HOME/mer"
export ANDROID_ROOT="$MER_ROOT/android/droid"
export VENDOR="huawei"
export DEVICE="y6"
export PORT_ARCH="armv7hl"
EOF

cat <<'EOF' >> $HOME/.mersdkubu.profile
function hadk() { source $HOME/.hadk.env; echo "Env setup for $DEVICE"; }
export PS1="HABUILD_SDK [${DEVICE}] $PS1"
hadk
EOF
cat <<'EOF' >> $HOME/.mersdk.profile
function hadk() { source $HOME/.hadk.env; echo "Env setup for $DEVICE"; }
hadk
EOF

2. Download MerSDK
Code:
export MER_ROOT=$HOME/mer
cd 
TARBALL=mer-i486-latest-sdk-rolling-chroot-armv7hl-sb2.tar.bz2
curl -k -O https://img.merproject.org/images/mer-sdk/$TARBALL
sudo mkdir -p $MER_ROOT/sdks/sdk
cd $MER_ROOT/sdks/sdk
sudo tar --numeric-owner -p -xjf $HOME/$TARBALL
echo "export MER_ROOT=$MER_ROOT" >> ~/.bashrc
echo 'alias sdk=$MER_ROOT/sdks/sdk/mer-sdk-chroot' >> ~/.bashrc
exec bash
echo 'PS1="MerSDK $PS1"' >> ~/.mersdk.profile
cd

3. Entering into Mer SDK and update it
Code:
exec bash
sdk
# IN SDK
sudo zypper ref
sudo zypper up
sudo zypper ar http://repo.merproject.org/obs/home:/sledge:/mer/latest_i486/ curlfix
sudo zypper ref curlfix
sudo zypper dup --from curlfix
sudo zypper in android-tools createrepo zip

4. In MerSDK download Android build SDK
Code:
hadk
TARBALL=ubuntu-trusty-android-rootfs.tar.bz2
curl -O http://img.merproject.org/images/mer-hybris/ubu/$TARBALL
UBUNTU_CHROOT=$MER_ROOT/sdks/ubuntu
sudo mkdir -p $UBUNTU_CHROOT
sudo tar --numeric-owner -xvjf $TARBALL -C $UBUNTU_CHROOT
ubu-chroot -r $MER_ROOT/sdks/ubuntu

5. Setup repo comand and update repos
Code:
sudo mkdir -p $ANDROID_ROOT
sudo chown -R $USER $ANDROID_ROOT
cd $ANDROID_ROOT
mkdir $ANDROID_ROOT/.repo/local_manifests -p
cd $ANDROID_ROOT
curl https://storage.googleapis.com/git-repo-downloads/repo > repo
chmod a+x repo
sudo mv repo /usr/bin/repo
repo init -u git://github.com/mer-hybris/android.git -b hybris-12.1

6. Setup local_manifest for our device

Code:
cd $ANDROID_ROOT/.repo/local_manifests/
curl -O https://raw.githubusercontent.com/sailfishos-huawei-y6/droid_repo_local_manifests/master/y6.xml
cd $ANDROID_ROOT

7. Download sources (~13 Gb)
Code:
repo sync --fetch-submodules

8. Build android part
Code:
hadk
source build/envsetup.sh
export USE_CCACHE=1
breakfast $DEVICE
make -j4 hybris-hal

9. Download SB2 target
Code:
exit
cd $HOME
SFE_SB2_TARGET=$MER_ROOT/targets/$VENDOR-$DEVICE-$PORT_ARCH
TARBALL_URL=http://releases.sailfishos.org/sdk/latest/targets/targets.json
TARBALL=$(curl $TARBALL_URL | grep "$PORT_ARCH.tar.bz2" | cut -d" -f4)
curl -O $TARBALL
sudo mkdir -p $SFE_SB2_TARGET
sudo tar --numeric-owner -pxjf $(basename $TARBALL) -C $SFE_SB2_TARGET
sudo chown -R $USER $SFE_SB2_TARGET
cd $SFE_SB2_TARGET
grep :$(id -u): /etc/passwd >> etc/passwd
grep :$(id -g): /etc/group >> etc/group
 
sb2-init -d -L "--sysroot=/" -C "--sysroot=/" 
-c /usr/bin/qemu-arm-dynamic -m sdk-build 
-n -N -t / $VENDOR-$DEVICE-$PORT_ARCH 
/opt/cross/bin/$PORT_ARCH-meego-linux-gnueabi-gcc
sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R rpm --rebuilddb
sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R zypper ar 
-G http://repo.merproject.org/releases/mer-tools/rolling/builds/$PORT_ARCH/packages/ 
mer-tools-rolling
sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R zypper ref --force

10. Create droid-hal rpm packages
Code:
 cd $ANDROID_ROOT
rpm/dhd/helpers/build_packages.sh

11. Create KS file for sailfish rootfs
Code:
mkdir -p tmp
HA_REPO="repo [email protected]@"
KS="[email protected]@[email protected]@.ks"
sed -e "s|^$HA_REPO.*$|$HA_REPO --baseurl=file://$ANDROID_ROOT/droid-local-repo/$DEVICE|" $ANDROID_ROOT/hybris/droid-configs/installroot/usr/share/kickstarts/$KS > tmp/$KS

12. Create root_fs
Code:
cd $ANDOROID_ROOT
hybris/droid-configs/droid-configs-device/helpers/process_patterns.sh
RELEASE=2.0.5.6
EXTRA_NAME=-my1
sudo mic create fs --arch $PORT_ARCH --debug --tokenmap=ARCH:$PORT_ARCH,RELEASE:$RELEASE,EXTRA_NAME:$EXTRA_NAME --record-pkgs=name,url --outdir=sfe-$DEVICE-$RELEASE$EXTRA_NAME --pack-to=sfe-$DEVICE-$RELEASE$EXTRA_NAME.tar.bz2 $ANDROID_ROOT/tmp/[email protected]@[email protected]@.ks

After that we will get zip file for TWRP flash
 
Last edited:

dasder

Member
Dec 29, 2016
12
0
Thanks for this good work, do you think it is possible to fix camera?
I use scl-l21 with cm 12.1 and it works even the camera.
Sorry for my bad english.
 

neochapay

Member
Jul 18, 2012
22
21
Innopolis
Thanks for this good work, do you think it is possible to fix camera?
I use scl-l21 with cm 12.1 and it works even the camera.
Sorry for my bad english.

In cm camerafix you just replace custom kernel to default.
I think it possible and we work on camera fix. Now we can get image but can`t get focus and white balans.
 

piko1bg

New member
Jul 12, 2014
1
3
Sofia
i always wanted an Selfish OS on my device what is the possibility to port Sailfish to other Huawei devices ?
 

dunryc

Member
Jun 17, 2012
6
0
for me this reboots straight int o fastboot mode and i cannot get out unless manual to recovery then reflash known working rom any help would be appreciated
 

KrysRom

Member
Oct 16, 2015
9
0
I have an error 7 while instalilng the zip, removing the device model line in updater_script changes nothing. My model is SCL-L01
 

Amaan007

Senior Member
Nov 15, 2016
492
70
Auckland

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    PHP:
    /*
     * Your warranty is now void.
     *
     * We're not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at us for messing up your device, we will laugh at you.
     *
     */

    Devices Confirmed working.
    SCL-L21

    PH7qNz_zyUI.jpg

    q-9gACuXktc.jpg

    su9VdL5zavA.jpg


    Work:
    Cellural
    3/4G
    WiFi
    BT
    GPS
    And other

    Not work:
    Camera
    On first boot not work WiFi and BT

    Download: https://yadi.sk/d/UZE7mX1735WJrp

    Installation:
    1. Flash TWRP if not flashed yet
    2. Flash CM-12.1 From tis thread http://forum.xda-developers.com/android/development/rom-unoffical-cm12-1-huawei-y6-t3404674
    3. Flash Sailfish OS

    Sources here: https://github.com/sailfishos-huawei-y6
    3
    Self build instructiion

    Build only on Ubnutu

    1. Setup evenroment:
    Code:
    cat <<'EOF' > $HOME/.hadk.env
    export MER_ROOT="$HOME/mer"
    export ANDROID_ROOT="$MER_ROOT/android/droid"
    export VENDOR="huawei"
    export DEVICE="y6"
    export PORT_ARCH="armv7hl"
    EOF
    
    cat <<'EOF' >> $HOME/.mersdkubu.profile
    function hadk() { source $HOME/.hadk.env; echo "Env setup for $DEVICE"; }
    export PS1="HABUILD_SDK [${DEVICE}] $PS1"
    hadk
    EOF
    cat <<'EOF' >> $HOME/.mersdk.profile
    function hadk() { source $HOME/.hadk.env; echo "Env setup for $DEVICE"; }
    hadk
    EOF

    2. Download MerSDK
    Code:
    export MER_ROOT=$HOME/mer
    cd 
    TARBALL=mer-i486-latest-sdk-rolling-chroot-armv7hl-sb2.tar.bz2
    curl -k -O https://img.merproject.org/images/mer-sdk/$TARBALL
    sudo mkdir -p $MER_ROOT/sdks/sdk
    cd $MER_ROOT/sdks/sdk
    sudo tar --numeric-owner -p -xjf $HOME/$TARBALL
    echo "export MER_ROOT=$MER_ROOT" >> ~/.bashrc
    echo 'alias sdk=$MER_ROOT/sdks/sdk/mer-sdk-chroot' >> ~/.bashrc
    exec bash
    echo 'PS1="MerSDK $PS1"' >> ~/.mersdk.profile
    cd

    3. Entering into Mer SDK and update it
    Code:
    exec bash
    sdk
    # IN SDK
    sudo zypper ref
    sudo zypper up
    sudo zypper ar http://repo.merproject.org/obs/home:/sledge:/mer/latest_i486/ curlfix
    sudo zypper ref curlfix
    sudo zypper dup --from curlfix
    sudo zypper in android-tools createrepo zip

    4. In MerSDK download Android build SDK
    Code:
    hadk
    TARBALL=ubuntu-trusty-android-rootfs.tar.bz2
    curl -O http://img.merproject.org/images/mer-hybris/ubu/$TARBALL
    UBUNTU_CHROOT=$MER_ROOT/sdks/ubuntu
    sudo mkdir -p $UBUNTU_CHROOT
    sudo tar --numeric-owner -xvjf $TARBALL -C $UBUNTU_CHROOT
    ubu-chroot -r $MER_ROOT/sdks/ubuntu

    5. Setup repo comand and update repos
    Code:
    sudo mkdir -p $ANDROID_ROOT
    sudo chown -R $USER $ANDROID_ROOT
    cd $ANDROID_ROOT
    mkdir $ANDROID_ROOT/.repo/local_manifests -p
    cd $ANDROID_ROOT
    curl https://storage.googleapis.com/git-repo-downloads/repo > repo
    chmod a+x repo
    sudo mv repo /usr/bin/repo
    repo init -u git://github.com/mer-hybris/android.git -b hybris-12.1

    6. Setup local_manifest for our device

    Code:
    cd $ANDROID_ROOT/.repo/local_manifests/
    curl -O https://raw.githubusercontent.com/sailfishos-huawei-y6/droid_repo_local_manifests/master/y6.xml
    cd $ANDROID_ROOT

    7. Download sources (~13 Gb)
    Code:
    repo sync --fetch-submodules

    8. Build android part
    Code:
    hadk
    source build/envsetup.sh
    export USE_CCACHE=1
    breakfast $DEVICE
    make -j4 hybris-hal

    9. Download SB2 target
    Code:
    exit
    cd $HOME
    SFE_SB2_TARGET=$MER_ROOT/targets/$VENDOR-$DEVICE-$PORT_ARCH
    TARBALL_URL=http://releases.sailfishos.org/sdk/latest/targets/targets.json
    TARBALL=$(curl $TARBALL_URL | grep "$PORT_ARCH.tar.bz2" | cut -d" -f4)
    curl -O $TARBALL
    sudo mkdir -p $SFE_SB2_TARGET
    sudo tar --numeric-owner -pxjf $(basename $TARBALL) -C $SFE_SB2_TARGET
    sudo chown -R $USER $SFE_SB2_TARGET
    cd $SFE_SB2_TARGET
    grep :$(id -u): /etc/passwd >> etc/passwd
    grep :$(id -g): /etc/group >> etc/group
     
    sb2-init -d -L "--sysroot=/" -C "--sysroot=/" 
    -c /usr/bin/qemu-arm-dynamic -m sdk-build 
    -n -N -t / $VENDOR-$DEVICE-$PORT_ARCH 
    /opt/cross/bin/$PORT_ARCH-meego-linux-gnueabi-gcc
    sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R rpm --rebuilddb
    sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R zypper ar 
    -G http://repo.merproject.org/releases/mer-tools/rolling/builds/$PORT_ARCH/packages/ 
    mer-tools-rolling
    sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R zypper ref --force

    10. Create droid-hal rpm packages
    Code:
     cd $ANDROID_ROOT
    rpm/dhd/helpers/build_packages.sh

    11. Create KS file for sailfish rootfs
    Code:
    mkdir -p tmp
    HA_REPO="repo [email protected]@"
    KS="[email protected]@[email protected]@.ks"
    sed -e "s|^$HA_REPO.*$|$HA_REPO --baseurl=file://$ANDROID_ROOT/droid-local-repo/$DEVICE|" $ANDROID_ROOT/hybris/droid-configs/installroot/usr/share/kickstarts/$KS > tmp/$KS

    12. Create root_fs
    Code:
    cd $ANDOROID_ROOT
    hybris/droid-configs/droid-configs-device/helpers/process_patterns.sh
    RELEASE=2.0.5.6
    EXTRA_NAME=-my1
    sudo mic create fs --arch $PORT_ARCH --debug --tokenmap=ARCH:$PORT_ARCH,RELEASE:$RELEASE,EXTRA_NAME:$EXTRA_NAME --record-pkgs=name,url --outdir=sfe-$DEVICE-$RELEASE$EXTRA_NAME --pack-to=sfe-$DEVICE-$RELEASE$EXTRA_NAME.tar.bz2 $ANDROID_ROOT/tmp/[email protected]@[email protected]@.ks

    After that we will get zip file for TWRP flash
    1
    I have an error 7 while instalilng the zip, removing the device model line in updater_script changes nothing. My model is SCL-L01

    only SCL-21