Is Breed Bootloader "author" hackpascal a Mediatek dev?

blank means no default GPIO settings (LEDs and buttons).
Normally I release the blank version only if I do not want to develop breed for this chip anymore.

You can set customized reset button with this version.

2 Likes

I was not aware of such an option. How that could be done? Thanks!

This is done by editing the environment variable of Breed.

But first you have to enable the environment variable. This can be done by enabling it in the Web UI, or using a command:

envconf <addr> <size>

You can choose any spare area in the flash. The the size can't be less than 0x100 bytes. The addr is prefered to be at the block boundary.

e.g.:
For mt7628, setting env in nor flash at 0x30000, size 0x1000

envconf 0x30000 0x1000

The environment variable will take effect after a reboot.

Then, you can set the customized reset button by using the following command:

env set gpio.customized.reset <cfg>
env save

The format of cfg is: <gpio_num><active_voltage_level>

e.g.:
If the reset button is GPIO11 active-low:

env set gpio.customized.reset 11L

If the reset button is GPIO21 active-high:

env set gpio.customized.reset 21H
5 Likes

Many thanks, I'll give it a try.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.