Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for eMMC speed mod as in postmarketOS #263

Closed
dariox86 opened this issue Dec 25, 2021 · 14 comments
Closed

Add support for eMMC speed mod as in postmarketOS #263

dariox86 opened this issue Dec 25, 2021 · 14 comments
Labels
device: pinephone PINE64 PinePhone enhancement New feature or request

Comments

@dariox86
Copy link

Feature request: implement eMMC speed hack as in postmarketOS.

@Danct12 Danct12 added device: pinephone PINE64 PinePhone enhancement New feature or request labels Dec 25, 2021
@Danct12
Copy link
Member

Danct12 commented Jan 13, 2022

U-Boot is updated to implement user script (which will be needed for this mod), please diff your boot.txt with the pacnew version.

@dariox86
Copy link
Author

Thank you. I will apply the hardware modification and report here. By the way there is no .pacnew file. Maybe it was just overwritten because the original was unmodified.

@Danct12
Copy link
Member

Danct12 commented Jan 14, 2022

It it on 2022.01? Anyway, do the mod at your own risk.

@dariox86
Copy link
Author

It it on 2022.01? Anyway, do the mod at your own risk.

Sorry, I don't understand. The system is up to date. I got the updated U-Boot. It should work, right? At my own risk, of course.

@dariox86
Copy link
Author

It's not working. It doesn't boot past the Tux screen with the spinning wheel.

@Danct12
Copy link
Member

Danct12 commented Jan 16, 2022

If you're on 2022.01, the LED should be green on boot up.

You also need to push these files (attached below) to the /boot partition for it to work. Just in case, can you attach your boot.scr in the comment?

vccq.tar.gz

@dariox86
Copy link
Author

My LED is green on boot. I had already tried copying these two files over from postmartketOS to no avail. Either way both with your files and with the files I had tried I end up in a boot loop:

IMG_20220116_200714_1(1)

Attached my boot.scr:
boot.scr.zip

I also have issues with JumpDrive 0.8: after reading or writing a few megabytes my PinePhone units disappear from the operating system due to an unspecified I/O issue.

@Danct12
Copy link
Member

Danct12 commented Jan 16, 2022

Hmm, seems like I made a mistake when setting the location where the user script should be in memory.

Can you modify boot.txt and change user_scriptaddr memory region to 0x61dbc200 then regenerate boot.scr and see if it works?

@dariox86
Copy link
Author

It works. Thank you!

@sorry-i-am-late
Copy link

Hmm, seems like I made a mistake when setting the location where the user script should be in memory.

Can you modify boot.txt and change user_scriptaddr memory region to 0x61dbc200 then regenerate boot.scr and see if it works?

how do I regenerate my boot.scr?
I performed this mod on my ubports 2gb/16gb (Kimtigo chip) and nothing changed in terms of write speed. (nothing is worse than before)
Does the need to replace 0x50100000 with 0x61dbc200 not apply to the older emmc?

@dariox86
Copy link
Author

My PinePhone had lost both mobile and Wi-Fi connection a while ago and I became uninterested ever since. Actually I regret having bought one. I was prepared to bear with software problems, but I did not expect such hardware issues. Anyway, I remember I just needed to add two files to /boot partition as explained in this comment. The performance gain was noticeable.

@sorry-i-am-late
Copy link

My PinePhone had lost both mobile and Wi-Fi connection a while ago and I became uninterested ever since.

My phones wifi/bt chip has been dead for over a year and I think it is caused by voltage irregularities from boot looping while trying to charge a completely dead battery.

Anyway, i did the VCCQ mod and it boots as it should after adding the files and recognizes the mode change but, i did not get any speed increase. This is annoying because I overclocked my ram & cpu and if the emmc thing worked i was gonna do the gpu for an around the board speed boost.
I will probably try to revert it at some point, that way i can have jumpdrive and hopefully usb peripherals which also seem to have stopped working. (USB stuff was already sketchy since i have a ubports and i had to do the vconn mod to get them working at all)

@dariox86
Copy link
Author

I thought I was the only one affected by this hardware failure for connectivity. After a while, I remember having issues with USB, too. On the other hand, the performance gain brought by the modification was noticeable. Have you tried to benchmark it with hdparm?

@sorry-i-am-late
Copy link

The hardware failure is not common but, there are a handful of others who have reported it.

I tried hdparm and I get readings from the upper 50s to upper 80s (mostly 86ish).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
device: pinephone PINE64 PinePhone enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants