Cherry Theobroma PX30-mQ7 User Manual page 36

System-on-module quad-core arm cortex-a35
Hide thumbs Also See for Theobroma PX30-mQ7:
Table of Contents

Advertisement

if
[
! -d
/sys/class/gpio/gpio$GPIO_BOOT
echo
$GPIO_BOOT
fi
if
[
! -d
/sys/class/gpio/gpio$GPIO_EN
echo
$GPIO_EN
> /sys/class/gpio/export
fi
echo
out > /sys/class/gpio/gpio$GPIO_BOOT/direction
echo
out > /sys/class/gpio/gpio$GPIO_EN/direction
echo
0
> /sys/class/gpio/gpio$GPIO_BOOT/value
echo
0
> /sys/class/gpio/gpio$GPIO_EN/value
sleep
1
echo
1
> /sys/class/gpio/gpio$GPIO_EN/value
sleep
1
ESPTOOL=$(PATH=/root/.local/bin/:$PATH
$ESPTOOL
-p /dev/ttyS3 -b
--chip esp32 write_flash --flash_mode dio --flash_size detect --flash_freq 40m
0x1000 /tmp/bootloader.bin
0x8000 /tmp/partition-table.bin
0x10000 /tmp/eagle.bin
sleep
1
echo
1
> /sys/class/gpio/gpio$GPIO_BOOT/value
echo
0
> /sys/class/gpio/gpio$GPIO_EN/value
sleep
1
echo
1
> /sys/class/gpio/gpio$GPIO_EN/value
echo
$GPIO_BOOT
> /sys/class/gpio/unexport
echo
$GPIO_EN
> /sys/class/gpio/unexport
echo
sdio-pwrseq > /sys/bus/platform/drivers/pwrseq_simple/bind
echo
ff380000.mmc > /sys/bus/platform/drivers/dwmmc_rockchip/bind
Note: On Debian, the esptool package provided by the package feed is too old. Instead, please install esptool software
from pip:
apt-get -y install python3-pip
pip3 install --user esptool
Note: By default, esptool is not available in our Yocto core-image-minimal image.
v1.2.0-1-g5ccabb6
Page 32
];
then
> /sys/class/gpio/export
];
then
which
esptool.py)
460800
--before default_reset --after hard_reset
\
\
(continued from previous page)
\
\

Advertisement

Table of Contents
loading

Table of Contents