我按照这个方法改了MAC还是无法固定。然后尝试改设备树文件加入 g_ether.dev_addr=12:34:56:78:9a:bc g_ether.host_addr=12:34:56:78:9a:bd :
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2022 Rockchip Electronics Co., Ltd.
*/
#include "rv1106-amp.dtsi"
/ {
chosen {
bootargs = "earlycon=uart8250,mmio32 ...
Search found 4 matches
- 2024-11-25 14:39
- Forum: Luckfox Pico-RV1103/RV1106
- Topic: 为什么RNDIS的MAC地址每次插拔USB都会变?
- Replies: 9
- Views: 4097
- 2024-11-22 3:23
- Forum: Luckfox Pico-RV1103/RV1106
- Topic: 为什么RNDIS的MAC地址每次插拔USB都会变?
- Replies: 9
- Views: 4097
Re: 为什么RNDIS的MAC地址每次插拔USB都会变?
我发现了这个issue:
https://github.com/milkv-duo/duo-buildroot-sdk/issues/27
里面人说:
There is maybe an easier way to do this.
If you set the kernel params something like g_ether.host_addr=00:11:22:33:44:55 g_ether.dev_addr=55:44:33:22:11:00, the ethernet-over-usb driver (CONFIG_USB_ETH) will not generate ...
https://github.com/milkv-duo/duo-buildroot-sdk/issues/27
里面人说:
There is maybe an easier way to do this.
If you set the kernel params something like g_ether.host_addr=00:11:22:33:44:55 g_ether.dev_addr=55:44:33:22:11:00, the ethernet-over-usb driver (CONFIG_USB_ETH) will not generate ...
- 2024-11-22 3:00
- Forum: Luckfox Pico-RV1103/RV1106
- Topic: 为什么RNDIS的MAC地址每次插拔USB都会变?
- Replies: 9
- Views: 4097
Re: 为什么RNDIS的MAC地址每次插拔USB都会变?
我在 /oem/usr/bin/RkLunch.sh 里这样改了,没用:
network_init()
{
ethaddr1=`ifconfig -a | grep "eth.*HWaddr" | awk '{print $5}'`
if [ -f /data/ethaddr.txt ]; then
ethaddr2=`cat /data/ethaddr.txt`
if [ $ethaddr1 == $ethaddr2 ]; then
echo "eth HWaddr cfg ok"
else
ifconfig eth0 down
ifconfig eth0 hw ...
network_init()
{
ethaddr1=`ifconfig -a | grep "eth.*HWaddr" | awk '{print $5}'`
if [ -f /data/ethaddr.txt ]; then
ethaddr2=`cat /data/ethaddr.txt`
if [ $ethaddr1 == $ethaddr2 ]; then
echo "eth HWaddr cfg ok"
else
ifconfig eth0 down
ifconfig eth0 hw ...
- 2024-11-21 13:51
- Forum: Luckfox Pico-RV1103/RV1106
- Topic: 为什么RNDIS的MAC地址每次插拔USB都会变?
- Replies: 9
- Views: 4097
为什么RNDIS的MAC地址每次插拔USB都会变?
我的PC用的是Ubuntu系统,这样每次OS都会认为这是一个新的设备,之前设置的静态IP的参数每次都要重新来过。能不能固定RNDIS的MAC?
