1. 在docker 下,系统为UBUNTU18.04, 采用全自动编译脚本 ./build.sh firefly_rk3308_b_dmic_release_BoardConfig.mk ./build.sh 2. 使用脚本生成固件 ./mkfirmware.sh 3. 打包成update.img 4. 在UBUNTU20.04使用upgrade_tool 升级固件, 升级成功 5. 单板重启后,发现串口打印一直停在Starting kernel ... 以下是日志: DDR Version V1.29 20190730 REG2C: 0x00000033, 0x00000034 In 589MHz DDR3 Col=10 Bank=3 Row=15 Size=512MB msch:1 OUT Boot1 Release Time: Oct 28 2019 20:02:13, version: 1.19 chip_id:330800,0 ChipType = 0x13, 35790968 DPLL = 1300 MHz sfc nor id: ff ff ff DPLL = 1300 MHz sfc_nand id: ff ff ff DPLL = 1300 MHz ...nandc_flash_init enter... NeedKHz=200KHz,clock=12000KHz NeedKHz=200KHz,clock=12000KHz NeedKHz=200KHz,clock=12000KHz DPLL = 1300 MHz NeedKHz=18000KHz,clock=650000KHz DPLL = 1300 MHz NeedKHz=48000KHz,clock=650000KHz mmc2:cmd19,100 SdmmcInit=2 0 BootCapSize=2000 UserCapSize=7456MB FwPartOffset=2000 , 2000 SdmmcInit=0 NOT PRESENT StorageInit ok = 35778248 SecureMode = 0 Secure read PBA: 0x4 Secure read PBA: 0x404 Secure read PBA: 0x804 Secure read PBA: 0xc04 Secure read PBA: 0x1004 SecureInit ret = 0, SecureMode = 0 atags_set_bootdev: ret:(0) GPT part: 0, name: uboot, start:0x2000, size:0x1000 GPT part: 1, name: trust, start:0x3000, size:0x1000 GPT part: 2, name: misc, start:0x4000, size:0x800 GPT part: 3, name: recovery, start:0x4800, size:0xa000 GPT part: 4, name: boot, start:0xe800, size:0xa000 GPT part: 5, name: rootfs, start:0x18800, size:0x80000 GPT part: 6, name: oem, start:0x98800, size:0x20000 GPT part: 7, name: userdata, start:0xb8800, size:0xdd77df find part:uboot OK. first_lba:0x2000. find part:trust OK. first_lba:0x3000. LoadTrust Addr:0x3000 No find bl30.bin No find bl32.bin Load uboot, ReadLba = 2000 Load OK, addr=0x600000, size=0xa5f04 RunBL31 0x40000 @ 35738861 us INFO: Preloader serial: 4 NOTICE: BL31: v1.3(release):30f1405 NOTICE: BL31: Built : 17:08:28, Sep 23 2019 INFO: Lastlog: last=0x100000, realtime=0x102000, size=0x2000 INFO: ARM GICv2 driver initialized INFO: Using opteed sec cpu_context! INFO: boot cpu mask: 1 INFO: plat_rockchip_pmu_init: pd status 0xe b INFO: BL31: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK ERROR: Error initializing runtime service opteed_fast INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x600000 INFO: SPSR = 0x3c9 U-Boot 2017.09 (May 31 2022 - 09:22:15 +0000) Model: Rockchip RK3308 EVB PreSerial: 4 DRAM: 510 MiB Sysmem: init Relocation Offset is: 1f90c000 Using default environment dwmmc@ff480000: 1, dwmmc@ff490000: 0 Bootdev(atags): mmc 0 MMC0: High Speed, 52Mhz PartType: EFI boot mode: recovery (misc) Found DTB in recovery part DTB: rk-kernel.dtb Error binding driver 'fixed regulator': -22 Some drivers failed to bind vdd_core init 1015000 uV DVFS: cpu: low=0.0'c, high=55.0'c, Vmax=1340000uV, tz_temp=55.0'c, h_repeat=0, l_repeat=0 DVFS: 39.90'c Model: Firefly RK3308 roc cc digital-pdm mic board CLK: (uboot. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A) apll 816000 KHz dpll 1300000 KHz vpll0 1177823 KHz vpll1 901583 KHz aclk_bus 185714 KHz hclk_bus 100000 KHz pclk_bus 100000 KHz aclk_peri 185714 KHz hclk_peri 100000 KHz pclk_peri 100000 KHz hclk_audio 98151 KHz pclk_audio 98151 KHz Net: eth0: ethernet@ff4e0000 DVFS: cpu 38.636'c, 816000000 Hz, 1015000 uV Hit key to stop autoboot('CTRL+C'): 0 ANDROID: reboot reason: "recovery" Fdt Ramdisk skip relocation Booting LZ4 kernel at 0x02480000(Uncompress to 0x00280000) with fdt at 0x1f00000... ## Booting Android Image at 0x0247f800 ... Kernel load addr 0x00280000 size 6588 KiB RAM disk load addr 0x04000000 size 6040 KiB ## Flattened Device Tree blob at 01f00000 Booting using the fdt blob at 0x1f00000 Uncompressing Kernel Image ... OK Using Device Tree in place at 0000000001f00000, end 0000000001f157f6 Adding bank: 0x00200000 - 0x20000000 (size: 0x1fe00000) Total: 602.228 ms Starting kernel ... PS: 我使用官方提供的固件进行升级,kernel 是可以正常起来。我将它的串口打印信息和我编译出来的固件的串口打印做了以下对比:分区大小有区别,同时自行编译的固件串口打印多了一句RAM disk load addr 0x04000000 size 6040 KiB DDR Version V1.29 20190730 REG2C: 0x00000033, 0x00000034 In 589MHz DDR3 Col=10 Bank=3 Row=15 Size=512MB msch:1 OUT Boot1 Release Time: Oct 28 2019 20:02:13, version: 1.19 chip_id:330800,0 ChipType = 0x13, 35790965 DPLL = 1300 MHz sfc nor id: ff ff ff DPLL = 1300 MHz sfc_nand id: ff ff ff DPLL = 1300 MHz ...nandc_flash_init enter... NeedKHz=200KHz,clock=12000KHz NeedKHz=200KHz,clock=12000KHz NeedKHz=200KHz,clock=12000KHz DPLL = 1300 MHz NeedKHz=18000KHz,clock=650000KHz DPLL = 1300 MHz NeedKHz=48000KHz,clock=650000KHz mmc2:cmd19,100 SdmmcInit=2 0 BootCapSize=2000 UserCapSize=7456MB FwPartOffset=2000 , 2000 SdmmcInit=0 NOT PRESENT StorageInit ok = 35778247 SecureMode = 0 Secure read PBA: 0x4 Secure read PBA: 0x404 Secure read PBA: 0x804 Secure read PBA: 0xc04 Secure read PBA: 0x1004 SecureInit ret = 0, SecureMode = 0 atags_set_bootdev: ret:(0) GPT part: 0, name: uboot, start:0x2000, size:0x1000 GPT part: 1, name: trust, start:0x3000, size:0x1000 GPT part: 2, name: misc, start:0x4000, size:0x800 GPT part: 3, name: recovery, start:0x4800, size:0x6000 GPT part: 4, name: boot, start:0xa800, size:0x4800 GPT part: 5, name: rootfs, start:0xf000, size:0x80000 GPT part: 6, name: oem, start:0x8f000, size:0x20000 GPT part: 7, name: userdata, start:0xaf000, size:0xde0fdf find part:uboot OK. first_lba:0x2000. find part:trust OK. first_lba:0x3000. LoadTrust Addr:0x3000 No find bl30.bin No find bl32.bin Load uboot, ReadLba = 2000 Load OK, addr=0x600000, size=0xa5e24 RunBL31 0x40000 @ 35738893 us INFO: Preloader serial: 4 NOTICE: BL31: v1.3(release):30f1405 NOTICE: BL31: Built : 17:08:28, Sep 23 2019 INFO: Lastlog: last=0x100000, realtime=0x102000, size=0x2000 INFO: ARM GICv2 driver initialized INFO: Using opteed sec cpu_context! INFO: boot cpu mask: 1 INFO: plat_rockchip_pmu_init: pd status 0xe b INFO: BL31: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK ERROR: Error initializing runtime service opteed_fast INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x600000 INFO: SPSR = 0x3c9 U-Boot 2017.09 (Oct 21 2020 - 17:26:19 +0800) Model: Rockchip RK3308 EVB PreSerial: 4 DRAM: 510 MiB Sysmem: init Relocation Offset is: 1f90c000 Using default environment dwmmc@ff480000: 1, dwmmc@ff490000: 0 Bootdev(atags): mmc 0 MMC0: High Speed, 52Mhz PartType: EFI boot mode: None Found DTB in boot part DTB: rk-kernel.dtb Error binding driver 'fixed regulator': -22 Some drivers failed to bind vdd_core init 1015000 uV DVFS: cpu: low=0.0'c, high=55.0'c, Vmax=1340000uV, tz_temp=55.0'c, h_repeat=0, l_repeat=0 DVFS: 31.818'c Model: Firefly ROC-RK3308B-CC-PLUS analog mic board CLK: (uboot. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A) apll 816000 KHz dpll 1300000 KHz vpll0 1177823 KHz vpll1 901583 KHz aclk_bus 185714 KHz hclk_bus 100000 KHz pclk_bus 100000 KHz aclk_peri 185714 KHz hclk_peri 100000 KHz pclk_peri 100000 KHz hclk_audio 98151 KHz pclk_audio 98151 KHz Net: eth0: ethernet@ff4e0000 DVFS: cpu 33.636'c, 816000000 Hz, 1015000 uV Hit key to stop autoboot('CTRL+C'): 0 ANDROID: reboot reason: "(none)" Fdt Ramdisk skip relocation Booting LZ4 kernel at 0x02480000(Uncompress to 0x00280000) with fdt at 0x1f00000... ## Booting Android Image at 0x0247f800 ... Kernel load addr 0x00280000 size 5241 KiB ## Flattened Devi Booting using the fdt blob at 0x1f00000 Uncompressing Kernel Image ... OK Using Device Tree in place at 0000000001f00000, end 0000000001f15884 Adding bank: 0x00200000 - 0x20000000 (size: 0x1fe00000) |
-
-
3.79 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1