Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to exit Factory_mode AQARA S1E #36

Open
bixpii opened this issue Dec 3, 2024 · 6 comments
Open

How to exit Factory_mode AQARA S1E #36

bixpii opened this issue Dec 3, 2024 · 6 comments

Comments

@bixpii
Copy link

bixpii commented Dec 3, 2024

I tried Interrupt uboot but it boot into factory_mode. tried exit it but can not.
Screen Shot 2024-12-03 at 14 43 07
Please help me

@bixpii
Copy link
Author

bixpii commented Dec 3, 2024

type: , model: AH_M1S error:no data umount: can't umount /data: Invalid argument ubidetach: error!: cannot remove ubi1 error 22 (Invalid argument) ubiformat: mtd13 (nand), size 57540608 bytes (54.9 MiB), 439 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes libscan: scanning eraseblock 438 -- 100 % complete ubiformat: error!: all 439 eraseblocks are bad ubiattach: error!: cannot attach mtd13 error 28 (No space left on device) libubi: error!: cannot get information about "/dev/ubi1" error 2 (No such file or directory) ubimkvol: error!: error while probing "/dev/ubi1" error 2 (No such file or directory) mount: mounting ubi1_0 on /data failed: No such device mount data fail check mount wait pro svr wait pro svr wait pro svr wait pro svr wait pro svr wait pro svr wait pro svr wait pro svr wait pro svr wait pro svr mDNSResponder: mDNSResponder (Engineering Build) (Dec 28 2023 16:28:12) starting mDNSResponder: Unable to parse DNS server list. Unicast DNS-SD unavailable mDNSResponder: mDNSPlatformSourceAddrForDest: connect 1.1.1.1 failed errno 101 (Network is unreachable) factory_test bulid time:16:30:41 Dec 28 2023 get_factory_result=0 gobal_cmd_list size 4804 factory_dir:/data/factory! mkdir: can't create directory '/data/factory': Read-only file system ble uart port: 2 zigbee uart port: 1 factory udp_init! ==> start aqgui with factory mode Input cmd:hcli fd = 5 elp udp send :[help] Input cmd:client ip : 127.0.0.1 client_port =50014 recv uart msg:help test_wifisdio --test_wifisdio set_product --set_product get_product --get_product set_sku --set_sku get_sku --get_sku set_miot_not_supported --set_miot_not_supported get_miot_not_supported --get_miot_not_supported set_wifi_txpower_b --set_wifi_txpower_b get_wifi_txpower_b --get_wifi_txpower_b set_wifi_txpower_gn --set_wifi_txpower_gn get_wifi_txpower_gn --get_wifi_txpower_gn test_rj45 --test_rj45 play_buzzer --play_buzzer open_relay_1 --open_relay_1 open_relay_2 --open_relay_2 open_relay_3 --open_relay_3 close_relay_1 --close_relay_1 close_relay_2 --close_relay_2 close_relay_3 --close_relay_3 get_relay_power --get_relay_power get_relay_current --get_relay_current lcd_standby_on --lcd_standby_on clear_alarm --clear_alarm lcd_standby_off --lcd_standby_off lcd_backlight --lcd_backlight set_lcd_backlight --set_lcd_backlight set_lcd_color --set_lcd_color lcd_touch --lcd_touch lcd_handle_touch --lcd_handle_touch lcd_color --lcd_color get_ntc --get_ntc read_nfc --read_nfc 10 test_usb --test_usb eth_dhcp --eth_dhcp get_factory_lux --get_factory_lux wifi_connect --wifi_connect gwtest 12345678 192.168.199.155 get_wifi_rssi --get_wifi_rssi get_wifi_mac --get_wifi_mac switch_to_ap --switch_to_ap wifi_config --wifi_config gwtest 12345678 set_trunk_ap --set_trunk_ap get_trunk_ap --get_trunk_ap mfi_hw_auth --mfi_hw_auth set_homekit --set_homekit get_homekit --get_homekit set_homekit_token --set_homekit_token get_homekit_token --get_homekit_token help --Print help. exit_test --exit_test test_pcba --PCBA Test. test_pcba1 --PCBA Test. test_pcba2 --PCBA Test. enter_factory --enter_factory exit_factory --exit_factory get_result --Get PCBA Test result. whois --whois set_factory_result --set_factory_result get_factory_result --get_factory_result get_version --get_version reboot --Reboot. agetprop --agetprop asetprop --asetprop. set_sn --set_sn get_sn --get_sn check_start_ok --check_start_ok zigbee_lqi --zigbee_lqi remove_zigbee_device --remove_zigbee_device 123456798 remove_all_zigbee_device --remove_all_zigbee_device get_devices --get_devices get_zigbee_version --get_zigbee_version get_zigbee_mac --get_zigbee_mac start_join --start_join set_zigbee_pa --set_zigbee_pa get_zigbee_pa --get_zigbee_pa set_zigbee_ctune --set_zigbee_ctune get_zigbee_ctune --get_zigbee_ctune installcode_join --installcode_join code_mac stop_join --stop_join set_zigbee_channel --set_zigbee_channel 10 add_scene --add_scene get_sale_mode --get_sale_mode set_sale_mode --set_sale_mode 2 get_elink --get_elink set_elink --set_elink
I cmd help it show that screen. But when cmd exit_factory it required usernam and password

@tsunglung
Copy link

You need to clear password first.
But looks that you made the factory configuration is deleted. It may not bind to Aqara cloud anymore.

@bixpii
Copy link
Author

bixpii commented Dec 3, 2024

Yes. I cleared it. But i still can not exit :((
==> start aqgui with factory mode Input cmd:cli fd = 5 exit_Factory udp send :[exit_Factory] Input cmd:client ip : 127.0.0.1 client_port =50014 recv uart msg:exit_Factory Exit exit_factory... OK to_response, 0 {"wifi_mac":"B40ECFDc99","exit_factory":"ok"} ==> init aqgui ==> start aqgui with factory mode (none) login: (none) login: root login[930]: root login on 'UNKNOWN' ~ # help -sh: help: not found

@bixpii
Copy link
Author

bixpii commented Dec 3, 2024

I tried flash but not enough memory also :((
Screen Shot 2024-12-03 at 19 55 14

@bixpii
Copy link
Author

bixpii commented Dec 3, 2024

I think problem is read-only system
~ # mount /dev/root on / type squashfs (ro,relatime) devtmpfs on /dev type devtmpfs (rw,relatime,size=25868k,nr_inodes=6467,mode=755) proc on /proc type proc (rw,relatime) sysfs on /sys type sysfs (rw,relatime) tmpfs on /tmp type tmpfs (rw,relatime,size=26892k,nr_inodes=6723) var on /var type tmpfs (rw,relatime,size=26892k,nr_inodes=6723) none on /sys/kernel/debug type debugfs (rw,relatime) devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000) /dev/mtdblock11 on /res type squashfs (ro,relatime) fwfs on /misc type fuse.fwfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
I can not write any things on it

@bixpii
Copy link
Author

bixpii commented Dec 4, 2024

This is all uart export from S1E :(( Please help me consider it!
`[SERIAL/DIRECT] CONNECTED TO PORT /dev/cu.usbserial-1420 (115200-8N1)

IPL gdf99011
D-16
HW Reset
4e382dd4 40004072
Resume? N, addr 40004072
miupll_200MHz
SPI 54M
64MB
BIST0_0001-OK
SPI 54M
[BBT] Found table @ 0x00020000

Checksum OK

IPL_CUST gdf99011
Export ENV 0

U-Boot 2015.01 (Oct 17 2022 - 11:19:07)

Version: P3gc0f968f
I2C: ready
DRAM:
WARNING: Caches not enabled
SPINAND_I: [FLASH] Found SNI in block 0.
[FLASH] dev_id = 0xee
[FLASH] mfr_id = 0xcd, dev_id= 0x71 id_len = 0x3
[SPINAND] RFC ues command 0x6b with 0x08 dummy clock.
[SPINAND] Program load with command 0x32.
[SPINAND] Random load with command 0x34.
[FLASH] Unlock all block.
[FLASH] Use BDMA.
[FLASH] Unlock all block.
128 MiB
MMC: MStar SD/MMC: 0
ENV: offset = 0x480000 size = 0x40000
ENV1: offset = 0x4c0000 size = 0x40000
In: serial
Out: serial
Err: serial

NAND read: device 0 offset 0x820000, size 0x2d0000
Time:216175 us, speed:13642 KB/s
2949120 bytes read: OK
gpio debug MHal_GPIO_Pad_Set: pin=59
gpio[59] is 1
st7701: rst:16, cs:0, clk:1, sdk:2
gpio debug MHal_GPIO_Pad_Set: pin=16
gpio debug MHal_GPIO_Pad_Set: pin=0
gpio debug MHal_GPIO_Pad_Set: pin=1
gpio debug MHal_GPIO_Pad_Set: pin=2
st7701 init...gpio debug MHal_GPIO_Pad_Set: pin=59
gpio[59] is 0
done
found the partition info of MISC
INI_GET_STR: Get LOGO:m_sPQFile0 error
can't get LOGO:m_sPQFile0
illegal param in _BootLogoSetPq:1668
clk=12M, u16Div=0 u32Duty=0x95f u32Period=0x95f
[halPWMPadSet][106] (pwmId, padId) = (0, 8)

Booting kernel from Legacy Image at 22000000 ...

Image Name: MVX4##P3##g1d7cf4bKL_LX409##[BR:
Image Type: ARM Linux Kernel Image (lzma compressed)
Data Size: 2324976 Bytes = 2.2 MiB
Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
-usb_stop(USB_PORT0)
-usb_stop(USB_PORT2)
Uncompressing Kernel Image ...
[XZ] !!!reserved 0x21000000 length=0x 1000000 for xz!!
XZ: uncompressed size=0x4a5000, ret=7
OK
atags:0x20000000

Starting kernel ...

early_atags_to_fdt() success
net.core.rmem_default = 163840
net.core.rmem_max = 163840
net.core.wmem_default = 524288
net.core.wmem_max = 1048576
net.ipv4.tcp_mem = 924 1232 1848
net.ipv4.tcp_rmem = 4096 87380 325120
net.ipv4.tcp_wmem = 4096 131072 393216
Loading app modules
Too few good blocks within range
Too few good blocks within range
mount /dev/mtdblock ok
ubiattach /dev/ubi_ctrl -m 13 -d 1
ubiattach: error!: cannot attach mtd13
error 28 (No space left on device)
ubimkvol /dev/ubi1 -N /data -m
libubi: error!: cannot get information about "/dev/ubi1"
error 2 (No such file or directory)
ubimkvol: error!: error while probing "/dev/ubi1"
error 2 (No such file or directory)
mount: mounting ubi1_0 on /data failed: No such device
error:no data
[WatchDogInit 15] init watch dog, timeout:30s
umount: can't umount /data: Invalid argument
ubidetach: error!: cannot remove ubi1
error 22 (Invalid argument)
ubiformat: mtd13 (nand), size 57540608 bytes (54.9 MiB), 439 eraseblocks of 131072 bytes (128.0
KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 87 -- 20 % complete 120
libscan: scanning eraseblock 438 -- 100 % complete
ubiformat: error!: all 439 eraseblocks are bad
ubiattach: error!: cannot attach mtd13
error 28 (No space left on device)
libubi: error!: cannot get information about "/dev/ubi1"
error 2 (No such file or directory)
ubimkvol: error!: error while probing "/dev/ubi1"
error 2 (No such file or directory)
mount: mounting ubi1_0 on /data failed: No such device
mount data fail
check mount
5.52 6.64
mkdir: can't create directory '/data/storage': Read-only file system
Error:/data/storage/prop.dat open failed!
factory data tools. v1.0.0

Usage: factory_data init path
factory_data force_init path
factory_data restore
factory_data info
wait property server
wait property server
wait property server
wait property server
wait property server
wait property server
wait property server
wait property server
wait property server
wait property server
==> Detect invalid clock time, set default
Sat Jan 1 01:01:00 UTC 2022
mkdir: can't create directory '/data/app/': Read-only file system
touch: /data/app/config/setting: No such file or directory
==> start sysservice
wait pro svr
wait pro svr
wait pro svr
wait pro svr
wait pro svr
wait pro svr
wait pro svr
wait pro svr
wait pro svr
wait pro svr
fw_manager.sh revision: 2
hostname: -0000
hostname: invalid option -- '0'
BusyBox v1.20.2 (2021-01-06 14:47:27 HKT) multi-call binary.

Usage: hostname [OPTIONS] [HOSTNAME | -F FILE]

Get or set hostname or DNS domain name

    -s      Short
    -i      Addresses for the hostname
    -d      DNS domain name
    -f      Fully qualified domain name
    -F FILE Use FILE's content as hostname

type: , model: AH_M1S
error:no data
umount: can't umount /data: Invalid argument
ubidetach: error!: cannot remove ubi1
error 22 (Invalid argument)
ubiformat: mtd13 (nand), size 57540608 bytes (54.9 MiB), 439 eraseblocks of 131072 bytes (128.0
KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 438 -- 100 % complete
ubiformat: error!: all 439 eraseblocks are bad
ubiattach: error!: cannot attach mtd13
error 28 (No space left on device)
libubi: error!: cannot get information about "/dev/ubi1"
error 2 (No such file or directory)
ubimkvol: error!: error while probing "/dev/ubi1"
error 2 (No such file or directory)
mount: mounting ubi1_0 on /data failed: No such device
mount data fail
check mount
wait pro svr
wait pro svr
wait pro svr
wait pro svr
wait pro svr
wait pro svr
wait pro svr
wait pro svr
wait pro svr
wait pro svr
mDNSResponder: mDNSResponder (Engineering Build) (Oct 17 2022 11:19:01) starting
mDNSResponder: Unable to parse DNS server list. Unicast DNS-SD unavailable
mDNSResponder: mDNSPlatformSourceAddrForDest: connect 1.1.1.1 failed errno 101 (Network is unreachable)
factory_test bulid time:11:23:00 Oct 17 2022
get_factory_result=0
gobal_cmd_list size 4804
factory_dir:/data/factory!
mkdir: can't create directory '/data/factory': Read-only file system
ble uart port: 2
zigbee uart port: 1
factory udp_init!
==> start aqgui with factory mode
Input cmd:cli fd = 5`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants