CB2-2CARD的openSUSE安装&NAS环境配置
Posted lida2003
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CB2-2CARD的openSUSE安装&NAS环境配置相关的知识,希望对你有一定的参考价值。
CB2-2CARD的openSUSE安装&NAS环境配置
1. 简介
CB2-2CARD全称cubieboard2-dualcard在极大地保留了硬件兼容性和cubieboard2原有的绝大部分的传统优秀基因的基础上,把cubieboard2的板载的Nand Flash换成一个TF卡槽,是一个为了适应中国国情,于2019年推出的一个可玩性更高的开源硬件。
有幸的是笔者完整的保留一款全新未拆封版本,鉴于笔者手头长期使用的树莓派3B+将用于其他项目,期望将这款经典款替换现有自建低功耗NAS的基础功能。
- MiniDLNA (多媒体服务器,挂一块USB硬盘)
- samba (文件共享服务)
- FTP (文件传输服务)
- linux 24 hours application container (自建发布版本应用服务器)
2. 规格
- SOC: AllWinner SOC A20, ARM Cortex-A7 Dual-Core,1GHz, ARM Mali 400 MP2 complies withOpenGL ES 2.0/1.1
- Memory: 1GB DDR3@480MHz (960MTPS)
- Storage: eMMC, 4GB default, 8GB is an option
- TF Card: Micro SD card slot, up to 32GB
- SATA: Support 2.5 inch HDD/SSD up to 2TB
- Display: HDMI Port A, HDMI V1.4a, support 1080P@60Hz resolution output
- Ethernet: 10M/100M RJ45
- IR: Infrared remote receiver Philips standard
- Audio: Support 3.5 headphone jack for Audio output, Support 3.5 jack forLine-In
- Power: DCIN 5V/2.5A power, Support USB power input
- Keys: Power key, Uboot key for reflashing the ROM
- LEDs: Power Led x 1, User Led x 2
3. 系统安装
3.1 Linux/Unix稳定镜像
鉴于要作为家用自建的NAS服务器,系统首先需要稳定,这个系统需要包括以下组件:
- bootloader (uboot)
- kernel
- system(Linux/Unix/ramdisk etc)
最好是能找到一个稳定的系统镜像,类似ubuntu for Raspberry Pi或者raspbian等。
注:原厂链接或者原厂官网提供的大部分已经过时,且未见维护人员更新。可见这款产品已经没落了,所以这里笔者还是需要通过G网来找资源。
这里有一个小插曲,就是被劣质tF卡。这个坑可能是很早之前笔者贪图便宜买了或者什么产品购买的时候送的8GB的一张卡。可能存在内部逻辑块损坏已经到了极限或者就是缩水的tF卡(目前U盘鉴定器压根跑一下就退出,正常的U盘都能跑完),导致镜像烧录一直不能成功。
功夫不负有心人,在多次尝试后,果断采用16GB的一张tF卡,筛选了这张问题卡。
openSUSE:镜像 //2023年1月18日仍然有人在维护
3.2 基础功能更新&安装
- 【Mandatory】ssh
- 【Mandatory】vim/nano
- 【Option】vnc server
注1:openSUSE默认账号密码:root, linux
注2:鉴于该板子启动信息在串口上输出,需要使用USB转串口的硬件,请小伙伴提前准备。
注3:推荐的openSUSE-Leap-15.3-ARM-JeOS-cubieboard2没有ifconfig命令,所以前期需要在串口上操作,命令: sudo minicom;具体配置,请大家详细查阅minicon的使用方法,这里不做展开。
3.2.1 更新源
$ sudo apt-get update
Retrieving repository 'Main Repository' metadata .................................................................................................................[done]
Building repository 'Main Repository' cache ......................................................................................................................[done]
Retrieving repository 'Main Update Repository' metadata ..........................................................................................................[done]
Building repository 'Main Update Repository' cache ...............................................................................................................[done]
All repositories have been refreshed.
3.2.2 升级系统
$ sudo apt-get upgrade
Loading repository data...
Reading installed packages...
The following 3 packages are going to be upgraded:
openSUSE-build-key yast2-bootloader yast2-packager
The following 2 NEW packages are going to be installed:
checkmedia libmediacheck5
3 packages to upgrade, 2 new.
Overall download size: 451.2 KiB. Already cached: 0 B. After the operation, additional 188.5 KiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package libmediacheck5-5.4-1.1.armv7hl (1/5), 67.6 KiB (156.2 KiB unpacked)
Retrieving: libmediacheck5-5.4-1.1.armv7hl.rpm .......................................................................................................[done (2.6 KiB/s)]
Retrieving package checkmedia-5.4-1.1.armv7hl (2/5), 18.1 KiB ( 29.9 KiB unpacked)
Retrieving: checkmedia-5.4-1.1.armv7hl.rpm ...........................................................................................................[done (1.2 KiB/s)]
Retrieving package yast2-packager-4.3.22-3.4.1.armv7hl (3/5), 234.0 KiB (874.2 KiB unpacked)
Retrieving: yast2-packager-4.3.22-3.4.1.armv7hl.rpm ..................................................................................................[done (3.4 KiB/s)]
Retrieving package yast2-bootloader-4.3.30-3.6.1.armv7hl (4/5), 109.6 KiB (256.4 KiB unpacked)
Retrieving: yast2-bootloader-4.3.30-3.6.1.armv7hl.rpm ................................................................................................[done (2.6 KiB/s)]
Retrieving package openSUSE-build-key-1.0-lp153.4.11.1.noarch (5/5), 21.9 KiB ( 15.8 KiB unpacked)
Retrieving: openSUSE-build-key-1.0-lp153.4.11.1.noarch.rpm .......................................................................................................[done]
Checking for file conflicts: .....................................................................................................................................[done]
(1/5) Installing: libmediacheck5-5.4-1.1.armv7hl .................................................................................................................[done]
(2/5) Installing: checkmedia-5.4-1.1.armv7hl .....................................................................................................................[done]
(3/5) Installing: yast2-packager-4.3.22-3.4.1.armv7hl ............................................................................................................[done]
(4/5) Installing: yast2-bootloader-4.3.30-3.6.1.armv7hl ..........................................................................................................[done]
(5/5) Installing: openSUSE-build-key-1.0-lp153.4.11.1.noarch .....................................................................................................[done]
3.2.3 基础功能安装
笔者这里主要用来做服务器的,所以x11就不装了。
注:openSUSE默认已经装了vim和ssh,所以其实就装个nano就好。
$ sudo apt-get install vim nano
Retrieving repository 'Main Repository' metadata .................................................................................................................[done]
Building repository 'Main Repository' cache ......................................................................................................................[done]
Loading repository data...
Reading installed packages...
'vim' is already installed.
No update candidate for 'vim-8.0.1568-5.15.1.armv7hl'. The highest available version is already installed.
Resolving package dependencies...
The following 2 NEW packages are going to be installed:
nano nano-lang
2 new packages to install.
Overall download size: 792.5 KiB. Already cached: 0 B. After the operation, additional 3.1 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package nano-4.9.2-bp153.1.1.armv7hl (1/2), 492.1 KiB ( 1.6 MiB unpacked)
Retrieving: nano-4.9.2-bp153.1.1.armv7hl.rpm .......................................................................................................[done (190.6 KiB/s)]
Retrieving package nano-lang-4.9.2-bp153.1.1.noarch (2/2), 300.5 KiB ( 1.6 MiB unpacked)
Retrieving: nano-lang-4.9.2-bp153.1.1.noarch.rpm ...................................................................................................[done (477.1 KiB/s)]
Checking for file conflicts: .....................................................................................................................................[done]
(1/2) Installing: nano-4.9.2-bp153.1.1.armv7hl ...................................................................................................................[done]
(2/2) Installing: nano-lang-4.9.2-bp153.1.1.noarch ....................以上是关于CB2-2CARD的openSUSE安装&NAS环境配置的主要内容,如果未能解决你的问题,请参考以下文章