在OpenWrt官网就可以下载d1的镜像,比如Sipeed LicheePi RV。
目前最新版本是SNAPSHOT (r25623-f403824a6f)/2024-03-23 18:57:30。
但是貌似不能识别网卡。
启动后如下:
BusyBox v1.36.1 (2024-03-23 14:51:15 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r25623-f403824a6f
-----------------------------------------------------
=== 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:/# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2496 (2.4 KiB) TX bytes:2496 (2.4 KiB)
# lsmod
cfg80211 524288 1 r8723bs
cmac 16384 0
compat 16384 2 r8723bs,cfg80211
crc_ccitt 16384 1 ppp_async
crypto_acompress 16384 2 lzo,lzo_rle
drbg 32768 0
hmac 16384 0
jitterentropy_rng 16384 0
libcrc32c 16384 1 nf_tables
lzo 16384 0
lzo_compress 16384 2 lzo,lzo_rle
lzo_decompress 16384 2 lzo,lzo_rle
lzo_rle 16384 0
nf_conntrack 151552 7 nft_redir,nft_nat,nft_masq,nft_flow_offload,nft_ct,nf_nat,nf_flow_table
nf_defrag_ipv4 16384 1 nf_conntrack
nf_defrag_ipv6 24576 1 nf_conntrack
nf_flow_table 49152 2 nf_flow_table_inet,nft_flow_offload
nf_flow_table_inet 16384 0
nf_log_syslog 28672 0
nf_nat 49152 4 nft_redir,nft_nat,nft_masq,nft_chain_nat
nf_reject_ipv4 16384 2 nft_reject_ipv4,nft_reject_inet
nf_reject_ipv6 16384 2 nft_reject_ipv6,nft_reject_inet
nf_tables 315392137 nft_fib_inet,nf_flow_table_inet,nft_reject_ipv6,nft_reject_ipv4,nft_reject_inet,nft_reject,nft_redir,nft_quota,nft_objref,nft_numgen,nft_nat,nft_masq,nft_log,nft_limit,nft_hash,nft_flow_offload,nft_fib_ipv6,nft_fib_ipv4,nft_fib,nft_ct,nft_chain_nat
nfnetlink 24576 1 nf_tables
nft_chain_nat 16384 2
nft_ct 24576 3
nft_fib 16384 3 nft_fib_inet,nft_fib_ipv6,nft_fib_ipv4
nft_fib_inet 16384 0
nft_fib_ipv4 16384 1 nft_fib_inet
nft_fib_ipv6 16384 1 nft_fib_inet
nft_flow_offload 16384 0
nft_hash 16384 0
nft_limit 16384 5
nft_log 16384 0
nft_masq 16384 1
nft_nat 16384 0
nft_numgen 16384 0
nft_objref 16384 0
nft_quota 16384 0
nft_redir 16384 0
nft_reject 16384 3 nft_reject_ipv6,nft_reject_ipv4,nft_reject_inet
nft_reject_inet 16384 2
nft_reject_ipv4 16384 0
nft_reject_ipv6 16384 0
ppp_async 28672 0
ppp_generic 61440 3 pppoe,ppp_async,pppox
pppoe 24576 0
pppox 16384 1 pppoe
r8723bs 651264 0
seqiv 16384 0
sha512_generic 16384 0
slhc 16384 1 ppp_generic
换成LicheePi RV官方支持的Ubuntu镜像,相关信息如下:
root@ubuntu:~# uname -a
Linux ubuntu 5.17.0-1003-allwinner #3-Ubuntu SMP Fri Jul 15 15:28:33 UTC 2022 riscv64 riscv64 riscv64 GNU/Linux
root@ubuntu:~# cat /etc/issue
Ubuntu 22.10 \n \l
root@ubuntu:~# ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 592 bytes 42272 (42.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 592 bytes 42272 (42.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 2c:05:47:35:8e:ec txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@ubuntu:~# lsmod
Module Size Used by
8723ds 2703360 0
cfg80211 1298432 1 8723ds
snd_soc_hdmi_codec 28672 0
dw_hdmi_i2s_audio 16384 0
dw_hdmi_cec 16384 0
sunxi_cir 24576 0
pwrseq_simple 16384 1
rc_core 86016 2 sunxi_cir
sun8i_drm_hdmi 32768 0
dw_hdmi 77824 2 sun8i_drm_hdmi,dw_hdmi_i2s_audio
sun8i_mixer 53248 0
sunxi 28672 0
phy_generic 24576 2 sunxi
snd_soc_simple_card 24576 0
sun20i_codec 45056 6
snd_soc_simple_card_utils 36864 1 snd_soc_simple_card
snd_soc_dmic 16384 0
sunxi_cedrus 77824 0
v4l2_mem2mem 49152 1 sunxi_cedrus
videobuf2_dma_contig 28672 1 sunxi_cedrus
videobuf2_memops 20480 1 videobuf2_dma_contig
snd_soc_core 421888 5 snd_soc_hdmi_codec,sun20i_codec,snd_soc_simple_card_utils,snd_soc_simple_card,snd_soc_dmic
sun4i_drm 24576 0
videobuf2_v4l2 45056 2 sunxi_cedrus,v4l2_mem2mem
sun4i_frontend 20480 1 sun4i_drm
videobuf2_common 94208 5 sunxi_cedrus,videobuf2_dma_contig,videobuf2_v4l2,v4l2_mem2mem,videobuf2_memops
sun4i_tcon 45056 1 sun4i_drm
sun8i_tcon_top 20480 5 sun8i_drm_hdmi,sun4i_tcon,sun4i_drm
display_connector 24576 0
drm_cma_helper 20480 3 sun8i_mixer,sun4i_frontend,sun4i_drm
snd_compress 36864 1 snd_soc_core
videodev 413696 4 sunxi_cedrus,videobuf2_v4l2,videobuf2_common,v4l2_mem2mem
ac97_bus 16384 1 snd_soc_core
snd_pcm_dmaengine 20480 1 snd_soc_core
drm_kms_helper 454656 8 drm_cma_helper,sun8i_mixer,display_connector,sun8i_drm_hdmi,sun4i_tcon,sun4i_drm,dw_hdmi
snd_pcm 200704 5 snd_soc_hdmi_codec,snd_compress,sun20i_codec,snd_soc_core,snd_pcm_dmaengine
leds_sun50i_r329 24576 0
led_class_multicolor 16384 1 leds_sun50i_r329
mc 86016 5 sunxi_cedrus,videodev,videobuf2_v4l2,videobuf2_common,v4l2_mem2mem
snd_timer 57344 1 snd_pcm
fb_sys_fops 16384 1 drm_kms_helper
syscopyarea 16384 1 drm_kms_helper
snd 139264 5 snd_soc_hdmi_codec,snd_timer,snd_compress,snd_soc_core,snd_pcm
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
leds_gpio 16384 0
backlight 28672 1 drm_kms_helper
soundcore 24576 1 snd
binfmt_misc 32768 1
nls_iso8859_1 16384 1
uio_pdrv_genirq 20480 0
uio 28672 1 uio_pdrv_genirq
pstore_blk 20480 0
ramoops 45056 0
pstore_zone 45056 1 pstore_blk
reed_solomon 24576 1 ramoops
efi_pstore 20480 0
dm_multipath 61440 0
scsi_dh_rdac 20480 0
scsi_dh_emc 20480 0
scsi_dh_alua 32768 0
ip_tables 32768 0
x_tables 53248 1 ip_tables
autofs4 81920 2
efivarfs 20480 1
raid10 102400 0
raid456 303104 0
libcrc32c 16384 1 raid456
async_raid6_recov 28672 1 raid456
async_memcpy 20480 2 raid456,async_raid6_recov
async_pq 24576 2 raid456,async_raid6_recov
async_xor 24576 3 async_pq,raid456,async_raid6_recov
xor 20480 1 async_xor
async_tx 20480 5 async_pq,async_memcpy,async_xor,raid456,async_raid6_recov
raid6_pq 102400 3 async_pq,raid456,async_raid6_recov
raid1 81920 0
raid0 40960 0
multipath 24576 0
linear 20480 0
root@ubuntu:~# lshw -c network
*-network:0 DISABLED
description: Ethernet interface
physical id: b
logical name: usb0
serial: 2a:e6:72:9b:6a:da
capabilities: ethernet physical
configuration: broadcast=yes driver=g_ether driverversion=29-May-2008 firmware=musb-hdrc link=no multicast=yes
*-network:1
description: Wireless interface
physical id: c
bus info: mmc@1:0001:1
logical name: wlan0
serial: 2c:05:47:35:8e:ec
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl8723ds driverversion=5.17.0-1003-allwinner multicast=yes wireless=unassociated