On Sat, Jan 13, 2018 at 09:17:16PM +0100, Mark Kettenis wrote: > Hi Folks. > > I'm looking for somebody who can test a bootloader image on a > Firefly-RK3399 with the default firmware still on the eMMC. If you > have a board in that state, can you try to write the image at: > > http://www.xs4all.nl/~sibelius/rk3399.fs > > to an SD card and attempt to boot from it? I'm curious to see if that > makes the board boot from the SD card. If that works, you should see > the following U-Boot banner on your serial console at some point: > > U-Boot 2018.01-00077-g373b900341-dirty (Jan 13 2018 - 21:06:01 +0100) > > Note that you'll need to run your serial console at the crazy speed of > 1500000 baud to see anything but garbage. >
Hi Mark, sorry, but it didn't work on my Firefly. Below is the console log with a micro-SD card with your image on it. DDR Version 1.07 20161103 In soft reset SRX Channel 0: DDR3, 666MHz Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB Channel 1: DDR3, 666MHz Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB 256B stride ch 0 ddrconfig = 0x101, ddrsize = 0x2020 ch 1 ddrconfig = 0x101, ddrsize = 0x2020 pmugrf_os_reg[2] = 0x3AA17AA1, stride = 0xD OUT Boot1: 2016-07-29, version: 1.05 CPUId = 0x0 ChipType = 10 1907 SdmmcInit=2 0 BootCapSize=100000 UserCapSize=29820MB FwPartOffset=2000 , 100000 SdmmcInit=0 0 BootCapSize=0 UserCapSize=30436MB FwPartOffset=2000 , 0 StorageInit ok = 78371 LoadTrustBL LoadTrustBL error:-1 LoadTrustBL No find bl30.bin No find bl32.bin theLoader 200000 95897 LoaderFlag2: 0x5242c300 NOTICE: BL31: v1.2(debug):e1a1ee4 NOTICE: BL31: Built : 14:38:26, Sep 29 2016 INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3 INFO: plat_rockchip_pmu_init(1202): pd status 3e INFO: BL31: Initializing runtime services INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x200000 INFO: SPSR = 0x3c9 U-Boot 2014.10-RK3399-10 (Mar 16 2017 - 17:31:00) CPU: rk3399 CPU's clock information: aplll = 816000000HZ apllb = 24000000HZ gpll = 594000000HZ aclk_periph_h = 148500000HZ, hclk_periph_h = 74250000HZ, pclk_periph_h = 37125000HZ aclk_periph_l0 = 99000000HZ, hclk_periph_l0 = 99000000HZ, pclk_periph_l0 = 49500000HZ hclk_periph_l1 = 99000000HZ, pclk_periph_l1 = 49500000HZ cpll = 800000000HZ dpll = 660000000HZ vpll = 24000000HZ npll = 24000000HZ ppll = 676000000HZ Board: Rockchip platform Board Uboot as second level loader DRAM: Found dram banks: 1 Adding bank:0000000000200000(00000000ffe00000) 128 MiB SdmmcInit = 0 0 SDCard Update. storage init OK! Using default environment GetParam W: Invalid Parameter's tag (0x00000000)! Invalid parameter remotectl v0.1 pwm freq=0xb8320 pwm_freq_nstime=0x52d No pmic detect. SecureBootEn = 0, SecureBootLock = 0 #Boot ver: 0000-00-00#0.00 empty serial no. Writing env to storage... done reboot normal. no fuel gauge found no fuel gauge found read logo on state from dts [0] no fuel gauge found 'recovery' does not seem to be a partition nor an address Unable to boot:recovery try to start backup 'backup' does not seem to be a partition nor an address Unable to boot:backup try to start rockusb ... and it stops here. Below is the normal Ubuntu boot log DDR Version 1.07 20161103 In soft reset SRX Channel 0: DDR3, 666MHz Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB Channel 1: DDR3, 666MHz Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB 256B stride ch 0 ddrconfig = 0x101, ddrsize = 0x2020 ch 1 ddrconfig = 0x101, ddrsize = 0x2020 pmugrf_os_reg[2] = 0x3AA17AA1, stride = 0xD OUT Boot1: 2016-07-29, version: 1.05 CPUId = 0x0 ChipType = 10 1906 SdmmcInit=2 0 BootCapSize=100000 UserCapSize=29820MB FwPartOffset=2000 , 100000 SdmmcInit=0 20 StorageInit ok = 62904 LoadTrustBL No find bl30.bin No find bl32.bin theLoader 200000 78205 LoaderFlag2: 0x5242c300 NOTICE: BL31: v1.2(debug):e1a1ee4 NOTICE: BL31: Built : 14:38:26, Sep 29 2016 INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3 INFO: plat_rockchip_pmu_init(1202): pd status 3e INFO: BL31: Initializing runtime services INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x200000 INFO: SPSR = 0x3c9 U-Boot 2014.10-RK3399-10 (Mar 16 2017 - 17:31:00) CPU: rk3399 CPU's clock information: aplll = 816000000HZ apllb = 24000000HZ gpll = 594000000HZ aclk_periph_h = 148500000HZ, hclk_periph_h = 74250000HZ, pclk_periph_h = 37125000HZ aclk_periph_l0 = 99000000HZ, hclk_periph_l0 = 99000000HZ, pclk_periph_l0 = 49500000HZ hclk_periph_l1 = 99000000HZ, pclk_periph_l1 = 49500000HZ cpll = 800000000HZ dpll = 660000000HZ vpll = 24000000HZ npll = 24000000HZ ppll = 676000000HZ Board: Rockchip platform Board Uboot as second level loader DRAM: Found dram banks: 1 Adding bank:0000000000200000(00000000ffe00000) 128 MiB SdmmcInit = 0 20 storage init OK! Using default environment GetParam remotectl v0.1 pwm freq=0xb8320 pwm_freq_nstime=0x52d Load FDT from resource image. power key: bank-0 pin-5 usb bc: can find node by path: /dwc-control-usb/usb_bc dwc_otg_check_dpdm: usb bc disconnected pmic:rk808 can't find dts node for pwm1 set pwm voltage ok,pwm_id =2 vol=1000000,pwm_value=33 SecureBootEn = 0, SecureBootLock = 0 #Boot ver: 2017-02-22#1.05 empty serial no. reboot normal. checkKey vbus = 0 board_fbt_key_pressed: ir_keycode = 0x0, frt = 0 no fuel gauge found no fuel gauge found read logo on state from dts [1] can't find power_ctr node for lcdc0 can't find dts node for deviceinfo rk_hdmi_register:fail to read deviceinfo hdmi baseparamer 0x0@0-0 [EDID-EXTEND] It is a CEA 861 Series Extension. no baseparametr,find best edid mode,vic=16 hdmi_dev->video.vic is 16 hdmi_dev_config_video vic 16 color_output 3 color_output_depth 8 pixel clk is 148500000 tmds clk is 148500000 hsync_pol 1 vsync_pol 1 [HDMI] sucess output HDMI. rk lcdc - 0 dclk set: dclk = 148500000HZ, pll select = 0, div = 1 no fuel gauge found checkKey vbus = 0 board_fbt_key_pressed: ir_keycode = 0x0, frt = 0 cmd =bootrk ramfs Hit any key to stop autoboot: 0 ERROR: [get_entry_ram]: Cannot find logo_kernel.bmp! Secure Boot state: 0 kernel @ 0x00280000 (0x0106eac0) ramdisk @ 0x05bf0000 (0x00299a28) bootrk: do_bootm_linux... Loading Device Tree to 0000000005600000, end 0000000005614205 ... OK Add bank:0000000000200000, 00000000f7e00000 Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 ... And FWIW, the 'Writing env to storage...' stage when booting with your image actually writes this into the image: +003f0000 53 59 53 44 f8 01 00 00 00 00 00 00 00 00 00 00 |SYSD............| +003f0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| +* +003f0200 44 52 4d 4b f8 01 00 00 00 00 00 00 00 00 00 00 |DRMK............| +003f0210 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| +* +003f8000 da 26 be cc 62 61 75 64 72 61 74 65 3d 31 35 30 |.&..baudrate=150| +003f8010 30 30 30 30 00 62 6f 6f 74 63 6d 64 3d 62 6f 6f |0000.bootcmd=boo| +003f8020 74 72 6b 00 62 6f 6f 74 64 65 6c 61 79 3d 30 00 |trk.bootdelay=0.| +003f8030 66 61 73 74 62 6f 6f 74 5f 75 6e 6c 6f 63 6b 65 |fastboot_unlocke| +003f8040 64 3d 30 00 69 6e 69 74 72 64 5f 68 69 67 68 3d |d=0.initrd_high=| +003f8050 30 78 66 66 66 66 66 66 66 66 66 66 66 66 66 66 |0xffffffffffffff| +003f8060 66 66 3d 6e 00 76 65 72 69 66 79 3d 6e 00 00 00 |ff=n.verify=n...| +003f8070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| +* -- Matthieu Herrb