wifi init
This commit is contained in:
parent
de2850b022
commit
24a45772fc
@ -1,5 +1,10 @@
|
|||||||
RK_YOCTO_CFG="rockchip-rk3528-evb"
|
RK_YOCTO_CFG="rockchip-rk3528-evb"
|
||||||
|
RK_ROOTFS_SYSTEM_DEBIAN=y
|
||||||
|
RK_ROOTFS_HOSTNAME_CUSTOM=y
|
||||||
|
RK_ROOTFS_HOSTNAME="armsom-sige1"
|
||||||
|
RK_ROOTFS_LOCALE_CUSTOM=y
|
||||||
RK_WIFIBT_CHIP="rtl8852bs"
|
RK_WIFIBT_CHIP="rtl8852bs"
|
||||||
|
RK_KERNEL_VERSION="5.10"
|
||||||
RK_KERNEL_DTS_NAME="rk3528-armsom-sige1"
|
RK_KERNEL_DTS_NAME="rk3528-armsom-sige1"
|
||||||
RK_PARAMETER="parameter-buildroot-fit.txt"
|
RK_PARAMETER="parameter-buildroot-fit.txt"
|
||||||
RK_USE_FIT_IMG=y
|
RK_USE_FIT_IMG=y
|
||||||
|
|||||||
@ -52,15 +52,23 @@
|
|||||||
vin-supply = <&vcc5v0_sys_s0>;
|
vin-supply = <&vcc5v0_sys_s0>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sdio_pwrseq: sdio-pwrseq {
|
||||||
|
compatible = "mmc-pwrseq-simple";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&wifi_enable_h &clkm0_32k_out>;
|
||||||
|
reset-gpios = <&gpio1 RK_PA6 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
wireless_bluetooth: wireless-bluetooth {
|
wireless_bluetooth: wireless-bluetooth {
|
||||||
compatible = "bluetooth-platdata";
|
compatible = "bluetooth-platdata";
|
||||||
uart_rts_gpios = <&gpio3 RK_PA2 GPIO_ACTIVE_LOW>;
|
//wifi-bt-power-toggle;
|
||||||
|
uart_rts_gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_LOW>;
|
||||||
pinctrl-names = "default", "rts_gpio";
|
pinctrl-names = "default", "rts_gpio";
|
||||||
pinctrl-0 = <&uart2m0_rtsn>;
|
pinctrl-0 = <&uart2m1_rtsn>;
|
||||||
pinctrl-1 = <&uart2m0_gpios>;
|
pinctrl-1 = <&uart2m1_rts_gpio>;
|
||||||
BT,reset_gpio = <&gpio3 RK_PC2 GPIO_ACTIVE_HIGH>;
|
BT,power_gpio = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||||
BT,wake_gpio = <&gpio3 RK_PB4 GPIO_ACTIVE_HIGH>;
|
//BT,reset_gpio = <&gpio3 RK_PC2 GPIO_ACTIVE_HIGH>;
|
||||||
BT,wake_host_irq = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
|
//BT,wake_host_irq = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -69,9 +77,8 @@
|
|||||||
rockchip,grf = <&grf>;
|
rockchip,grf = <&grf>;
|
||||||
wifi_chip_type = "rtl8852bs";
|
wifi_chip_type = "rtl8852bs";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&wifi_enable &wifi_host_wake_irq &clkm0_32k_out>;
|
pinctrl-0 = <&wifi_host_wake_irq>;
|
||||||
WIFI,reset_gpio = <&gpio3 RK_PB2 GPIO_ACTIVE_HIGH>;
|
WIFI,host_wake_irq = <&gpio1 RK_PA7 GPIO_ACTIVE_HIGH>;
|
||||||
WIFI,host_wake_irq = <&gpio3 RK_PB3 GPIO_ACTIVE_HIGH>;
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -89,10 +96,28 @@
|
|||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&sdio0 {
|
||||||
|
max-frequency = <200000000>;
|
||||||
|
no-sd;
|
||||||
|
no-mmc;
|
||||||
|
supports-sdio;
|
||||||
|
bus-width = <4>;
|
||||||
|
disable-wp;
|
||||||
|
cap-sd-highspeed;
|
||||||
|
cap-sdio-irq;
|
||||||
|
keep-power-in-suspend;
|
||||||
|
non-removable;
|
||||||
|
mmc-pwrseq = <&sdio_pwrseq>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
|
||||||
|
sd-uhs-sdr104;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&uart2 {
|
&uart2 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&uart2m0_xfer &uart2m0_ctsn>;
|
pinctrl-0 = <&uart2m1_xfer &uart2m1_ctsn>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&usbdrd_dwc3 {
|
&usbdrd_dwc3 {
|
||||||
@ -104,23 +129,21 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&pinctrl {
|
&pinctrl {
|
||||||
|
sdio-pwrseq {
|
||||||
|
wifi_enable_h: wifi-enable-h {
|
||||||
|
rockchip,pins = <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
wireless-wlan {
|
wireless-wlan {
|
||||||
wifi_perst: wifi-perst {
|
|
||||||
rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
||||||
};
|
|
||||||
|
|
||||||
wifi_enable: wifi-enable {
|
|
||||||
rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_output_high>;
|
|
||||||
};
|
|
||||||
|
|
||||||
wifi_host_wake_irq: wifi-host-wake-irq {
|
wifi_host_wake_irq: wifi-host-wake-irq {
|
||||||
rockchip,pins = <3 RK_PB3 RK_FUNC_GPIO &pcfg_pull_down>;
|
rockchip,pins = <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_down>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
wireless-bluetooth {
|
wireless-bluetooth {
|
||||||
uart2m0_gpios: uart2m0-gpios {
|
uart2m1_rts_gpio: uart2m1-rts-gpio {
|
||||||
rockchip,pins = <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
|
rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# Automatically generated file; DO NOT EDIT.
|
# Automatically generated file; DO NOT EDIT.
|
||||||
# Rockchip Linux SDK Configuration
|
# Rockchip Linux SDK Configuration
|
||||||
#
|
#
|
||||||
RK_DEFCONFIG="/home/lhd/project/3528/linux3528/device/rockchip/.chips/rk3528/rockchip_rk3528_evb1_ddr4_v10_defconfig"
|
RK_DEFCONFIG="/home/lhd/project/3528/linux3528/device/rockchip/.chips/rk3528/rockchip_rk3528_armsom_sige1_defconfig"
|
||||||
RK_CHIP_FAMILY="rk3528"
|
RK_CHIP_FAMILY="rk3528"
|
||||||
RK_CHIP="rk3528"
|
RK_CHIP="rk3528"
|
||||||
|
|
||||||
@ -21,9 +21,9 @@ RK_DEBIAN_VERSION="bullseye"
|
|||||||
RK_DEBIAN_ARCH="arm64"
|
RK_DEBIAN_ARCH="arm64"
|
||||||
RK_DEBIAN_ARM64=y
|
RK_DEBIAN_ARM64=y
|
||||||
# RK_DEBIAN_ARMHF is not set
|
# RK_DEBIAN_ARMHF is not set
|
||||||
RK_ROOTFS_SYSTEM="buildroot"
|
RK_ROOTFS_SYSTEM="debian"
|
||||||
RK_ROOTFS_SYSTEM_BUILDROOT=y
|
# RK_ROOTFS_SYSTEM_BUILDROOT is not set
|
||||||
# RK_ROOTFS_SYSTEM_DEBIAN is not set
|
RK_ROOTFS_SYSTEM_DEBIAN=y
|
||||||
# RK_ROOTFS_SYSTEM_YOCTO is not set
|
# RK_ROOTFS_SYSTEM_YOCTO is not set
|
||||||
RK_ROOTFS_TYPE="ext4"
|
RK_ROOTFS_TYPE="ext4"
|
||||||
# RK_ROOTFS_INITRD is not set
|
# RK_ROOTFS_INITRD is not set
|
||||||
@ -31,12 +31,14 @@ RK_ROOTFS_TYPE="ext4"
|
|||||||
#
|
#
|
||||||
# Post rootfs installs
|
# Post rootfs installs
|
||||||
#
|
#
|
||||||
RK_ROOTFS_HOSTNAME_DEFAULT=y
|
# RK_ROOTFS_HOSTNAME_DEFAULT is not set
|
||||||
# RK_ROOTFS_HOSTNAME_ORIGINAL is not set
|
# RK_ROOTFS_HOSTNAME_ORIGINAL is not set
|
||||||
# RK_ROOTFS_HOSTNAME_CUSTOM is not set
|
RK_ROOTFS_HOSTNAME_CUSTOM=y
|
||||||
RK_ROOTFS_LOCALE_DEFAULT=y
|
RK_ROOTFS_HOSTNAME="armsom-sige1"
|
||||||
|
# RK_ROOTFS_LOCALE_DEFAULT is not set
|
||||||
# RK_ROOTFS_LOCALE_ORIGINAL is not set
|
# RK_ROOTFS_LOCALE_ORIGINAL is not set
|
||||||
# RK_ROOTFS_LOCALE_CUSTOM is not set
|
RK_ROOTFS_LOCALE_CUSTOM=y
|
||||||
|
RK_ROOTFS_LOCALE="en_US.UTF-8"
|
||||||
RK_DISK_HELPERS_DEFAULT=y
|
RK_DISK_HELPERS_DEFAULT=y
|
||||||
# RK_DISK_HELPERS_MOUNTALL is not set
|
# RK_DISK_HELPERS_MOUNTALL is not set
|
||||||
# RK_DISK_HELPERS_RESIZEALL is not set
|
# RK_DISK_HELPERS_RESIZEALL is not set
|
||||||
@ -67,7 +69,7 @@ RK_USB_ADBD_RSA_KEY=""
|
|||||||
# RK_USB_UMS is not set
|
# RK_USB_UMS is not set
|
||||||
RK_USB_EXTRA=""
|
RK_USB_EXTRA=""
|
||||||
RK_USB_HOOKS=""
|
RK_USB_HOOKS=""
|
||||||
RK_WIFIBT_CHIP="AP6275S"
|
RK_WIFIBT_CHIP="rtl8852bs"
|
||||||
RK_ROOTFS_OVERLAY_DIRS=y
|
RK_ROOTFS_OVERLAY_DIRS=y
|
||||||
RK_EXTRA_FONTS_DEFAULT=y
|
RK_EXTRA_FONTS_DEFAULT=y
|
||||||
# RK_EXTRA_FONTS_ENABLED is not set
|
# RK_EXTRA_FONTS_ENABLED is not set
|
||||||
@ -108,7 +110,7 @@ RK_KERNEL_ARCH="arm64"
|
|||||||
RK_KERNEL_ARM64=y
|
RK_KERNEL_ARM64=y
|
||||||
# RK_KERNEL_ARM32 is not set
|
# RK_KERNEL_ARM32 is not set
|
||||||
RK_KERNEL_CFG_FRAGMENTS=""
|
RK_KERNEL_CFG_FRAGMENTS=""
|
||||||
RK_KERNEL_DTS_NAME="rk3528-evb1-ddr4-v10-linux"
|
RK_KERNEL_DTS_NAME="rk3528-armsom-sige1"
|
||||||
RK_KERNEL_DTS_DIR="kernel/arch/arm64/boot/dts/rockchip"
|
RK_KERNEL_DTS_DIR="kernel/arch/arm64/boot/dts/rockchip"
|
||||||
RK_KERNEL_DTS="$RK_KERNEL_DTS_DIR/$RK_KERNEL_DTS_NAME.dts"
|
RK_KERNEL_DTS="$RK_KERNEL_DTS_DIR/$RK_KERNEL_DTS_NAME.dts"
|
||||||
RK_KERNEL_DTB="$RK_KERNEL_DTS_DIR/$RK_KERNEL_DTS_NAME.dtb"
|
RK_KERNEL_DTB="$RK_KERNEL_DTS_DIR/$RK_KERNEL_DTS_NAME.dtb"
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# Automatically generated file; DO NOT EDIT.
|
# Automatically generated file; DO NOT EDIT.
|
||||||
# Rockchip Linux SDK Configuration
|
# Rockchip Linux SDK Configuration
|
||||||
#
|
#
|
||||||
RK_DEFCONFIG="/home/lhd/project/3528/linux3528/device/rockchip/.chips/rk3528/rockchip_rk3528_evb1_ddr4_v10_defconfig"
|
RK_DEFCONFIG="/home/lhd/project/3528/linux3528/device/rockchip/.chips/rk3528/rockchip_rk3528_armsom_sige1_defconfig"
|
||||||
RK_CHIP_FAMILY="rk3528"
|
RK_CHIP_FAMILY="rk3528"
|
||||||
RK_CHIP="rk3528"
|
RK_CHIP="rk3528"
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ RK_USB_ADBD_RSA_KEY=""
|
|||||||
# RK_USB_UMS is not set
|
# RK_USB_UMS is not set
|
||||||
RK_USB_EXTRA=""
|
RK_USB_EXTRA=""
|
||||||
RK_USB_HOOKS=""
|
RK_USB_HOOKS=""
|
||||||
RK_WIFIBT_CHIP="AP6275S"
|
RK_WIFIBT_CHIP="rtl8852bs"
|
||||||
RK_ROOTFS_OVERLAY_DIRS=y
|
RK_ROOTFS_OVERLAY_DIRS=y
|
||||||
RK_EXTRA_FONTS_DEFAULT=y
|
RK_EXTRA_FONTS_DEFAULT=y
|
||||||
# RK_EXTRA_FONTS_ENABLED is not set
|
# RK_EXTRA_FONTS_ENABLED is not set
|
||||||
@ -108,7 +108,7 @@ RK_KERNEL_ARCH="arm64"
|
|||||||
RK_KERNEL_ARM64=y
|
RK_KERNEL_ARM64=y
|
||||||
# RK_KERNEL_ARM32 is not set
|
# RK_KERNEL_ARM32 is not set
|
||||||
RK_KERNEL_CFG_FRAGMENTS=""
|
RK_KERNEL_CFG_FRAGMENTS=""
|
||||||
RK_KERNEL_DTS_NAME="rk3528-evb1-ddr4-v10-linux"
|
RK_KERNEL_DTS_NAME="rk3528-armsom-sige1"
|
||||||
RK_KERNEL_DTS_DIR="kernel/arch/arm64/boot/dts/rockchip"
|
RK_KERNEL_DTS_DIR="kernel/arch/arm64/boot/dts/rockchip"
|
||||||
RK_KERNEL_DTS="$RK_KERNEL_DTS_DIR/$RK_KERNEL_DTS_NAME.dts"
|
RK_KERNEL_DTS="$RK_KERNEL_DTS_DIR/$RK_KERNEL_DTS_NAME.dts"
|
||||||
RK_KERNEL_DTB="$RK_KERNEL_DTS_DIR/$RK_KERNEL_DTS_NAME.dtb"
|
RK_KERNEL_DTB="$RK_KERNEL_DTS_DIR/$RK_KERNEL_DTS_NAME.dtb"
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
../device/rockchip/.chips/rk3528/rockchip_rk3528_evb1_ddr4_v10_defconfig
|
../device/rockchip/.chips/rk3528/rockchip_rk3528_armsom_sige1_defconfig
|
||||||
@ -1 +1 @@
|
|||||||
sessions/2024-04-20_11-16-29/initial.env
|
sessions/2024-04-20_12-01-22/initial.env
|
||||||
BIN
output/kconf/lxdialog/checklist.o
Normal file
BIN
output/kconf/lxdialog/checklist.o
Normal file
Binary file not shown.
BIN
output/kconf/lxdialog/inputbox.o
Normal file
BIN
output/kconf/lxdialog/inputbox.o
Normal file
Binary file not shown.
BIN
output/kconf/lxdialog/menubox.o
Normal file
BIN
output/kconf/lxdialog/menubox.o
Normal file
Binary file not shown.
BIN
output/kconf/lxdialog/textbox.o
Normal file
BIN
output/kconf/lxdialog/textbox.o
Normal file
Binary file not shown.
BIN
output/kconf/lxdialog/util.o
Normal file
BIN
output/kconf/lxdialog/util.o
Normal file
Binary file not shown.
BIN
output/kconf/lxdialog/yesno.o
Normal file
BIN
output/kconf/lxdialog/yesno.o
Normal file
Binary file not shown.
BIN
output/kconf/mconf
Executable file
BIN
output/kconf/mconf
Executable file
Binary file not shown.
BIN
output/kconf/mconf.o
Normal file
BIN
output/kconf/mconf.o
Normal file
Binary file not shown.
104
output/sessions/2024-04-20_12-01-22/initial.env
Normal file
104
output/sessions/2024-04-20_12-01-22/initial.env
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
SHELL=/bin/bash
|
||||||
|
LANGUAGE=zh_CN:zh
|
||||||
|
PWD=/home/lhd/project/3528/linux3528
|
||||||
|
LOGNAME=lhd
|
||||||
|
XDG_SESSION_TYPE=tty
|
||||||
|
MOTD_SHOWN=pam
|
||||||
|
HOME=/home/lhd
|
||||||
|
LANG=zh_CN.UTF-8
|
||||||
|
SSH_CONNECTION=192.168.100.198 49215 192.168.100.199 22
|
||||||
|
XDG_SESSION_CLASS=user
|
||||||
|
TERM=xterm
|
||||||
|
USER=lhd
|
||||||
|
DISPLAY=localhost:14.0
|
||||||
|
SHLVL=2
|
||||||
|
XDG_SESSION_ID=407
|
||||||
|
XDG_RUNTIME_DIR=/run/user/1001
|
||||||
|
SSH_CLIENT=192.168.100.198 49215 22
|
||||||
|
XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop
|
||||||
|
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
|
||||||
|
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
|
||||||
|
SSH_TTY=/dev/pts/4
|
||||||
|
OLDPWD=/home/lhd/project/3528/linux3528/device/rockchip/rk3528
|
||||||
|
BASH_FUNC_check_config%%=() { unset missing;
|
||||||
|
for var in $@;
|
||||||
|
do
|
||||||
|
eval [ \$$var ] && continue;
|
||||||
|
missing="$missing $var";
|
||||||
|
done;
|
||||||
|
[ -z "$missing" ] && return 0;
|
||||||
|
echo "Skipping $(basename "${BASH_SOURCE[1]}") - ${FUNCNAME[1]} for missing configs: $missing.";
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
BASH_FUNC_kernel_version_real%%=() { [ -d kernel ] || return 0;
|
||||||
|
VERSION_KEYS="VERSION PATCHLEVEL";
|
||||||
|
VERSION="";
|
||||||
|
for k in $VERSION_KEYS;
|
||||||
|
do
|
||||||
|
v=$(grep "^$k = " kernel/Makefile | cut -d' ' -f3);
|
||||||
|
VERSION=${VERSION:+${VERSION}.}$v;
|
||||||
|
done;
|
||||||
|
echo $VERSION
|
||||||
|
}
|
||||||
|
BASH_FUNC_get_toolchain%%=() { TOOLCHAIN_ARCH="${1/arm64/aarch64}";
|
||||||
|
MACHINE=$(uname -m);
|
||||||
|
if [ "$MACHINE" = x86_64 ]; then
|
||||||
|
TOOLCHAIN_VENDOR="${2:-none}";
|
||||||
|
TOOLCHAIN_OS="${3:-linux}";
|
||||||
|
if [ "$RK_CHIP_FAMILY" = "rv1126_rv1109" ]; then
|
||||||
|
TOOLCHAIN_VENDOR=rockchip;
|
||||||
|
fi;
|
||||||
|
TOOLCHAIN_DIR="$(realpath $SDK_DIR/prebuilts/gcc/*/$TOOLCHAIN_ARCH)";
|
||||||
|
GCC="$(find "$TOOLCHAIN_DIR"/*/bin -name "*gcc" 2>/dev/null | grep -m 1 "$TOOLCHAIN_VENDOR-$TOOLCHAIN_OS-[^-]*-gcc")";
|
||||||
|
if [ ! -x "$GCC" ]; then
|
||||||
|
echo "No prebuilt GCC toolchain!";
|
||||||
|
exit 1;
|
||||||
|
fi;
|
||||||
|
else
|
||||||
|
if [ "$TOLLCHAIN_ARCH" = aarch64 -a "$MACHINE" != aarch64 ]; then
|
||||||
|
GCC=aarch64-linux-gnu-gcc;
|
||||||
|
else
|
||||||
|
if [ "$TOLLCHAIN_ARCH" = arm -a "$MACHINE" != armv7l ]; then
|
||||||
|
GCC=arm-linux-gnueabihf-gcc;
|
||||||
|
else
|
||||||
|
GCC=gcc;
|
||||||
|
fi;
|
||||||
|
fi;
|
||||||
|
fi;
|
||||||
|
echo "${GCC%gcc}"
|
||||||
|
}
|
||||||
|
BASH_FUNC_load_config%%=() { [ -r "$RK_CONFIG" ] || return 0;
|
||||||
|
for var in $@;
|
||||||
|
do
|
||||||
|
export $(grep "^$var=" "$RK_CONFIG" | tr -d '"' || true) &> /dev/null;
|
||||||
|
done
|
||||||
|
}
|
||||||
|
BASH_FUNC_rroot%%=() { cd "$SDK_DIR"
|
||||||
|
}
|
||||||
|
BASH_FUNC_start_log%%=() { LOG_FILE="$RK_LOG_DIR/${2:-$1_$(date +%F_%H-%M-%S)}.log";
|
||||||
|
ln -rsf "$LOG_FILE" "$RK_LOG_DIR/$1.log";
|
||||||
|
echo "# $(date +"%F %T")" >> "$LOG_FILE";
|
||||||
|
echo "$LOG_FILE"
|
||||||
|
}
|
||||||
|
BASH_FUNC_finish_build%%=() { echo -e "\e[35mRunning $(basename "${BASH_SOURCE[1]}") - ${@:-${FUNCNAME[1]}} succeeded.\e[0m";
|
||||||
|
cd "$SDK_DIR"
|
||||||
|
}
|
||||||
|
BASH_FUNC_rscript%%=() { cd "$SCRIPTS_DIR"
|
||||||
|
}
|
||||||
|
BASH_FUNC_rout%%=() { cd "$RK_OUTDIR"
|
||||||
|
}
|
||||||
|
BASH_FUNC_rcommon%%=() { cd "$COMMON_DIR"
|
||||||
|
}
|
||||||
|
BASH_FUNC_rchip%%=() { cd "$(realpath "$CHIP_DIR")"
|
||||||
|
}
|
||||||
|
BASH_FUNC_kernel_version%%=() { [ -d kernel ] || return 0;
|
||||||
|
KERNEL_DIR="$(basename "$(realpath kernel)")";
|
||||||
|
case "$KERNEL_DIR" in
|
||||||
|
kernel-*)
|
||||||
|
echo ${KERNEL_DIR#kernel-};
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
esac;
|
||||||
|
kernel_version_real
|
||||||
|
}
|
||||||
|
_=/usr/bin/env
|
||||||
@ -1 +1 @@
|
|||||||
2024-04-20_11-16-29
|
2024-04-20_12-01-22
|
||||||
Loading…
x
Reference in New Issue
Block a user