逍遥游

#设置mac

盒子mac 没有,
直接编辑 /etc/network/interfaces 文件,在 iface eth0 inet static 后面添加一行:
pre-up ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx(要改成的MAC)

1
2
3
4
5
iface eth0 inet static
pre-up ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx(要改成的MAC)
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1

对于wifi 也是一样

另外一种说法 uboot 中设置,不过我试过不行

/boot/uEnv.ini

dtb_name=/dtb/meson-gxl-s905d-phicomm-n1.dtb
bootargs=root=LABEL=ROOT_EMMC rootflags=data=writeback rw console=ttyAML0,115200n8 console=tty0 no_cons…………………..
ethaddr=42:b8:79:09:d8:ed

#设置时区

1
echo "Asia/Shanghai" > /etc/timezone && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

#设置语言环境
/etc/environment

1
2
3
ARCH=arm64
LC_ALL="en_US.UTF-8"
LANG="en_US.UTF-8"