How flash a Radxa Rock Pi 4 SPI with Fedora U-Boot?
by Peter Boy
I have successfully installed Fedora 35 Server Edition on my Rock Pi 4a and everything is running fine so far. In particular, with the current kernel, the PCIe NVMe disk is usable. What a performance difference.
Now I want to boot from the NVMe Disk and therefore have to flash u-boot onto the SPI (which was already soldered on my board by the maker).
I found instructions for the Pinebook Pro and Fedora [1], but accessing the SPI obviously works differently on the Rock Pi. So I get no access to sf and in the Rock-pi directory there is no file itbloader.spi as is in PineBookPro.
According to Radxa documentation [2] I need the tool rkdeveloptool, for which there is a Fedora RPM. With this I could put the Rock Pi in maskrom mode and access the SPI.
Unfortunately, I could not find any information on how to install rsp. flash Fedora u-boot with this tool. From what I've read, the order might be:
rkdeveloptool db /path/to/rk3399_loader_spinor_v1.15.114.bin
rkdeveloptool wl <BeginSec> /path/to/idbloader.xxx
rkdeveloptool wl <BeginSec> /path/to/u-boot.itb
rkdeveloptool rd
According to Rockchip Wiki [3], the image location for idbloader ist 0x40 sectors and u-boot.itb 0x4000 sectors. But obviously there are different ways to generate those files with probably different offsets, e.g. how it works vor Pine64 RockPro64 [4]. That one is also supposed to be mainline u-boot (unlike the one provided by Radxa). It provides a file combining idbloader and u-boot and starting with offset 0, quite comfortable. Does it resemble Fedora u-boot (or vice versa)? Does it work on Radxa Rock Pi and Fedora?
And what about the file u-boot-rockchip.bin in Fedora?
Can anyone shed some light on this?
Any help greatly appreciated
Peter
[1] https://nullr0ute.com/2021/05/fedora-on-the-pinebook-pro/
[2] https://wiki.radxa.com/Rockpi4/dev/spi-install
[3] http://opensource.rock-chips.com/wiki_Boot_option
[4] https://forum.pine64.org/showthread.php?tid=8685
1 year, 4 months
Re: Potential regression of the Ethernet configuration/driver in F35 with Rockchip / Rock Pi 4
by Peter Robinson
On Mon, Nov 1, 2021 at 7:34 PM Peter Boy <pboy(a)uni-bremen.de> wrote:
>
>
>
> > Am 01.11.2021 um 20:23 schrieb Peter Robinson <pbrobinson(a)gmail.com>:
> >
> >>> You don't state what kernel version you're running is.
> >>
> >> Oh, sorry
> >>
> >> The F35 fedora-server disk image comes with 5.14.0-60
> >
> > Are you sure that's not the beta image? The GA kernel is
> > kernel-5.14.9-300.fc35, we fixed the issue you mention around beta,
> > but I don't think the fix landed in beta. It's definitely not an issue
> > from my testing with other rk3399 devices now.
> >
>
>
> I downloaded from get fedora -> Fedora Server -> Raw image beta
> https://download.fedoraproject.org/pub/fedora/linux/releases/test/35_Beta...
>
> At least for x86_64 Beta 1.2 is the go image that will get distributed as F35 release. I guess, it is the same for arch? The page should show the latest builds.
No, it's not, it's the RC-1.2 image, the Beta 1.2 image is exactly
that Btea. You can find the RC 1.2 images at the following link (until
GA links go live tomorrow):
https://dl.fedoraproject.org/pub/alt/stage/35_RC-1.2/
>
> Peter
>
>
>
>
>
> > P
> >
> >> The fully updated F34 fedora-server is using 5.14.14-200
> >>
> >>
> >>>
> >>> On Mon, Nov 1, 2021 at 4:44 PM Peter Boy <pboy(a)uni-bremen.de> wrote:
> >>>>
> >>>> I tried to install F35 on my Rock Pi 4 A yesterday and ended up with a basically working box but without an ethernet connection. An ‚ip a‘ just shows the device without any IP settings. After setting hostname and locale and reboot I got an IPv6 local link (fe80::…) but nothing else. And after a while that vanished, too.
> >>>>
> >>>> A 'nmcli dev‘ shows an ethernet device eth0, at first in status ‚connection‘ and after a while ‚disconnected‘.
> >>>> A ’nmcli con’ first showed ‚wired connection 1‘ and device eth0, later no device.
> >>>>
> >>>>
> >>>> In boot log I found several entries with warnings about something not found, but in the end:
> >>>>
> >>>> rk_gmac-dwmac fe300000.ethernet: Ring mode enabled
> >>>> rk_gmac-dwmac fe300000.ethernet: Enable RX Mitigation via HW Watchdog Timer
> >>>> RTL8211E Gigabit Ethernet stmmac-0:01: attached PHY driver (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
> >>>>
> >>>> And NetworkManager
> >>>>
> >>>> (NM)[1103]: <info> ... device (lo): carrier: link connected
> >>>> (NM)[1103]: <info> ... manager: (lo): new Generic device (/org/freedesk...ces/1)
> >>>> (NM)[1103]: <info> ... device (eth0): driver '(null)' does not support carrier detection.
> >>>> (NM)[1103]: <info> ... device (eth0): driver 'rk_gmac-dwmac' does not support carrier detection.
> >>>> (NM)[1103]: <info> ... manager: (eth0): new Ethernet device (/org/freede.../Devices/2)
> >>>> (NM)[1103]: <info> ... settings: (eth0): created default wired connection 'Wired connection 1'
> >>>> (NM)[1103]: <info> ... device (eth0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external‘)
> >>>>
> >>>> rk_gmac-dwmac fe300000.ethernet eth0: PHY [stmmac-0:00] driver [RTL8211E Gigabit Ethernet] (irq=POLL)
> >>>> rk_gmac-dwmac fe300000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
> >>>> rk_gmac-dwmac fe300000.ethernet eth0: No Safety Features support found
> >>>> rk_gmac-dwmac fe300000.ethernet eth0: PTP not supported by HW
> >>>> rk_gmac-dwmac fe300000.ethernet eth0: configuring for phy/rgmii link mode
> >>>> ...
> >>>> rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
> >>>>
> >>>>
> >>>> With current fully updated F34 everything works fine, even PCIe NVMe ssd M.2 works.
> >>>>
> >>>> I hesitate to update to F35 online. If I then find myself without a network connection, it is difficult to reinstall F34 (with the F34 install image the network works, but not the terminal).
> >>>>
> >>>>
> >>>>
> >>>> Any idea how getting this to work?
> >>>>
> >>>>
> >>>>
> >>>> Any help greatly appreciated.
> >>>>
> >>>> Peter
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> arm mailing list -- arm(a)lists.fedoraproject.org
> >>>> To unsubscribe send an email to arm-leave(a)lists.fedoraproject.org
> >>>> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> >>>> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> >>>> List Archives: https://lists.fedoraproject.org/archives/list/arm@lists.fedoraproject.org
> >>>> Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
> >>> _______________________________________________
> >>> arm mailing list -- arm(a)lists.fedoraproject.org
> >>> To unsubscribe send an email to arm-leave(a)lists.fedoraproject.org
> >>> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> >>> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> >>> List Archives: https://lists.fedoraproject.org/archives/list/arm@lists.fedoraproject.org
> >>> Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
> >>
> >
>
1 year, 4 months
Potential regression of the Ethernet configuration/driver in F35 with Rockchip / Rock Pi 4
by Peter Boy
I tried to install F35 on my Rock Pi 4 A yesterday and ended up with a basically working box but without an ethernet connection. An ‚ip a‘ just shows the device without any IP settings. After setting hostname and locale and reboot I got an IPv6 local link (fe80::…) but nothing else. And after a while that vanished, too.
A 'nmcli dev‘ shows an ethernet device eth0, at first in status ‚connection‘ and after a while ‚disconnected‘.
A ’nmcli con’ first showed ‚wired connection 1‘ and device eth0, later no device.
In boot log I found several entries with warnings about something not found, but in the end:
rk_gmac-dwmac fe300000.ethernet: Ring mode enabled
rk_gmac-dwmac fe300000.ethernet: Enable RX Mitigation via HW Watchdog Timer
RTL8211E Gigabit Ethernet stmmac-0:01: attached PHY driver (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
And NetworkManager
(NM)[1103]: <info> ... device (lo): carrier: link connected
(NM)[1103]: <info> ... manager: (lo): new Generic device (/org/freedesk...ces/1)
(NM)[1103]: <info> ... device (eth0): driver '(null)' does not support carrier detection.
(NM)[1103]: <info> ... device (eth0): driver 'rk_gmac-dwmac' does not support carrier detection.
(NM)[1103]: <info> ... manager: (eth0): new Ethernet device (/org/freede.../Devices/2)
(NM)[1103]: <info> ... settings: (eth0): created default wired connection 'Wired connection 1'
(NM)[1103]: <info> ... device (eth0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external‘)
rk_gmac-dwmac fe300000.ethernet eth0: PHY [stmmac-0:00] driver [RTL8211E Gigabit Ethernet] (irq=POLL)
rk_gmac-dwmac fe300000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
rk_gmac-dwmac fe300000.ethernet eth0: No Safety Features support found
rk_gmac-dwmac fe300000.ethernet eth0: PTP not supported by HW
rk_gmac-dwmac fe300000.ethernet eth0: configuring for phy/rgmii link mode
...
rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
With current fully updated F34 everything works fine, even PCIe NVMe ssd M.2 works.
I hesitate to update to F35 online. If I then find myself without a network connection, it is difficult to reinstall F34 (with the F34 install image the network works, but not the terminal).
Any idea how getting this to work?
Any help greatly appreciated.
Peter
1 year, 4 months