Wpis z mikrobloga

O co chodzi? Głośnik xiaomi nie chce mi się uruchomić. Pulsuje tylko na biało i nie ma z nim żadnego kontaktu. Nie pomaga reset naciskając dwa przyciski przez 10 sekund. Tak się składa że ma wyjście rx,tx,gnd to go podłączyłem pod rs232 i wypluwa coś takiego. Głośnik to Xiaomi mi speaker L09G

#xiaomi #xiaomilepsze #linux #programowanie #elektronika

AXG:BL1:d1dbf2:a4926f;FEAT:F0DC31BC:2000;POC:F;EMMC:800;NAND:0;READ:0;0.0;0.0;CH
K:0;
sdio debug board detected
TE: 140571

BL2 Built : 11:48:35, Mar 10 2020. axg gf91bf0a - jenkins@walle02-sh

set vcck to 1050 mv
set vddee to 950 mv
Board ID = 3
CPU clk: 1200MHz
DDR low power enabled
DDR3 chl: Rank0 16bit @ 912MHz
bist_test rank: 0 1b 00 37 25 0b 3f 18 00 30 27 0d 42 00 00 00 00 00 00 00 00 00
00 00 00 712 - PASS
Rank0: 512MB(auto)-2T-13
AddrBus test pass!
NAND init
Load FIP HDR from NAND, src: 0x0000c000, des: 0x01700000, size: 0x00004000, part
: 0
Load BL3x from NAND, src: 0x00010000, des: 0x01704000, size: 0x000afc00, part: 0

NOTICE: BL31: v1.3(release):d5a9e97
NOTICE: BL31: Built : 17:38:06, Mar 12 2020
NOTICE: BL31: AXG secure boot!
NOTICE: BL31: BL33 decompress pass
OPS=0x43
[Image: axg_v1.1.3489-8f09446 2020-03-12 13:58:51 jenkins@walle02-sh]
25 0c 43 00 ca 1c 02 d5 02 9a 02 79 86 e4 89 c5
bl30:axg ver: 9 mode: 0
bl30:axg thermal0
[0.015885 Inits done]
secure task start!
high task start!
low task start!
ERROR: Error initializing runtime service opteed_fast

U-Boot 2015.01-gfe79c6daed-dirty (Aug 27 2020 - 14:13:41)

DRAM: 512 MiB
Relocation Offset is: 1eec3000
mmu cfg end: 0x20000000
mmu cfg end: 0x20000000
register usb cfg[0][1] = 000000001ff74ad0
aml_i2c_init_port init regs for 0
NAND: get_sys_clk_rate_mtd() 292, clock setting 200!
bus cycle0: 6,timing: 7
NAND device id: 98 da 90 15 76 16
NAND device: Manufacturer ID: 0x98, Chip ID: 0x98 (Toshiba A revision NAND 2Gib
TC58NVG1S3HBAI4 )
get_sys_clk_rate_mtd() 292, clock setting 200!
m3_nand_adjust_timing() sys_clk_rate 200, bus_c 6, bus_t 7
oob_fill_cnt =32 oob_size =64, bch_bytes =14
ecc mode:6 ecc_page_num=2 eep_need_oobsize=16
plane_num=1 writesize=0x800 ecc.size=0x200 bch_mode=1
oob avail size 6
Creating 1 MTD partitions on "A revision NAND 2Gib TC58NVG1S3HBAI4 ":
0x000000000000-0x000000200000 : "bootloader"
A revision NAND 2Gib TC58NVG1S3HBAI4 initialized ok
get_sys_clk_rate_mtd() 292, clock setting 200!
bus cycle0: 6,timing: 7
NAND device id: 98 da 90 15 76 16
NAND device: Manufacturer ID: 0x98, Chip ID: 0x98 (Toshiba A revision NAND 2Gib
TC58NVG1S3HBAI4 )
get_sys_clk_rate_mtd() 292, clock setting 200!
m3_nand_adjust_timing() sys_clk_rate 200, bus_c 6, bus_t 7
oob_fill_cnt =32 oob_size =64, bch_bytes =14
ecc mode:6 ecc_page_num=2 eep_need_oobsize=16
PLANE change!
plane_num=1 writesize=0x800 ecc.size=0x200 bch_mode=1
aml_nand_init :oobmul=1,oobfree.length=8,oob_size=64
oob avail size 8
nbbt=20
nenv=24
nkey=32
ndtb=40
nddr=44
bbt_start=20 env_start=24 key_start=32 dtb_start=40 ddr_start=44
nbbt: info size=0x800 max_scan_blk=24, start_blk=20
nbbt : phy_blk_addr=20, ec=0, phy_page_addr=0, timestamp=1
nbbt free list:
blockN=21, ec=-1, dirty_flag=0
blockN=22, ec=-1, dirty_flag=0
blockN=23, ec=-1, dirty_flag=0
aml_nand_scan_rsv_info 1132: page_num=1
aml_nand_scan_rsv_info 1135
nbbt valid addr: 280000
aml_nand_bbt_check 1256 bbt is valid, reading.
aml_nand_read_rsv_info:444,read nbbt info to 280000
nenv: info size=0x10000 max_scan_blk=32, start_blk=24
nenv : phy_blk_addr=24, ec=2, phy_page_addr=0, timestamp=5
nenv free list:
blockN=25, ec=1, dirty_flag=1
blockN=26, ec=-1, dirty_flag=0
blockN=27, ec=-1, dirty_flag=0
blockN=28, ec=-1, dirty_flag=0
blockN=29, ec=-1, dirty_flag=0
blockN=30, ec=-1, dirty_flag=0
blockN=31, ec=-1, dirty_flag=0
aml_nand_scan_rsv_info 1132: page_num=32
aml_nand_scan_rsv_info 1135
nenv valid addr: 310000
nkey: info size=0x8000 max_scan_blk=40, start_blk=32
nkey : phy_blk_addr=33, ec=0, phy_page_addr=0, timestamp=2
nkey free list:
blockN=32, ec=0, dirty_flag=1
blockN=34, ec=-1, dirty_flag=0
blockN=35, ec=-1, dirty_flag=0
blockN=36, ec=-1, dirty_flag=0
blockN=37, ec=-1, dirty_flag=0
blockN=38, ec=-1, dirty_flag=0
blockN=39, ec=-1, dirty_flag=0
aml_nand_scan_rsv_info 1132: page_num=16
aml_nand_scan_rsv_info 1135
nkey valid addr: 420000
ndtb: info size=0x20000 max_scan_blk=44, start_blk=40
ndtb : phy_blk_addr=40, ec=0, phy_page_addr=0, timestamp=1
ndtb free list:
blockN=41, ec=-1, dirty_flag=0
blockN=42, ec=-1, dirty_flag=0
blockN=43, ec=-1, dirty_flag=0
aml_nand_scan_rsv_info 1132: page_num=64
aml_nand_scan_rsv_info 1135
ndtb valid addr: 500000
nddr: info size=0x800 max_scan_blk=46, start_blk=44
nddr : phy_blk_addr=-1, ec=0, phy_page_addr=0, timestamp=0
nddr free list:
blockN=44, ec=-1, dirty_flag=0
blockN=45, ec=-1, dirty_flag=0
aml_nand_scan_rsv_info 1132: page_num=1
nddr valid addr: fffffffffffe0000
aml_nand_rsv_info_check_except_bbt 1226 NO nddr exist
tpl: off 8388608, size 8388608
NAND bbt detect factory Bad block at c000000
NAND bbt detect factory Bad block at c020000
Creating 7 MTD partitions on "A revision NAND 2Gib TC58NVG1S3HBAI4 ":
0x000000800000-0x000001000000 : "tpl"
0x000001000000-0x000001a00000 : "recovery"
0x000001a00000-0x000002600000 : "boot"
0x000002600000-0x000003600000 : "system"
0x000003600000-0x000007a00000 : "chrome"
0x000007a00000-0x000007e00000 : "factory"
0x000007e00000-0x000010000000 : "data"
NAND bbt detect factory Bad block at c000000
NAND bbt detect factory Bad block at c020000
A revision NAND 2Gib TC58NVG1S3HBAI4 initialized ok
MMC: aml_priv->desc_buf = 0x000000001dec1760
aml_priv->desc_buf = 0x000000001dec3aa0
SDIO Port B: 0, SDIO Port C: 1
uboot env amlnf_env_read : ####
aml_nand_read_rsv_info:444,read nenv info to 310000
In: serial
Out: serial
Err: serial
aml log : internal sys error!
reboot_mode=cold_boot
Start read misc partition datas!
[burnup]Rd:Up sz 0x440 to align 0x1000
[store]Err:mtd_find_phy_off_by_lgc_off,L116:device(misc) is err
[store]Err:do_store_read,L1775:Fail in find phy addr by logic off (0x0),ret(1)
[burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read misc 0x1deb1a78
0x0 0x1000]
failed to store read misc.
get_valid_slot - get_valid_slot

Usage:
get_valid_slot
This command will choose valid slot to boot up which saved in misc
partition by mark to decide whether execute command!
So you can execute command: get_valid_slot
active_slot is normal
cmd: imgread dtb boot ${dtb_mem_addr}
[imgread]szTimeStamp[2021122714180026]
[imgread]MTD pageShift 11, writesz 0x800
aml log : R-2048 check pass!
aml log : R2048 check pass!
[imgread]Enc dtb sz 0xc000
Amlogic Multi-DTB tool
Single DTB detected
Start read misc partition datas!
[burnup]Rd:Up sz 0x440 to align 0x1000
[store]Err:mtd_find_phy_off_by_lgc_off,L116:device(misc) is err
[store]Err:do_store_read,L1775:Fail in find phy addr by logic off (0x0),ret(1)
[burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read misc 0x1deb1888
0x0 0x1000]
failed to store read misc.
get_valid_slot - get_valid_slot

Usage:
get_valid_slot
This command will choose valid slot to boot up which saved in misc
partition by mark to decide whether execute command!
So you can execute command: get_valid_slot
wipe_data=successful
wipe_cache=successful
recovery_status=
upgrade_step=4
s_version: U-Boot 2015.01-gfe79c6daed-dirty
amlkey_init() enter!
amlnf_key_read: ####
amlnf_key_read key data len too much
aml_nand_read_rsv_info:444,read nkey info to 420000
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L515:key[mac] not programed yet
[KM]Error:f[key_manage_query_size]L515:key[lang] not programed yet
[KM]Error:f[key_manage_query_size]L515:key[locale_lang] not programed yet
[KM]Error:f[key_manage_query_size]L515:key[locale_region] not programed yet
InUsbBurn
noSof
card out
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, cmd->cmdarg=0x1aa, status=0x1ff2800
emmc/sd response timeout, cmd55, cmd->cmdarg=0x0, status=0x1ff2800
emmc/sd response timeout, cmd1, cmd->cmdarg=0x40000000, status=0x1ff2800
[MSG]mmcinfo failed!
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, cmd->cmdarg=0x1aa, status=0x1ff2800
emmc/sd response timeout, cmd55, cmd->cmdarg=0x0, status=0x1ff2800
emmc/sd response timeout, cmd1, cmd->cmdarg=0x40000000, status=0x1ff2800
(Re)start USB...
USB0: USB3.0 XHCI init start
Register 1000140 NbrPorts 1
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
** Bad device usb 0 **
** Bad device usb 0 **
0x000000000000-0x000000200000 : "bootloader"
0x000000800000-0x000001000000 : "tpl"
0x000001000000-0x000001a00000 : "recovery"
0x000001a00000-0x000002600000 : "boot"
0x000002600000-0x000003600000 : "system"
0x000003600000-0x000007a00000 : "chrome"
0x000007a00000-0x000007e00000 : "factory"
0x000007e00000-0x000010000000 : "data"
--- find_dev_and_part ---
id = data
found data @ 7/8--- find_dev_and_part ---
id = data
found data @ 7/8UBI: attaching mtd7 to ubi0
NAND bbt detect factory Bad block at c000000
NAND bbt detect factory Bad block at c020000
UBI: scanning is finished
UBI: attached mtd7 (name "data", size 130 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 1038, bad PEBs: 2, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 155
2426227
UBI: available PEBs: 0, total reserved PEBs: 1038, PEBs reserved for bad PEB han
dling: 38
UBI: current ubi device 0

Loading file '.data/dtb.img' to addr 0x01000000 with size 131072 (0x00020000)...

Done
Loading file '.data/recovery.img' to addr 0x01080000 with size 10485760 (0x00a00
000)...
Done
Unknown command 'wipeisb' - try 'help'
aml log : R-2048 check pass!
aml log : R2048 check pass!
aml log : R2048 check pass!
aml log : R2048 check pass!
avb2: 0
save_power_post ...
avb2: 0
## Booting Android Image at 0x01080000 ...
reloc_addr =1df6a710
copy done
Kernel command line: rootfstype=ramfs init=/init console=ttyS0,115200 no_console
_suspend earlycon=aml_uart,0xff803000
aml log : R2048 check pass!
Amlogic Multi-DTB tool
Single DTB detected
load dtb from 0x1000000 ......
Amlogic Multi-DTB tool
Single DTB detected
Uncompressing Kernel Image ... OK
kernel loaded at 0x01080000, end = 0x02251200
Loading Ramdisk to 1dc5d000, end 1deb0000 ... OK
Loading Device Tree to 000000001dc4e000, end 000000001dc5c1af ... OK
fdt_fixup_memory_banks, reg:0000000000000000

Starting kernel ...

uboot time: 4868826 us
[ 0.000000@0]d 07400000 - 07500000, 1024 KB, ramoops@0x07400000
[ 0.000000@0]d 05000000 - 05400000, 4096 KB, linux,secmon
domain-0 init dvfs: 1
[ 0.238124@0]- clkmsr ffd18004.meson_clk_msr: failed to get msr ring reg0
[ 0.294140@0]- dmi: Firmware registration failed.
[ 1.110939@0]- Initramfs unpacking failed: junk in compressed archive
[ 1.116266@0]- meson-mmc: >>>>>>>>hostbase ffffff80081f8000, dmode
[ 1.158785@0]- aml_mtd_nand ffe07800.mtd_nand: failed to get gate
[ 1.224759@3]- mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.242168@3]- ff803000.serial: clock gate not found
[ 1.249573@3]- amlogic-new-usb3 ffe09080.usb3phy: This phy has no usb port
[ 1.259355@3]- cyttsp 1-0010: Failed to read block!
[ 1.259439@3]- cyttsp 1-0010: Failed to read block!
[ 1.263473@3]- cyttsp 1-0010: Failed get Cyttsp Touch FW ID!
[ 1.301465@3]- [bt_probe] request_irq error ret=-22
[ 1.301562@3]- [bt_probe] dev_pm_set_wake_irq failed: -22
[ 1.308843@3]- page_trace_module_init, create sysfs failed
[ 2.047501@0]- asoc-aml-card auge_sound: control 2:0:0:I2SIn CLK:0 is already
present
[ 2.049712@0]- snd_tdm ff642000.audiobus:tdmb: ASoC: Failed to add I2SIn CLK:
-16
[ 2.057134@0]- aml_dai_tdm_probe, failed add snd tdm controls
[ 2.062813@0]- asoc-aml-card auge_sound: control 2:0:0:I2SIn CLK:0 is already
present
[ 2.070572@0]- snd_tdm ff642000.audiobus:tdmc: ASoC: Failed to add I2SIn CLK:
-16
[ 2.078002@0]- aml_dai_tdm_probe, failed add snd tdm controls
[ 2.114616@2]- hub 2-0:1.0: config failed, hub doesn't have any ports! (err -
19)
[ 2.116473@2]- usb usb2: Unsupported the hub
[ 2.236922@2]- thermal thermal_zone0: binding zone soc_thermal with cdev ther
mal-cpufreq-0 failed:-22
[ 2.247[ 2.394282@3]- init: cannot open '/initlogo.rle'
ubiattach: error!: cannot attach mtd7
error 19 (No such device)
[ 2.417728@3]- UBIFS error (pid: 1): cannot open "ubi7_0", error -19
  • 3
  • Odpowiedz
  • Otrzymuj powiadomienia
    o nowych komentarzach

@Bartisss: Na mój gust skorumpowany zawartość pamięci NAND / albo uszkodzona pamięć NAND. Masz czym przeflashować ten głośnik?

Ewentualnie może być jeszcze uszkodzone połączenie pomiędzy pamięcią NAND a CPU. Przerwana ścieżka na PCB, urwany pad, etc.
  • Odpowiedz
@Bartisss: Najtańsze programatory do Flash NAND na eBayu kosztują około $100 - https://www.ebay.co.uk/sch/i.html?_from=R40&_trksid=p2334524.m570.l1313&_nkw=flash+nand+programmer&_sacat=0&LH_TitleDesc=0&_osacat=0&_odkw=flash+band

Musiałbyś wylutować ten "podłużny" układ, zaprogramować go i ponownie wlutować. Plus musisz mieć czym zaprogramować ten układ. Może się również okazać, że cały układ jest do wymiany. Niestety nie jest dostępny ani na Digikeyu, ani na Mouserze. ale raczej bez problemu znajdziesz zamiennik.

Tylko zastanów się czy warto się bawić w coś takiego.
  • Odpowiedz