cattyhouse / n1-install Goto Github PK
View Code? Open in Web Editor NEWInstall Archlinux on Phicomm N1
Install Archlinux on Phicomm N1
作者,
您好。我发现我的phicomm n1安装archlinux后,无线网络无法驱动,想请教下如何解决。按理说应该可以用无线网络的,我安装armbian时可以的。谢谢您!
在内核仓库里问桌面的问题好像不太合适,但是我确实不知道去哪里问.
通过这个教程,安装成功了,但是在我安装桌面环境时,一直启动不起来.
安装的显示驱动是xf86-video-armsoc-meson,
使用lxdm启动lxde-gtk3.
lxdm可以显示出图形,但是没有鼠标,登录进去不能显示菜单,没有鼠标光标,但是按鼠标右键可以出来一个黑色的菜单.
使用xfce4桌面,什么都显示不出来.
是要配置哪里呢?
需要从哪里开始分析问题?
请问蓝牙可以正常工作吗? 我手动添加了armbian的/lib/firmware/BCM4345C0.hcd 还是不行
[root@alarm ~]# hciconfig -a
hci0: Type: Primary Bus: SDIO
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
DOWN
RX bytes:0 acl:0 sco:0 events:0 errors:0
TX bytes:0 acl:0 sco:0 commands:0 errors:0
Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DH1 HV1
Link policy:
Link mode: SLAVE ACCEPT
按文档里的描述:
启动原理 第一步 : N1 内置 u-boot -> 优先寻找 U盘 -> 寻找 boot 分区的 s905_autoscript -> 根据这个 s905_autoscript 的内容加载新的 u-boot, 也就是 u-boot.ext
启动原理 第二步 : 根据 u-boot.ext 内置的脚本依次执行 : bootcmd -> distro_bootcmd -> boot_targets -> bootcmd_usb0 -> usb_boot -> scan_dev_for_boot_part -> scan_dev_for_boot -> scan_dev_for_extlinux -> boot_extlinux, 然后找到了 extlinux.conf
启动原理 第三步 : 根据 extlinux.conf 的设置, 定位 root 分区 -> 寻找 zImage 和 uInitrd 也就是安装 kernel 后生成的 两个文件. 至此, 控制权交给了 linux 内核.
第一步指的内置u-boot
是哪个文件?
我计划把archlinux安装到U盘里,是还需要内置u-boot才能启动吗?
如果我把emmc格式化掉,那是不是再也不能使用这个U盘系统启动了?
接上一个问题,那把内置u-boot
也拷贝一份到U盘里,是不是就可以保证U盘可以启动了?具体要拷贝哪几个文件呢?
现在我安装的是armbian.
是要把boot目录下的所有文件都拷贝到U盘里吗?
如果我要把archlinux安装到EMMC,还要保留这个目录里的文件吗?
justin@arm-64:/boot$ ls -lrt
total 55824
-rwxr-xr-x 1 root root 27857408 Jul 6 2020 zImage
-rwxr-xr-x 1 root root 5690310 Jul 6 2020 System.map-5.7.7-arm-64
-rwxr-xr-x 1 root root 214404 Jul 6 2020 config-5.7.7-arm-64
drwxr-xr-x 5 root root 8192 Jul 29 2020 dtb
-rwxr-xr-x 1 root root 990 Jul 29 2020 boot.scr.aw
-rwxr-xr-x 1 root root 836 Jul 29 2020 boot.scr
-rwxr-xr-x 1 root root 836 Jul 29 2020 boot-emmc.scr.aw
-rwxr-xr-x 1 root root 571 Jul 29 2020 boot-emmc.ini
-rwxr-xr-x 1 root root 764 Jul 29 2020 boot-emmc.cmd.aw
-rwxr-xr-x 1 root root 764 Jul 29 2020 boot-emmc.cmd
-rwxr-xr-x 1 root root 918 Jul 29 2020 boot.cmd.aw
-rwxr-xr-x 1 root root 957 Jul 29 2020 boot.cmd
-rwxr-xr-x 1 root root 38518 Jul 29 2020 boot.bmp
-rwxr-xr-x 1 root root 1536 Jul 29 2020 armbian_first_run.txt.template
-rwxr-xr-x 1 root root 709768 Jul 29 2020 u-boot.usb
-rwxr-xr-x 1 root root 709768 Jul 29 2020 u-boot.sd
-rwxr-xr-x 1 root root 759 Jul 29 2020 emmc_autoscript.cmd
-rwxr-xr-x 1 root root 831 Jul 29 2020 emmc_autoscript
-rwxr-xr-x 1 root root 1317 Jul 29 2020 uEnv.txt
-rwxr-xr-x 1 root root 10896828 Mar 10 11:07 initrd.img-5.7.7-arm-64
-rwxr-xr-x 1 root root 10896892 Mar 10 11:07 uInitrd
你好,非常感谢你的教程。
我想问下,内核是否可以从几个月前的版本直接升级?
还有,能否分享一下如何编译N1的内核?只有命令行也可以。一来借鉴学习,二来可以自力更生。
我用的是和斐讯一样的s905TV盒子,移动魔百盒G2 -40F.
请问有其他的更具体的图文,或视频吗?这样更容易学习。
可以给我留给联系方式吗?我想具体问问
1 直接利用armbian image文件刷U盘,
2 mount U盘的系统分区,复制 armbian的 lib/modules/ 和lib/firmware
3 删除其他文件夹,下载archlinuxarm的tar.gz,解压到系统根目录
4复制 armbian的 lib/modules/ 和lib/firmware 到 相对应的位置
5 编辑archlinux里的各种配置文件(ip 等等)
5 重启,就可以U盘引导了
这样利用了armbian的内核和archlinux的系统环境,如果需要进一步那就再自己编译内核,至于安装到EMMC 没有试过,有兴趣的可以自己试试从armbian里边复制相应的功能也不复杂
防止再有人滚挂,还是把5.8先撤掉吧(哭
https://archlinux.jerryxiao.cc/aarch64
1.pacman -Sy linux-phicomm-n1 linux-phicomm-n1-headers
执行这部安装时,提示没有这2个文件,是哪里不对造成的吗?
感谢解答!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.