ray
(Олександр Рыбалко)
November 20, 2018, 9:46am
1
Progress on porting FreeBSD to MTK7623 and BPI-R2 board.
Will add to ZRouter.org project too, when basic networking support will be done.
SMP - done
Ethernet - if_rt, but use GMAC1/GMAC2 as separate NICs - done
Generic Timer fix - done
PCI-E - done
USB XHCI - done
USB OTG - not yet
Interrupt controller - works (it is just proxy to GIC with some tweaks)
UART - done
SD/MMC/eMMC - not yet
Run multiuser just fine.
Current July 31, 2019 11:31 AM :
boot.log
---<<BOOT>>---
ARM Debug Architecture v7.1
4 watchpoints and 6 breakpoints supported
KDB: debugger backends: ddb
KDB: current backend: ddb
CPU(0) applied BP hardening: not necessary
Copyright (c) 1992-2019 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
This file has been truncated. show original
3 Likes
st41ker
(Alexander)
January 10, 2019, 9:59am
2
That is exactly where I’ve moved.
After that just left trying.
ray
(Олександр Рыбалко)
January 10, 2019, 11:56am
3
Sure, after that point you need a lot of drivers to do.
I’m currently in a basic set: clks, pinctrl, gpio.
frank-w
(Frank W.)
January 10, 2019, 12:05pm
4
dumb question: can’t bsd not use linux-kernel anyhow?
st41ker
(Alexander)
January 10, 2019, 12:45pm
5
Actually, there was linux userland running under FreeBSD kernel: https://www.debian.org/ports/kfreebsd-gnu/
But FreeBSD userland under Linux - never heard about it.
I think it has no sense. FreeBSD is the kernel with all bell and whistles there.
ray
(Олександр Рыбалко)
July 25, 2019, 10:23am
6
PCI-E - works
General-Purpose Timer - works (single channel used yet)
Interrupt controller - works (it is just proxy to GIC with some tweaks)
As result:
AHCI - works
drive - attached
kernel mounts it fine
but no regular tty yet to see other messages.
Link Updated:
boot.log
---<<BOOT>>---
ARM Debug Architecture v7.1
4 watchpoints and 6 breakpoints supported
KDB: debugger backends: ddb
KDB: current backend: ddb
CPU(0) applied BP hardening: not necessary
Copyright (c) 1992-2019 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
This file has been truncated. show original
[/quote]
1 Like
so we have hope to get pfSense working in future … maybe?
frank-w
(Frank W.)
July 27, 2019, 6:00am
9
Have you uploaded these fixes too?
ray
(Олександр Рыбалко)
July 28, 2019, 12:51am
10
Better for FreeNAS
but yes, pfSense possible too.
Have to done SMP and Nic first.
ray
(Олександр Рыбалко)
July 28, 2019, 12:52am
11
It is FreeBSD changes, not U-Boot.
Too dirty yet to commit
frank-w
(Frank W.)
July 28, 2019, 6:14pm
12
Any chance to get usb working on uboot?
Have you an idea to initialize hifsys independend from ethsys (seems wrong for me)
ray
(Олександр Рыбалко)
July 28, 2019, 8:05pm
13
It’s not so hard. Since XHCI supported. Only IP core power-up bits required and code to init PHYs.
IIRC, ethsys init called by FDT support code on its compatible property. So you need to make similar, but with hifsys compatible string and move code for it from ethsys.
frank-w
(Frank W.)
July 29, 2019, 2:08am
14
I tried to do this (see my sata2-branch/uboot-thread),but probe isn’t called…
with the help of @ray we got sata working in uboot here
but we need some tuning before we can get it upstream (hifsys is currently initialized in ethsys where it is imho wrong placed)
@Ryder.Lee @weijiegao can you help here? where is the correct entry-point to initialize the hifsys? afaik there should be a new file using compatible “mediatek,mt2701-hifsys” to probe it and then initialize it independent from ethsys (= moving this code )…
https://elixir.bootlin.com/linux/v5.3-rc1/source/driver…
compatible string matches and code is buildin…but it seem that an additional trigger is needed. I guess without this change we have no luck getting the code upstream.
Can you look at it and answer in uboot-thread so we can stop off-topic here?
cioby23
(Cioby23)
August 28, 2019, 1:53pm
18
Can the ARM version of FreeBSD run successfully on the BPI-R2 board ?
Are these changes pushed in the main FreeBSD repository ?
Is there any available image ?
ray
(Олександр Рыбалко)
August 28, 2019, 2:11pm
19
Yes, it run fine. But with few problems. Main is:
Ethernet interface have pure performance yet.
No SD/MMC controller driver.
Not yet.
Currently not. But possible.
1 Like
Joe_Culler
(Joe Culler)
August 29, 2019, 6:46am
20
Where’s your source code? if source code looks dirty it doesn’t matter.