mirror of
https://github.com/m5stack/CoreMP135_buildroot-external-st.git
synced 2026-05-20 11:24:38 -07:00
[add] CoreMP135 custom
This commit is contained in:
@@ -1 +1,2 @@
|
||||
source "$BR2_EXTERNAL_ST_PATH/package/m4projects/Config.in"
|
||||
source "$BR2_EXTERNAL_ST_PATH/package/tinyalsa_custom/Config.in"
|
||||
|
||||
@@ -531,6 +531,7 @@
|
||||
pinctrl-1 = <&usart6_sleep_pins_mx>;
|
||||
/delete-property/dmas;
|
||||
/delete-property/dma-names;
|
||||
rx-tx-swap;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -1253,13 +1254,13 @@
|
||||
usart6_pins_mx: usart6_mx-0 {
|
||||
pins1 {
|
||||
pinmux = <STM32_PINMUX('C', 6, AF7)>; /* USART6_TX */
|
||||
bias-disable;
|
||||
drive-push-pull;
|
||||
slew-rate = <0>;
|
||||
bias-pull-up;
|
||||
};
|
||||
pins2 {
|
||||
pinmux = <STM32_PINMUX('C', 7, AF7)>; /* USART6_RX */
|
||||
bias-pull-up;
|
||||
bias-disable;
|
||||
drive-push-pull;
|
||||
slew-rate = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -611,6 +611,7 @@
|
||||
&usart6 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&usart6_pins_mx>;
|
||||
rx-tx-swap;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -664,13 +665,13 @@
|
||||
usart6_pins_mx: usart6_mx-0 {
|
||||
pins1 {
|
||||
pinmux = <STM32_PINMUX('C', 6, AF7)>; /* USART6_TX */
|
||||
bias-disable;
|
||||
drive-push-pull;
|
||||
slew-rate = <0>;
|
||||
bias-pull-up;
|
||||
};
|
||||
pins2 {
|
||||
pinmux = <STM32_PINMUX('C', 7, AF7)>; /* USART6_RX */
|
||||
bias-pull-up;
|
||||
bias-disable;
|
||||
drive-push-pull;
|
||||
slew-rate = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -291,6 +291,7 @@
|
||||
&usart6 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&usart6_pins_mx>;
|
||||
rx-tx-swap;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -311,13 +312,13 @@
|
||||
usart6_pins_mx: usart6_mx-0 {
|
||||
pins1 {
|
||||
pinmux = <STM32_PINMUX('C', 6, AF7)>; /* USART6_TX */
|
||||
bias-disable;
|
||||
drive-push-pull;
|
||||
slew-rate = <0>;
|
||||
bias-pull-up;
|
||||
};
|
||||
pins2 {
|
||||
pinmux = <STM32_PINMUX('C', 7, AF7)>; /* USART6_RX */
|
||||
bias-pull-up;
|
||||
bias-disable;
|
||||
drive-push-pull;
|
||||
slew-rate = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -257,6 +257,7 @@
|
||||
pinctrl-2 = <&usart6_idle_pins_mx>;
|
||||
/delete-property/dmas;
|
||||
/delete-property/dma-names;
|
||||
rx-tx-swap;
|
||||
status = "okay";
|
||||
|
||||
u-boot,dm-pre-reloc;
|
||||
@@ -426,14 +427,14 @@
|
||||
pins1 {
|
||||
u-boot,dm-pre-reloc;
|
||||
pinmux = <STM32_PINMUX('C', 6, AF7)>; /* USART6_TX */
|
||||
bias-disable;
|
||||
drive-push-pull;
|
||||
slew-rate = <0>;
|
||||
bias-pull-up;
|
||||
};
|
||||
pins2 {
|
||||
u-boot,dm-pre-reloc;
|
||||
pinmux = <STM32_PINMUX('C', 7, AF7)>; /* USART6_RX */
|
||||
bias-pull-up;
|
||||
bias-disable;
|
||||
drive-push-pull;
|
||||
slew-rate = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -543,6 +543,7 @@
|
||||
pinctrl-1 = <&usart6_sleep_pins_mx>;
|
||||
/delete-property/dmas;
|
||||
/delete-property/dma-names;
|
||||
rx-tx-swap;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -1265,13 +1266,13 @@
|
||||
usart6_pins_mx: usart6_mx-0 {
|
||||
pins1 {
|
||||
pinmux = <STM32_PINMUX('C', 6, AF7)>; /* USART6_TX */
|
||||
bias-disable;
|
||||
drive-push-pull;
|
||||
slew-rate = <0>;
|
||||
bias-pull-up;
|
||||
};
|
||||
pins2 {
|
||||
pinmux = <STM32_PINMUX('C', 7, AF7)>; /* USART6_RX */
|
||||
bias-pull-up;
|
||||
bias-disable;
|
||||
drive-push-pull;
|
||||
slew-rate = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -612,6 +612,7 @@
|
||||
&usart6 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&usart6_pins_mx>;
|
||||
rx-tx-swap;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -673,13 +674,13 @@
|
||||
usart6_pins_mx: usart6_mx-0 {
|
||||
pins1 {
|
||||
pinmux = <STM32_PINMUX('C', 6, AF7)>; /* USART6_TX */
|
||||
bias-disable;
|
||||
drive-push-pull;
|
||||
slew-rate = <0>;
|
||||
bias-pull-up;
|
||||
};
|
||||
pins2 {
|
||||
pinmux = <STM32_PINMUX('C', 7, AF7)>; /* USART6_RX */
|
||||
bias-pull-up;
|
||||
bias-disable;
|
||||
drive-push-pull;
|
||||
slew-rate = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -289,6 +289,7 @@
|
||||
&usart6 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&usart6_pins_mx>;
|
||||
rx-tx-swap;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -312,13 +313,13 @@
|
||||
usart6_pins_mx: usart6_mx-0 {
|
||||
pins1 {
|
||||
pinmux = <STM32_PINMUX('C', 6, AF7)>; /* USART6_TX */
|
||||
bias-disable;
|
||||
drive-push-pull;
|
||||
slew-rate = <0>;
|
||||
bias-pull-up;
|
||||
};
|
||||
pins2 {
|
||||
pinmux = <STM32_PINMUX('C', 7, AF7)>; /* USART6_RX */
|
||||
bias-pull-up;
|
||||
bias-disable;
|
||||
drive-push-pull;
|
||||
slew-rate = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -285,6 +285,7 @@
|
||||
pinctrl-2 = <&usart6_idle_pins_mx>;
|
||||
/delete-property/dmas;
|
||||
/delete-property/dma-names;
|
||||
rx-tx-swap;
|
||||
status = "okay";
|
||||
|
||||
u-boot,dm-pre-reloc;
|
||||
@@ -452,14 +453,14 @@
|
||||
pins1 {
|
||||
u-boot,dm-pre-reloc;
|
||||
pinmux = <STM32_PINMUX('C', 6, AF7)>; /* USART6_TX */
|
||||
bias-disable;
|
||||
drive-push-pull;
|
||||
slew-rate = <0>;
|
||||
bias-pull-up;
|
||||
};
|
||||
pins2 {
|
||||
u-boot,dm-pre-reloc;
|
||||
pinmux = <STM32_PINMUX('C', 7, AF7)>; /* USART6_RX */
|
||||
bias-pull-up;
|
||||
bias-disable;
|
||||
drive-push-pull;
|
||||
slew-rate = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Regular → Executable
Executable
+30
@@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
|
||||
start() {
|
||||
usr/local/m5stack/lt8618sxb_mcu_config &> /dev/null &
|
||||
/sbin/agetty --noclear tty1 linux 2>&1 > /dev/null &
|
||||
}
|
||||
stop() {
|
||||
echo "no" > /dev/null
|
||||
}
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
+5
-5
@@ -1,16 +1,16 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Starts /etc/rc.load.
|
||||
# Starts /etc/rc.local.
|
||||
#
|
||||
|
||||
start() {
|
||||
printf "Stopping /etc/rc.load"
|
||||
/etc/rc.load start
|
||||
printf "Stopping /etc/rc.local"
|
||||
/etc/rc.local start
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
stop() {
|
||||
printf "Stopping /etc/rc.load"
|
||||
# /etc/rc.load stop
|
||||
printf "Stopping /etc/rc.local"
|
||||
# /etc/rc.local stop
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
restart() {
|
||||
@@ -0,0 +1,41 @@
|
||||
# /etc/inittab
|
||||
#
|
||||
# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
|
||||
#
|
||||
# Note: BusyBox init doesn't support runlevels. The runlevels field is
|
||||
# completely ignored by BusyBox init. If you want runlevels, use
|
||||
# sysvinit.
|
||||
#
|
||||
# Format for each entry: <id>:<runlevels>:<action>:<process>
|
||||
#
|
||||
# id == tty to run on, or empty for /dev/console
|
||||
# runlevels == ignored
|
||||
# action == one of sysinit, respawn, askfirst, wait, and once
|
||||
# process == program to run
|
||||
|
||||
# Startup the system
|
||||
::sysinit:/bin/mount -t proc proc /proc
|
||||
::sysinit:/bin/mount -o remount,rw /
|
||||
::sysinit:/bin/mkdir -p /dev/pts /dev/shm
|
||||
::sysinit:/bin/mount -a
|
||||
::sysinit:/bin/mkdir -p /run/lock/subsys
|
||||
::sysinit:/sbin/swapon -a
|
||||
null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd
|
||||
null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin
|
||||
null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout
|
||||
null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
|
||||
::sysinit:/bin/hostname -F /etc/hostname
|
||||
# now run any rc scripts
|
||||
::sysinit:/etc/init.d/rcS
|
||||
|
||||
# Put a getty on the serial port
|
||||
console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL
|
||||
console::respawn:/sbin/getty -L ttyGS0 115200 vt100 # GENERIC_SERIAL
|
||||
|
||||
# Stuff to do for the 3-finger salute
|
||||
#::ctrlaltdel:/sbin/reboot
|
||||
|
||||
# Stuff to do before rebooting
|
||||
::shutdown:/etc/init.d/rcK
|
||||
::shutdown:/sbin/swapoff -a
|
||||
::shutdown:/bin/umount -a -r
|
||||
@@ -15,4 +15,4 @@ snd_soc_stm32_sai
|
||||
snd_soc_stm32_sai_sub
|
||||
cdc-acm
|
||||
libcomposite
|
||||
g_serial
|
||||
g_serial
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
#!/bin/sh
|
||||
[ "$1" = "stop" ] && exit 0
|
||||
modprobe fb_ili9341_m5
|
||||
FRAMEBUFFER=/dev/fb1 fbv /usr/local/M5/logo.jpg &> /dev/null &
|
||||
FRAMEBUFFER=/dev/fb1 fbv /usr/local/m5stack/logo.jpg &> /dev/null &
|
||||
echo 1 4 1 7 > /proc/sys/kernel/printk
|
||||
usr/local/M5/lt8618sxb_mcu_config &> /dev/null &
|
||||
tinyplay /usr/local/M5/chexian.wav &> /dev/null &
|
||||
tinyplay /usr/local/m5stack/logo.wav &> /dev/null &
|
||||
|
||||
# set otg master
|
||||
# echo 130 > /sys/class/gpio/export && echo out > /sys/class/gpio/gpio130/direction && echo 1 > /sys/class/gpio/gpio130/value
|
||||
# echo "host" >/sys/class/usb_role/49000000.usb-otg-role-switch/role
|
||||
|
||||
echo "device" >/sys/class/usb_role/49000000.usb-otg-role-switch/role
|
||||
|
||||
# set bus 5V out
|
||||
echo 131 > /sys/class/gpio/export && echo out > /sys/class/gpio/gpio131/direction && echo 1 > /sys/class/gpio/gpio131/value
|
||||
# echo 131 > /sys/class/gpio/export && echo out > /sys/class/gpio/gpio131/direction && echo 1 > /sys/class/gpio/gpio131/value
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Reference in New Issue
Block a user