VirtualBox虚拟机不能烧录R329设备
-
不想安装Windows物理机,也不想安装的Ubuntu版本太低,于是就有了这个问题。
物理机Ubuntu 22.04,虚拟机软件VirtualBox 7.0,虚拟机添加了USB设备过滤器
1. 虚拟机系统Window 10
虚拟机里安装了官网提供的驱动和烧录软件,https://www.aw-ol.com/downloads/resources/15,https://www.aw-ol.com/downloads/resources/13
设备管理器里提示 “未知USB设备(设备描述符请求失败)”
PhoenixSuit识别不到设备
2. 虚拟机Ubuntu 14.04
准备工作:
下载LiveSuit工具包,https://www.aw-ol.com/downloads/resources/19# apt-get install dkms # make # sudo insmod awusb.ko
设备端reboot efex的log
root@TinaLinux:/# reboot efex write misc: efex [ 72.848061] store rtc flag 0x5a write rtc: efex root@TinaLinux:/# [ 74.356513] [STA_WRN] !!! xradio_remove_interface: vif_id=0 [ 74.365210] device eth0 left promiscuous mode [ 74.370552] br-lan: port 1(eth0) entered disabled state [ 74.415330] android_work: sent uevent USB_STATE=DISCONNECTED [ 74.421754] android_work: did not send uevent (0 0 (null)) [ 75.918819] [alarmtimer] have no shutdown alarm! alarmtimer_shutdown 322 [ 76.180685] [LCD_FB] lcd_fb_gpio_set_value,line:353: [ 76.186088] OSAL_GPIO_DevWRITE_ONEPIN_DATA, hdl is NULL [ 76.236574] [LCD_FB] lcd_fb_shutdown,line:89: [ 76.241296] Finish [ 76.243879] sunxi_ohci_hcd_shutdown, ohci0-controller is disable, need not shutdown [ 76.252513] sunxi_ehci_hcd_shutdown, ehci0-controller is disable, need not shutdown [ 76.261218] reboot: Restarting system [37]HELLO! BOOT0 is starting! [40]BOOT0 commit : 97444f5 [43]set pll start [45]periph0 has been enabled [48]set pll end [50]board init ok [52]rtc[3] value = 0xa102 [54]the chip id is 0x3 [56]the chip id is 0x3 [59]the chip id is 0x3 [61]the chip id is 0x3 [63]the chip id is 0x3 [65]chip id check OK [68][AUTO DEBUG] two rank and full DQ! [72][AUTO DEBUG] DDR3 try success [76][AUTO DEBUG] single rank and full DQ! [81][AUTO DEBUG] rank 0 row = 14 [84][AUTO DEBUG] rank 0 bank = 8 [88][AUTO DEBUG] rank 0 page size = 2 KB [92]DRAM BOOT DRIVE INFO: V0.171 [95]DRAM Type = 3 (2:DDR2,3:DDR3) [98]DRAMC read ODT off. [101]DRAM ODT off. [104]DRAM CLK = 774 MHz [106]DRAM SIZE =256 M [112]DRAM simple test OK. [114]dram size =256 [117]spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 32 [123]block from 8 to 32 [232]Check is correct. [234]dma 0x107f70 int is not used yet [238]dma 0x107f70 int is free, you do not need to free it again [244]Entry_name = u-boot [251]Entry_name = monitor [254]Entry_name = dtb [257]Jump to second Boot. NOTICE: BL3-1: v1.0(debug):3eba4b6 NOTICE: BL3-1: Built : 10:18:25, 2020-05-21 NOTICE: BL3-1 commit: 8 ERROR: Error initializing runtime service tspd_fast NOTICE: BL3-1: Preparing for EL3 exit to normal world NOTICE: BL3-1: Next image address = 0x43000000 �OTICE: BL3-1: Next image spsr = 0x1d3 U-Boot 2018.05-gaf1124f (Jan 31 2021 - 06:20:17 +0000) Allwinner Technology [00.314]CPU: Allwinner Family [00.316]Model: sun50iw11 I2C: ready [00.440]DRAM: 256 MiB [00.442]Relocation Offset is: 0ceff000 [00.465]secure enable bit: 0 [00.467]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=0Mhz [00.478]gic: sec monitor mode [00.481]flash init start [00.483]workmode = 0,storage type = 0 [00.493]sunxi-spinand-phy: not detect any munufacture from id table [00.500]sunxi-spinand-phy: get spi-nand Model from fdt fail [00.505]sunxi-spinand-phy: get phy info from fdt fail device nand0 <nand>, # parts = 5 #: name size offset mask_flags 0: boot0 0x00100000 0x00000000 1 1: uboot 0x00300000 0x00100000 1 2: secure_storage 0x00100000 0x00400000 1 3: pstore 0x00080000 0x00500000 1 4: sys 0x07a80000 0x00580000 0 active partition: nand0,0 - (boot0) 0x00100000 @ 0x00000000 defaults: mtdids : nand0=nand mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,512k@5242880(pstore)ro,-(sys) [00.760]ubi0: attaching mtd5 [00.889]ubi0: scanning is finished [00.896]ubi0: attached mtd5 (name "sys", size 122 MiB) [00.901]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes [00.907]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048 [00.914]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [00.920]ubi0: good PEBs: 490, bad PEBs: 0, corrupted PEBs: 0 [00.925]ubi0: user volume: 12, internal volumes: 1, max. volumes count: 128 [00.932]ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0 [00.940]ubi0: available PEBs: 0, total reserved PEBs: 490, PEBs reserved for bad PEB handling: 20 [00.948]sunxi flash init ok [00.951]bmp_name=bootlogo.bmp 307254 bytes read in 20 ms (14.7 MiB/s) [01.164]Loading Environment from SUNXI_FLASH... OK [01.190]Item0 (Map) magic is bad [01.193]usb burn from boot delay time 0 weak:otg_phy_config [01.205]usb prepare ok [01.454]usb sof ok [01.455]usb probe ok [01.457]usb setup ok set address 0x16 set address 0x16 ok set address 0x16 set address 0x16 ok [04.463]do_burn_from_boot usb : have no handshake partno erro : can't find partition private [04.484]bootmode[2]:0x5a [37]HELLO! BOOT0 is starting! [40]BOOT0 commit : 97444f5 [43]set pll start [45]periph0 has been enabled [48]set pll end [50]board init ok [52]rtc[2] value = 0x5aa5a55a [54]rtc[3] value = 0xa102 [57]eraly jump fel [3829]fes begin commit:97444f5 [3831]set pll start [3834]periph0 has been enabled [3837]pll_audio0 has been enabled [3840]set pll end [3842]board init ok [3844]beign to init dram [3846]the chip id is 0x3 [3848]the chip id is 0x3 [3851]the chip id is 0x3 [3853]the chip id is 0x3 [3855]the chip id is 0x3 [3858]chip id check OK [3861][AUTO DEBUG] two rank and full DQ! [3864][AUTO DEBUG] DDR3 try success [3869][AUTO DEBUG] single rank and full DQ! [3873][AUTO DEBUG] rank 0 row = 14 [3877][AUTO DEBUG] rank 0 bank = 8 [3880][AUTO DEBUG] rank 0 page size = 2 KB [3884]DRAM BOOT DRIVE INFO: V0.171 [3887]DRAM Type = 3 (2:DDR2,3:DDR3) [3890]DRAMC read ODT off. [3893]DRAM ODT off. [3896]DRAM CLK = 774 MHz [3898]DRAM SIZE =256 M [3901]DRAM simple test OK. [3904]init dram ok U-Boot 2018.05-gaf1124f (Jan 31 2021 - 06:20:17 +0000) Allwinner Technology [06.733]CPU: Allwinner Family [06.736]Model: sun50iw11 I2C: ready [06.859]DRAM: 256 MiB [06.862]Relocation Offset is: 0ceff000 [06.885]secure enable bit: 0 [06.888]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=0Mhz [06.899]gic: normal mode [06.901]flash init start [06.903]workmode = 16,storage type = 0 try card 0 set card number 0 get card number 0 [06.911][mmc]: mmc driver ver uboot2018:2020-10-22 16:39:00 [06.921][mmc]: Using default timing para [06.925][mmc]: SUNXI SDMMC Controller Version:0x50300 [06.938][mmc]: mmc 0 cmd timeout 100 status 100 [06.942][mmc]: smc 0 err, cmd 8, RTO [06.945][mmc]: mmc 0 close bus gating and reset [06.950][mmc]: mmc 0 cmd timeout 100 status 100 [06.954][mmc]: smc 0 err, cmd 55, RTO [06.958][mmc]: mmc 0 close bus gating and reset [06.966][mmc]: mmc 0 cmd timeout 100 status 100 [06.970][mmc]: smc 0 err, cmd 1, RTO [06.973][mmc]: mmc 0 close bus gating and reset [06.977][mmc]: Card did not respond to voltage select! [06.982][mmc]: mmc_init: -95, time 53 [06.985][mmc]: mmc_init: mmc init fail, err -95 MMC init failed try emmc fail [06.994]sunxi-spinand: AW SPINand MTD Layer Version: 1.5 20200407 [06.999]sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.9 20200306 [07.011]sunxi-spinand-phy: request spi0 gpio ok [07.015]sunxi-spinand-phy: request general tx dma channel ok! [07.020]sunxi-spinand-phy: request general rx dma channel ok! [07.026]sunxi-spinand-phy: set spic0 clk to 20 Mhz [07.030]sunxi-spinand-phy: init spic0 clk ok [07.034]sunxi-spinand-phy: not detect any munufacture from id table [07.041]sunxi-spinand-phy: get spi-nand Model from fdt fail [07.046]sunxi-spinand-phy: get phy info from fdt fail [07.051]sunxi-spinand-phy: not detect munufacture from fdt [07.056]sunxi-spinand-phy: detect munufacture from id table: GD [07.062]sunxi-spinand-phy: detect spinand id: 7f7f01c8 ffffff7f [07.068]sunxi-spinand-phy: ========== arch info ========== [07.073]sunxi-spinand-phy: Model: F50L1G41LB(2M) [07.078]sunxi-spinand-phy: Munufacture: GD [07.083]sunxi-spinand-phy: DieCntPerChip: 1 [07.087]sunxi-spinand-phy: BlkCntPerDie: 1024 [07.092]sunxi-spinand-phy: PageCntPerBlk: 64 [07.097]sunxi-spinand-phy: SectCntPerPage: 4 [07.101]sunxi-spinand-phy: OobSizePerPage: 64 [07.105]sunxi-spinand-phy: BadBlockFlag: 0x1 [07.110]sunxi-spinand-phy: OperationOpt: 0xf [07.115]sunxi-spinand-phy: MaxEraseTimes: 65000 [07.119]sunxi-spinand-phy: EccFlag: 0x0 [07.124]sunxi-spinand-phy: EccType: 2 [07.128]sunxi-spinand-phy: EccProtectedType: 3 [07.133]sunxi-spinand-phy: ======================================== [07.139]sunxi-spinand-phy: [07.141]sunxi-spinand-phy: ========== physical info ========== [07.147]sunxi-spinand-phy: TotalSize: 128 M [07.151]sunxi-spinand-phy: SectorSize: 512 B [07.155]sunxi-spinand-phy: PageSize: 2 K [07.159]sunxi-spinand-phy: BlockSize: 128 K [07.163]sunxi-spinand-phy: OOBSize: 64 B [07.167]sunxi-spinand-phy: ======================================== [07.173]sunxi-spinand-phy: [07.176]sunxi-spinand-phy: ========== logical info ========== [07.181]sunxi-spinand-phy: TotalSize: 128 M [07.186]sunxi-spinand-phy: SectorSize: 512 B [07.190]sunxi-spinand-phy: PageSize: 4 K [07.194]sunxi-spinand-phy: BlockSize: 256 K [07.198]sunxi-spinand-phy: OOBSize: 128 B [07.202]sunxi-spinand-phy: ======================================== [07.209]sunxi-spinand-phy: set spic0 clk to 100 Mhz [07.214]sunxi-spinand-phy: block lock register: 0x00 [07.218]sunxi-spinand-phy: feature register: 0x10 [07.223]sunxi-spinand-phy: sunxi physic nand init end [07.228]Loading Environment from SUNXI_FLASH... OK [07.233]try to burn key [07.236]out of usb burn from boot: not boot mode Hit any key to stop autoboot: 0 sunxi work mode=0x10 run usb efex delay time 2500 weak:otg_phy_config usb init ok set address 0x18 set address 0x18 ok set address 0x18 set address 0x18 ok set address 0x18 set address 0x18 ok set address 0x18 set address 0x18 ok set address 0x18 set address 0x18 ok set address 0x18
虚拟机端sudo ./LiveSuit的log
$ sudo ./LiveSuit.sh Starting x86-64/LiveSuit. library file path: /home/peter/sunxi-livesuite/x86-64/plgvector.dll library file path: /home/peter/sunxi-livesuite/x86-64/LangPlg.dll LoadFile 24 Open 274: Language file format is UTF-8 library file path: /home/peter/sunxi-livesuite/x86-64/LiveProc.Plg library file path: /home/peter/sunxi-livesuite/x86-64/plgvector.dll library file path: /home/peter/sunxi-livesuite/x86-64/luaeFex.dll Register./luaBase.dll l_RegAllFun Sucess! Register./luaeFex.dll l_RegAllFun Sucess! Register./luadec.dll l_RegAllFun Sucess! IMAGEWTY ItemTableSize = 1048576 Closing image now! Clos image OK! Dev Plugin The Device Path is: /dev/aw_efex0 Register./luaBase.dll l_RegAllFun Sucess! Register./luaeFex.dll l_RegAllFun Sucess! Register./luadec.dll l_RegAllFun Sucess! IMAGEWTY ItemTableSize = 1048576 Closing image now! Clos image OK! Register./luaBase.dll l_RegAllFun Sucess! Register./luaeFex.dll l_RegAllFun Sucess! Register./luadec.dll l_RegAllFun Sucess! IMAGEWTY ItemTableSize = 1048576 Closing image now! Clos image OK! --------------Init Called------------------ workDir /home/peter/sunxi-livesuite/x86-64/LiveSuit ImgLenHigh 0 ImgLenLow 35561472 Mode 8 hWnd 0 imgFilePath /home/peter/share/r329-evb5/out/r329-evb5/tina_r329-evb5_uart0.img [TL_MSG]:Mode = 8, ImgLenHigh=0, ImgLenLow = 21ea000, imgFilePath = /home/peter/share/r329-evb5/out/r329-evb5/tina_r329-evb5_uart0.img IMAGEWTY ItemTableSize = 1048576 [TL_MSG]:Tools Open Img ---fun end--- --------------entry-fel2fes Called----------- felDevName /dev/aw_efex0 [TL_MSG]:Hi, I'm fel, dev=/dev/aw_efex0 [TL_MSG]:To down and Run fes1-1 [TL_MSG]:fes1 down addr = 0x108000, retAddr =0x108340 [TL_MSG]:To clear fes aide log [TL_FEX]:fel UP addr=0x108340, len=136 [TL_MSG]:SYS_PARA_LOG read = 0x4d415244 [TL_MSG]:dram paras[0]: 0x306 [TL_MSG]:dram paras[1]: 0x3 [TL_MSG]:dram paras[2]: 0x3bfb [TL_MSG]:dram paras[3]: 0x0 [TL_MSG]:dram paras[4]: 0x10e2 [TL_MSG]:dram paras[5]: 0x1000000 [TL_MSG]:dram paras[6]: 0x1c70 [TL_MSG]:dram paras[7]: 0x2 [TL_MSG]:dram paras[8]: 0x18 [TL_MSG]:dram paras[9]: 0x0 [TL_MSG]:dram paras[10]: 0x4a2195 [TL_MSG]:dram paras[11]: 0x242318f [TL_MSG]:dram paras[12]: 0x8805f [TL_MSG]:dram paras[13]: 0xb4787896 [TL_MSG]:dram paras[14]: 0x0 [TL_MSG]:dram paras[15]: 0x48484848 [TL_MSG]:dram paras[16]: 0x30000048 [TL_MSG]:dram paras[17]: 0x1620121e [TL_MSG]:dram paras[18]: 0x0 [TL_MSG]:dram paras[19]: 0x0 [TL_MSG]:dram paras[20]: 0x0 [TL_MSG]:dram paras[21]: 0x220000 [TL_MSG]:dram paras[22]: 0x55 [TL_MSG]:dram paras[23]: 0x14006103 [TL_MSG]:dram paras[24]: 0x0 [TL_MSG]:dram paras[25]: 0x0 [TL_MSG]:dram paras[26]: 0x0 [TL_MSG]:dram paras[27]: 0x0 [TL_MSG]:dram paras[28]: 0x0 [TL_MSG]:dram paras[29]: 0x0 [TL_MSG]:dram paras[30]: 0x0 [TL_MSG]:dram paras[31]: 0x0 [TL_MSG]:To down and Run uboot [TL_MSG]:u-boot down addr = 0x43000000 [TL_MSG]:workmode = 0x10 [TL_MSG]:dtb down addr = 0x43200000 [TL_MSG]:sysconfig down addr = 0x43300000 ---fun end--- Fel Thread Finished! Dev Plugout The Device Path is: /dev/aw_efex0 Dev Plugout The Device Path is: /dev/aw_efex0 Dev Plugout The Device Path is: /dev/aw_efex0
LiveSuit软件界面报错
然后
结果就是无法烧录最新的固件包,不能升级软件
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号