-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arch Linux ARM Related Discussion / Arch Linux ARM 相关讨论 #620
Comments
感谢你的分享,不仅热心,还有完善的文档说明,你不仅直接帮助到很多人,也给很多人带来启发。 |
应该的 |
我学习了下你的教程,其中/boot 让它空着这点没理解,如果这目录下没启动文件,Arch Linux ARM是通过什么完成启动的呢? |
/boot 需要挂载到独立的fat分区, 这点和 Armbian 一样. 你看看 fstab 就明白了. |
也就是说在Armbian里打包使用的这几个目录,和Arch Linux ARM相同? |
是
更新内核时需要按我的方法重新生成, 不更新不用动. |
根据你的教程操作,打包 Arch Linux ARM 很容易,具有很多通用性。 |
Arch 还算是很简单的( |
我不熟悉这个系统,我见群里暴躁老哥好像用的是这个系统,你根据经验多指导指导,文档越具体,新同学越少摸索。我觉得你熟悉这个系统的使用,可以做个仓库把他直接落地了。 |
可以在这个项目的Readme里提一下其他发行版的教程,让有兴趣的用户尝试一下。我慢慢完善文档( |
好的,我初中也得抓紧学习。 |
here it is https://github.com/Scirese/alarm |
加好了 |
谢谢你的认可! |
arch可以用显卡加速吗?我用server版本装了xfce,浏览器卡的不行,看视频cpu占用也很高,估计都是用cpu解码,没有用到显卡 |
Arch桌面体验要比这个Ubuntu好的多 |
@ophub 大佬, 你们有什么讨论群吗, 有的话能不能让我进一下( |
我没有群,f大仓库有他的群链接,欢迎大家加入折腾 |
大佬nb,感谢! |
啊?初中? |
我之前没接触过suse,可能得研究一下 |
Hi @Scirese, Good work. Any possibility of building a Fedora 37 Workstation or KDE for Amlogic TV Box? |
If Fedora got a prebuild arm64 rootfs, you can follow my tutorial and
replace the arch rootfs to fedora one. I can't make tutorial because I am
not familiar with it.
As for KDE, you can install it directly in Arch. Maybe head to ArchWiki for
instructions?
JFLim1 ***@***.***> 于 2022年10月18日周二 下午3:48写道:
… Hi @Scirese <https://github.com/Scirese>,
Good work. Any possibility of building a Fedora 37 Workstation or KDE for
Amlogic TV Box?
|
Thanks @Scirese |
For an ArchLinux installation, I'm not a fan of having a lot of out-of-tree stuffs that do not align with the official packages' style and relies on manual interference instead of Pacman hooks to update files. Addtionally I don't like not being able to utilize 100% of the eMMC due to limitation of the A more Arch-way of doing the installation, with much more freedom to setting up the booting mechanism and partitions layout is documented in my blog, written in both English and 中文 side-by-side, with 17052 words and 68690 characters, I've made the following kernel package and aligned the files with official Arch kernels so the kernel can be tracked by Pacman and mkinitcpio hooks will work for them, which is a split PKGBUILD for kernel, dtb and headers: The following package for firmware: And a package with hooks for uboot legacy initrd (only booting mechanism that'll use I've written a tool for manipulation of Amlogic's proprietary eMMC partition table (EPT) earlier this year: https://github.com/7Ji/ampart, which is a dependency for EmuELEC's eMMC installation tool. I don't have enough time outside of maintaining EmuELEC and for my life&study, but I'm open with its inclusion in other open-source projects (it's licensed as GPL3). It has a simple CLI interface that script can interact with
to this with
so then much more space can be used (4M-36M, 100M-116M, 117M-end)
so even more space can be used (5-36M, 100M-end) |
Thank you very much for your dedication. For example, you mentioned in the article that deleting old versions every week will cause some file paths to fail, etc. I don't want to waste github space. If you need to save for a long time, you can appropriately extend the storage time (in fact, the new firmware and kernel are used, most people will not use the old version) Since I don't know enough about the ArchLinux system and your project, you write a project introduction, including a link, and I will add an introduction to the homepage of the repository, so that more people can pay attention and use it. Since I'm a beginner, I'm not familiar with many aspects. I'll keep working on it and try to learn more about your tutorial. |
Adding to EFI, it's totally possible to just boot kernel itself as an EFI-STUB just like on x86-64, with minor tweaks that initrd should be specified with
And unlike sysboot, But the benifit of EFI on Aarch64 is really limited as there are only these variables available, comparing to x86-64 where there would be tens of useful efivars:
I've added another part in the doc to describe how to encapsule this logic in a booting script: A bare-minimum booting script to load kernel as EFI-STUB while keeping essential variables in a plain-text file:
|
https://github.com/7Ji/ampart/releases/download/v1.0/ampart-aarch64-static.xz https://github.com/7Ji/ampart#usage According to this usage, if it is readjusted, it can be used after 117M. The information I output after executing this command is as follows:
Is it possible to directly put the ampart binary file (ampart-aarch64-static) into the armbian system, after booting the system from usb, use
Do a partition adjustment? If it can be used in this way, before executing |
@ophub |
Unfortunately Phicomm N1 and post-Android 7 Xiaomi devices are the only devices with encryped DTB and therefore the EPT on them can't be be modified as ampart can't modify the encrypted DTB, and the stock u-boot will "helpfully" fix the EPT according to the stock DTB, which will effectively revert the EPT to what it's like before ampart modified the partiton table. Also, d-prefixed modes are used to edit DTB, then update EPT according to the DTB with the same logic Amlogic uses in their u-boot. If DTB intergrity is not needed, then e-prefixed modes are more prefered (e.g. |
Return code 0 is always for success, and others each with their meanings The stdout and stderr in ampart has their specific usage. All of Amlogic's logs are printed to stderr, and stdout is kept for snapshot modes. An external script can run
Then these two arraies will give your DTB and EPT layout, with each partition seperated by space ' '
The partitions can then be gotten as an array:
And then each partition in the array can be splitted on :, first is name, second is offset, thrid is size, fourth is masks. So you can analyze the partitions in bash natively With this, you can e.g. compare the snapshot and check if the table is already modified; apply a pre-defiend snapshot in |
After using this tool to adjust the partition, if the user uses the usb_burning_tool to flash into the original Android TV system. Will the partition be restored to its original state? |
Yes, a flashing with the stock firmware with either USB burning tool or a SD burning card can just revert everything ampart has done. |
Besides the N1, which device did you find not working? |
Only the following devices, as checked, has encrypted DTB so their partition layout can't be modified:
The following devices, as checked, work fine as their DTB is not encrypted:
|
Also it's probably possible to use ampart on Phicomm N1, if the on-eMMC DTB
is replaced with an unencrypted one
Also, the modes ``dclone`` and ``eclonde`` are mainly used to restore a
snapshot taken in ``dsnapshot`` and ``esnapshot`` modes. It's better to
get a better template dtb snapshot with ``dedit`` mode, and probably
per-device ept snapshot with ``eedit`` and ``ecreate`` mode if some
specific layouts are more preferred
ophub ***@***.***> 于 2022年11月10日周四 下午1:40写道:
… Besides the N1, which device did you find not working?
—
Reply to this email directly, view it on GitHub
<#620 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF2CYEX5YJWISSGIDOLYB2TWHSDE5ANCNFSM6AAAAAAREKDM2M>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This tool is a gem for amlogic's TV boxes with only a few gigabytes of emmc space. Not only does it use more space, it also reduces concerns about writing to unsafe data areas. https://github.com/7Ji/ampart/releases/download/v1.0/ampart-aarch64-static.xz Download and unzip, upload to Armbian system in USB. After booting from USB, execute the following command to adjust the partition. 01. Resize partition
02. If the adjustment is successful, it will output information:
03. Modify the [ armbian-install ] of the a script, set your own device id to use the full partition
|
If the partition is successful, its value is a fixed value: |
This is not correct due to the Bash syntax for array For bash arrays, if you just use its name, that'll be only the first item, to refer to the whole array, use a
An example script to only do the adjustment once:
Two continous runs yield the following output:
|
OK, the syntax error has been fixed. |
@ophub Why not enable discussion for this repo? |
i will not set |
见过N1的CentOS安装教程,这么详细的arch安装教程很棒! |
I've splitted bootflow and configuration on Amlogic devices and Partitioning on Amlogic's proprietary eMMC partition table with ampart out from Installation of ArchLinux ARM on an out-of-tree Amlogic device, since these two are not meant for ArchLinux ARM only, but for Amlogic devices as a whole. 我把Amlogic设备上的启动流程和配置和使用ampart在Amlogic专有的eMMC分区表上分区从在不被官方支持的Amlogic设备上安装ArchLinux ARM中分离出来了,这两篇文章并不只是适用于ArchLinux ARM的,而是对Amlogic设备整体都有用。 |
双十一期间大佬给我们写了很强的技术文档/教程,感谢贡献!可能小白更需要最后的img镜像,期待后续开个项目。 |
Wrote a simple build script to compose a ready-to-use image that can be used on ArchLinuxARM itself or derived distros. Releases that can be flashed and used: Please read the release note and installation guide before using as the way I pack my images is different from Armbian and OpenWrt, a generic image is provided and no SoC/device-specific stuffs are included in the image and you should configure them by yourself which depends on your actual device in the Arch style: Keep it simple, stupid. |
点赞👍 |
问一下我几天前下的ubuntu版armbian,发现rootfs里的 |
那就直接复制过来 |
Hi @ophub, 之前我看到了 #358, 我本人也是 Arch 用户,很想把 Arch Linux ARM 装到安卓盒子上。
折腾几天后我写出了这篇简单的教程:
中文 English
请加个
documentation
的 tag, 希望能帮到别人😉我最近会造一个打包好的镜像I'll make a prebuild package recently另附上系统桌面:

The text was updated successfully, but these errors were encountered: