Commit 28839beb authored by Michal Hrusecky's avatar Michal Hrusecky 🦎 Committed by Marek Behun

arm: mvebu: turris_omnia: update factory reset command

Set generic rescue_mode variable used in newer rescue modes and
expect FIR image in NOR to be LZMA compressed.
Also use sfp FIR image configuration if SFP module is found.
Signed-off-by: Michal Hrusecky's avatarMichal Hrusecky <michal.hrusecky@nic.cz>
Signed-off-by: Marek Behun's avatarMarek Behún <marek.behun@nic.cz>
parent aed57aec
......@@ -341,10 +341,15 @@ static int set_regdomain(void)
"mw.l 0x01000000 0x00ff000c; " \
"i2c write 0x01000000 0x2a.1 0x5 4 -s; " \
"setenv bootargs \"earlyprintk console=ttyS0,115200" \
" omniarescue=$omnia_reset\"; " \
" omniarescue=$omnia_reset rescue_mode=$omnia_reset\"; " \
"sf probe; " \
"sf read 0x1000000 0x100000 0x700000; " \
"bootm 0x1000000; " \
"lzmadec 0x1000000 0x1700000; " \
"if gpio input gpio@71_4; then " \
"bootm 0x1700000#sfp; " \
"else " \
"bootm 0x1700000; " \
"fi;" \
"bootz 0x1000000"
static void handle_reset_button(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment