Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Apr 2021 17:47:46 +0200
From:      Peter Cornelius <pcc@gmx.net>
To:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: JMicron jms561 umass on arm64?
Message-ID:  <trinity-13b73107-a234-4c06-873e-a6d5dd3c46ac-1618069666636@3c-app-gmx-bap64>
In-Reply-To: <7B26049E-BA67-4E23-A558-2D29CB65108A@yahoo.com>
References:  <trinity-96292338-af50-4ea1-a4cf-0afcd97dfe35-1617806989816@3c-app-gmx-bs02> <20210407153732.GA50562@www.zefox.net> <trinity-2bcace35-09e8-4e81-87be-53287568c3c1-1617827433585@3c-app-gmx-bs02> <20210407211513.GA53438@www.zefox.net> <trinity-c3148d05-2413-4522-b67d-8be37f8c0dad-1617868014706@3c-app-gmx-bs02> <A2E9C605-ABB3-40E3-931C-7FB10CDD0990@yahoo.com> <20210408150934.GA99223@www.zefox.net> <694B7C84-E627-4E17-9148-4C4BB54FAD17@yahoo.com> <trinity-93090f7c-f2f9-4cec-8b27-1af7de718f7a-1617905889857@3c-app-gmx-bs32> <5099D78C-6656-4E4A-9F20-23F31A4397FE@yahoo.com> <trinity-17aa86d8-be8c-434e-9815-443ce0ce0d54-1617993216878@3c-app-gmx-bs30> <7B26049E-BA67-4E23-A558-2D29CB65108A@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks, Mark,

> Is there evidence someplace that these instructions are
> no longer needed, even for what operating systems they
> do support?

Darn. Nope. Of course not. Just blind. I put that to the side thinking it all was about managing the display and the fan.
Which, embarrasingly, and of course, it was not.

Sigh. Never mind. I hope that this sitting-alone-at-home soon stops. I seem to need someone else's eyes on once in a while. Otoh, isn't that what the mailing lists are for...

> The PINOUT shows "reset SATA3/4" function GPIO_RST2 on pin #37
> of the 40 PIN GPIO header and "reset SATA 1/2" function
> GPIO_RST1 on pin #22 of that header. (There is more but
> this much seems to establish that more than USB is involved
> in using SATA drives.)

And so it is (usr/bin/rockpi-sata/misc.py, from [6])

def disk_turn_on():
    blk1 = get_blk()
    set_mode(26, GPIO.HIGH)
    time.sleep(0.5)
    set_mode(25, GPIO.HIGH)
    wait_blk(10)
    blk2 = get_blk()
    conf['disk'] = sorted(list(set(blk2) - set(blk1)))

def disk_turn_off():
    set_mode(26, GPIO.LOW)
    time.sleep(0.5)
    set_mode(25, GPIO.LOW)

Which are just pins 22 and 37 [7], [8] (blk.* just get the list of disks from Linux lsblk). So, it looks like that it boiled down to just setting the two pins to high, and the disks should be there (and gone if low)... That would be easy to test (and possible python for fan and display and so on to come later).

I find that gpioctl -l reports 54 GPIO pins. How does that relate to the 58 pins the BCM2711 has [9]? I also seem blind to the way we are assigning the pins... /usr/src/sys/contrib/device-tree/src/arm/bcm2711-rpi-4-b.dts also lists 58 as in [9].

Thanks again, and

All the best,

Peter.

---

> > [1] I believe, https://www.jmicron.com/file/download/1026/JMS561_Product+Brief.pdf
> > [2] https://wiki.radxa.com/Dual_Quad_SATA_HAT
> > [3] Note: Later builds so far have not booted despite of current Firmware/Das U-Boot (March 2021)
> >    FreeBSD rpi4 14.0-CURRENT FreeBSD 14.0-CURRENT #1: Tue Feb 23 02:30:31 UTC 2021
> >    root@rpi4:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64
> > [4] https://jamesachambers.com/raspberry-pi-4-bootloader-firmware-updating-recovery-guide/
> > [5] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252971
[6] https://github.com/akgnah/rockpi-sata
[7] https://www.tomshardware.com/reviews/raspberry-pi-gpio-pinout,6122.html
[8] https://www.raspberrypi.org/documentation/usage/gpio/
[9] https://datasheets.raspberrypi.org/bcm2711/bcm2711-peripherals.pdf




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?trinity-13b73107-a234-4c06-873e-a6d5dd3c46ac-1618069666636>