【OpenWrt On Milkv-duo】Milkv-duo 运行 OpenWrt 系统

先说结论,Openwrt在milk-duo上跑起来了!!

...
[    6.231321] kmodloader: - pppox - 1
[    6.261922] kmodloader: - slhc - 0
[    6.772273] random: crng init done
[    6.775805] random: 1 urandom warning(s) missed due to ratelimiting



BusyBox v1.36.1 (2023-12-05 01:46:36 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r24428-e294c7850c
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# cat /proc/cp[   14.741947] bm-dwmac 4070000.ethernet eth0: PHY [stmmac-0:00] driver [Generic PHY] (irq=POLL)
[   14.778741] dwmac1000: Master AXI performs any burst length
[   14.784573] bm-dwmac 4070000.ethernet eth0: No Safety Features support found
[   14.791912] bm-dwmac 4070000.ethernet eth0: IEEE 1588-2002 Timestamp supported
[   14.799392] bm-dwmac 4070000.ethernet eth0: configuring for phy/rmii link mode
[   14.921863] br-lan: port 1(eth0) entered blocking state
[   14.927308] br-lan: port 1(eth0) entered disabled state
[   14.933073] device eth0 entered promiscuous mode
root@OpenWrt:/# cat /proc/cpuinfo 
processor       : 0
hart            : 0
isa             : rv64imafdvcsu
mmu             : sv39

root@OpenWrt:/# free -m
              total        used        free      shared  buff/cache   available
Mem:          24216        9456        5576          56        9184       10604
Swap:             0           0           0
root@OpenWrt:/# 

源码都在这里:

CI也建好了,固件也编译好了,在Action里面,写到SD卡里面去就可以启动了,如果后期失效了,可以看看最新的编译情况。

说一下想法,这个Openwrt基于Sophgo linux 5.10并且用的是官方SDK的toolchain,在跑应用的时候不存在不兼容的问题,理论上官方SDK buildroot里面sample都可以在这个系统里面通过ipk进行安装。
平台已经搭建好了,希望大家多讨论好的想法,我会尽可能满足大家。

另外这个软件也支持硬件十万为什么的huashanpi,同样的玩法,写到SD卡里面就能启动。

6 Likes

大佬牛啊,这个感觉玩头很大,感谢大佬的开源!

你好,小白请教,你这个仓库该怎么编译了,没看到feeds等等

小白请教能给一个编译方法吗?下载下来发现不是完整的openwrt

Follow the steps found here - https://github.com/Pillar1989/VizOS/blob/vizos/.github/workflows/main.yml

From
name: Compile Milk-V Duo Image

My Duo booted up:

Great, thank you!

I was able to get it to build, but noticed there’s no default USB profile, like the buildroot image has.

Are you using the UART0 to connect? I’m having the problem some people are where TX works fine (I can see the boot messages), but RX doesn’t seem to work so I can’t login via console.

1 Like

No, did not use UART at all with OpenWRT

Did it come up in RNDIS or CDC mode automatically? I don’t see any USB activity at all using the OpenWRT build directions, but everything works fine when I build via buildroot, or flash the Alpine image

No, it wont not included/enabled

你好,这个编译方法及过程在仓库的/vizos/.github/workflows/main.yml里面。 :smiling_face_with_three_hearts: