Espressobin anyone ?

Søren Schmidt deepcore.dk at gmail.com
Tue Jun 11 18:37:32 UTC 2019


Hi

That does the trick, I now have my SDcard found and can boot and run from it.

However, there is still the problem with currdev not be set. I instrumented the loader a bit:

Consoles: EFI console  
    Reading loader env vars from /efi/freebsd/loader.env
efiblk_get_pdinfo_by_handle failed
stat /efi/freebsd/loader.env failed
FreeBSD/arm64 EFI loader, Revision 1.1

However the file is there and readable:

/efi/boot:
total 16
-rwxr-xr-x  1 root  wheel  15946 Jun 10 14:29 armada-3720-espressobin.dtb

/efi/freebsd:
total 536
-rwxr-xr-x  1 root  wheel  543176 Jun 10 14:29 loader.efi
-rwxr-xr-x  1 root  wheel      16 Jun 10 14:29 loader.env


Setting it manually to disk0p2 makes boot possible.

Also I needed this patch to get t he SATA driver detected, otherwise it fails with error 6.

Index: armada-37xx.dtsi
===================================================================
--- armada-37xx.dtsi	(revision 348892)
+++ armada-37xx.dtsi	(working copy)
@@ -443,7 +443,7 @@
 
 			sata: sata at e0000 {
 				compatible = "marvell,armada-3700-ahci";
-				reg = <0xe0000 0x178>;
+				reg = <0xe0000 0x2000>;
 				interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
 				clocks = <&nb_periph_clk 1>;
 				status = "disabled";

Both are easily worked around, and I can get on with the project this was acquired for, thanks for getting this fixed!

Any plans to get it MFC’d back to 12stable ? Otherwise I might look into that as that’s what we use here…

-Søren

> On 11 Jun 2019, at 07.48, Søren Schmidt <deepcore.dk at gmail.com> wrote:

> Excelent ! I’ll try that out when I get back home today.
> I had a small fix to the sata target in the DTS in order to make the disk attach work, otherwise it was almost there (less sdcard) with a current from Friday. 
> 
> -Søren
> 
> 
>> On 11 Jun 2019, at 00.01, Luiz Otavio O Souza <lists.br at gmail.com> wrote:
>> 
>>> On Sun, 2 Jun 2019 at 13:41, Søren Schmidt <deepcore.dk at gmail.com> wrote:
>>> [...]
>>> mountroot>
>>> 
>>> However, the MMC/SDcard fails to be found so it will stop at mounting root.
>>> 
>>> Having a disk on the SATA port can make it work from there though.
>>> 
>>> The etherswitch is not found, but the single “nata” port does show up..
>>> 
>>> All in all the support is barely enough to boot a kernel, but a long way from being useful.
>>> 
>>> You can use 12-stable as well, the same support seems to be present there, and its much more stable, -current as is today panics…
>>> 
>>> Oh, and you need to get the “right” .dtb file, otherwise you get panic’s etc.
>>> 
>> 
>> I've fixed the SD Card detection issue in r348882 and also the panic
>> in -current.
>> 
>> Now you should be able to boot the espressobin with -current without
>> any changes.
>> 
>> The correct DTS (to use) is in
>> sys/gnu/dts/arm64/marvell/armada-3720-espressobin.dts.
>> 
>> With this DTS the switch will work (also fixed and improved recently,
>> more to come..).
>> 
>> Let me know how it goes.
>> 
>> Luiz
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"



More information about the freebsd-arm mailing list