Skip to content

Add support for TQC-A01#1638

Merged
ophub merged 1 commit intoophub:mainfrom
MindowsToolBox:main
Aug 21, 2023
Merged

Add support for TQC-A01#1638
ophub merged 1 commit intoophub:mainfrom
MindowsToolBox:main

Conversation

@13584452567
Copy link
Contributor

@13584452567 13584452567 commented Aug 21, 2023

u-boot文件正在处理

@ophub ophub merged commit 20aef19 into ophub:main Aug 21, 2023
@ophub
Copy link
Owner

ophub commented Aug 21, 2023

model 里我先临时改成no了,不然没有6.4.y目前的脚本会因为找不到内核报错,我编译完内核了再改回yes

@13584452567
Copy link
Contributor Author

model 里我先临时改成no了,不然没有6.4.y目前的脚本会因为找不到内核报错,我编译完内核了再改回yes

好的

@ophub
Copy link
Owner

ophub commented Aug 21, 2023

你6.4的内核仓库,其他设备amlgic和rockchip等能使用吗?

@13584452567
Copy link
Contributor Author

你6.4的内核仓库,其他设备amlgic和rockchip等能使用吗?

aml不清楚,估计不太行。rk应该没问题。

这个是在linus的代码上patch出来的

@ophub
Copy link
Owner

ophub commented Aug 21, 2023

https://github.com/ophub/kernel/actions/runs/5926097832/job/16066837075

我在github上开启了内核编译,看看能不能正常跑完。

@ophub
Copy link
Owner

ophub commented Aug 21, 2023

https://github.com/ophub/kernel/actions/runs/5926097832/job/16066837075#step:4:4901

CC [M]  net/ipv4/netfilter/ipt_ah.o
  CC [M]  net/netfilter/ipvs/ip_vs_pe.o
  CC [M]  net/ipv4/netfilter/ipt_rpfilter.o
  CC [M]  net/netfilter/ipvs/ip_vs_proto_tcp.o
  CC [M]  net/ipv4/netfilter/ipt_ECN.o
  CC [M]  net/netfilter/ipvs/ip_vs_proto_udp.o
In file included from ./include/uapi/linux/netfilter_ipv4/ipt_ECN.h:14,
                 from net/ipv4/netfilter/ipt_ECN.c:17:
./include/uapi/linux/netfilter/xt_DSCP.h:14:10: fatal error: linux/netfilter/xt_dscp.h: No such file or directory
   14 | #include <linux/netfilter/xt_dscp.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [scripts/Makefile.build:252: net/ipv4/netfilter/ipt_ECN.o] Error 1
make[3]: *** [scripts/Makefile.build:497: net/ipv4/netfilter] Error 2
make[2]: *** [scripts/Makefile.build:497: net/ipv4] Error 2
make[2]: *** Waiting for unfinished jobs....
  CC [M]  net/netfilter/ipvs/ip_vs_proto_ah_esp.o
  CC [M]  net/netfilter/ipvs/ip_vs_proto_sctp.o
  CC [M]  net/netfilter/ipvs/ip_vs_nfct.o
  CC [M]  net/netfilter/ipvs/ip_vs_rr.o
  CC [M]  net/netfilter/nf_flow_table_offload.o
  CC [M]  net/netfilter/nf_flow_table_inet.o
  CC [M]  net/netfilter/xt_mark.o
  CC [M]  net/netfilter/xt_connmark.o
net/netfilter/xt_mark.c:13:10: fatal error: linux/netfilter/xt_mark.h: No such file or directory
   13 | #include <linux/netfilter/xt_mark.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:252: net/netfilter/xt_mark.o] Error 1
make[3]: *** Waiting for unfinished jobs....
net/netfilter/xt_connmark.c:16:10: fatal error: linux/netfilter/xt_connmark.h: No such file or directory
   16 | #include <linux/netfilter/xt_connmark.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:252: net/netfilter/xt_connmark.o] Error 1
make[2]: *** [scripts/Makefile.build:497: net/netfilter] Error 2
make[1]: *** [scripts/Makefile.build:497: net] Error 2
make: *** [Makefile:2032: .] Error 2

内核编译到一半报错了,你有空看看。

@13584452567
Copy link
Contributor Author

13584452567 commented Aug 21, 2023

ophub/kernel/actions/runs/5926097832/job/16066837075#step:4:4901

CC [M]  net/ipv4/netfilter/ipt_ah.o
  CC [M]  net/netfilter/ipvs/ip_vs_pe.o
  CC [M]  net/ipv4/netfilter/ipt_rpfilter.o
  CC [M]  net/netfilter/ipvs/ip_vs_proto_tcp.o
  CC [M]  net/ipv4/netfilter/ipt_ECN.o
  CC [M]  net/netfilter/ipvs/ip_vs_proto_udp.o
In file included from ./include/uapi/linux/netfilter_ipv4/ipt_ECN.h:14,
                 from net/ipv4/netfilter/ipt_ECN.c:17:
./include/uapi/linux/netfilter/xt_DSCP.h:14:10: fatal error: linux/netfilter/xt_dscp.h: No such file or directory
   14 | #include <linux/netfilter/xt_dscp.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [scripts/Makefile.build:252: net/ipv4/netfilter/ipt_ECN.o] Error 1
make[3]: *** [scripts/Makefile.build:497: net/ipv4/netfilter] Error 2
make[2]: *** [scripts/Makefile.build:497: net/ipv4] Error 2
make[2]: *** Waiting for unfinished jobs....
  CC [M]  net/netfilter/ipvs/ip_vs_proto_ah_esp.o
  CC [M]  net/netfilter/ipvs/ip_vs_proto_sctp.o
  CC [M]  net/netfilter/ipvs/ip_vs_nfct.o
  CC [M]  net/netfilter/ipvs/ip_vs_rr.o
  CC [M]  net/netfilter/nf_flow_table_offload.o
  CC [M]  net/netfilter/nf_flow_table_inet.o
  CC [M]  net/netfilter/xt_mark.o
  CC [M]  net/netfilter/xt_connmark.o
net/netfilter/xt_mark.c:13:10: fatal error: linux/netfilter/xt_mark.h: No such file or directory
   13 | #include <linux/netfilter/xt_mark.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:252: net/netfilter/xt_mark.o] Error 1
make[3]: *** Waiting for unfinished jobs....
net/netfilter/xt_connmark.c:16:10: fatal error: linux/netfilter/xt_connmark.h: No such file or directory
   16 | #include <linux/netfilter/xt_connmark.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:252: net/netfilter/xt_connmark.o] Error 1
make[2]: *** [scripts/Makefile.build:497: net/netfilter] Error 2
make[1]: *** [scripts/Makefile.build:497: net] Error 2
make: *** [Makefile:2032: .] Error 2

内核编译到一半报错了,你有空看看。

~~这三处修改了,再试一试?

我本地编译没问题。命令是make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j16。版本是aarch64-linux-gnu-gcc11,linaro发布的预编译包。

或者你试一试arm64的通用defconfig?(虽然我感觉意义不大)~~

内核版本是6.4.10,不是6.4.1

知道问题了,因为我当初代码过了一遍NTFS把一些文件覆盖掉了。

@ophub
Copy link
Owner

ophub commented Aug 22, 2023

https://github.com/ophub/kernel/actions/runs/5927830688/job/16072149322#step:4:4778

  CC [M]  net/sched/sch_codel.o
  CC      drivers/mfd/sun6i-prcm.o
make[3]: *** No rule to make target 'drivers/mfd/sunxi-ac200.o', needed by 'drivers/mfd/built-in.a'.  Stop.
make[3]: *** Waiting for unfinished jobs....
  CC      drivers/mfd/mfd-core.o
  CC [M]  net/sched/sch_cake.o
make[2]: *** [scripts/Makefile.build:497: drivers/mfd] Error 2
make[1]: *** [scripts/Makefile.build:497: drivers] Error 2
make[1]: *** Waiting for unfinished jobs....
  CC [M]  net/sched/sch_fq.o
  CC [M]  net/sched/sch_hhf.o
  CC [M]  net/sched/sch_pie.o

https://github.com/ophub/kernel/actions/runs/5927830688/job/16072149322#step:4:4885

  CC [M]  net/ipv4/netfilter/ipt_rpfilter.o
  CC [M]  net/ipv4/netfilter/ipt_ECN.o
In file included from net/ipv4/netfilter/ipt_ECN.c:17:
./include/uapi/linux/netfilter_ipv4/ipt_ECN.h:14:10: fatal error: linux/netfilter/xt_DSCP.h: No such file or directory
   14 | #include <linux/netfilter/xt_DSCP.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [scripts/Makefile.build:252: net/ipv4/netfilter/ipt_ECN.o] Error 1
make[3]: *** [scripts/Makefile.build:497: net/ipv4/netfilter] Error 2
make[2]: *** [scripts/Makefile.build:497: net/ipv4] Error 2
make[2]: *** Waiting for unfinished jobs....
  CC [M]  net/netfilter/ipset/ip_set_hash_netnet.o
  CC [M]  net/netfilter/ipvs/ip_vs_conn.o
  CC [M]  net/netfilter/ipvs/ip_vs_core.o

https://github.com/ophub/kernel/actions/runs/5927830688/job/16072149322#step:4:5054

  CC [M]  net/netfilter/xt_connmark.o
net/netfilter/xt_mark.c: In function ‘mark_tg’:
net/netfilter/xt_mark.c:30:39: error: invalid use of undefined type ‘const struct xt_mark_tginfo2’
   30 |         skb->mark = (skb->mark & ~info->mask) ^ info->mark;
      |                                       ^~
net/netfilter/xt_mark.c:30:53: error: invalid use of undefined type ‘const struct xt_mark_tginfo2’
   30 |         skb->mark = (skb->mark & ~info->mask) ^ info->mark;
      |                                                     ^~
net/netfilter/xt_mark.c: In function ‘mark_mt’:
net/netfilter/xt_mark.c:39:34: error: invalid use of undefined type ‘const struct xt_mark_mtinfo1’
   39 |         return ((skb->mark & info->mask) == info->mark) ^ info->invert;
      |                                  ^~
net/netfilter/xt_mark.c:39:49: error: invalid use of undefined type ‘const struct xt_mark_mtinfo1’
   39 |         return ((skb->mark & info->mask) == info->mark) ^ info->invert;
      |                                                 ^~
net/netfilter/xt_mark.c:39:63: error: invalid use of undefined type ‘const struct xt_mark_mtinfo1’
   39 |         return ((skb->mark & info->mask) == info->mark) ^ info->invert;
      |                                                               ^~
net/netfilter/xt_mark.c: At top level:
net/netfilter/xt_mark.c:47:34: error: invalid application of ‘sizeof’ to incomplete type ‘struct xt_mark_tginfo2’
   47 |         .targetsize     = sizeof(struct xt_mark_tginfo2),
      |                                  ^~~~~~
net/netfilter/xt_mark.c:56:34: error: invalid application of ‘sizeof’ to incomplete type ‘struct xt_mark_mtinfo1’
   56 |         .matchsize      = sizeof(struct xt_mark_mtinfo1),
      |                                  ^~~~~~
make[3]: *** [scripts/Makefile.build:252: net/netfilter/xt_mark.o] Error 1
make[3]: *** Waiting for unfinished jobs....
net/netfilter/xt_connmark.c:27:53: warning: ‘struct xt_connmark_tginfo2’ declared inside parameter list will not be visible outside of this definition or declaration
   27 | connmark_tg_shift(struct sk_buff *skb, const struct xt_connmark_tginfo2 *info)
      |                                                     ^~~~~~~~~~~~~~~~~~~
net/netfilter/xt_connmark.c: In function ‘connmark_tg_shift’:
net/netfilter/xt_connmark.c:39:21: error: invalid use of undefined type ‘const struct xt_connmark_tginfo2’
   39 |         switch (info->mode) {
      |                     ^~
net/netfilter/xt_connmark.c:40:14: error: ‘XT_CONNMARK_SET’ undeclared (first use in this function)
   40 |         case XT_CONNMARK_SET:
      |              ^~~~~~~~~~~~~~~
net/netfilter/xt_connmark.c:40:14: note: each undeclared identifier is reported only once for each function it appears in
net/netfilter/xt_connmark.c:42:43: error: invalid use of undefined type ‘const struct xt_connmark_tginfo2’
   42 |                 newmark = (oldmark & ~info->ctmask) ^ info->ctmark;
      |                                           ^~
net/netfilter/xt_connmark.c:42:59: error: invalid use of undefined type ‘const struct xt_connmark_tginfo2’
   42 |                 newmark = (oldmark & ~info->ctmask) ^ info->ctmark;
      |                                                           ^~
net/netfilter/xt_connmark.c:43:25: error: invalid use of undefined type ‘const struct xt_connmark_tginfo2’
   43 |                 if (info->shift_dir == D_SHIFT_RIGHT)
      |                         ^~
net/netfilter/xt_connmark.c:43:40: error: ‘D_SHIFT_RIGHT’ undeclared (first use in this function)
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
net/netfilter/xt_connmark.c: In function ‘connmark_mt’:
net/netfilter/xt_connmark.c:131:44: error: invalid use of undefined type ‘const struct xt_connmark_mtinfo1’
  131 |         return ((READ_ONCE(ct->mark) & info->mask) == info->mark) ^ info->invert;
      |                                            ^~
net/netfilter/xt_connmark.c:131:59: error: invalid use of undefined type ‘const struct xt_connmark_mtinfo1’
  131 |         return ((READ_ONCE(ct->mark) & info->mask) == info->mark) ^ info->invert;
      |                                                           ^~
net/netfilter/xt_connmark.c:131:73: error: invalid use of undefined type ‘const struct xt_connmark_mtinfo1’
  131 |         return ((READ_ONCE(ct->mark) & info->mask) == info->mark) ^ info->invert;
      |                                                                         ^~
net/netfilter/xt_connmark.c: At top level:
net/netfilter/xt_connmark.c:157:42: error: invalid application of ‘sizeof’ to incomplete type ‘struct xt_connmark_tginfo1’
  157 |                 .targetsize     = sizeof(struct xt_connmark_tginfo1),
      |                                          ^~~~~~
net/netfilter/xt_connmark.c:167:42: error: invalid application of ‘sizeof’ to incomplete type ‘struct xt_connmark_tginfo2’
  167 |                 .targetsize     = sizeof(struct xt_connmark_tginfo2),
      |                                          ^~~~~~
net/netfilter/xt_connmark.c:179:34: error: invalid application of ‘sizeof’ to incomplete type ‘struct xt_connmark_mtinfo1’
  179 |         .matchsize      = sizeof(struct xt_connmark_mtinfo1),
      |                                  ^~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:252: net/netfilter/xt_connmark.o] Error 1
make[2]: *** [scripts/Makefile.build:497: net/netfilter] Error 2
make[1]: *** [scripts/Makefile.build:497: net] Error 2
make: *** [Makefile:2032: .] Error 2

还是这个位置报错,再继续修一修。
你有编译好的内核发我一个下载链接,我先上传个打包测试下。

@13584452567
Copy link
Contributor Author

13584452567 commented Aug 22, 2023

ophub/kernel/actions/runs/5927830688/job/16072149322#step:4:4778

  CC [M]  net/sched/sch_codel.o
  CC      drivers/mfd/sun6i-prcm.o
make[3]: *** No rule to make target 'drivers/mfd/sunxi-ac200.o', needed by 'drivers/mfd/built-in.a'.  Stop.
make[3]: *** Waiting for unfinished jobs....
  CC      drivers/mfd/mfd-core.o
  CC [M]  net/sched/sch_cake.o
make[2]: *** [scripts/Makefile.build:497: drivers/mfd] Error 2
make[1]: *** [scripts/Makefile.build:497: drivers] Error 2
make[1]: *** Waiting for unfinished jobs....
  CC [M]  net/sched/sch_fq.o
  CC [M]  net/sched/sch_hhf.o
  CC [M]  net/sched/sch_pie.o

ophub/kernel/actions/runs/5927830688/job/16072149322#step:4:4885

  CC [M]  net/ipv4/netfilter/ipt_rpfilter.o
  CC [M]  net/ipv4/netfilter/ipt_ECN.o
In file included from net/ipv4/netfilter/ipt_ECN.c:17:
./include/uapi/linux/netfilter_ipv4/ipt_ECN.h:14:10: fatal error: linux/netfilter/xt_DSCP.h: No such file or directory
   14 | #include <linux/netfilter/xt_DSCP.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [scripts/Makefile.build:252: net/ipv4/netfilter/ipt_ECN.o] Error 1
make[3]: *** [scripts/Makefile.build:497: net/ipv4/netfilter] Error 2
make[2]: *** [scripts/Makefile.build:497: net/ipv4] Error 2
make[2]: *** Waiting for unfinished jobs....
  CC [M]  net/netfilter/ipset/ip_set_hash_netnet.o
  CC [M]  net/netfilter/ipvs/ip_vs_conn.o
  CC [M]  net/netfilter/ipvs/ip_vs_core.o

ophub/kernel/actions/runs/5927830688/job/16072149322#step:4:5054

  CC [M]  net/netfilter/xt_connmark.o
net/netfilter/xt_mark.c: In function ‘mark_tg’:
net/netfilter/xt_mark.c:30:39: error: invalid use of undefined type ‘const struct xt_mark_tginfo2’
   30 |         skb->mark = (skb->mark & ~info->mask) ^ info->mark;
      |                                       ^~
net/netfilter/xt_mark.c:30:53: error: invalid use of undefined type ‘const struct xt_mark_tginfo2’
   30 |         skb->mark = (skb->mark & ~info->mask) ^ info->mark;
      |                                                     ^~
net/netfilter/xt_mark.c: In function ‘mark_mt’:
net/netfilter/xt_mark.c:39:34: error: invalid use of undefined type ‘const struct xt_mark_mtinfo1’
   39 |         return ((skb->mark & info->mask) == info->mark) ^ info->invert;
      |                                  ^~
net/netfilter/xt_mark.c:39:49: error: invalid use of undefined type ‘const struct xt_mark_mtinfo1’
   39 |         return ((skb->mark & info->mask) == info->mark) ^ info->invert;
      |                                                 ^~
net/netfilter/xt_mark.c:39:63: error: invalid use of undefined type ‘const struct xt_mark_mtinfo1’
   39 |         return ((skb->mark & info->mask) == info->mark) ^ info->invert;
      |                                                               ^~
net/netfilter/xt_mark.c: At top level:
net/netfilter/xt_mark.c:47:34: error: invalid application of ‘sizeof’ to incomplete type ‘struct xt_mark_tginfo2’
   47 |         .targetsize     = sizeof(struct xt_mark_tginfo2),
      |                                  ^~~~~~
net/netfilter/xt_mark.c:56:34: error: invalid application of ‘sizeof’ to incomplete type ‘struct xt_mark_mtinfo1’
   56 |         .matchsize      = sizeof(struct xt_mark_mtinfo1),
      |                                  ^~~~~~
make[3]: *** [scripts/Makefile.build:252: net/netfilter/xt_mark.o] Error 1
make[3]: *** Waiting for unfinished jobs....
net/netfilter/xt_connmark.c:27:53: warning: ‘struct xt_connmark_tginfo2’ declared inside parameter list will not be visible outside of this definition or declaration
   27 | connmark_tg_shift(struct sk_buff *skb, const struct xt_connmark_tginfo2 *info)
      |                                                     ^~~~~~~~~~~~~~~~~~~
net/netfilter/xt_connmark.c: In function ‘connmark_tg_shift’:
net/netfilter/xt_connmark.c:39:21: error: invalid use of undefined type ‘const struct xt_connmark_tginfo2’
   39 |         switch (info->mode) {
      |                     ^~
net/netfilter/xt_connmark.c:40:14: error: ‘XT_CONNMARK_SET’ undeclared (first use in this function)
   40 |         case XT_CONNMARK_SET:
      |              ^~~~~~~~~~~~~~~
net/netfilter/xt_connmark.c:40:14: note: each undeclared identifier is reported only once for each function it appears in
net/netfilter/xt_connmark.c:42:43: error: invalid use of undefined type ‘const struct xt_connmark_tginfo2’
   42 |                 newmark = (oldmark & ~info->ctmask) ^ info->ctmark;
      |                                           ^~
net/netfilter/xt_connmark.c:42:59: error: invalid use of undefined type ‘const struct xt_connmark_tginfo2’
   42 |                 newmark = (oldmark & ~info->ctmask) ^ info->ctmark;
      |                                                           ^~
net/netfilter/xt_connmark.c:43:25: error: invalid use of undefined type ‘const struct xt_connmark_tginfo2’
   43 |                 if (info->shift_dir == D_SHIFT_RIGHT)
      |                         ^~
net/netfilter/xt_connmark.c:43:40: error: ‘D_SHIFT_RIGHT’ undeclared (first use in this function)
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
net/netfilter/xt_connmark.c: In function ‘connmark_mt’:
net/netfilter/xt_connmark.c:131:44: error: invalid use of undefined type ‘const struct xt_connmark_mtinfo1’
  131 |         return ((READ_ONCE(ct->mark) & info->mask) == info->mark) ^ info->invert;
      |                                            ^~
net/netfilter/xt_connmark.c:131:59: error: invalid use of undefined type ‘const struct xt_connmark_mtinfo1’
  131 |         return ((READ_ONCE(ct->mark) & info->mask) == info->mark) ^ info->invert;
      |                                                           ^~
net/netfilter/xt_connmark.c:131:73: error: invalid use of undefined type ‘const struct xt_connmark_mtinfo1’
  131 |         return ((READ_ONCE(ct->mark) & info->mask) == info->mark) ^ info->invert;
      |                                                                         ^~
net/netfilter/xt_connmark.c: At top level:
net/netfilter/xt_connmark.c:157:42: error: invalid application of ‘sizeof’ to incomplete type ‘struct xt_connmark_tginfo1’
  157 |                 .targetsize     = sizeof(struct xt_connmark_tginfo1),
      |                                          ^~~~~~
net/netfilter/xt_connmark.c:167:42: error: invalid application of ‘sizeof’ to incomplete type ‘struct xt_connmark_tginfo2’
  167 |                 .targetsize     = sizeof(struct xt_connmark_tginfo2),
      |                                          ^~~~~~
net/netfilter/xt_connmark.c:179:34: error: invalid application of ‘sizeof’ to incomplete type ‘struct xt_connmark_mtinfo1’
  179 |         .matchsize      = sizeof(struct xt_connmark_mtinfo1),
      |                                  ^~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:252: net/netfilter/xt_connmark.o] Error 1
make[2]: *** [scripts/Makefile.build:497: net/netfilter] Error 2
make[1]: *** [scripts/Makefile.build:497: net] Error 2
make: *** [Makefile:2032: .] Error 2

还是这个位置报错,再继续修一修。 你有编译好的内核发我一个下载链接,我先上传个打包测试下。

我重新清理了仓库,再试一试编译。本地跑通的。

image下载链接:https://t.wss.ink/f/bzy62tfdawz

@ophub
Copy link
Owner

ophub commented Aug 22, 2023

Snip20230822_1

你的最新源码我在本地编译成功了,现在启动Actions编译一份。
在armbian里生成uInitrd时提示缺少 /lib/firmware/ene-ub6250 驱动,这是 TQC-A01 需要的驱动吧,你有的话把本地这个目录复制给我吧,我添加到 firmware

https://github.com/armbian/firmware

我在armbian的仓库里也没找到这个驱动文件。

@ophub
Copy link
Owner

ophub commented Aug 22, 2023

https://github.com/pyavitz/debian-image-builder/blob/313428ca33a3e0d3ee0e41481e361d3440ed5c9d/lib/function/amlogic#L61C1-L61C1-L69

我在github找到了一个,疑似可以使用,你测试下,现在链接有效:

https://kernel.googlesource.com/pub/scm/linux/kernel/git/firmware/linux-firmware/+/main/ene-ub6250/

我看他使用在了debian的amligic里,代码上面还使用了LibreELEC的firmware,一般来说LibreELEC能使用的驱动,armbian也能使用。

@13584452567
Copy link
Contributor Author

13584452567 commented Aug 22, 2023

https://github.com/pyavitz/debian-image-builder/blob/313428ca33a3e0d3ee0e41481e361d3440ed5c9d/lib/function/amlogic#L61C1-L61C1-L69

我在github找到了一个,疑似可以使用,你测试下,现在链接有效:

https://kernel.googlesource.com/pub/scm/linux/kernel/git/firmware/linux-firmware/+/main/ene-ub6250/

我看他使用在了debian的amligic里,代码上面还使用了LibreELEC的firmware,一般来说LibreELEC能使用的驱动,armbian也能使用。

没问题,直接用吧。

不过我并没有配置这个东西。看了debian img build,这个东西可能是config里面默认的?

@ophub
Copy link
Owner

ophub commented Aug 22, 2023

ene-ub6250 我添加到了: ophub/firmware@e46ae8b

config的倒数第二行

#
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may
#


#
# also be needed; see USB_STORAGE Help for more info
#
CONFIG_USB_STORAGE=y
# CONFIG_USB_STORAGE_DEBUG is not set
CONFIG_USB_STORAGE_REALTEK=y
CONFIG_REALTEK_AUTOPM=y
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_ISD200=y
CONFIG_USB_STORAGE_USBAT=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
CONFIG_USB_STORAGE_JUMPSHOT=y
CONFIG_USB_STORAGE_ALAUDA=y
CONFIG_USB_STORAGE_ONETOUCH=y
CONFIG_USB_STORAGE_KARMA=y
CONFIG_USB_STORAGE_CYPRESS_ATACB=y
CONFIG_USB_STORAGE_ENE_UB6250=y
CONFIG_USB_UAS=y

@13584452567
Copy link
Contributor Author

ene-ub6250 我添加到了: ophub/firmware@e46ae8b

config的倒数第二行


#

# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may

#





#

# also be needed; see USB_STORAGE Help for more info

#

CONFIG_USB_STORAGE=y

# CONFIG_USB_STORAGE_DEBUG is not set

CONFIG_USB_STORAGE_REALTEK=y

CONFIG_REALTEK_AUTOPM=y

CONFIG_USB_STORAGE_DATAFAB=y

CONFIG_USB_STORAGE_FREECOM=y

CONFIG_USB_STORAGE_ISD200=y

CONFIG_USB_STORAGE_USBAT=y

CONFIG_USB_STORAGE_SDDR09=y

CONFIG_USB_STORAGE_SDDR55=y

CONFIG_USB_STORAGE_JUMPSHOT=y

CONFIG_USB_STORAGE_ALAUDA=y

CONFIG_USB_STORAGE_ONETOUCH=y

CONFIG_USB_STORAGE_KARMA=y

CONFIG_USB_STORAGE_CYPRESS_ATACB=y

CONFIG_USB_STORAGE_ENE_UB6250=y

CONFIG_USB_UAS=y

泰奇猫并没有这个硬件。

不过这样配置也算解决了一个未来可能发生的问题?

@ophub
Copy link
Owner

ophub commented Aug 22, 2023

https://github.com/ophub/amlogic-s9xxx-armbian/releases/download/Armbian_jammy_save_2023.08/Armbian_23.08.0_allwinner_tqc-a01_jammy_6.4.10_server_2023.08.22.img.gz

打包好了,你测试一下。
驱动不使用的话,我从config里去掉选择,随后再编一个。

@13584452567
Copy link
Contributor Author

Armbian_jammy_save_2023.08 Armbian_23.08.0_allwinner_tqc-a01_jammy_6.4.10_server_2023.08.22.img.gz (download)

打包好了,你测试一下。 驱动不使用的话,我从config里去掉选择,随后再编一个。

测试暂时无问题。config需要更新一下来修复HDMI的EDID读取问题。
https://aur.archlinux.org/cgit/aur.git/plain/config?h=linux-tqc-a01
内核更新至6.4.11

@ophub
Copy link
Owner

ophub commented Aug 24, 2023

https://github.com/ophub/kernel/tree/main/kernel-config/release/h6

CONFIG_DRM_DISPLAY_CONNECTOR=m
比较了下多了这一个选项,已经更新,正在编译。

@ophub
Copy link
Owner

ophub commented Aug 24, 2023

快结束时报错了。你是不是没有打6.4.11的补丁呢?我看你直接更新到了6.4.12,你检查下是不是漏了什么。

我在本地回退到上一个commit:e3ff0e9,使用添加了 CONFIG_DRM_DISPLAY_CONNECTOR=m 的config编译成功了,已经更新了内核并重新打包了个固件,你测试下。

https://github.com/ophub/amlogic-s9xxx-armbian/releases/download/Armbian_jammy_save_2023.08/Armbian_23.08.0_allwinner_tqc-a01_jammy_6.4.10_server_2023.08.24.img.gz

https://github.com/ophub/kernel/actions/runs/5964342193/job/16179344418

  LD [M]  drivers/gnss/gnss-mtk.o
  AR      drivers/built-in.a
  CC [M]  drivers/soundwire/sysfs_slave_dpn.o
  CC [M]  drivers/soundwire/debugfs.o
  CC [M]  drivers/soundwire/qcom.o
  LD [M]  drivers/soundwire/soundwire-bus.o
  LD [M]  drivers/soundwire/soundwire-qcom.o
make: *** [Makefile:2032: .] Error 2

@13584452567
Copy link
Contributor Author

快结束时报错了。你是不是没有打6.4.11的补丁呢?我看你直接更新到了6.4.12

ophub/kernel/actions/runs/5964342193/job/16179344418

  LD [M]  drivers/gnss/gnss-mtk.o
  AR      drivers/built-in.a
  CC [M]  drivers/soundwire/sysfs_slave_dpn.o
  CC [M]  drivers/soundwire/debugfs.o
  CC [M]  drivers/soundwire/qcom.o
  LD [M]  drivers/soundwire/soundwire-bus.o
  LD [M]  drivers/soundwire/soundwire-qcom.o
make: *** [Makefile:2032: .] Error 2

先从6.4.10补丁到6.4.11,然后又补丁到6.4.12的。我等会补到6.4.11看一下会不会出问题。

我本地编译没有问题,奇怪。

新的镜像测试也解决了EDID读取的问题

@alanfans
Copy link

哎哟,不错哟

@alanfans
Copy link

之前就是看这里有泰奇猫的armbian ,才入手的泰奇猫,后面网口问题,撤回了,我自己没能力弄,吃灰4个月

@ophub
Copy link
Owner

ophub commented Aug 29, 2023

我给 TQC-A01 添加了一个独立的内核tags:https://github.com/ophub/kernel/releases/tag/kernel_h6
方便大家直观地选用

@13584452567
Copy link
Contributor Author

6.4.12测试完成。晚上上传

@ophub
Copy link
Owner

ophub commented Aug 29, 2023

好的,等你更新了我再Actions编译。

@alanfans
Copy link

坐等测试

@13584452567
Copy link
Contributor Author

13584452567 commented Aug 29, 2023

好的,等你更新了我再Actions编译。

全部修复好了。

config需要更新,还是那个地址。

ttyAML0在全志这里看起来也需要移除,可能需要您在编译脚本里面加一下。

@13584452567
Copy link
Contributor Author

6.4.12应该到此为止了。后面会跟主线到下一个lts版本。

@ophub
Copy link
Owner

ophub commented Aug 30, 2023

config 已经更新,正在编译内核。

你要禁什么?这里禁了一些,介绍下你要禁用的是什么,和这个一样的话我就添加 [[ "${platform_name}" != "amlogic" ]]

# Disable ttyFIQ0 & ttyAML0 (ttyS2)
[[ "${platform_name}" == "rockchip" ]] && {
sudo systemctl disable serial-getty@ttyFIQ0 2>/dev/null
sudo systemctl disable serial-getty@ttyAML0 2>/dev/null
tolog "88. Disable ttyFIQ0 & ttyAML0 (ttyS2)"
}

ophub added a commit that referenced this pull request Apr 25, 2024
@luhuanwen
Copy link

LibreELEC-H6.arm-11.0.6-orangepi-3.img(官网下载) 和 sun50i-h6-tqc-a01.zip 配合很好,wifi/蓝牙工作正常,网口正常,hdmi正常,就差一个usb3.0了,哎

老哥,USB3.0问题解决了吗

@alanfans
Copy link

LibreELEC-H6.arm-11.0.6-orangepi-3.img(官网下载) 和 sun50i-h6-tqc-a01.zip 配合很好,wifi/蓝牙工作正常,网口正常,hdmi正常,就差一个usb3.0了,哎

老哥,USB3.0问题解决了吗

没有

@feifenspace
Copy link

Armbian_24.8.0_allwinner_tqc-a01_noble_6.6.33_server_2024.06.15.img.gz 这个我刷到卡里边启动不了,是需要什么其他设置吗?目前希望把泰奇猫用来当数播,之前在网上找到一个arbian镜像太过于精简了,ALSA Libraries 也没有,根本没办法用,又不懂得编译固件,希望大佬给回复,看看怎么操作

@feifenspace
Copy link

https://gitee.com/yjun123/tqc-a01/tree/master 泰奇猫 TQC-A01网上找的资料希望能有用

@avw95
Copy link

avw95 commented Nov 2, 2024

启动失败,ttl日志显示如下


U-Boot SPL 2023.07.02-1 (Aug 24 2023 - 14:51:12 +0000)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE: BL31: lts-v2.8.8(release):
NOTICE: BL31: Built : 14:51:12, Aug 24 2023
NOTICE: BL31: Detected Allwinner H6 SoC (1728)
NOTICE: BL31: Found U-Boot DTB at 0xa096368, model: TQC A01
ERROR: RSB: read command: 0x103
ERROR: RSB: write command: 0x3
ERROR: RSB: read command: 0x3
ERROR: RSB: write command: 0x3
ERROR: RSB: read command: 0x3
ERROR: RSB: write command: 0x3
ERROR: RSB: read command: 0x3
ERROR: RSB: write command: 0x3
ERROR: RSB: read command: 0x103
ERROR: RSB: write command: 0x3
ERROR: RSB: read command: 0x103
ERROR: RSB: write command: 0x3
SCP/INF: Crust v0.5.10000


U-Boot 2023.07.02-1 (Aug 24 2023 - 14:51:12 +0000)Arch Linux ARM

CPU: Allwinner H6 (SUN50I)
Model: TQC A01
DRAM: 1 GiB
Core: 60 devices, 17 uclasses, devicetree: separate
WDT: Not starting watchdog@7020400
MMC: mmc@4020000: 0, mmc@4022000: 1
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1...
In: serial@5000000
Out: serial@5000000
Err: serial@5000000
Net: No ethernet found.
starting USB...
Bus usb@5101000: USB EHCI 1.00
Bus usb@5101400: USB OHCI 1.0
Bus usb@5311000: USB EHCI 1.00
Bus usb@5311400: USB OHCI 1.0
scanning bus usb@5101000 for devices... 1 USB Device(s) found
scanning bus usb@5101400 for devices... 1 USB Device(s) found
scanning bus usb@5311000 for devices... 1 USB Device(s) found
scanning bus usb@5311400 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Autoboot in 2 seconds, press to stop
switch to partitions #0, OK


[ 16.475751] sun50i-h6-pinctrl 300b000.pinctrl: request() failed for pin 65
[ 16.475780] sun50i-h6-pinctrl 300b000.pinctrl: request() failed for pin 79
[ 16.475790] sun50i-h6-pinctrl 300b000.pinctrl: pin-79 (300b000.pinctrl:79) status -517
[ 16.476007] sun50i-h6-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[ 16.482657] sun50i-h6-pinctrl 300b000.pinctrl: pin-65 (4022000.mmc) status -517
[ 16.482681] sun4i-usb-phy 5100400.phy: Couldn't request ID GPIO
[ 16.489585] sun50i-h6-pinctrl 300b000.pinctrl: could not request pin 65 (PC1) from group PC1 on device 300b000.pinctrl
[ 16.498234] platform 5100000.usb: deferred probe pending
[ 16.506040] sunxi-mmc 4022000.mmc: Error applying setting, reverse things back
[ 16.542604] platform cpufreq-dt: deferred probe pending
[ 16.547842] platform 5311400.usb: deferred probe pending
[ 16.553168] platform 5101000.usb: deferred probe pending
[ 16.558484] platform 5311000.usb: deferred probe pending
[ 16.563807] platform 5101400.usb: deferred probe pending
[ 16.569122] platform 5100400.phy: deferred probe pending
[ 16.574446] platform 4020000.mmc: deferred probe pending
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device. Common problems:

  • Boot args (cat /proc/cmdline)
  • Check rootdelay= (did the system wait long enough?)
  • Missing modules (cat /proc/modules; ls /dev)
    ALERT! UUID=2e0fc798-6627-471b-9cc4-8fb8c03d1095 does not exist. Dropping to a shell!
    
    不知道有没有大佬知道啥问题,用的Armbian_24.11.0_allwinner_tqc-a01_noble_6.6.58_server_2024.11.01.img固件

@xiexiaopeng2002
Copy link

启动失败,ttl日志显示如下

 U-Boot SPL 2023.07.02-1 (Aug 24 2023 - 14:51:12 +0000) DRAM: 1024 MiB Trying to boot from MMC1 NOTICE: BL31: lts-v2.8.8(release): NOTICE: BL31: Built : 14:51:12, Aug 24 2023 NOTICE: BL31: Detected Allwinner H6 SoC (1728) NOTICE: BL31: Found U-Boot DTB at 0xa096368, model: TQC A01 ERROR: RSB: read command: 0x103 ERROR: RSB: write command: 0x3 ERROR: RSB: read command: 0x3 ERROR: RSB: write command: 0x3 ERROR: RSB: read command: 0x3 ERROR: RSB: write command: 0x3 ERROR: RSB: read command: 0x3 ERROR: RSB: write command: 0x3 ERROR: RSB: read command: 0x103 ERROR: RSB: write command: 0x3 ERROR: RSB: read command: 0x103 ERROR: RSB: write command: 0x3 SCP/INF: Crust v0.5.10000   U-Boot 2023.07.02-1 (Aug 24 2023 - 14:51:12 +0000)Arch Linux ARM  CPU: Allwinner H6 (SUN50I) Model: TQC A01 DRAM: 1 GiB Core: 60 devices, 17 uclasses, devicetree: separate WDT: Not starting watchdog@7020400 MMC: mmc@4020000: 0, mmc@4022000: 1 Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... In: serial@5000000 Out: serial@5000000 Err: serial@5000000 Net: No ethernet found. starting USB... Bus usb@5101000: USB EHCI 1.00 Bus usb@5101400: USB OHCI 1.0 Bus usb@5311000: USB EHCI 1.00 Bus usb@5311400: USB OHCI 1.0 scanning bus usb@5101000 for devices... 1 USB Device(s) found scanning bus usb@5101400 for devices... 1 USB Device(s) found scanning bus usb@5311000 for devices... 1 USB Device(s) found scanning bus usb@5311400 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Autoboot in 2 seconds, press to stop switch to partitions #0, OK 

[ 16.475751] sun50i-h6-pinctrl 300b000.pinctrl: request() failed for pin 65 [ 16.475780] sun50i-h6-pinctrl 300b000.pinctrl: request() failed for pin 79 [ 16.475790] sun50i-h6-pinctrl 300b000.pinctrl: pin-79 (300b000.pinctrl:79) status -517 [ 16.476007] sun50i-h6-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator [ 16.482657] sun50i-h6-pinctrl 300b000.pinctrl: pin-65 (4022000.mmc) status -517 [ 16.482681] sun4i-usb-phy 5100400.phy: Couldn't request ID GPIO [ 16.489585] sun50i-h6-pinctrl 300b000.pinctrl: could not request pin 65 (PC1) from group PC1 on device 300b000.pinctrl [ 16.498234] platform 5100000.usb: deferred probe pending [ 16.506040] sunxi-mmc 4022000.mmc: Error applying setting, reverse things back [ 16.542604] platform cpufreq-dt: deferred probe pending [ 16.547842] platform 5311400.usb: deferred probe pending [ 16.553168] platform 5101000.usb: deferred probe pending [ 16.558484] platform 5311000.usb: deferred probe pending [ 16.563807] platform 5101400.usb: deferred probe pending [ 16.569122] platform 5100400.phy: deferred probe pending [ 16.574446] platform 4020000.mmc: deferred probe pending Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. done. Gave up waiting for root file system device. Common problems:

  • Boot args (cat /proc/cmdline)
  • Check rootdelay= (did the system wait long enough?)
  • Missing modules (cat /proc/modules; ls /dev)
    ALERT! UUID=2e0fc798-6627-471b-9cc4-8fb8c03d1095 does not exist. Dropping to a shell!
    
    不知道有没有大佬知道啥问题,用的Armbian_24.11.0_allwinner_tqc-a01_noble_6.6.58_server_2024.11.01.img固件

遇到同样的问题,我是从官方orange pi 3 lts迁移到ophub的内核后出现的问题

@ccsnpublic
Copy link

:/boot$ lsinitramfs initrd.img-6.6.72-zicai | grep mmc
:/boot$ lsinitramfs initrd.img-6.6.62-current-sunxi64 | grep mmc
usr/lib/modules/6.6.62-current-sunxi64/kernel/drivers/mmc
usr/lib/modules/6.6.62-current-sunxi64/kernel/drivers/mmc/host
usr/lib/modules/6.6.62-current-sunxi64/kernel/drivers/mmc/host/cqhci.ko
usr/lib/modules/6.6.62-current-sunxi64/kernel/drivers/mmc/host/dw_mmc-bluefield.ko
usr/lib/modules/6.6.62-current-sunxi64/kernel/drivers/mmc/host/dw_mmc-hi3798cv200.ko
usr/lib/modules/6.6.62-current-sunxi64/kernel/drivers/mmc/host/litex_mmc.ko
usr/lib/modules/6.6.62-current-sunxi64/kernel/drivers/mmc/host/mmc_hsq.ko
usr/lib/modules/6.6.62-current-sunxi64/kernel/drivers/mmc/host/sdhci-milbeaut.ko

不知道和这个有没有关系

@13584452567
Copy link
Contributor Author

TQC-A01,怎么刷机教程没有,不会用
TQC-A01,I don't know how to flash the computer, there's no tutorial

目前来看,这个仓库出来的rootfs不适配内核,你需要自己替换成arch的rootfs,但更换过程过于繁琐,原因正在排查。

还是这个问题,不知道为什么,armbian编译的rootfs没法挂载。alarm的就没有问题,原因不明

ophub added a commit that referenced this pull request Nov 2, 2025
@feifenspace
Copy link

目前TQC-A01的最新版固件,网卡,WiFi,蓝牙,HDMI是否正常了?

@13584452567
Copy link
Contributor Author

目前TQC-A01的最新版固件,网卡,WiFi,蓝牙,HDMI是否正常了?

不正常。目前仍然需要搭配ttl使用。看一看远方的arch linux arm吧,那个功能都正常。aur里面有对应的内核仓库,一搜就有。

ophub added a commit that referenced this pull request Dec 18, 2025
@houandy
Copy link

houandy commented Jan 27, 2026

TQC-A01,怎么刷机教程没有,不会用
TQC-A01,I don't know how to flash the computer, there's no tutorial

目前来看,这个仓库出来的rootfs不适配内核,你需要自己替换成arch的rootfs,但更换过程过于繁琐,原因正在排查。

还是这个问题,不知道为什么,armbian编译的rootfs没法挂载。alarm的就没有问题,原因不明

这边的内核修改的多了,用sun50i-h6-orangepi-3官方的内核就可以启动,应该是打补丁打错了,改成pi3的内核可以正常启动。

现在ophub和飞牛的内核都不能正常启动,是因为axp805工作不正常,造成mmc,emac,wifi等设备的供电不正常,启动不了。dts里面axp805禁用了就可以启动,但是供电不正常,很多驱动不了。

@houandy
Copy link

houandy commented Jan 27, 2026

axp80_aldo3 : axp806_aldo3
axp80_aldo2 : vcc-tv usb-dvdd vcc-ephy vcc-audio-33 ac-ldoin axp806_aldo2
axp80_aldo1 : vcc-ts vcc-pm vcc-pg vcc-ir vcc-led vcc-pl axp806_aldo1

axp80_bldo4 : axp806_bldo4
axp80_bldo3 : axp806_bldo3
axp80_bldo2 : vcc-emmcvq18 vcc-hdmi vdd-efuse vcc-emmc-18 axp806_bldo2
axp80_bldo1 : vcc-pll vdd-bias vdd-dram-18 axp806_bldo1

axp80_cldo3 : vcc-wifi axp806_cldo3
axp80_cldo2 : axp806_cldo2
axp80_cldo1 : vcc-sdcvd vcc-sdcvq33 vcc-sdcv vcc-emmcv vcc-pcie-slot vcc-camera-33 vcc-emmc-33 vcc-jtagx vcc-uart vcc-pcie vcc-usb vcc-pd vcc-card vcc-nand vcc-io axp806_cldo1

axp80_dcdce : vcc-dram axp806_dcdce
axp80_dcdcd : vdd-usb vdd-pcie vdd-hdmi vdd-sys axp806_dcdcd
axp80_dcdcc : vdd-gpu axp806_dcdcc
axp80_dcdcb : axp806_dcdcb
axp80_dcdca : vdd-cpua axp806_dcdca
regulator-dummy :
axp80_sw : axp806_sw

附上主要axp供电参数

@houandy
Copy link

houandy commented Jan 27, 2026

355 PL3 引脚(未明确功能) gpio_pin_2(355) gpio_is_valid ,确认引脚有效。
356 PL4 引脚(未明确功能) gpio_pin_1(356) gpio_is_valid ,确认引脚有效。
357 OHCI/XHCI 控制器使能 hci: request ohci0-controller gpio:357 和hci: request xhci-controller gpio:357 ,控制 USB 控制器上电。
359 PL7 引脚(未明确功能) gpio_pin_3(359) gpio_is_valid ,确认引脚有效。
360 WLAN_REG_ON(WiFi 使能) wlan_regon gpio=360 ,WiFi 模块上电使能引脚。
384 WLAN_HOSTWAKE(WiFi 唤醒) wlan_hostwake gpio=384 ,WiFi 唤醒主机引脚。
385 BT_HOSTWAKE(蓝牙唤醒) [ 3.481853] [BT_LPM] bluesleep_probe: bt_hostwake gpio=385 ,蓝牙唤醒引脚。
386 BT_WAKE(主机唤醒蓝牙) [ 3.481882] [BT_LPM] bluesleep_probe: bt_wake gpio=386 ,主机唤醒蓝牙引脚。

@houandy
Copy link

houandy commented Jan 27, 2026

UART0(ttyS0) 32 串口中断,用于控制台输出,[ 0.455874] uart0: ttyS0 at MMIO 0x5000000 (irq = 32) 。
UART1(ttyS1) 33 备用串口中断,[ 0.456564] uart1: ttyS1 at MMIO 0x5000400 (irq = 33) 。
EHCI0 控制器 38 USB 2.0 控制器中断,[ 0.478416] [sunxi-ehci0]: ... irq_no:38 。
XHCI 控制器 58 USB 3.0 控制器中断,[ 0.752564] xhci-hcd xhci-hcd.0.auto: irq 58 。
GMAC0(eth0) 未显式 以太网控制器中断,需结合设备树确认,日志中 PHY 中断通过轮询方式处理(IRQ poll)。
SDIO(WiFi) 68 WiFi 模块所在 SDIO 控制器(sdc1)的中断,[ 0.970059] sunxi-mmc sdc1: ... irq:68 。
视频编码(VE) 121 视频编码模块中断,[ 0.817744] cedar_ve: cedar-ve the get irq is 121 。
视频解码(VP9) 122 VP9 解码模块中断,[ 0.818751] google_vp9: ... the get irq is 122 。
WiFi 唤醒(GPIO384) 未转换 需通过gpio_to_irq(384)获取中断号(参考搜索摘要 3)。
蓝牙唤醒(GPIO385) 未转换 需通过gpio_to_irq(385)获取中断号。

@houandy
Copy link

houandy commented Jan 27, 2026

大佬看看还能不能调整一下内核,现在给的releast都是启动不了。

@13584452567
Copy link
Contributor Author

TQC-A01,怎么刷机教程没有,不会用
TQC-A01,I don't know how to flash the computer, there's no tutorial

目前来看,这个仓库出来的rootfs不适配内核,你需要自己替换成arch的rootfs,但更换过程过于繁琐,原因正在排查。

还是这个问题,不知道为什么,armbian编译的rootfs没法挂载。alarm的就没有问题,原因不明

这边的内核修改的多了,用sun50i-h6-orangepi-3官方的内核就可以启动,应该是打补丁打错了,改成pi3的内核可以正常启动。

现在ophub和飞牛的内核都不能正常启动,是因为axp805工作不正常,造成mmc,emac,wifi等设备的供电不正常,启动不了。dts里面axp805禁用了就可以启动,但是供电不正常,很多驱动不了。

我没记错的话,tqc a01的电源不是ac200在管吗?

现在主要跑不起来也是ac200的multi device驱动加载不上。

@houandy
Copy link

houandy commented Jan 27, 2026

重点是axp805 目前有问题,造成axp不能正常驱动。

@houandy
Copy link

houandy commented Jan 27, 2026

TQC-A01,怎么刷机教程没有,不会用
TQC-A01,I don't know how to flash the computer, there's no tutorial

目前来看,这个仓库出来的rootfs不适配内核,你需要自己替换成arch的rootfs,但更换过程过于繁琐,原因正在排查。

还是这个问题,不知道为什么,armbian编译的rootfs没法挂载。alarm的就没有问题,原因不明

这边的内核修改的多了,用sun50i-h6-orangepi-3官方的内核就可以启动,应该是打补丁打错了,改成pi3的内核可以正常启动。
现在ophub和飞牛的内核都不能正常启动,是因为axp805工作不正常,造成mmc,emac,wifi等设备的供电不正常,启动不了。dts里面axp805禁用了就可以启动,但是供电不正常,很多驱动不了。

我没记错的话,tqc a01的电源不是ac200在管吗?

现在主要跑不起来也是ac200的multi device驱动加载不上。

用pi3的内核就没问题,我现在用pi3的armbian修改dts后就可以正常运行

@houandy
Copy link

houandy commented Jan 27, 2026

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 02:01:b3:1c:21:0f brd ff:ff:ff:ff:ff:ff
altname end0
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DORMANT group default qlen 1000
link/ether 10:d0:7a:76:c5:17 brd ff:ff:ff:ff:ff:ff

root@orangepi3:~# lsusb -t
/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 1 29.8G 0 disk
├─sda1 8:1 1 511M 0 part /mnt/d2
├─sda2 8:2 1 15.5G 0 part
└─sda3 8:3 1 13.8G 0 part
mmcblk0 179:0 0 116.2G 0 disk
└─mmcblk0p1 179:1 0 7G 0 part /var/log.hdd
/
mmcblk2 179:32 0 7.3G 0 disk
├─mmcblk2p1 179:33 0 4.7G 0 part
├─mmcblk2p2 179:34 0 16M 0 part
├─mmcblk2p3 179:35 0 1K 0 part
├─mmcblk2p5 179:37 0 16M 0 part
├─mmcblk2p6 179:38 0 32M 0 part
├─mmcblk2p7 179:39 0 1.5G 0 part
├─mmcblk2p8 179:40 0 16M 0 part
├─mmcblk2p9 179:41 0 16M 0 part
├─mmcblk2p10 179:42 0 32M 0 part
├─mmcblk2p11 179:43 0 16M 0 part
├─mmcblk2p12 179:44 0 64M 0 part
├─mmcblk2p13 179:45 0 16M 0 part
├─mmcblk2p14 179:46 0 32M 0 part
├─mmcblk2p15 179:47 0 16M 0 part
└─mmcblk2p16 179:48 0 768M 0 part
mmcblk2boot0 179:64 0 4M 1 disk
mmcblk2boot1 179:96 0 4M 1 disk
zram0 251:0 0 488.4M 0 disk [SWAP]
zram1 251:1 0 50M 0 disk /var/log
zram2 251:2 0 0B 0 disk

@houandy
Copy link

houandy commented Jan 27, 2026

root@orangepi3:~# uname -a
Linux orangepi3 6.12.58-current-sunxi64 #1 SMP Thu Nov 13 20:34:41 UTC 2025 aarch64 GNU/Linux

@houandy
Copy link

houandy commented Jan 27, 2026

TQC-A01,怎么刷机教程没有,不会用
TQC-A01,I don't know how to flash the computer, there's no tutorial

目前来看,这个仓库出来的rootfs不适配内核,你需要自己替换成arch的rootfs,但更换过程过于繁琐,原因正在排查。

还是这个问题,不知道为什么,armbian编译的rootfs没法挂载。alarm的就没有问题,原因不明

这边的内核修改的多了,用sun50i-h6-orangepi-3官方的内核就可以启动,应该是打补丁打错了,改成pi3的内核可以正常启动。
现在ophub和飞牛的内核都不能正常启动,是因为axp805工作不正常,造成mmc,emac,wifi等设备的供电不正常,启动不了。dts里面axp805禁用了就可以启动,但是供电不正常,很多驱动不了。

我没记错的话,tqc a01的电源不是ac200在管吗?

现在主要跑不起来也是ac200的multi device驱动加载不上。

我发的gpio 中断,axp配置都提取自原机安卓系统

@13584452567
Copy link
Contributor Author

root@orangepi3:~# uname -a
Linux orangepi3 6.12.58-current-sunxi64 #1 SMP Thu Nov 13 20:34:41 UTC 2025 aarch64 GNU/Linux

尝试一下直接安装ophub这里的内核?现在release的镜像里面应该还是我很久之前patch的主线ketnel。如果香橙派内核可以在tpc上正常运行的话,ophub仓库内的应该也行了。

@houandy
Copy link

houandy commented Jan 27, 2026

pi3.zip

root@orangepi3:~# uname -a
Linux orangepi3 6.12.58-current-sunxi64 #1 SMP Thu Nov 13 20:34:41 UTC 2025 aarch64 GNU/Linux

尝试一下直接安装ophub这里的内核?现在release的镜像里面应该还是我很久之前patch的主线ketnel。如果香橙派内核可以在tpc上正常运行的话,ophub仓库内的应该也行了。
dtb要改,ophub的dtb在pi3上面也不能启动,
@ophub
initrd.img-6.12.58-current-sunxi64.zip

@houandy
Copy link

houandy commented Jan 27, 2026

内核怎么修改到飞牛社区版里面,飞牛社区版内核缺ac200的驱动,无法驱动无线网,和ophub一样驱动不了axp805。只能用tx6的dtb启动

@13584452567
Copy link
Contributor Author

内核怎么修改到飞牛社区版里面,飞牛社区版内核缺ac200的驱动,无法驱动无线网,和ophub一样驱动不了axp805。只能用tx6的dtb启动

ac200驱动的patch我已经不记得在哪里找过来的了。你只能从我这个提交里面尝试分离了:13584452567/linux-6.6.y@451eeee

@ophub
Copy link
Owner

ophub commented Jan 28, 2026

https://github.com/ophub/linux-h6-6.6.y

dtb修改测试好了可以pr到这个 TQC-A01 内核仓库。
飞牛现在还没开源内核仓库。

@houandy
Copy link

houandy commented Jan 28, 2026

https://github.com/ophub/linux-h6-6.6.y

dtb修改测试好了可以pr到这个 TQC-A01 内核仓库。 飞牛现在还没开源内核仓库。

这个内核不行,我在pi3的内和上面可以正常运行,在这个仓库内核不能启动,我上传了内核和dtb
https://github.com/ophub/amlogic-s9xxx-armbian/pull/1638#issuecomment-3806086662,以及内核配置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.