fix(network): disable cellular IPv6 default-route hijack and set USB MTU 1360
This commit is contained in:
@@ -85,7 +85,7 @@ Last reviewed **2026-10-27**, on the maintainer's Tianma Mi 8 Lite.
|
||||
The tested camera installation uses **kernel 7.2.12-sdm660, r9 boot plus r11
|
||||
sensor module**, with signed `platina-libcamera` **0.7.1-r31** and isolated Mesa
|
||||
26.1.6. The checked-in kernel recipe is the **7.2.12-r26 development candidate**,
|
||||
with device 5-r33 and the public source firmware recipe 2-r5. That combined kernel
|
||||
with device 5-r34 and the public source firmware recipe 2-r5. That combined kernel
|
||||
and a new full 0.8.1 image have **not** passed a complete hardware installation test.
|
||||
Camera packages are built/installed separately; `make images` does not yet add them.
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ maintainer="Platina local project <platina@example.invalid>"
|
||||
pkgname=device-xiaomi-platina
|
||||
pkgdesc="Xiaomi Mi 8 Lite - experimental headless server"
|
||||
pkgver=5
|
||||
pkgrel=33
|
||||
pkgrel=34
|
||||
url="https://github.com/macosmojave2-alt/postmarket-mi8lite-platina"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
@@ -57,7 +57,7 @@ b1dec076f65dc1d7b0497aa858c12c520dc92ec53e6df15a4d9bed4b84f16ece639a42d5dfc4f4d0
|
||||
53d9813f7537bc7d6f2ff7a623ed36c6f1243f3b66bbbc1ac2ebd55897a638e7867e447bea3b0353500d6b1a9a0142e18c1a708f3ff968f8970beedc1175279a disable-suspend.start
|
||||
afc76d9275689bfa47065a14a2f9b0322576d5c269fa46663f4dab5b7299707450f4bbd7e0e6ea926b6afc7b73642dd33bed449d7c0999de53f48d2300d75f8c gpu-firmware.files
|
||||
0180ff3c007765218a50457ff240b8c813995645e775fc04656e46e304d35cf3989198576ccf717de78c49f3e443edb22304923c5ea1df1615ab02ef781412c6 platina-networkmanager.conf
|
||||
9dff6456d5354648c6871c0f6d602b9499c41e10970ac01d5cfe83fcb0e25220b6c26aed241960191587588ae95deb0fee051766cf64d067cd3579f6d5cf73f9 platina-usb.nmconnection
|
||||
620c4473a7dc664f9c8284610dfb823a430e94d6300d6ab002b351b5f8d5e15a1877b64b56052816b748415a81846ff43d8be1ad982f938d07e9b34f52ba44ce platina-usb.nmconnection
|
||||
82272323ff6feb710f32ff34787cd85ccc189c6a8e77bed0de4dd0855f997939b1fd5952c6ab416be59e77a9f5b96bad67417737ae4361af9365d85f46ea29cc platina-usb-network.start
|
||||
c620fb012b2b24ab25929952af2289caaaea6ac96a080b34b48e640c1d39c5662e1cd77bd26f89a864c127e514401243a41d6b7e53c8004c35cec045949f527f platina-avahi.conf
|
||||
"
|
||||
|
||||
@@ -5,8 +5,10 @@ type=ethernet
|
||||
interface-name=usb0
|
||||
autoconnect=true
|
||||
autoconnect-retries=0
|
||||
autoconnect-priority=100
|
||||
|
||||
[ethernet]
|
||||
mtu=1360
|
||||
|
||||
[ipv4]
|
||||
method=manual
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
"ports": "ports/candidate",
|
||||
"kernel": "7.2.12",
|
||||
"kernel_package": "7.2.12-r26",
|
||||
"device_package": "5-r33",
|
||||
"device_package": "5-r34",
|
||||
"firmware_package": "2-r5"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -262,7 +262,7 @@ def build_nmcli_setup_commands(con_name=CONNECTION_NAME, apn='cmnet', ifname='*'
|
||||
'gsm.auto-config', 'yes',
|
||||
'connection.autoconnect', 'no',
|
||||
'ipv4.route-metric', '700',
|
||||
'ipv6.route-metric', '700',
|
||||
'ipv6.method', 'disabled',
|
||||
'connection.interface-name', ifname if ifname != '*' else ''])
|
||||
else:
|
||||
cmd = ['nmcli', 'connection', 'add',
|
||||
@@ -273,7 +273,7 @@ def build_nmcli_setup_commands(con_name=CONNECTION_NAME, apn='cmnet', ifname='*'
|
||||
'gsm.auto-config', 'yes',
|
||||
'connection.autoconnect', 'no',
|
||||
'ipv4.route-metric', '700',
|
||||
'ipv6.route-metric', '700']
|
||||
'ipv6.method', 'disabled']
|
||||
commands.append(cmd)
|
||||
return commands
|
||||
|
||||
|
||||
@@ -81,9 +81,9 @@ class CellularSetupTests(unittest.TestCase):
|
||||
self.assertIn('ipv4.route-metric', cmds[0])
|
||||
m_idx = cmds[0].index('ipv4.route-metric')
|
||||
self.assertEqual(cmds[0][m_idx + 1], '700')
|
||||
self.assertIn('ipv6.route-metric', cmds[0])
|
||||
m6_idx = cmds[0].index('ipv6.route-metric')
|
||||
self.assertEqual(cmds[0][m6_idx + 1], '700')
|
||||
self.assertIn('ipv6.method', cmds[0])
|
||||
m6_idx = cmds[0].index('ipv6.method')
|
||||
self.assertEqual(cmds[0][m6_idx + 1], 'disabled')
|
||||
|
||||
def test_build_nmcli_setup_commands_existing(self):
|
||||
cmds = cellular.build_nmcli_setup_commands(
|
||||
@@ -102,9 +102,9 @@ class CellularSetupTests(unittest.TestCase):
|
||||
self.assertIn('ipv4.route-metric', cmds[0])
|
||||
m_idx = cmds[0].index('ipv4.route-metric')
|
||||
self.assertEqual(cmds[0][m_idx + 1], '700')
|
||||
self.assertIn('ipv6.route-metric', cmds[0])
|
||||
m6_idx = cmds[0].index('ipv6.route-metric')
|
||||
self.assertEqual(cmds[0][m6_idx + 1], '700')
|
||||
self.assertIn('ipv6.method', cmds[0])
|
||||
m6_idx = cmds[0].index('ipv6.method')
|
||||
self.assertEqual(cmds[0][m6_idx + 1], 'disabled')
|
||||
|
||||
def test_configure_cellular_invokes_executor(self):
|
||||
recorded_calls = []
|
||||
|
||||
Reference in New Issue
Block a user