MicroPhase / antsdr_uhd

This repo contains both the uhd host driver and firmware for microphase antsdr devices.
GNU General Public License v3.0
46 stars 30 forks source link

Setting IP address in SD card boot mode? #55

Closed tomtastic closed 8 months ago

tomtastic commented 8 months ago

The documentation says "is the same as starting and changing ip by qspi", but both fw_printenv and fw_setenv fail :

# cat /etc/os-release
NAME=Buildroot
VERSION=v1.0-29-g627fa1ced
ID=buildroot
VERSION_ID=2020.02.8
PRETTY_NAME="Buildroot 2020.02.8"
# fw_printenv -n ipaddr_eth
Cannot open /dev/mtd1: No such file or directory
# fw_setenv ipaddr_eth 192.168.2.1
Cannot open /dev/mtd1: No such file or directory
Error: environment not initialized
lone-boy commented 8 months ago

Hello, this is the case. If your sd card has pluto firmware, it can be set in this way. The default factory sd card is uhd firmware, so to set the ip, you need to use a format such as ip_set 192.168.2.1.

tomtastic commented 8 months ago

Thanks, thats very helpful.

# ip_set 192.168.2.10
/** write ip length succeed **/
/** write ip succeed **/
# strings /sys/bus/i2c/devices/0-0050/eeprom
E200  v1
192.168.2.10