yashsingh1/xdaforums huggingface dataset:
[Xperia Arc Android Development] alexander-n8hgeg5e:
I think that if there is a different logo than your flashing of the kernel did not work.

On my phnome with cm13 there is only the legacyXperia logo and the cyanogenmod

logo. What was your commandline output of the flashing command?

You can reflash to see it.

Did you flashed with fastboot on commandline?

---------- Post added at 12:12 PM ---------- Previous post was at 12:05 PM ----------

What did you do ?

---------- Post added at 12:43 PM ---------- Previous post was at 12:12 PM ----------

I don't think so. As I mentioned in a previous post, there is no way for the controller to know that you are deleting files. There is no special delete command for sdcards, there is only write and read. If you wrote every logical sector, (the when is not important. The fact that you wrote to a sector means for the controller you want that back, maybe in five years), than there is no way back. Some controllers analyse a fat filesystem to know what is deleted. But we have f2fs or ext4 on our cards. If there is dynamic wear levelling and no "TRIM" command(sdcards have no trim command) than the dynamic wear levelling algorythm can not do much. there is no chance to distribute wear over the card. It's like that: With static wear leveling the card will last 20 years with dynamic the card will die within a week.

No moving of static blocks -> No chance do do proper wear levelling. Because almost all blocks are static with this use case.

With your words, in fact all the memory is stuffed and there is no free space.

The question is: What kind of wear levelling the cards do? Maybe they are just crap that is made to save some pictures and videos. The manufactures know that the people are lazy and do delete the photos on the card seldom. That's means much space gets written sequentialy. Wear does happen only if the user deletes files and makes space for rewriting,that do actually do the wear. With this use case there is no need for wear levelling. Writing 1Gb and then deleting in the evening. That means (asumption you can write one block 5000 or 10000times) aprox 15 or 30 years of life for the card. It is much more than the warranty.

The best is to use a own software wear levelling layer.

Maybe there is something existing for the linux kernel that can do that.

That could be patched in the kernel and so added to the rom.

I have never done something like that, but it would be fun to experiment with.

I don't think I have much time for that, but I start with building the rom from the source and get that to work.

Yesterday I started downloading the sources.
[Xperia Arc Android Development] v6ak:
I've tried fstrim on some sdcards with ext4 filesystem and it seems to work. There is a similar command to TRIM for sdcards: https://github.com/raspberrypi/linux/issues/431#issuecomment-32409104

Note that I haven't performed any deeper research on this, e.g. whether the free space is actually discarded.
[Xperia Arc Android Development] ahmadshuib:
This is a silly question. Just wondered. My sd card is fat32. In cm recovery I factory reset and wipe cache. Then install. So my system now is fat32 right? Is that possible. I thought this rom only supporting ext4 and f2fs only. Actually I want to formart into f2fs, but I don't know how.
[Xperia Arc Android Development] SirBiggle:
the Installation converts it into f2fs. so if the Installation was successful your sd card is now f2fs.

if you have a card reader at your pc install the card at the pc. if he don't recognize it and want to format it (don't let it format)

you have f2fs on the card now.:cool:
[Xperia Arc Android Development] TomTomcrafter001:
To Format to f2fs choose advanced and wipe media. I don't know where it is exactly. Maybe you have to choose factory reset and then wipe media
[Xperia Arc Android Development] TomTomcrafter001:
I ran the vellamo benchmark from play store. Some details:
[Xperia Arc Android Development] alexander-n8hgeg5e:
I don't think that there is a trim command. I read something in the internet telling that there is no command in the sd spec. and that in future it will come on the wishlist for the scard group. As I made my f2f2 filesystem there where the message "no trim supported by device" My cardreader is usb3.0 and rather new.
[Xperia Arc Android Development] Lamner:
Hello mike,

Your work is amazing. I got my mango out of my drawer to try this out, and I'm impressed. It's fast and working fine, even on my Samsung Class 6 SD Card.

I think I noticed a glitch: when I start typing something on the physical keyboard (landscape mode), it doesn't return to portrait when the phone is back to its normal position, even with auto rotate toggled on.
[Xperia Arc Android Development] alexander-n8hgeg5e:
software wear leveling

I found something out about software wear leveling.

There is a kernel module named block2mtd. It means blockdevice to Memory Technologie Device.

Once used to the sdcard one have a mtd device to use. On this layer you can use "UBI".

UBI is a layer for raw flashes and works on mtd devices in linux.

UBI does many good things: wear-leveling across whole flash,handles bad physical eraseblocks(bitflip protection), etc

It provides either mtd, block, or nativ interface,where mtd is uncommon use case.

With the provided blockdevice it's possible to format as you want and use every filesystem.

Only two additional drivers are needed block2mtd and ubi.

Maybe they are already in the kernel?

Then the layer chain is this one: sdcard -> blockdevice -> block2mtd -> UBI -> blockdevice -> filesystems,swap-partition.

Would be really cool to have that in the kernel.

I would appreciate to have cryptsetup/"LUKS"/ in the kernel too.

I think I've seen something on the forum. like that. You have to enter the key in a early system boot state.
[Xperia Arc Android Development] cagali:
Is it on the status bar, the network traffic indicator without arrows the new default for CM13?

Thank you.
[Xperia Arc Android Development] adnanraja:
I tried flashing boot.img with FlashTool. Here is the log:

05/008/2016 19:08:49 - INFO - Device connected in fastboot mode

05/010/2016 19:10:09 - INFO - Now plug your device in Fastboot Mode

05/010/2016 19:10:21 - INFO - Selected kernel (boot.img or kernel.sin): D:\LWW Root\cm-13.0-20160227-UNOFFICIAL-LegacyXperia-coconut\boot.img

05/010/2016 19:10:21 - INFO - Flashing selected kernel

05/010/2016 19:10:24 - INFO - sending 'boot' (9216 KB)...

05/010/2016 19:10:24 - INFO - (bootloader) USB download speed was 4718592kB/s

05/010/2016 19:10:24 - INFO - OKAY [ 1.015s]

05/010/2016 19:10:24 - INFO - writing 'boot'...

05/010/2016 19:10:24 - INFO - (bootloader) Download buffer format: boot IMG

05/010/2016 19:10:24 - INFO - (bootloader) Flash of partition 'boot' requested

05/010/2016 19:10:24 - INFO - (bootloader) S1 partID 0x00000003, block 0x00000148-0x00000179

05/010/2016 19:10:24 - INFO - (bootloader) Erase operation complete, 0 bad blocks encountered

05/010/2016 19:10:24 - INFO - (bootloader) Flashing...

05/010/2016 19:10:24 - INFO - (bootloader) Flash operation complete

05/010/2016 19:10:24 - INFO - OKAY [ 1.759s]

05/010/2016 19:10:24 - INFO - finished. total time: 2.774s

05/010/2016 19:10:24 - INFO - FASTBOOT Output:

sending 'boot' (9216 KB)...

(bootloader) USB download speed was 4718592kB/s

OKAY [ 1.015s]

writing 'boot'...

(bootloader) Download buffer format: boot IMG

(bootloader) Flash of partition 'boot' requested

(bootloader) S1 partID 0x00000003, block 0x00000148-0x00000179

(bootloader) Erase operation complete, 0 bad blocks encountered

(bootloader) Flashing...

(bootloader) Flash operation complete

OKAY [ 1.759s]

finished. total time: 2.774s

Then I reboot to recovery, I see LegacyExperia logo and then android logo with red triangle.
[Xperia Arc Android Development] DeadXperiance:
I had same problem. I booted phone removing sd card after flash boot.img.phone booy in recovery and insert sd card again and flash rom via sideload.
[Xperia Arc Android Development] v6ak:
According to the https://github.com/raspberrypi/linux/issues/431#issuecomment-32409104 , there is indeed no TRIM on the SD card… But there is ERASE command that does essentially the same. There might be some technical differences (synchronous/asynchronous, deterministic read after TRIM, …), I am not sure about those details at SD cards. While there is technically no TRIM on SD cards, there is something very similar.

I am not sure if this is supported by all the cards, but I don't think so. So, if you have an ancient memory card, you probably will not have TRIM (well, ERASE) support. The same might apply for an ancient card reader. Maybe neither of this is your case.

Furthermore, TRIM has to be supported by your filesystem driver of your OS. This support can be made in various ways. There are two well-known ways on Linux:

a. Automatic TRIM (usually requires discard mount option) – this should be implemented for both ext4 and F2FS. For ext4, this is not recommended, as it slows down some write operations (and might increase write amplification, but I am not sure). For F2FS, I believe this to be designed better.

b. Manual batch trim (the “fstrim” command). This is supported for ext4, but AFAIK not for F2FS. For ext4, this is usually the recommended way.

So, if you have tried fstrim on F2FS, you have probably failed, because the fstrim is not implemented for F2FS. If you try it for ext4 with the same OS+card+reader combination, you might succeed.
[Xperia Arc Android Development] plb-dev:
Guys, can I safely install this theme on the latest build for smultron? Or any other theme?

I do not want any bootloops. Thats why im asking..

Thanks in advance.
[Xperia Arc Android Development] adnanraja:
OK Thanks. After removing sd card, I can successfully boot in recovery. But, what steps should I perform in recovery mode before inserting sd card? As I will have to power off phone before inserting sd card. Also, I am not familiar with ADB Sideload. I installed all previous version from within sd card. Can you please explain how to flash rom via ADB Sideload?
[Xperia Arc Android Development] cagali:
https://github.com/LegacyXperia/Wiki/wiki/Installing-Marshmallow
[Xperia Arc Android Development] TomTomcrafter001:
My WiFi indicator shows arrows but only in expanded status bar (quick toggles). For mobile data I don't know, I'm not using mobile data much.
[Xperia Arc Android Development] DeadXperiance:
Aeter boot in recovery insert sd card,you don't need to shut down phone.now on pc copy the rom zip in your in folder where are your adb driver is located now connect phone to pc and on recovery go to apply update from adb and type on cmd adb sideload cm-13.0-20160227-UNOFFICIAL-LegacyXperia-smultron.zip and enter wait for installing.

red color text is your rom zip name.
[Xperia Arc Android Development] @BoW@:
Hi, I noticed that many users have had problems installing the CM13, I followed a procedure with the use of two software, and it took six minutes to install it and another 6 for the first boot and no problem. I own a Samsung microSD Class 6 16gb, but when the new build will be ready, I'll try with a samsung evo uhs-1 Class 10.

1) Format the microSD f2fs and create a single partition (I used Gparted on Linux)

2) Use adb-installer to automatically install adb, fastboot, and drivers.

3a) Use adm-master

3b) Start adb-master and configure the program, indicating in the middle section, the position of the ADB folder (usually adb installer places the folder in C: \)

4) Flash kernel "boot.img" with flashtool or otherwise.

5) Turn on your phone and enter the recovery:

****factory reset> full factory reset

****Wipe cache

****advanced> wipe system partition

6) Turn off and on the phone and enter the recovery again.

7) connect USB to PC

8)*Select Apply update> Apply from ADB

****Meanwhile on adb-master at the top left will show your phone, and down the "sideload" button will be visible and usable, at this point, click it and after finding the ROM on your PC, give the ok.

To install the gapp and any other .zip perform the procedure from step 8.

I have an arc S, I suppose that the procedure works well for others in the same line devices.
[Xperia Arc Android Development] adnanraja:
Thanks this really helped. cm-13.0 has been successfully installed. The reason I was facing red triangle icon issues is because I forgot to make my sd card partition primary.
[Xperia Arc Android Development] Lamner:
Btw, I used OpenGapps' Pico version without any issue.
[Xperia Arc Android Development] Kaito_kid:
yeah... that yours answer... lol..

:good:
[Xperia Arc Android Development] eberhardweber:
This was my original mistake as well! You have to be extra careful there.
[Xperia Arc Android Development] Kaito_kid:
lol... for coconut wait in view day.. i will make video tutorial how to flash cm13.0.

hhahahaha
[Xperia Arc Android Development] SirBiggle:
did you made a clean install? i ended up with a non useable System. i had to revert from backup.

but i didn't cleaned data since the System is nicely installed.
[Xperia Arc Android Development] alexander-n8hgeg5e:
Maybe the boot to recovery funktion with flashtool does not work, It does not work from the recovery too.

If you see the legacy xperia logo then the kernel install worked,because I think it comes from the kernel.. At least you have any legacyXperia kernel on the phone. android logo is because the old android system is on the phone. Go to recovery by pressing the volume rockers multiple times during boot. I think when the LX logo is shown or earlier.

I think the down button worked for me. Then you can adb sideload the rest of the system.

If you have problems maybe it is something with your internal flash partitioning . Read this

https://github.com/LegacyXperia/Wiki/wiki/Installing-KitKat . and read the part

I am wondering your kernel is 9000kb i tought mine was 5000 or so.. But I can't really remember.

I flashed the kernel with fastboot.

---------- Post added at 07:44 PM ---------- Previous post was at 07:22 PM ----------

My card reader is current/new and my card too. My card reader is kingston mobile lite g4. my card is "Samsung 32GB EVO Plus"

F2fs reports no trim supported during creation on my pc. I have not tested this on my phone. But if i do mkfs.f2fs on my phone it is clear that it is not working/helping the card to do wear leveling. Maybe I can test that with a second partition. The link that you posted shows people who says that the extra space is 7-10%. Thats not much, thats 320mb in my case.

with 20G a day 320mb means 62 writes a day each eraseblock. that is then with 5000/10000 max writes 80/160 days. Not bad but not long.

Thanks for the link, thats interesting for me.
[Xperia Arc Android Development] Yasser Stark:
Ehh little help here!!!!!

Ok i'm waiting for my new Sdcard, and i've installed CM11 again, and i dont know how more than 100mb in data partition are lost!!!!

after checking last_log i found this when wiping

mtd: not erasing bad block at 0x197c0000

mtd: not erasing bad block at 0x197e0000

mtd: not erasing bad block at 0x19800000

a lot of them, it's bad blocks, can anyone help

View attachment last_log.txt
[Xperia Arc Android Development] alexander-n8hgeg5e:
Do you try to install cm11 kitkat?

cm11 and cm13 has different partition layout, maybe the errors are because of that.

I've just asked a question in another thread about that partition layout thing.

http://xdaforums.com/showpost.php?p=65672490&postcount=1117

But Maybe your storage is broken,too. But don't worry if you hack a little bit, it's possible to load the whole system from sdcard.

You can try to go back to stock: https://github.com/LegacyXperia/Wiki/wiki/How-to-Go-Back-to-Stock

As far as i know your partitions get restored if you flash the stock rom.

And then retry the installation instructions.
[Xperia Arc Android Development] RomanLarkin:
Can I use Now On Tap?

I was flash mini-gapps by Mardon, and download Google App from Play Store.

So now, when I turning Now On Tap on, I see toggler is switched on, but I got a massage "Unfortunately, Google App has stopped", and when I hold home button I see scanning, but in circle bottom is empty (no Google logo)

Please help, brothers, and sorry if my English is bad :o
[Xperia Arc Android Development] Lamner:
Yes, clean install. I had an old Cm11 on the phone, so I flashed the new kernel file, formatted my SD card, wiped everything as described in the wiki and sideloaded the Rom and the gapps
[Xperia Arc Android Development] Superrman:
i benchmark with all antutu versions

the result all better ,beside GPU is 10% in every test (also beside antutu) ill try upload the results
[Xperia Arc Android Development] cagali:
Just to add some information.

In antutu 5.7.1, for CM13 and latest CM11 build for hallon, OC 1.4GHz, using MDP composition:

2D ~ 550

3D ~ 1700

While for CM11 20140320 build, the last PMEM build and OC 1.6GHz (dark kernel), using DYN composition:

2D ~ 550

3D ~ 2250 (+30% vs ION builds)

In Basemark ES 2.0,

CM13 and latest CM11 build, 14.5 fps

old PMEM build, 16.5 fps

For general purposes, the latest CM11 and CM13 builds are certainly much smoother.

But for 3D gaming, the old PMEM build may be a little better.

Does anyone know what caused this difference between these builds?

Thank you.
[Xperia Arc Android Development] litemintx:
Was your sd card is now 1 partition only?

I made a tutorial

https://www.youtube.com/watch?v=bnmscTHVxLo
[Xperia Arc Android Development] TomTomcrafter001:
I cannot even activate it. How did you do this?
[Xperia Arc Android Development] RomanLarkin:
Open settings, in search type "assist", choose Assist & Voice input>Assist & Voice input>Assist App and choose Google App. Then go to Google App settings and turn on Now On Tap.

P.S. In Settings>Buttons choose for long press of Home button or Menu button " Search Assistant "

Try it, man :)
[Xperia Arc Android Development] TomTomcrafter001:
This works. Thanks man.

But google app is force closing and scan animation has no google logo. Hope this can be fixed. I will google a little bit.
[Xperia Arc Android Development] umaturman:
In CM13 we mount /data f2fs partition with the discard flag (see fstab.semc), i.e. the driver issues discard/TRIM (ERASE :cool:) commands when a segment is cleaned.
[Xperia Arc Android Development] TomTomcrafter001:
I tried to force close google app and cleared data. It doesn't work.
[Xperia Arc Android Development] RomanLarkin:
I got the same problem.

I don't even know, can we actually use Now On Tap.

Отправлено с моего MT15i через Tapatalk

---------- Post added at 11:21 AM ---------- Previous post was at 11:14 AM ----------

I did replace Google App in system/app, and that doesn't work too.

Отправлено с моего MT15i через Tapatalk
[Xperia Arc Android Development] Daniel D.:
Nice ROM. Installed it (without any problems!) on my Arc S and it runs good. Very nice...
[Xperia Arc Android Development] Yasser Stark:
Well there is no problem with my device but you know the storage problem of our devices, i'm waiting for the SDcard and installing CM13 will fix storage problem but until that day, how can i fix it, installing official 4.0 didn't fix it

I'm thinking if there is any way /system and /data can be mounted to PC and format them???

sorry for mu bad English
[Xperia Arc Android Development] filjusz:
[MENTION=5876417]Yasser Stark[/MENTION] - Probably You can do it with ADB (Mount /system and /data) than format them.
[Xperia Arc Android Development] alexander-n8hgeg5e:
You are right! :) Cool. I tested it.

This was the output of mkfs.f2fs and Trim is enabled!

F2FS-tools: mkfs.f2fs Ver: 1.6.0 (2015-12-21) [modified by Motorola to reserve space]

Info: Debug level = 0
Info: Label =
Info: Segments per section = 1
Info: Sections per zone = 1
Info: Trim is enabled
Info: sector size = 512
Info: total sectors = 2084864 (1018 MB)
Info: zone aligned segment0 blkaddr: 256
Info: format version with
"Linux version 3.4.0-LX+ (adriandc@BuildServer) (gcc version 4.7 (GCC) ) #1 PREEMPT Sat Feb 27 11:34:22 CET 2016"
Info: Discarding device: 0 sectors
Info: Wipe via secure discard failed, used discard instead
Info: Overprovision ratio = 6.380%
Info: Overprovision segments = 68 (GC reserved = 39)
Info: format successful

Remains the question whether the firmware of the card makes proper use of it.

Because the firmware is proprietary nobody can read the code.

And I have to recreate my partition with the phone.

I created it with the pc and maybe the filesystem thinks now that their is no delete/trim command.

I did that because i had to resize the partition so i saved the files and copied them back.

Now I know what heavy use case needs zram or swap: Firefox and loading this forum thread page 30.

I tried this on the phone and the phone freezed and after some time did a half reboot.

My lowmemory killer funktion is set very low.

But later I recognized that zram was disabled.

Firefox used 180 mb ram.

This was with swap on, zram of, extra_free_kkytes=50000:

Firefox was usable, I could read the page. Swap usage was 150mb

ps|grep firefox
u0_a130 7299 261 1041120 186812 sys_epoll_ 403ab364 S org.mozilla.firefox

Then I disabled swap, zram 120mb, extra_free_kkytes=10000;

And I enabled kernel samepage merging.

The swapoff process itself got killed during execution.

After retry it worked.

First i noticed that the tap was closed because firefox got killed.

Zram usage was 109mb of 120.

Firefox worked better than with swap only.

I could read and scroll the entire page.

With swap the scrolling was not as good.

Then i enabled swap and zram 120mb extra_free_kkytes=10000;

and kernel samepage merging. swapiness 100 in all tests.

This result was the best. But don't know if better than with zram only.

I could switch to the laucher (adw laucher in my case)

And back to firefox and the page was still there.

And then I could scroll fastly the entire page.

Ram usage was firefox still 180mb.

Ram free 10mb, swap(zram+swap) 90mb.
[Xperia Arc Android Development] spidereye10:
Great work!

Nice work LX and mikeioannina! I had EDT2 ICS ROM on Arc S but this is much better. I think it smoother. Dumb Ways to Die 1,2 have better fps, USB OTG is working in any way I can imagine, I don't have to worry about Link2SD anymore and so on. Slovak keyboard layout is in system, but diacritic key to the left of backspace is not combined with letter typed afterwards. I don't mind 480p camcorder, enabling Bluetooth on 4th attempt or FM Radio.

Here are some screenshots:
[Xperia Arc Android Development] TomTomcrafter001:
If your browser is too slow for xda, try the xda premium app from the play store.
[Xperia Arc Android Development] TomTomcrafter001:
Here is a screenshot of the xda app:
[Xperia Arc Android Development] honeycakehorse:
I also asked already a similar question in the LL thread here but I didn't get a answer yet.

When I want use a other ROM, can I abrogate the changes in the system partition with flashtool again?

I wanted back to CM11 and I was to shy to install it only via recovery and kernel by flashtool.

Or can I use the f2fs in cm11 for my data partition as well? I can't believe it.

Gesendet von meinem C6833 mit Tapatalk
[Xperia Arc Android Development] alexander-n8hgeg5e:
Maybe you can log in into the recovery with adb... I tried to connect to the cm13 recovery that did not work.

You can load with fastboot any kernel and initrd. Maybe there is some system you can load and do some repair.

Your log says that the recovery tried to format the system partition and failed...

Do you know why that happened?

Why does cm13 fix your issue?

I don't know enough about flash storage and bad sectors on flash to give a good answer here.

I heard something that there are oob "out of band" areas where something gets stored.

Bad sectors or something. Bad blocks marked bad by the manufacturer.

They find out by testing at different temperatures and extrem conditions.

If the sectors a real bad than you can do nothing except boot from sdcard.

Maybe you can reset the flash somehow.

But in usual case the information of bad sectors is important and you don't want to erase the "oob" areas.

Did you flash the stock rom with flashtool as described in the "get back to stock guide" ?