It’s here in this commit. The patch is re-added, it has accidentally been dropped when copying patches from 5.15 to 6.1.
Can you test the 6.1 kernel?
can it be 6.4.11 ? (additional characters to satisfy minimum lenght)
What do you mean? You can either build with openwrt with 5.15 or 6.1 (unless you modify everything ofc)
I have totally custom setup with nixos
is this patch enough or do i need anything else in 6.1? how to check if wed works?
Hi, Dale. Just thinking of moving from the most recent 5.15 snapshot to 6.1, but have no idea how to (I lack the experience and knowledge). Is there a simple way to do this ? Regards
https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem Read this and for 6.1 I just manually change the target kernel version to 6.1 on the mediatek makefile. I’m sure there’s a build argument for that, but I’m too lazy to search for it. Maybe @dangowrt knows
Here’s the boot log
do you know where is located this file ?
Last time i compiled a new firmware from the dangowrt tree i didn’t see any choice, it was “main” and it made a 5.15 kernel firmware…
/target/linux/mediatek /Makefile
You don’t need to edit the Makefile for that. In menuconfig under Global Build Settings you find the checkbox Use the testing kernel version. If that is selected, the current testing kernel version (6.1) will be used instead of the stable kernel (5.15).
If there is no testing kernel available for a selected target, the option simply won’t show.
I assumed there’s an option somewhere, just didn’t find it so I went for the lazy way
it only created an initrams image, is this normal ?
No, there should be squashfs image as well.
OK looks like it was because i set 1024MB for the root filesystem size…once i set it to 256MB it worked
@dangowrt i just compiled the firmware, i can boot.
Sun Aug 27 23:17:15 2023 kern.notice kernel: [ 0.000000] Linux version 6.1.48 (kiki@ubuntu) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r23839-4caa7d2f03) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP
unfortunately, when i insert my cable in lan1 port, nothing happen, it doesn’t work, no light, no connectivity
when i use other lan ports, i have the green lights, but i can’t access the device, still no activity…
root@OpenWrt:/# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq master br-lan state UP qlen 1000
link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
link/ether da:97:ce:d7:e2:9e brd ff:ff:ff:ff:ff:ff
4: wan@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
5: lan1@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN qlen 1000
link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
6: lan2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
7: lan3@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
8: lan4@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
9: sfp2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
10: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:0c:43:26:60:00 brd ff:ff:ff:ff:ff:ff
11: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 06:e1:1b:21:68:44 brd ff:ff:ff:ff:ff:ff
12: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc noqueue state UP qlen 1000
link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
valid_lft forever preferred_lft forever
inet6 fd24:1e9d:ce07::1/60 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::4e1:1bff:fe21:6842/64 scope link
valid_lft forever preferred_lft forever
root@OpenWrt:/#
Are ports logically up?
Show us output of “ip a” and try to set port manually ip with “ip link set lanX up”. Maybe mac (eth0) needs to be set to up too
root@OpenWrt:/# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq master br-lan state UP qlen 1000
link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
link/ether da:97:ce:d7:e2:9e brd ff:ff:ff:ff:ff:ff
4: wan@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
5: lan1@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN qlen 1000
link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
6: lan2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
7: lan3@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
8: lan4@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
9: sfp2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
10: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:0c:43:26:60:00 brd ff:ff:ff:ff:ff:ff
11: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 06:e1:1b:21:68:44 brd ff:ff:ff:ff:ff:ff
12: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc noqueue state UP qlen 1000
link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
valid_lft forever preferred_lft forever
inet6 fd24:1e9d:ce07::1/60 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::4e1:1bff:fe21:6842/64 scope link
valid_lft forever preferred_lft forever