Giter Club home page Giter Club logo

luci-app-amlogic's Introduction

luci-app-amlogic / Amlogic Service

View Chinese description | 查看中文说明

This plugin supports online management of Amlogic S9xxx series (X96, HK1, H96, etc.), Allwinner (V-Plus Cloud), and Rockchip (BeikeYun, Chainedbox-L1-Pro, FastRhino-R66S/R68S, Radxa-5B/E25) boxes. It also works in OpenWrt installed in the KVM virtual machine of the Armbian system. Current features include install OpenWrt to EMMC, manually uploading/updating online OpenWrt firmware or kernel versions, backup/restore OpenWrt configuration, snapshot management, and customizing firmware/kernel download site, etc.

Using the OpenWrt system and Amlogic box plugin in the box requires the support of some required software packages. When custom compiling OpenWrt, please add it according to the instructions. When using the one-click script for manual installation in OpenWrt without compiling Amlogic's box, if there is a prompt for missing dependencies, please install the dependencies according to the log prompt (System > Software Packages > Refresh List > Search for the corresponding package > Install), then retry.

Manual Installation

  • If the OpenWrt you are currently using does not have this plugin, you can also install it manually. Use SSH to log in to any directory of the OpenWrt system, or in System MenuTTYD Terminal, run the one-click installation command to automatically download and install this plugin.
curl -fsSL git.io/luci-app-amlogic | bash

Plugin Compilation

# Add the plugin
rm -rf package/luci-app-amlogic
git clone https://github.com/ophub/luci-app-amlogic.git package/luci-app-amlogic

# You can compile this plugin separately
make package/luci-app-amlogic/compile V=99

# Or integrate this plugin during the full compilation of OpenWrt
make menuconfig
# choose LuCI ---> 3. Applications  ---> <*> luci-app-amlogic ----> save
make V=99

Custom Configuration

  • It supports OpenWrt firmware packaged by flippy and ophub related scripts. The download addresses of OpenWrt firmware and kernel files in online download update of the plugin can be customized as your own github.com repository. Configuration information is saved in the /etc/config/amlogic file. During the compilation of OpenWrt firmware, you can directly modify the related values in this file:
# 1. Set the download repository of OpenWrt files
sed -i "s|amlogic_firmware_repo.*|amlogic_firmware_repo 'https://github.com/USERNAME/REPOSITORY'|g" package/luci-app-amlogic/root/etc/config/amlogic

# 2. Set the keyword of Tags in Releases
sed -i "s|ARMv8|RELEASES_TAGS_KEYWORD|g" package/luci-app-amlogic/root/etc/config/amlogic

# 3. Set the suffix of OpenWrt file in Releases
sed -i "s|.img.gz|.OPENWRT_SUFFIX|g" package/luci-app-amlogic/root/etc/config/amlogic

# 4. Set the download path of OpenWrt kernel
sed -i "s|amlogic_kernel_path.*|amlogic_kernel_path 'https://github.com/USERNAME/REPOSITORY'|g" package/luci-app-amlogic/root/etc/config/amlogic
  • When you are compiling OpenWrt, modifying the above 4 points can achieve customization. You can also modify the above information after logging into the OpenWrt system, in SystemAmlogic Box settings.

Plugin Settings Explanation

The plugin settings consist of 4 elements: OpenWrt firmware download address, kernel download address, version branch selection, and others.

OpenWrt firmware download contains three options

  1. OpenWrt firmware download repository: Fill in your repository on github where you compile OpenWrt (or other compiler's repository), such as: https://github.com/breakings/OpenWrt. The OpenWrt Compiler author button on the plugin's welcome homepage will link to the website filled in here (automatically updates the link according to the filled website), making it easy for everyone to find the firmware compiler for exchange and learning.

  2. Tags keywords in Releases: It needs to distinguish other x86, R2S, etc. firmwares, and ensure that this keyword can find the corresponding OpenWrt firmware.

  3. Suffix of OpenWrt file: Supported formats include .img.gz / .img.xz / .7z. However, .img is not supported because it is too large and slow to download.

  • When naming the OpenWrt firmware in Releases, please include SOC model and kernel version: openwrt_ {soc}_ xxx_{kernel}_ xxx.img.gz, for example: openwrt_ s905d_ n1_R21.8.6_k5.15.25-flippy-62+o.7z. Supported SOC includes: s905x3, s905x2, s905x, s905w, s905d, s922x, s912, l1pro, beikeyun, vplus. Supported kernel versions include 5.10.xxx, 5.15.xxx, etc.

Kernel download address is one option

  • OpenWrt Kernel Download Repository: You can provide the full path https://github.com/breakings/OpenWrt or the shorthand breakings/OpenWrt. The plugin will automatically download kernels corresponding to specific tags from Releases on Github.com. For instance, it will download the universal kernel from kernel_stable, the rk3588 specialized kernel from kernel_rk3588, and the rk35xx specialized kernel from kernel_rk35xx, among others.
  • Custom Kernel Download Tags: You can add KERNELTAGS='xxx' to the /etc/flippy-openwrt-release file in the OpenWrt system to specify the fixed Tags for kernel downloads. If specified, the plugin will automatically download kernels from the designated kernel_xxx in Releases. For example, when KERNELTAGS='flippy' is specified, kernels will be automatically downloaded from kernel_flippy. When making custom settings, ensure that this Tag exists in the kernel download repository.

Version branch selection is one option

  • Set version branch: The default is the branch of the current OpenWrt firmware. You can freely choose other branches or customize the branch, such as 5.10, 5.15, etc. The OpenWrt and Kernel [Online Download Update] will download and update according to the branch you selected.

Other options

  • Keep configuration update: Modify as needed. If checked, the current configuration will be retained when updating the firmware.

  • Automatically write bootloader: Recommended to be checked, it has many features.

  • Set file system type: Set the file system type of the shared partition (/mnt/mmcblk*p4) when installing OpenWrt (default is ext4). This setting only applies to fresh installations of OpenWrt, and will not change the file type of the current shared partition when updating the kernel and firmware.

Default Settings Explanation

  • The default OpenWrt firmware (Plugin Full Version | Selected Plugins Mini Version | Flippy Shared Version) and Kernel download service are provided by breakings, who is an active and enthusiastic manager in the Flippy community, familiar with OpenWrt compilation, and proficient in the installation and use of various series of boxes supported by Flippy. For issues encountered in the compilation and use of OpenWrt, you can consult in the community or give feedback on his Github.

  • The kernel will be deprecated after the update cycle, and you can choose to use the kernel of any other version in the plugin settings. Some kernels do not have a complete firmware, you can change the kernel branch in the plugin settings and choose the version branch corresponding to the download address.

Plugin User Instructions

The plugin has 6 functions: Install OpenWrt, Manual Upload Update, Online Download Update, Firmware Configuration Backup, Plugin Settings, and CPU Settings.

  1. Install OpenWrt: Select your device from the Select Device Model list, and click Install to write the firmware from TF/SD/USB into the built-in eMMC of the device.

  2. Manual Upload Update: Click the Choose File button, select the local OpenWrt Kernel (upload the full set of kernel files) or OpenWrt Firmware (recommended to upload compressed firmware), and upload. Once the upload is complete, the corresponding Replace OpenWrt Kernel or Update OpenWrt Firmware button will appear at the bottom of the page, click to update (the system will automatically reboot after the update).

  3. Online Download Update: Click the Update Box Plugin Only button to update the Amlogic Box plugin to the latest version; click Update System Kernel Only to download the corresponding kernel according to the kernel branch selected in Plugin Settings; click Full System Update to download the latest firmware based on the download site set in Plugin Settings. Clicking the Rescue the original system kernel button will copy the kernel currently in use on the device to the target disk. This facilitates rescue operations in case a kernel update fails and the OpenWrt system cannot start. For example, it allows for booting the OpenWrt system from a USB drive to rescue the system on the eMMC, supporting mutual rescue among eMMC/NVME/sdX devices.

  4. Backup Firmware Configuration: Click the Open List button to edit the backup list; click the Download Backup button to backup the OpenWrt configuration information from the current device to local; click the Upload Backup button to upload the backup configuration files and restore the system configuration. Click Create Snapshot, Restore Snapshot and Delete Snapshot buttons to manage the snapshot accordingly. Snapshots will record all configuration information in the /etc directory of the current OpenWrt system, which is convenient for one-click restore to the current configuration status in the future. This function is similar to Download Backup, but only saves in the current system and does not support download use.

  5. Plugin Settings: Set the kernel download address and other information of the plugin, for details, see the relevant introduction in Plugin Settings Instructions.

  6. CPU Settings: Set the scheduling policy of the CPU (recommended to use the default settings), which can be set according to needs.

Note: Install OpenWrt and CPU Settings and other functions will automatically hide inapplicable functions depending on the device and environment.

KVM Virtual Machine User Instructions

For overpowered boxes, you can first install the Armbian system, then install the KVM virtual machine to achieve multi-system use. The compilation of the OpenWrt system can use the mk_qemu-aarch64_img.sh script developed by unifreq, and its installation and use instructions are detailed in the qemu-aarch64-readme.md document. The OpenWrt qemu firmware in Online Download Update is supported by breakings.

The method of using the plugin in the KVM virtual machine is the same as the method of directly installing and using OpenWrt in the box.

Compilation Instructions for OpenWrt System

Step 1: Compile the Rootfs file for OpenWrt: Use the OpenWrt source code and select Arm SystemReady (EFI) compliant option in Target System, select 64-bit (armv8) machines option in Subtarget, select Generic EFI Boot option in Target Profile, and add the required software packages to compile the rootfs.tar.gz file for OpenWrt.

Step 2: Package the dedicated OpenWrt firmware for different devices: You can use the scripts from flippy or ophub to package the dedicated OpenWrt firmware for different devices. Please refer to the respective repositories for detailed usage instructions.

Plugin Interface

luci-app-amlogic

Acknowledgement

Links

License

The luci-app-amlogic © OPHUB is licensed under GPL-2.0

luci-app-amlogic's People

Contributors

0x5e avatar beginner-go avatar etnperlong avatar ophub avatar rootphantomer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

luci-app-amlogic's Issues

The fdisk partition fails, Please try again

every time you install to emmc for the first time, a warning like this will appear:
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or partx(8).

The fdisk partition fails, Please try again.

after trying the second time it just worked. what's wrong with this? and this always happens when you want to install to emmc you have to do it twice and try to succeed

安装出现 Not mounted successfully, try again。

上午编译后在7月份版本成功升级
下午重新编译后继续安装就出现了错误。

FDT Value [ meson-gxl-s905d-phicomm-n1.dtb ]
K510 [ 0 ]
A total of [ 4 ] old partitions on EMMC will be deleted
Welcome to fdisk (util-linux 2.38).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Command (m for help): Partition number (1-4, default 4):
Partition 4 has been deleted.

Command (m for help): Partition number (1-3, default 3):
Partition 3 has been deleted.

Command (m for help): Partition number (1,2, default 2):
Partition 2 has been deleted.

Command (m for help): Selected partition 1
Partition 1 has been deleted.

Command (m for help): Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-15269887, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (139264-15269887, default 15269887):
Created a new partition 1 of type 'Linux' and of size 512 MiB.

Command (m for help): Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p): Partition number (2-4, default 2): First sector (2048-15269887, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (1638400-15269887, default 15269887):
Created a new partition 2 of type 'Linux' and of size 960 MiB.

Command (m for help): Partition type
p primary (2 primary, 0 extended, 2 free)
e extended (container for logical partitions)
Select (default p): Partition number (3,4, default 3): First sector (2048-15269887, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (3604480-15269887, default 15269887):
Created a new partition 3 of type 'Linux' and of size 960 MiB.

Command (m for help): Partition type
p primary (3 primary, 0 extended, 1 free)
e extended (container for logical partitions)
Select (default e):
Selected partition 4
First sector (2048-15269887, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (5570560-15269887, default 15269887):
Created a new partition 4 of type 'Linux' and of size 4.6 GiB.

Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all):
Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.

Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all):
Changed type of partition 'Linux' to 'Linux'.

Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all):
Changed type of partition 'Linux' to 'Linux'.

Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all):
Changed type of partition 'Linux' to 'Linux'.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

Partition complete.
1+0 records in
1+0 records out
1+0 records in
1+0 records out
1+0 records in
1+0 records out
1+0 records in
1+0 records out
Write Android bootloader: [ /lib/u-boot/u-boot-2015-phicomm-n1.bin ]
444+0 records in
444+0 records out
8191+0 records in
8191+0 records out
Start creating file system ...
Create a boot file system ...
format boot partiton...
mkfs.fat 4.2 (2021-01-31)
Cannot initialize conversion from codepage 850 to UTF-8: No error information
Cannot initialize conversion from UTF-8 to codepage 850: No error information
Using internal CP850 conversion table
format rootfs1 partiton...
/usr/sbin/openwrt-install-amlogic: line 472: mkfs.btrfs: command not found
format rootfs2 partiton...
/usr/sbin/openwrt-install-amlogic: line 479: mkfs.btrfs: command not found
Wait for the boot file system to mount ...
Successfully mounted.
copy boot ...
Edit uEnv.txt ...
complete.
complete.
Wait for the rootfs file system to mount ...
Not mounted successfully, try again ...
Not mounted successfully, try again ...
Not mounted successfully, try again ...
Not mounted successfully, try again ...
Not mounted successfully, try again ...
Not mounted successfully, try again ...
Not mounted successfully, try again ...
Not mounted successfully, try again ...
Not mounted successfully, try again ...
Cannot mount rootfs file system, give up!

Mount p2 [ /dev/loop0p2 ] failed!

photo_2024-02-03_01-56-54
自己打包的固件,手动上传更新失败,粗略看了看好像是因为没有进行umount /dev/loop0p2,是缺少了什么必要依赖吗
看到了类似的issue #19 ,但尝试过重启和重新打包也是这样

R68S 提示 Cannot find the partition corresponding to the root file system!

系统:openwrt-rockchip-R22.7.16-fastrhino-r68s-emmc-usbflash-img.rar
(地址:https://github.com/coolsnowwolf/lede/releases , 瑞芯微软件线刷的)

安装日志

root@OpenWrt:~# bash onekey-install.sh
01. Query server version information.
01.01 Latest version: 3.1.149-1
02. Check the latest plug-in download address.
02.01 Start downloading the latest plugin...
--2022-12-25 23:53:41--  https://github.com/ophub/luci-app-amlogic/releases/download/3.1.149-1/luci-app-amlogic_3.1.149-1_all.ipk
Resolving github.com... 20.205.243.166
Connecting to github.com|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... No data received.
Retrying.

--2022-12-25 23:55:42--  (try: 2)  https://github.com/ophub/luci-app-amlogic/releases/download/3.1.149-1/luci-app-amlogic_3.1.149-1_all.ipk
Connecting to github.com|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/376685891/c682237a-bddb-4b3d-8b1f-e07e23f31538?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20221225%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221225T155558Z&X-Amz-Expires=300&X-Amz-Signature=a373030df44ad5fc2a0bdca805d82859534c23f6d99eb93a508b365640a898ed&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=376685891&response-content-disposition=attachment%3B%20filename%3Dluci-app-amlogic_3.1.149-1_all.ipk&response-content-type=application%2Foctet-stream [following]
--2022-12-25 23:55:58--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/376685891/c682237a-bddb-4b3d-8b1f-e07e23f31538?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20221225%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221225T155558Z&X-Amz-Expires=300&X-Amz-Signature=a373030df44ad5fc2a0bdca805d82859534c23f6d99eb93a508b365640a898ed&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=376685891&response-content-disposition=attachment%3B%20filename%3Dluci-app-amlogic_3.1.149-1_all.ipk&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com... 185.199.109.133, 185.199.108.133, 185.199.111.133, ...
Connecting to objects.githubusercontent.com|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 76939 (75K) [application/octet-stream]
Saving to: '/root/luci-app-amlogic_3.1.149-1_all.ipk'

/root/luci-app-amlogic_3.1.149-1_all.ipk                    100%[===========================================================================================================================================>]  75.14K   168KB/s    in 0.4s

2022-12-25 23:56:00 (168 KB/s) - '/root/luci-app-amlogic_3.1.149-1_all.ipk' saved [76939/76939]

02.02 luci-app-amlogic_3.1.149-1_all.ipk complete.
--2022-12-25 23:56:00--  https://github.com/ophub/luci-app-amlogic/releases/download/3.1.149-1/luci-i18n-amlogic-zh-cn_3.1.149-1_all.ipk
Resolving github.com... 20.205.243.166
Connecting to github.com|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/376685891/b6ebc705-0c79-4cd6-b4c6-8b50974f5626?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20221225%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221225T155705Z&X-Amz-Expires=300&X-Amz-Signature=69fb9ab32d5c89145b0bfe13ebbc55526c2ba91a3e00d12caf7df6608cef86bf&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=376685891&response-content-disposition=attachment%3B%20filename%3Dluci-i18n-amlogic-zh-cn_3.1.149-1_all.ipk&response-content-type=application%2Foctet-stream [following]
--2022-12-25 23:57:05--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/376685891/b6ebc705-0c79-4cd6-b4c6-8b50974f5626?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20221225%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221225T155705Z&X-Amz-Expires=300&X-Amz-Signature=69fb9ab32d5c89145b0bfe13ebbc55526c2ba91a3e00d12caf7df6608cef86bf&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=376685891&response-content-disposition=attachment%3B%20filename%3Dluci-i18n-amlogic-zh-cn_3.1.149-1_all.ipk&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6564 (6.4K) [application/octet-stream]
Saving to: '/root/luci-i18n-amlogic-zh-cn_3.1.149-1_all.ipk'

/root/luci-i18n-amlogic-zh-cn_3.1.149-1_all.ipk             100%[===========================================================================================================================================>]   6.41K  --.-KB/s    in 0.001s

2022-12-25 23:57:06 (11.5 MB/s) - '/root/luci-i18n-amlogic-zh-cn_3.1.149-1_all.ipk' saved [6564/6564]

02.03 luci-i18n-amlogic-zh-cn_3.1.149-1_all.ipk complete.
03. Start automatic installation.
No packages removed.
Installing luci-app-amlogic (3.1.149-1) to root...
Installing dosfstools (4.2-1) to root...
Downloading https://downloads.immortalwrt.org/releases/packages-18.06-k5.4/aarch64_generic/packages/dosfstools_4.2-1_aarch64_generic.ipk
Installing pv (1.6.6-1) to root...
Downloading https://downloads.immortalwrt.org/releases/packages-18.06-k5.4/aarch64_generic/packages/pv_1.6.6-1_aarch64_generic.ipk
Installing losetup (2.38-12) to root...
Downloading https://downloads.immortalwrt.org/releases/packages-18.06-k5.4/aarch64_generic/base/losetup_2.38-12_aarch64_generic.ipk
Installing uuidgen (2.38-12) to root...
Downloading https://downloads.immortalwrt.org/releases/packages-18.06-k5.4/aarch64_generic/base/uuidgen_2.38-12_aarch64_generic.ipk
Installing perl (5.28.1-7) to root...
Downloading https://downloads.immortalwrt.org/releases/packages-18.06-k5.4/aarch64_generic/packages/perl_5.28.1-7_aarch64_generic.ipk
Installing libfdisk1 (2.38-12) to root...
Downloading https://downloads.immortalwrt.org/releases/packages-18.06-k5.4/aarch64_generic/base/libfdisk1_2.38-12_aarch64_generic.ipk
Installing fdisk (2.38-12) to root...
Downloading https://downloads.immortalwrt.org/releases/packages-18.06-k5.4/aarch64_generic/base/fdisk_2.38-12_aarch64_generic.ipk
Installing luci-i18n-amlogic-zh-cn (3.1.149-1) to root...
Configuring dosfstools.
Configuring pv.
Configuring uuidgen.
Configuring losetup.
Configuring perl.
Configuring libfdisk1.
Configuring fdisk.
Configuring luci-app-amlogic.
Can't locate strict.pm in @INC (you may need to install the strict module) (@INC contains: /usr/lib/perl5/5.28) at /usr/sbin/fixcpufreq.pl line 3.
BEGIN failed--compilation aborted at /usr/sbin/fixcpufreq.pl line 3.
Configuring luci-i18n-amlogic-zh-cn.
03.01 The plugin has been installed successfully, Path: System -> Amlogic Service.

在“在线下载更新”里面,三个更新按钮点击后都提示“Cannot find the partition corresponding to the root file system!”
image

在手动上传更新里面,上传文件升级会出现“/etc/flippy-openwrt-release file is missing!”,参数Issues往期记录,我执行了echo "PLATFORM='amlogic'" >/etc/flippy-openwrt-release这句,点击升级后会闪过一句“Current device: FastRhino R68S [ amlogic ]”,然后错误信息也变成了“Cannot find the partition corresponding to the root file system!”
image

Question

Whats effect if failed update ? on b860

求助安装到EMMc时自定义分区大小

我使用的设备是斐讯N1,原版的8G EMMc。在观察了分区容量足够的情况下,我试图减小boot和两个rootfs分区,以便给share分区留出大一点的空间。我尝试SCP登入后编辑/usr/sbin路径下的openwrt-install-amlogic文件,将#265至#272之间的内容更改为:

ROOT1="256"
ROOT2="256"
if [[ "${AMLOGIC_SOC}" == "s912" || "${AMLOGIC_SOC}" == "s905d" ]]; then
BOOT="128"
BLANK1="64"
BLANK2="16"
BLANK3="16"
BLANK4="64"

但写入后boot和rootfs分区大小并未发生变化,仍然是默认的512M和960M。请指教写入EMMc时是否能够修改各个分区的大小,除了796-800M这一段安全位置以外是否还有某些特别的限制?如果能修改的话应该怎样操作?

在线升级地址添加部分通配符支持?

很棒的项目,升级安装很方便,在使用中有一个需求:

使用action生成镜像到release,我编译了三种镜像,双L大和天灵的,我拒绝了生成多个tag和多个release,把它们合并到同一个release,

但是在宝盒里面升级就一直提示失败,release链接 链接
还请帮忙看看。

image

请问怎么在github actions编译的时候自定义固件源地址呢?

我照如下改了。没生效啊。files/etc/config/amlogic文件

config amlogic 'config'
	option enable '1'
	option amlogic_firmware_suffix '.img.gz'
	option amlogic_firmware_config '1'
	option amlogic_write_bootloader '1'
	option amlogic_firmware_repo 'https://github.com/cjlhll/N1-OpenWrt'
	option amlogic_kernel_branch '5.15'
	option amlogic_kernel_path 'https://github.com/breakings/OpenWrt/tree/main/opt/kernel'
	option amlogic_firmware_tag 'openwrt'

Form Token Mismatch Issue

image

Do you know what is causing this problem to happen when I change the kernel? I think it is not from the file, because I did change the kernel with the same file but it works flawlessly.

更新全系统失败,提示:Resource busy

型号:R66s
固件:https://github.com/expliyh/OpenWrt
(fork https://github.com/haiibo/OpenWrt ,删除了一些插件)

完整日志:
Sat Apr 8 16:12:56 2023 daemon.err uhttpd[4099]: sh: can't create /tmp/.luci-app-amlogic/op_release_code: nonexistent directory
Sat Apr 8 16:12:59 2023 kern.info kernel: [ 193.409755] loop0: detected capacity change from 0 to 2328576
Sat Apr 8 16:12:59 2023 kern.info kernel: [ 193.411066] loop0: p1 p2
Sat Apr 8 16:13:02 2023 kern.info kernel: [ 196.470395] EXT4-fs (loop0p1): mounted filesystem with ordered data mode. Quota mode: none.
Sat Apr 8 16:13:02 2023 kern.info kernel: [ 196.473976] BTRFS: device label EMMC_ROOTFS1 devid 1 transid 16 /dev/loop0p2 scanned by mount (29859)
Sat Apr 8 16:13:02 2023 kern.info kernel: [ 196.475441] BTRFS info (device loop0p2): using crc32c (crc32c-generic) checksum algorithm
Sat Apr 8 16:13:02 2023 kern.info kernel: [ 196.476202] BTRFS info (device loop0p2): use zstd compression, level 6
Sat Apr 8 16:13:02 2023 kern.info kernel: [ 196.476783] BTRFS info (device loop0p2): using free space tree
Sat Apr 8 16:13:02 2023 kern.info kernel: [ 196.481873] BTRFS info (device loop0p2): enabling ssd optimizations
Sat Apr 8 16:13:02 2023 daemon.err uhttpd[4099]: ERROR: unable to open /dev/mmcblk0p3: Resource busy
Sat Apr 8 16:13:02 2023 kern.info kernel: [ 196.547327] EXT4-fs (loop0p1): unmounting filesystem.

need help on kernel auto update

hi @ophub thanks for effort on this.
i need help on kernel auto update.
here is my config
image
my actual kernel is
image
so im trying to update 5.10.230.
while i click update kernel showing as
image

Kinldly help me where/what i am missing

关于宝盒快照

首先谢谢大佬,又来打搅你了,请问晶晨宝盒里面的快照备份和系统自带的备份有什么区别呢,如果用快照还原的话,必须也要相同固件和相同插件的情况下才可以用吗?

manual upload update: form token mismatch

The submitted security token is invalid or already expired!

In order to prevent unauthorized access to the system, your request has been blocked. Click "Continue »" below to return to the previous page.
Screenshot_2022-11-21-14-50-54-867_com android chrome

无法支持新版LuCI的上传功能

在immortalwrt中无法正常上传,使用的是master分支,回复的是“新 LuCI 已不支持传统 lua 插件的文件上传功能,重写为 js 即可。”,望更新一下以支持新版LuCI
image

升级全固件后重启失败

lede仓库,升级过程成功了,最后一步重启就失败,必须手动拔电在插上就好了。s905x3,x96max+,bootloader和保留配置也勾选了,6.1.81内核

小建议

目前在线升级好像只能设置从github的releases下载,希望开放从个人网盘或服务器下载,方便国内直连下载

Installalion metode

please add installation method from sd card without usb card-reader, because my device can't boot from usb device.. thanks

my device HG680-P

N1怎么装这个插件呢 用一键脚本报错

Collected errors:

  • pkg_hash_check_unresolved: cannot find dependency pv for luci-app-amlogic
  • pkg_hash_fetch_best_installation_candidate: Packages for luci-app-amlogic found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package luci-app-amlogic.
  • satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-i18n-amlogic-zh-cn:
  •  pv
    
  • opkg_install_cmd: Cannot install package luci-i18n-amlogic-zh-cn.
    03.01 The plugin has been installed successfully, Path: System -> Amlogic Service.

用插件升级完整系统后,wan口无法拨号

主路由模式,用晶晨宝盒升级69+o-70+o,升级执行完毕,进入新的系统可见已经显示70+o了

但是无法拨号,在查错后,从“系统日志内”,得知无法自动创建/dev/ppp,依据错误日志提示的mknod /dev/ppp c 108 0创建后可正常拨号了,但是客户端无法上网,只能有op上ping百度可通,换到客户端依旧不行。然后我用u盘重新刷了新的系统后可以正常使用。

不知道提供这些内容是否可以判断问题,如果不行我可以继续补充“症状”。

期待大手子,帮我答疑,谢谢。

使用 LuCI 界面更新固件及内核无法找到依赖,使用 openwrt-kernel 终端命令则正常

作者大大你好👋

我在尝试使用 LuCI 界面更新内核时,会出现以下错误
[Error] Missing [ tar ] in OpenWrt firmware, unable to update kernel

image

但如果我在失败之后,通过SSH终端输入 openwrt-kernel 指令,则可成功更新内核

经过测试,我发现无论是更新系统还是更新内核,使用 LuCI 界面均会出现 找不到依赖 的错误,但使用相应的 SSH 命令则会成功

检查代码后发现相关行在

echo "Dependent command: ${dep} does not exist, upgrade cannot be performed, only flash through U disk/TF card!"

[[ -n "$(which tar)" ]] || error_msg "Missing [ tar ] in OpenWrt firmware, unable to update kernel"

我的设备是 N1 盒子,运行的系统是 ImmortalWRT 23.05.2, 使用 amlogic-s9xxx-openwrt 中 ImageBuilder 方式构建,加入自定义的软件包

系统信息如下:
Powered by LuCI openwrt-23.05 branch (git-24.086.26304-1d8fc03)
ArgonTheme v2.3.1
ImmortalWrt 23.05.2 r27625-416c8c5c91

晶晨宝盒版本: 3.1.234-1

不清楚是哪个环节导致 LuCI 界面的指令失效,希望作者如果有时间的话,帮我除错一下,谢谢🙏
如果需要更多的详细信息,我可以提供

无法上传升级

qemu h68k openwrt官方源5.15内核+6.0.8打包
手动上传固件显示

表单令牌不匹配

提交的安全令牌无效或已过期!

为了防止未经授权访问系统,您的请求已被阻止。点击下面的 “继续 »” 来返回上一页。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.