Skip to content
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

Add support for TQC-A01 #1638

Merged
merged 1 commit into from
Aug 21, 2023
Merged

Add support for TQC-A01 #1638

merged 1 commit into from
Aug 21, 2023

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)"
}

@13584452567
Copy link
Contributor Author

接下来就是6.5.1内核了,我的仓库的名字是不是也需要修改成6.5.y?或者我干脆用linux-tqc-a01做仓库名

@ophub
Copy link
Owner

ophub commented Sep 4, 2023

你新建一个仓库吧,6.4.y保留着吧。以后每个内核建一个独立仓库。
linux-6.5.y
main

这样吧

@13584452567
Copy link
Contributor Author

13584452567 commented Sep 4, 2023

你新建一个仓库吧,6.4.y保留着吧。以后每个内核建一个独立仓库。 linux-6.5.y main

这样吧

已经新建,https://github.com/13584452567/linux-6.5.y

@ophub
Copy link
Owner

ophub commented Sep 4, 2023

有6.5.y的config没

@13584452567
Copy link
Contributor Author

有6.5.y的config没

就用之前那份config

@ophub
Copy link
Owner

ophub commented Sep 4, 2023

差异比较大,config不停的提问选项,我本地回车了可能30次,正常跑完了,我放github上跑下,你测试下有什么需要调整的。

@13584452567
Copy link
Contributor Author

差异比较大,config不停的提问选项,我本地回车了可能30次,正常跑完了,我放github上跑下,你测试下有什么需要调整的。

config已经更新,老地址

@ophub
Copy link
Owner

ophub commented Sep 8, 2023

我比较了下,和现在/kernel仓库里的config-6.5文件配置一样。现在编译正常。

@13584452567
Copy link
Contributor Author

内核更新,6.4.16和6.5.2

@ophub
Copy link
Owner

ophub commented Sep 14, 2023

好的

@alanfans
Copy link

收到,马上下载测试

@mejoke1
Copy link

mejoke1 commented Sep 15, 2023

好的

有编译好的镜像来测试吗,内存卡引导[Armbian_23.08.0_allwinner_tqc-a01_lunar_6.5.2_server_2023.09.12.img.gz]镜像 无显示输出、没有ip 应该是卡在哪里了

@alanfans
Copy link

好的

有编译好的镜像来测试吗,内存卡引导[Armbian_23.08.0_allwinner_tqc-a01_lunar_6.5.2_server_2023.09.12.img.gz]镜像 无显示输出、没有ip 应该是卡在哪里了

一样

@13584452567
Copy link
Contributor Author

看起来AC200没能正常驱动。正在排查

@13584452567
Copy link
Contributor Author

13584452567 commented Sep 17, 2023

6.5内核配置需要更新。老地址
麻烦你了🙏

记错了

ophub added a commit that referenced this pull request Oct 8, 2023
ophub added a commit that referenced this pull request Dec 6, 2023
@jockeysoft
Copy link

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

@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,但更换过程过于繁琐,原因正在排查。

@jockeysoft
Copy link

jockeysoft commented Jan 23, 2024 via email

@alanfans
Copy link

今天发现一个h6的新教程,可惜作者没写完
https://zhuanlan.zhihu.com/p/665090775

@alanfans
Copy link

alanfans commented Mar 10, 2024

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

@alanfans
Copy link

全志H6 资料:链接: https://pan.baidu.com/s/1kxn527BPCmAoYu8apNxHaA 提取码: bx91

@ophub
Copy link
Owner

ophub commented Mar 10, 2024

感谢分享

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固件

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.

8 participants