Xiaomi-Dafang-Hacks
Xiaomi-Dafang-Hacks copied to clipboard
Any way to mount SDCard from serial? (working with partially borked device)
I've got a couple v2 cams that are borked. They partially boot, but then hang. I think the boot loader is messed up. I wanted to try just re-flashing the bootloader from a serial console connection I have (via unpopulated serial header) using these commands.
wyzecam_v2_startup_logs_compared_2024-03-29.html.zip
The problem is that the cams don't boot enough into an environment that has the typical SD card mappings, and don't know what device is the SD card.
Can anyone suggest where to get the SDcard so I can mount it?
I can access the root file system, but don't know where the SD card is located to mount it:
[root@Ingenic-uc1_1:~]#
[root@Ingenic-uc1_1:~]#
[root@Ingenic-uc1_1:~]# ls /
backupa bin driver linuxrc opt root sys tmp
backupd configs etc media params run system usr
backupk dev lib mnt proc sbin thirdlib var
[root@Ingenic-uc1_1:~]# ls /dev
console mtd1ro ptyp0 rmem
cpu_dma_latency mtd2 ptyp1 root
dsp mtd2ro ptyp2 shm
full mtd3 ptyp3 sinfo
input mtd3ro ptyp4 soc_vpu
ipu mtd4 ptyp5 tty
jz_adc_aux_0 mtd4ro ptyp6 ttyS1
jz_adc_aux_1 mtd5 ptyp7 ttyp0
jz_adc_aux_2 mtd5ro ptyp8 ttyp1
jz_adc_aux_3 mtd6 ptyp9 ttyp2
jz_adc_aux_4 mtd6ro ptypa ttyp3
jz_adc_aux_5 mtd7 ptypb ttyp4
jz_adc_aux_6 mtd7ro ptypc ttyp5
jz_adc_aux_7 mtd8 ptypd ttyp6
kmem mtd8ro ptype ttyp7
kmsg mtd9 ptypf ttyp8
log_main mtd9ro pwm ttyp9
loop-control mtdblock0 ram0 ttypa
loop0 mtdblock1 ram1 ttypb
loop1 mtdblock10 ram10 ttypc
loop2 mtdblock2 ram11 ttypd
loop3 mtdblock3 ram12 ttype
loop4 mtdblock4 ram13 ttypf
loop5 mtdblock5 ram14 uhid
loop6 mtdblock6 ram15 urandom
loop7 mtdblock7 ram2 v4l-subdev0
media0 mtdblock8 ram3 video0
mem mtdblock9 ram4 video1
motor net ram5 video2
mtd0 network_latency ram6 watchdog
mtd0ro network_throughput ram7 watchdog0
mtd1 null ram8 zero
mtd10 ptmx ram9 zram0
mtd10ro pts random zram1
[root@Ingenic-uc1_1:~]#
cacert.pem localsdk_shellcall sdcard
hualaiclient.domain resolv.conf
[root@Ingenic-uc1_1:~]# mount /dev/mmcblk0p2 /tmp/sdcard/
mount: mounting /dev/mmcblk0p2 on /tmp/sdcard/ failed: No such file or directory