From 070a738f8a536323b46d0e5406dc8b74cb2a6e05 Mon Sep 17 00:00:00 2001 From: "tingzhu.wang@sophgo.com" Date: Thu, 26 Dec 2024 10:18:20 +0800 Subject: [PATCH] change the address of ip Signed-off-by: tingzhu.wang@sophgo.com --- ramdisk/overlay/ap/etc/init.d/S60apveth | 3 +-- ramdisk/overlay/rp/etc/init.d/S60rpveth | 3 +-- scripts/envsetup.sh | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ramdisk/overlay/ap/etc/init.d/S60apveth b/ramdisk/overlay/ap/etc/init.d/S60apveth index 6f1499a7..fe1eb141 100755 --- a/ramdisk/overlay/ap/etc/init.d/S60apveth +++ b/ramdisk/overlay/ap/etc/init.d/S60apveth @@ -9,8 +9,7 @@ start() { printf "set ap veth: " ifconfig veth0 up - sleep 15 - ip=$(devmem 0x1a1900044) + ip=$(devmem 0x1efa100044) ip1=$(( (ip >> 24) & 0xFF )) ip2=$(( (ip >> 16) & 0xFF )) diff --git a/ramdisk/overlay/rp/etc/init.d/S60rpveth b/ramdisk/overlay/rp/etc/init.d/S60rpveth index e693c2dd..fe0e6a66 100755 --- a/ramdisk/overlay/rp/etc/init.d/S60rpveth +++ b/ramdisk/overlay/rp/etc/init.d/S60rpveth @@ -9,8 +9,7 @@ start() { printf "set rp veth: " ifconfig veth0 up - sleep 15 - ip=$(devmem 0x1a1800044) + ip=$(devmem 0x1efa000044) ip1=$(( (ip >> 24) & 0xFF )) ip2=$(( (ip >> 16) & 0xFF )) diff --git a/scripts/envsetup.sh b/scripts/envsetup.sh index 70037318..172c6dd9 100755 --- a/scripts/envsetup.sh +++ b/scripts/envsetup.sh @@ -316,7 +316,7 @@ function build_rv_pcie_zsbl() local err pushd $RV_ZSBL_SRC_DIR - make CROSS_COMPILE=$RISCV64_LINUX_CROSS_COMPILE O=$RV_ZSBL_BUILD_DIR ARCH=riscv bm1690_pcie_defconfig + make CROSS_COMPILE=$RISCV64_LINUX_CROSS_COMPILE O=$RV_ZSBL_BUILD_DIR ARCH=riscv sg2044_defconfig err=$? popd