Dumps of previously working system no longer work after restoration

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu server

Which version of system do you use? Khadas official images, self built images, or others?

vim4-ubuntu-22.04-server-linux-5.4-fenix-1.2-221018-emmc.img.xz and
vim4-ubuntu-22.04-server-linux-5.4-fenix-1.1-220721-emmc.img.xz

Please describe your issue below:

Dumps (read from eMMC) made from OOWOW no longer work when written back to the eMMC using OOWOW

Post a console log of your issue below:


`
Starting kernel ...

uboot time: 13409316 us
boot 64bit kernel
...
[   15.315625@1]  [drm] am_meson_logo_init end
[   15.316126@1]  [drm] am_meson_drm_fbdev_init in
[   15.316726@1]  [drm] Cannot find any crtc or sizes
[   15.317338@1]  [drm] Disabling plane 0, so skip postion calc
[   15.317344@2]  [drm] Disabling plane 1, so skip postion calc
[   15.317990@1]  [drm] Disabling plane 2, so skip postion calc
[   15.317992@1]  [drm] Disabling plane 3, so skip postion calc
[   15.319415@1]  [drm] Disabling video plane 0, so skip postion calc
[   15.320104@1]  [drm] Disabling video plane 1, so skip postion calc
[   15.320872@1]  [drm] Disabling video plane 2, so skip postion calc
[   15.321713@1]  [drm] create fbdev success.
[   15.322921@1]  [drm] create fbdev for primary plane [000000001782b02f]
[   15.323800@1]  [drm] Cannot find any crtc or sizes
[   15.324353@1]  [drm] Disabling plane 0, so skip postion calc
[   15.324357@1]  [drm] Disabling plane 1, so skip postion calc
[   15.325032@1]  [drm] Disabling plane 2, so skip postion calc
[   15.325736@1]  [drm] Disabling plane 3, so skip postion calc
[   15.326441@1]  [drm] Disabling video plane 0, so skip postion calc
[   15.327144@1]  [drm] Disabling video plane 1, so skip postion calc
[   15.327957@1]  [drm] Disabling video plane 2, so skip postion calc
[   15.328772@1]  [drm] create fbdev success.
[   15.329964@1]  [drm] create fbdev for plane [1]-[0000000069906a35]
[   15.330730@1]  [drm] am_meson_drm_fbdev_init create 2 out
[   15.331503@1]  debugfs: Directory 'vpu' with parent '128' already present!
[   15.332260@1]  debugfs: Directory 'vpu' with parent '128' already present!
[   15.333427@2]  debugfs: Directory 'vpu' with parent '0' already present!
[   15.333952@2]  debugfs: Directory 'vpu' with parent '0' already present!
[   15.335182@2]  [drm] Initialized meson 2.0.0 20220613 for drm-subsystem on minor 0
[   15.336708@2]  asoc-aml-card auge_sound: aml_card_dai_link_of, error dai-link idx:0, ret -517
[   15.336809@1]  [drm] meson_drm_main_init() end
[   15.337090@2]  asoc-aml-card auge_sound: parse dai_link-0 fail
[   15.338369@2]  asoc-aml-card auge_sound: aml_card_probe, aml_card_parse_of error -517 PROBE RETRY
[   15.339494@2]  aml_card_probe error ret:-517
[   15.349965@3]  set mem spec to JPEGENC_BUFFER_LEVEL_8M
[   15.350035@3]  [jpegenc_probe:4954] get irq dos_mbox_slow_irq2, res_irq=85
[   15.350779@3]  [jpegenc_probe] get irq success: 85!, manual_irq_num=2
[   15.351777@2]  jpeg_enc_clk_get: get clk_dos OK
[   15.352148@2]  jpeg_enc_clk_get: get clk_apb_dos OK
[   15.352752@2]  jpeg_enc_clk_get: get clk_jpeg_enc OK
[   15.354299@2]  asoc-aml-card auge_sound: aml_card_dai_link_of, error dai-link idx:0, ret -517
[   15.354677@2]  asoc-aml-card auge_sound: parse dai_link-0 fail
[   15.355424@2]  asoc-aml-card auge_sound: aml_card_probe, aml_card_parse_of error -517 PROBE RETRY
[   15.356507@2]  aml_card_probe error ret:-517
[   15.358828@3]  vpu_init
[   15.359241@3]  vpu_probe
[   15.359260@3]  reset cma_cfg_size to 200
[   15.359264@3]  MultiEnc reserved memory config fail.
[   15.360221@3]  MultiEnc - cma memory pool size: 100 MB
[   15.360618@3]  MultiEnc -irq: 98
[   15.361024@3]  MultiEnc. clock get success
[   15.361534@3]  vpu base address get from platform driver 
[   15.361538@3]  physical addr=0xfe310000, virtual addr=0xffffffc010470000
[   15.363172@3]  success to probe vpu device with video memory 
[   15.366734@3]  allocating phys 0xc5000000, 
[   15.366741@3]  virt addr 0x0, size 102400k
[   15.367245@3]  to be allocate from CMA pool_size 0x6400000
[   15.368758@3]  asoc-aml-card auge_sound: aml_card_dai_link_of, error dai-link idx:0, ret -517
[   15.369137@3]  asoc-aml-card auge_sound: parse dai_link-0 fail
[   15.369862@3]  asoc-aml-card auge_sound: aml_card_probe, aml_card_parse_of error -517 PROBE RETRY
[   15.370966@3]  aml_card_probe error ret:-517
[   15.381627@3]  usbcore: registered new interface driver snd-usb-audio
[   15.384710@0]  tl1_acodec fe01a000.codec: aml_tl1_acodec_probe
[   15.384846@0]  tl1_acodec fe01a000.codec: Can't retrieve acodec clock
[   15.385556@0]  aml_tl1_acodec tdmout_index=1
[   15.386086@0]  aml_tl1_acodec dat1_ch_sel=0
[   15.386606@0]  aml_tl1_acodec tdmin_index=1
[   15.387134@0]  aml_tl1_acodec_probe over
[   15.388553@0]  asoc-aml-card auge_sound: aml_card_dai_link_of, error dai-link idx:0, ret -517
[   15.388930@0]  asoc-aml-card auge_sound: parse dai_link-0 fail
[   15.389655@0]  asoc-aml-card auge_sound: aml_card_probe, aml_card_parse_of error -517 PROBE RETRY
[   15.390759@0]  aml_card_probe error ret:-517
[   15.395542@2]  asoc debug: extn_dai_probe-483
[   15.395583@2]  hdmirx_arc_write_reg reg 0x42, value 0xfffffff9
[   15.396127@2]  hdmirx_arc_write_reg reg 0x40, value 0x94830490
[   15.396851@2]  hdmirx_arc_write_reg reg 0x41, value 0x40011508
[   15.397629@2]  new_resample_set_ratio(), id = 0, phase_step = 0x10000000, input_sr = 48000, output_sr = 48000
[   15.397772@1]  audio_dsp: [dsp]register dsp to char divece(272)
[   15.399685@2]  asoc-aml-card auge_sound: soc:dummy <-> SPDIF mapping ok
[   15.400375@2]  aml_set_tdm_mclk:set mpll_freq: 491520000
[   15.401097@2]  master_mode(1), binv(1), finv(0) out_skew(2), in_skew(3)
[   15.401917@2]  asoc-aml-card auge_sound: soc:dummy <-> TDM-A mapping ok
[   15.402704@2]  master_mode(1), binv(1), finv(1) out_skew(2), in_skew(3)
[   15.403569@2]  asoc-aml-card auge_sound: soc:dummy <-> TDM-C mapping ok
[   15.404369@2]  asoc-aml-card auge_sound: soc:dummy <-> fe330000.audiobus:pdm mapping ok
[   15.405376@2]  asoc-aml-card auge_sound: soc:dummy <-> SPDIF-B mapping ok
[   15.406215@2]  asoc-aml-card auge_sound: soc:dummy <-> fe330000.audiobus:extn mapping ok
[   15.407178@2]  
[   15.407178@2]  loopback_dai_set_sysclk, 0, 12288000, 0
[   15.408058@2]  asoc loopback_dai_set_fmt, 0x4010, 0000000019c6ebb3
[   15.408843@2]  asoc-aml-card auge_sound: soc:dummy <-> fe330000.audiobus:loopback@0 mapping ok
[   15.410804@2]  snd_card_add_kcontrols card:000000002cad8a6a
[   15.410913@2]  no node audio_effect for eq/drc info!
[   15.421778@3]  wzh txamp 0x34
[   15.424426@3]  meson_cpufreq: meson_cpufreq_init: ignor dsu clk!
[   15.424494@3]  meson_cpufreq: meson_cpufreq_init: ignor dsu pre parent clk!
vmin:61 a9 c9 0!
pdvfs = 0 disabled!
[   15.425782@3]  meson_cpufreq: choose_cpufreq_tables_index:clusterid: 0 tables_index 0
[   15.427267@3]  energy_model: pd0: hertz/watts ratio non-monotonically decreasing: em_cap_state 1 >= em_cap_state0
[   15.428285@3]  cpu cpu0: meson_cpufreq_init: CPU 0 initialized
[   15.429565@3]  meson_cpufreq: meson_cpufreq_init: ignor dsu clk!
[   15.429624@3]  meson_cpufreq: meson_cpufreq_init: ignor dsu pre parent clk!
vmin:61 a9 c9 0!
pdvfs = 0 disabled!
[   15.430913@3]  meson_cpufreq: choose_cpufreq_tables_index:clusterid: 1 tables_index 0
[   15.432548@3]  energy_model: pd4: hertz/watts ratio non-monotonically decreasing: em_cap_state 3 >= em_cap_state2
[   15.433167@3]  energy_model: pd4: hertz/watts ratio non-monotonically decreasing: em_cap_state 4 >= em_cap_state3
[   15.434566@3]  cpu cpu4: meson_cpufreq_init: CPU 4 initialized
[   15.435218@3]  cpufreq: cpufreq_online: CPU4: Running at unlisted freq: 999999 KHz
[   15.438270@3]  cpufreq: cpufreq_online: CPU4: Unlisted initial frequency changed to: 1000000 KHz
[   15.447757@1]  gpio-keypad gpio_keypad: power key(116) type(0x1) registered.
[   15.448016@1]  input: gpio_keypad as /devices/platform/gpio_keypad/input/input6
[   15.448782@2]  Fine spdif sysclk setting range(0~2000000), 6143970
[   15.449743@2]  aml_audio_set_spdif_mute(), no pinctrl
[   15.449784@2]  spdif_set_cs(), status0=0x2000100
[   15.450957@2]  aml_audio_set_spdif_mute(), no pinctrl
[   15.450999@2]  Fine spdif sysclk setting range(0~2000000), 491517535
[   15.452297@2]  spdif_set_cs(), status0=0x0
[   15.452773@2]  T7_FRHDMIRX, can't switch mode
[   15.453562@2]  [RX]-edid: use Top edid
[   15.453769@2]  [RX]-invalid edid size: 0
[   15.454254@2]  [RX]-update atmos later, in arc port:Y
[   15.455057@2]  arc_enable enable: 0, type -107, is_reset_hpd 0
[   15.455633@2]  hdmirx_arc_update_reg reg 0x40, mask 0x80000000, value 0x0
[   15.456599@2]  Error: parma_num = 0, band_id = -64
[   15.457082@2]  Error: parma_num = 1, band_id = 10377
[   15.457544@1]  input: adc_keypad as /devices/platform/adc_keypad/input/input7
[   15.457682@2]  Error: parma_num = 0, band_id = -17
[   15.459181@2]  Error: parma_num = 0, band_id = 0
[   15.459314@0]  CPU0: update max cpu_capacity 1024
[   15.460509@2]  vad_set_enable_enum, p_vad->end = 0, set value 0
[   15.461174@2]  out of value, fixed it
[   15.461526@2]  id=0 set inskew=0
[   15.461948@2]  update audio atmos flag! audio_type = 0
[   15.464798@0]  checking watermark status return 0xFFFFFFFF
[   15.464842@0]  optee_armtz: initialized driver
[  103.717838@6]  proc: Bad value for 'hidepid'
Give root password for maintenance
(or press Control-D to continue): 
root@nanoserver:~# `

see optee_armtz:

In case your interested I also have the apt history

My last five dumps, going back a week or more all have this issue.
Dumps I made today for testing work fine.

It would be great to be able to revive these dumps so I don’t have to redo multiple days of work and possibly end up with another bad dump.

Thanks for you help @numbqq

Hello @hyphop

Any suggestions about this?

yes ! please write me more detail about problem as PM i will try to understand what wrong

But we must undestand next parts

  • dump just a snapshot of eMMC content as is
  • when we restore some dump image its must restore totally same content of eMMC

problems maybe happens only if

  • we restore image for other eMMC size
  • other hardware revisioin
  • other hardware configuration

but any way if some problem exist we must try to understand why its happens

I’ve identified the problem and can recover my dumps that appear to be non-functional.

The dumps when restored simultaneously can’t boot when a ‘bad’ SD card is inserted and can’t boot because the ‘bad’ SD card is not inserted. Go figure. The solution is to insert the ‘bad’ SD card when the system seems to hang and it will finish booting. The boot hangs without the ‘bad’ card because it is waiting to mount partitions on the SD card (/etc/fstab).

The ‘bad’ SD card is still a problem but can be easily avoided. DON’T make an SD card with a DOS partition table with four primary linux type partitions each with an ext4 file system. And if you do, DON’T leave it in the VIM4.

I’m now going back to ENJOYING my VIM4.

1 Like