Openwrt for STM32MP1/MP2 series
https://github.com/bootlin/openwrt-feed-st
feeds.conf.default, for ST
src-git st https://github.com/bootlin/openwrt-feed-st.git
.config or make menuconfig
....
...
CONFIG_TARGET_stm32=y
# CONFIG_TARGET_sifiveu is not set
# CONFIG_TARGET_starfive is not set
# CONFIG_TARGET_archs38 is not set
# CONFIG_TARGET_omap is not set
# CONFIG_TARGET_uml is not set
# CONFIG_TARGET_zynq is not set
# CONFIG_TARGET_x86 is not set
CONFIG_TARGET_stm32_stm32mp1=y
# CONFIG_TARGET_stm32_stm32mp2 is not set
# CONFIG_TARGET_MULTI_PROFILE is not set
CONFIG_TARGET_stm32_stm32mp1_DEVICE_stm32mp157f-dk2=y
# CONFIG_TARGET_stm32_stm32mp1_DEVICE_stm32mp135f-dk is not set
# CONFIG_TARGET_stm32_stm32mp1_DEVICE_stm32mp157f-dk2-demo is not set
# CONFIG_TARGET_stm32_stm32mp1_DEVICE_stm32mp135f-dk-demo is not set
CONFIG_HAS_SUBTARGETS=y
CONFIG_HAS_DEVICES=y
CONFIG_TARGET_BOARD="stm32"
CONFIG_TARGET_SUBTARGET="stm32mp1"
CONFIG_TARGET_PROFILE="DEVICE_stm32mp157f-dk2"
CONFIG_TARGET_ARCH_PACKAGES="arm_cortex-a7_neon-vfpv4"
CONFIG_DEFAULT_TARGET_OPTIMIZATION="-Os -pipe"
CONFIG_CPU_TYPE="cortex-a7+neon-vfpv4"
...
...
Wifi setting, 可以直接使用(但很不穩@@,容易斷線)
因為br-lan預設是192.168.1.1
修改, /etc/config/network
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.0.1'
option netmask '255.255.255.0'
option ip6assign '60'
還要設置DNS,/etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver ::1
search lan
設置完後,直接ping www.google.com看看
ref:
1. bootlin/openwrt-feed-st
2. 首发STM32MP135构建OpenWRT系统
沒有留言:
張貼留言