songee 发表于 2020-6-15 18:36:18

ktav 发表于 2020-6-1 15:08
这个就牛了。。。8145V5可以这样改吗

8145的cpu架构是满足要求的,如果V5固件有lxc-start等lxc程序,那就完全可以按帖子的思路改了;一般来说,系统有saf或saf-huawei等程序,固件就会有lxc。

大茶几 发表于 2020-9-3 23:02:59

本帖最后由 大茶几 于 2020-9-5 18:19 编辑

      lxc-start 1599145069.560 INFO   lxc_start_ui - lxc_start.c:main:265 - using rcfile /usr/var/lib/lxc/openwrt/config
      lxc-start 1599145069.561 WARN   lxc_confile - confile.c:config_personality:989 - unsupported personality 'arm'
      lxc-start 1599145069.561 WARN   lxc_log - log.c:lxc_log_init:316 - lxc_log_init called with log already initialized
      lxc-start 1599145069.562 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup blkio unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.562 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup cpu unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.563 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup cpuacct unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.563 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup cpuset unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.563 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup devices unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.563 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup freezer unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.563 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup memory unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.563 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup net_cls unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.563 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup net_prio unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.563 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup perf_event unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.565 INFO   lxc_start - start.c:lxc_check_inherited:209 - closed inherited fd 4
      lxc-start 1599145069.575 INFO   lxc_conf - conf.c:run_script_argv:350 - Executing script '/usr/var/lib/lxc/openwrt/pre-start.sh' for container 'openwrt', config section 'lxc'
      lxc-start 1599145069.596 INFO   lxc_start - start.c:lxc_check_inherited:209 - closed inherited fd 4
      lxc-start 1599145069.613 INFO   lxc_monitor - monitor.c:lxc_monitor_sock_name:177 - using monitor sock name lxc/8518417411765f46//usr/var/lib/lxc
      lxc-start 1599145069.635 DEBUG    lxc_conf - conf.c:lxc_create_tty:3666 - allocated pty '/dev/pts/0' (5/6)
      lxc-start 1599145069.635 INFO   lxc_conf - conf.c:lxc_create_tty:3677 - tty's configured
      lxc-start 1599145069.635 DEBUG    lxc_start - start.c:setup_signal_fd:247 - sigchild handler set
      lxc-start 1599145069.635 DEBUG    lxc_console - console.c:lxc_console_peer_default:536 - no console peer
      lxc-start 1599145069.635 INFO   lxc_start - start.c:lxc_init:443 - 'openwrt' is initialized
      lxc-start 1599145069.636 DEBUG    lxc_start - start.c:__lxc_start:1059 - Not dropping cap_sys_boot or watching utmp
      lxc-start 1599145069.637 INFO   lxc_cgroup - cgroup.c:cgroup_init:62 - cgroup driver cgroupfs initing for openwrt
      lxc-start 1599145069.639 INFO   lxc_start - start.c:lxc_spawn:891 - clone_flags:0x2c020000
      lxc-start 1599145069.642 ERROR    lxc_cgfs - cgfs.c:lxc_cgroupfs_enter:1163 - Invalid argument - Could not add pid 1775 to cgroup /lxc/openwrt: internal error
      lxc-start 1599145069.643 ERROR    lxc_start - start.c:__lxc_start:1081 - failed to spawn 'openwrt'
      lxc-start 1599145069.648 WARN   lxc_commands - commands.c:lxc_cmd_rsp_recv:172 - command get_cgroup failed to receive response
      lxc-start 1599145069.648 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup blkio unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.648 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup cpu unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.648 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup cpuacct unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.648 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup cpuset unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.648 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup devices unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.648 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup freezer unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.649 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup memory unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.649 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup net_cls unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.649 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup net_prio unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145069.649 WARN   lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup perf_event unknown to /usr/var/lib/lxc openwrt
      lxc-start 1599145074.660 ERROR    lxc_start_ui - lxc_start.c:main:342 - The container failed to start.
      lxc-start 1599145074.660 ERROR    lxc_start_ui - lxc_start.c:main:344 - To get more details, run the container in foreground mode.
      lxc-start 1599145074.660 ERROR    lxc_start_ui - lxc_start.c:main:346 - Additional information can be obtained by setting the --logfile and --logpriority options.

F450 V2报错了
https://github.com/mikma/lxd-openwrt
似乎添加了aarch32架构
但是我编译报错了

所以启动容器的引导是放在initrd里的?

__nmsl__ 发表于 2021-1-22 16:47:16

山东吴彦祖 发表于 2021-2-24 20:51:02

成功与原定制luci共存,感谢分享

山东吴彦祖 发表于 2021-2-24 20:56:44

另外F650没有A似乎不需要移动saf-zte,移动后openwrt容器是根本起不来的

cuiyl 发表于 2021-2-25 08:50:14

最好能搞个hs8145v5或8145x6的教程,这么有深度的帖子很难见到了,能添加功能到光猫可玩性就高多了。

xiaowang325 发表于 2021-2-25 08:54:31

本帖最后由 xiaowang325 于 2021-2-25 09:06 编辑

山东吴彦祖 发表于 2021-2-24 20:56
另外F650没有A似乎不需要移动saf-zte,移动后openwrt容器是根本起不来的
我也是F650(ZX279127 单核 256M内存),里面是守护启动的是叫saf,不管起不起动原来的容器,openwrt容器就是起不来。我又去弄来个F450A,这个就和帖子作者一样的CPU了,不过守护启动的叫saf-zte,同样openwrt容器起不来,报错都一样,只提示了启动失败。看不出为啥。朋友有什么好的建议吗?
附报错日志/usr/var/lib/lxc/openwrt # lxc-start -dn openwrt
lxc-start: lxc_start.c: main: 342 The container failed to start.
lxc-start: lxc_start.c: main: 344 To get more details, run the container in foreground mode.
lxc-start: lxc_start.c: main: 346 Additional information can be obtained by setting the --logfile and --logpriority options.
/usr/var/lib/lxc/openwrt # lxc-start -dn openwrt -F
lxc-start: cgfs.c: lxc_cgroupfs_enter: 1163 Invalid argument - Could not add pid 29182 to cgroup /lxc/openwrt: internal error
lxc-start: start.c: __lxc_start: 1081 failed to spawn 'openwrt'
lxc-start: lxc_start.c: main: 342 The container failed to start.
lxc-start: lxc_start.c: main: 346 Additional information can be obtained by setting the --logfile and --logpriority options.

山东吴彦祖 发表于 2021-2-25 14:08:54

xiaowang325 发表于 2021-2-25 08:54
我也是F650(ZX279127 单核 256M内存),里面是守护启动的是叫saf,不管起不起动原来的容器,openwrt容器就是 ...

我是用楼主配好的镜像启动的,如果是自己编译的话我就不清楚了,我还没整活到那一步,除了不用移动saf-zte以外完全按照楼主说的做就可以成功启动

另外看了你的第二个报错应该是你移动了saf-zte,我一开始完全按照楼主说的做就是报这个internal error,不能移动saf-zte,应该是有东西开机调用这saf-zte初始化的

s729946148 发表于 2021-2-26 14:25:49

谢谢楼主无私分享

xu_gq 发表于 2021-4-11 21:22:31

F650A 启动报错
lxc-start: lxc_start.c: main: 342 The container failed to start.
lxc-start: lxc_start.c: main: 344 To get more details, run the container in foreground mode.
lxc-start: lxc_start.c: main: 346 Additional information can be obtained by setting the --logfile and --logpriority options.
页: 1 2 [3] 4 5 6 7 8 9 10
查看完整版本: F650/450、8145、K662等ARM平台,LXC容器内运行OpenWRT子系统