Which system do you use? Android, Ubuntu, OOWOW or others?
Android 14, prebuilt firmware for VIM3(Main branch(Latest) 20241220) provide by Khadas in post -
Which version of system do you use? Please provide the version of the system here:
Main branch(Latest) 20241220
Please describe your issue below:
I got 2 VIM3 - they are different in hardware version v14 and v15.
VIM3 v14 is fine with the prebuilt firmware.
VIM3 v15 is not able to flash boot.img.
Here are mt my flashing steps:
- power and press the ‘F‘ key on VIM3 3 times shortly
- export BOOTLOADER_NAME=u-boot_kvim3_ab.bin
- boot-g12.py ${BOOTLOADER_NAME}
- fastboot flash bootloader ${BOOTLOADER_NAME}
- fastboot erase bootenv && fastboot oem format && fastboot reboot bootloader
- press the ‘R‘ key on VIM3
- fastboot flash boot_a boot.img && fastboot flash boot_b boot.img && fastboot flash super super.img && fastboot flash userdata userdata.img && fastboot flash dtbo_a dtbo-unsigned.img && fastboot flash dtbo_b dtbo-unsigned.img && fastboot erase misc && fastboot erase frp && fastboot format metadata && fastboot reboot
at step 6, I see this error on console:
…
Hit any key to stop autoboot: 0
Verify GPT: error!
Broken MMC partition scheme
Running Fastboot…
…
Then stop at “boot” partition not found
Running Fastboot…
crq->brequest:0x0
** Bad device specification mmc boot_a_a **
** Bad device specification mmc boot_a_a **
Couldn’t find partition mmc boot_a_a
** Bad device specification mmc boot_a **
** Bad device specification mmc boot_a **
Couldn’t find partition mmc boot_a
** Bad device specification mmc boot_a **
** Bad device specification mmc boot_a **
Couldn’t find partition mmc boot_a
Starting download of 35448832 bytes
…
…
…
…
downloading of 35448832 bytes finished
** Bad device specification mmc boot_a **
** Bad device specification mmc boot_a **
Couldn’t find partition mmc boot_a
Post a console log of your issue below:
G12B:BL:6e7c85:2a3b91;FEAT:E0F83180:402000;POC:F;RCY:0;EMMC:0;READ:0;CHK:1F;READ:0;0.
bl2_stage_init 0x01
bl2_stage_init 0x81
hw id: 0x0000 - pwm id 0x01
bl2_stage_init 0xc1
bl2_stage_init 0x02L0:00000000
L1:20000703
L2:00008067
L3:14000000
B2:00402000
B1:e0f83180TE: 131054
BL2 Built : 16:01:39, May 25 2020. g12b gb6bfa83 - gongwei.chen@droid11-sz
Board ID = 6
Set A53 clk to 24M
Set A73 clk to 24M
Set clk81 to 24M
A53 clk: 1200 MHz
A73 clk: 1200 MHz
CLK81: 166.6M
smccc: 000248d2
eMMC boot @ 1
sw8 s
board id: 6
Load FIP HDR DDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 1
Get wrong ddr fw magic! Error!!
fw parse done
PIEI prepare done
ddr saved addr:00016000
Load ddr parameter from eMMC, src: 0x02c00000, des: 0xfffd0000, size: 0x00001000, part: 0
00000000
emmc switch 0 ok
fastboot data verify
result: 255
Cfg max: 12, cur: 1. Board id: 255. Force loop cfg
LPDDR4 probeLPDDR4_PHY_V_0_1_22-Built : 16:01:44, May 25 2020. g12b gb6bfa83 - gongwei.chen@droid11-sz
ddr clk to 1608MHz
00000000
emmc switch 1 okdmc_version 0001
Check phy result
INFO : End of CA training
INFO : End of initialization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End�G12B:BL:6e7c85:2a3b91;FEAT:E0F83180:402000;POC:D;RCY:0;USB:0;0.
bl2_stage_init 0x01
bl2_stage_init 0x81
hw id: 0x0000 - pwm id 0x01
bl2_stage_init 0xc1
bl2_stage_init 0x02L0:00000000
L1:20000703
L2:00008067
L3:14000000
B2:00402000
B1:e0f83180TE: 56562398
BL2 Built : 16:01:39, May 25 2020. g12b gb6bfa83 - gongwei.chen@droid11-sz
Board ID = 6
Set A53 clk to 24M
Set A73 clk to 24M
Set clk81 to 24M
A53 clk: 1200 MHz
A73 clk: 1200 MHz
CLK81: 166.6M
smccc: 035f5c72
board id: 6
Cfg max: 12, cur: 1. Board id: 255. Force loop cfg
DATA transfer complete…
Get wrong ddr fw magic! Error!!
fw parse done
DATA transfer complete…
AML DDR FW load done
DATA transfer complete…
PIEI prepare done
LPDDR4 probeLPDDR4_PHY_V_0_1_22-Built : 16:01:44, May 25 2020. g12b gb6bfa83 - gongwei.chen@droid11-sz
ddr clk to 1608MHz
DATA transfer complete…dmc_version 0001
Check phy result
INFO : End of CA training
INFO : End of initialization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of Write leveling coarse delay
INFO : End of read delay center optimization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of MPR read delay center optimization
INFO : End of write delay center optimization
INFO : End of read delay center optimization
INFO : End of max read latency training
INFO : Training has run successfully!
1D init succeed
DATA transfer complete…
Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!soc_vref_reg_value 0x 00000027 00000029 00000028 00000026 00000028 00000026 00000026 00000026 00000026 00000025 00000025 00000024 00000026 00000026 00000026 00000026 00000028 00000028 00000026 00000028 00000026 00000028 00000028 00000026 00000027 00000028 00000027 00000026 00000027 00000026 00000026 00000027 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004
dram_vref_reg_value 0x 00000014
2D init succeed
ddr init done, boot next stage
result report
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00e00024DDR size: 3928MB
cs0 DataBus test pass
cs1 DataBus test pass
cs0 AddrBus test pass
cs1 AddrBus test pass
DATA transfer complete…
DATA transfer complete…
Data req end
DATA transfer complete…
RUN bl2 usb boot
0.0;M3 CHK:0;cm4_sp_mode 0
[Image: g12b_v1.1.3394-7d43064d5 2020-05-07 15:37:11 gongwei.chen@droid11-sz]
OPS=0x10
ring efuse init
chipver efuse init
29 0b 10 00 01 1a 06 00 00 11 32 39 33 4b 4d 50
[0.016073 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE: BL31: v1.3(release):d9e1bbe85
NOTICE: BL31: Built : 19:07:43, Sep 7 2020
NOTICE: BL31: G12A normal boot!
NOTICE: BL31: BL33 decompress pass
ERROR: Error initializing runtime service opteed_fast<debug_uart>
U-Boot 2024.01-rc1-18687-g1aa26a76a4e7 (Feb 15 2024 - 18:39:08 +0100) khadas-vim3
Model: Khadas VIM3
SoC: Amlogic Meson G12B (A311D) Revision 29:b (10:2)
DRAM: 2 GiB (effective 3.8 GiB)
Core: 410 devices, 36 uclasses, devicetree: separate
MMC: sd@ffe03000: 0, sd@ffe05000: 1, mmc@ffe07000: 2
Loading Environment from MMC… MMC Device -1 not found
*** Warning - No MMC card found, using default environmentIn: usbkbd,serial
Out: vidconsole,serial
Err: vidconsole,serial
Net: eth0: ethernet@ff3f0000
Hit any key to stop autoboot: 0
Fastboot forced by usb rom boot
Running Fastboot…
crq->brequest:0x0
** Bad device specification mmc bootloader_a **
** Bad device specification mmc bootloader_a **
Couldn’t find partition mmc bootloader_a
Starting download of 1280880 bytes
…
downloading of 1280880 bytes finished
Flashing Raw Image
… wrote 1281024 bytes to ‘bootloader’
** Bad device specification mmc bootenv_a **
** Bad device specification mmc bootenv_a **
Couldn’t find partition mmc bootenv_a
Erasing blocks 0 to 3072 due to alignment
… erased 1572864 bytes from ‘bootenv’
Writing GPT: success!
resetting …
bl31 reboot reason: 0xd
bl31 reboot reason: 0x0
system cmd 1.
G12B:BL:6e7c85:2a3b91;FEAT:E0F83180:402000;POC:D;RCY:0;USB:0;G12B:BL:6e7c85:2a3b91;FEAT:E0F83180:402000;POC:F;RCY:0;EMMC:0;READ:0;CHK:1F;READ:0;0.
bl2_stage_init 0x01
bl2_stage_init 0x81
hw id: 0x0000 - pwm id 0x01
bl2_stage_init 0xc1
bl2_stage_init 0x02L0:00000000
L1:20000703
L2:00008067
L3:14000000
B2:00402000
B1:e0f83180TE: 140786
BL2 Built : 16:01:39, May 25 2020. g12b gb6bfa83 - gongwei.chen@droid11-sz
Board ID = 6
Set A53 clk to 24M
Set A73 clk to 24M
Set clk81 to 24M
A53 clk: 1200 MHz
A73 clk: 1200 MHz
CLK81: 166.6M
smccc: 00026ed7
eMMC boot @ 1
sw8 s
board id: 6
Load FIP HDR DDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 1
Get wrong ddr fw magic! Error!!
fw parse done
PIEI prepare done
ddr saved addr:00016000
Load ddr parameter from eMMC, src: 0x02c00000, des: 0xfffd0000, size: 0x00001000, part: 0
00000000
emmc switch 0 ok
fastboot data verify
result: 255
Cfg max: 12, cur: 1. Board id: 255. Force loop cfg
LPDDR4 probeLPDDR4_PHY_V_0_1_22-Built : 16:01:44, May 25 2020. g12b gb6bfa83 - gongwei.chen@droid11-sz
ddr clk to 1608MHz
00000000
emmc switch 1 okdmc_version 0001
Check phy result
INFO : End of CA training
INFO : End of initialization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of Write leveling coarse delay
INFO : End of read delay center optimization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of MPR read delay center optimization
INFO : End of write delay center optimization
INFO : End of read delay center optimization
INFO : End of max read latency training
INFO : Training has run successfully!
1D training succeed
Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!soc_vref_reg_value 0x 00000027 00000029 00000028 00000026 00000028 00000026 00000026 00000026 00000026 00000025 00000025 00000025 00000026 00000026 00000026 00000026 00000028 00000028 00000026 00000028 00000027 00000029 00000027 00000026 00000027 00000027 00000027 00000026 00000026 00000026 00000027 00000027 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004
dram_vref_reg_value 0x 00000014
2D training succeed
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00e00024DDR size: 3928MB
cs0 DataBus test pass
cs1 DataBus test pass
cs0 AddrBus test pass
cs1 AddrBus test passnon-sec scramble use zero key
ddr scramble enabled100bdlr_step_size ps== 420
result report
boot times 0Enable ddr reg access
00000000
emmc switch 3 ok
Authentication key not yet programmed
get rpmb counter error 0x00000007
00000000
emmc switch 1 ok
Load FIP HDR from eMMC, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 1
Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x000c0c00, part: 1
0.0;M3 CHK:0;cm4_sp_mode 0
[Image: g12b_v1.1.3394-7d43064d5 2020-05-07 15:37:11 gongwei.chen@droid11-sz]
OPS=0x10
ring efuse init
chipver efuse init
29 0b 10 00 01 1a 06 00 00 11 32 39 33 4b 4d 50
[0.016073 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE: BL31: v1.3(release):d9e1bbe85
NOTICE: BL31: Built : 19:07:43, Sep 7 2020
NOTICE: BL31: G12A normal boot!
NOTICE: BL31: BL33 decompress pass
ERROR: Error initializing runtime service opteed_fast<debug_uart>
U-Boot 2024.01-rc1-18687-g1aa26a76a4e7 (Feb 15 2024 - 18:39:08 +0100) khadas-vim3
Model: Khadas VIM3
SoC: Amlogic Meson G12B (A311D) Revision 29:b (10:2)
DRAM: 2 GiB (effective 3.8 GiB)
Core: 410 devices, 36 uclasses, devicetree: separate
MMC: sd@ffe03000: 0, sd@ffe05000: 1, mmc@ffe07000: 2
Loading Environment from MMC… MMC partition switch failed
*** Warning - MMC partition switch failed, using default environmentIn: usbkbd,serial
Out: vidconsole,serial
Err: vidconsole,serial
Net: eth0: ethernet@ff3f0000
Hit any key to stop autoboot: 0
Verify GPT: error!
Broken MMC partition scheme
Running Fastboot…
crq->brequest:0x0
** Bad device specification mmc boot_a_a **
** Bad device specification mmc boot_a_a **
Couldn’t find partition mmc boot_a_a
** Bad device specification mmc boot_a **
** Bad device specification mmc boot_a **
Couldn’t find partition mmc boot_a
** Bad device specification mmc boot_a **
** Bad device specification mmc boot_a **
Couldn’t find partition mmc boot_a
Starting download of 35448832 bytes
…
…
…
…
downloading of 35448832 bytes finished
** Bad device specification mmc boot_a **
** Bad device specification mmc boot_a **
Couldn’t find partition mmc boot_a
Is Android supported on VIM3 v15?
Thanks

