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

Adding SATA Port Multiplier to boot.scr automatic? #548

Closed
LarsNorgaard opened this Issue Nov 20, 2016 · 6 comments

Comments

Projects
None yet
4 participants
@LarsNorgaard

LarsNorgaard commented Nov 20, 2016

Hi,

I've used most of my weekend to figure out why my new JMB321 based SATA Port Multiplier worked fine with Bananaian but not on armbian, even when compiling my own kernel with PMP enabled.

Found out that I needed to edit boot.cmd.

Couldn't the boot script look for vendor id or something and then add the ahci_sunxi line itself?

FIX:

nano /boot/boot.cmd
Go to line that starts with setenv bootargs and add ahci_sunxi.enable_pmp=1 to the end of it.
recompile with mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr
reboot
http://forum.lemaker.org/forum.php?mod=viewthread&tid=9207&page=3#pid93406
Thanks to Kaiser and Paccer.

It's probably not a bug, but I wanted to share my findings.

@zador-blood-stained

This comment has been minimized.

Show comment
Hide comment
@zador-blood-stained

zador-blood-stained Nov 20, 2016

Member

Couldn't the boot script look for vendor id or something and then add the ahci_sunxi line itself?

No, I don't think this information is accessible from u-boot (especially via conditional expressions), and even if it was, maintaining a vendor/product table would not be a good idea.

Member

zador-blood-stained commented Nov 20, 2016

Couldn't the boot script look for vendor id or something and then add the ahci_sunxi line itself?

No, I don't think this information is accessible from u-boot (especially via conditional expressions), and even if it was, maintaining a vendor/product table would not be a good idea.

@ThomasKaiser

This comment has been minimized.

Show comment
Hide comment
@ThomasKaiser

ThomasKaiser Nov 20, 2016

Member

@LarsNorgaard please send a pull request with information how to enable PM support with A20 devices here: https://github.com/igorpecovnik/lib.docs/blob/master/docs/Hardware_Allwinner-A20.md

Member

ThomasKaiser commented Nov 20, 2016

@LarsNorgaard please send a pull request with information how to enable PM support with A20 devices here: https://github.com/igorpecovnik/lib.docs/blob/master/docs/Hardware_Allwinner-A20.md

@zador-blood-stained

This comment has been minimized.

Show comment
Hide comment
Member

zador-blood-stained commented Nov 29, 2016

@hsch0

This comment has been minimized.

Show comment
Hide comment
@hsch0

hsch0 Sep 27, 2017

@LarsNorgaard I'm looking for an image of Armbian with the SATA_Multiplier enabled. can you provide me download link?

hsch0 commented Sep 27, 2017

@LarsNorgaard I'm looking for an image of Armbian with the SATA_Multiplier enabled. can you provide me download link?

@LarsNorgaard

This comment has been minimized.

Show comment
Hide comment
@LarsNorgaard

LarsNorgaard Sep 28, 2017

@hsch0 I haven't looked into this for a while actually. The PMP board I got gave me sata errors every 4th hour or so, so I stopped using it.

You're not able to apply anything to boot.cmd ?

LarsNorgaard commented Sep 28, 2017

@hsch0 I haven't looked into this for a while actually. The PMP board I got gave me sata errors every 4th hour or so, so I stopped using it.

You're not able to apply anything to boot.cmd ?

@ThomasKaiser

This comment has been minimized.

Show comment
Hide comment
@ThomasKaiser

ThomasKaiser Sep 28, 2017

Member

Just to inform others stumbling accross this issue and thinking Allwinner SATA especially combined with port multipliers would be worth a try... it's not, Allwinner SATA is slow as hell and when combined with a port multiplier (especially the cheap crap like JMB321) it gets even worse.

Take your time to read through:

It's 2017 now, please wake up. A20/R40/V40 and PM --> unfortunately you fooled yourself.

Member

ThomasKaiser commented Sep 28, 2017

Just to inform others stumbling accross this issue and thinking Allwinner SATA especially combined with port multipliers would be worth a try... it's not, Allwinner SATA is slow as hell and when combined with a port multiplier (especially the cheap crap like JMB321) it gets even worse.

Take your time to read through:

It's 2017 now, please wake up. A20/R40/V40 and PM --> unfortunately you fooled yourself.

@armbian armbian locked and limited conversation to collaborators Sep 28, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.