On Thu, 2021-03-04 at 08:48 +0100, Sylvain S wrote: > Hello, > > I am still attempting to obtain a working server > out of my Firefly-RK3399, or at least boot obsd > from it. > > I have more or less configured a multimedia station > out of Android right now, tinkering a bit with the > card, but that is not really what I want. > > Somebody (Oliv) on the french forums suggested I > have to "shunt" (new term to me) the card using > jumpers, could it be that it's the only thing > I am missing ?
>From the output below it looks like you are booting u-boot from SPI. On the Rockpro64 device (also rk3399), you can disable booting from SPI using a jumper as described here: https://wiki.pine64.org/wiki/ROCKPro64#Disable_SPI_.28while_booting.29 Perhaps you can find similar instructions for the RK3399 Firefly. > In any case, here is what I have done this morning > (following snapshots/arm64/INSTALL.arm64) using 6.9-beta > and up-to-date packages, and the result on console : > > $ cd Bidouillage/arm/local.obsd/ > $ ftp https://ftp.openbsd.org/pub/OpenBSD/snapshots/arm64/miniroot69.img > $ ftp https://ftp.openbsd.org/pub/OpenBSD/snapshots/arm64/SHA256 > $ ftp https://ftp.openbsd.org/pub/OpenBSD/snapshots/arm64/SHA256.sig > $ signify -C -p /etc/signify/openbsd-69-base.pub -x SHA256.sig > miniroot69.img > # dd if=miniroot69.img of=/dev/rsd1c bs=1m > # dd if=/usr/local/share/u-boot/firefly-rk3399/idbloader.img > of=/dev/sd1c seek=64 > # dd if=/usr/local/share/u-boot/firefly-rk3399/u-boot.itb of=/dev/sd1c > seek=16384 > # mount /dev/sd1i /mnt/sd_firefly/ > # mkdir /mnt/sd_firefly/rockchip > # cp /usr/local/share/dtb/arm64/rockchip/rk3399-firefly.dtb > /mnt/sd_firefly/rockchip/ > # umount /mnt/sd_firefly/ > $ doas cu -s 1500000 -l /dev/cuaU0 2>&1 | tee Desktop/boot-firefly.txt > > DDR Version 1.23 20190709 > In > Channel 0: DDR3, 800MHz > Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB > Channel 1: DDR3, 800MHz > 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: 2018-08-06, version: 1.15 > CPUId = 0x0 > ChipType = 0x10, 215 > SdmmcInit=2 0 > BootCapSize=100000 > UserCapSize=14910MB > FwPartOffset=2000 , 100000 > mmc0:cmd5,20 > SdmmcInit=0 0 > BootCapSize=0 > UserCapSize=30436MB > FwPartOffset=2000 , 0 > StorageInit ok = 202382 > SecureMode = 0 > SecureInit read PBA: 0x4 > SecureInit read PBA: 0x404 > SecureInit read PBA: 0x804 > SecureInit read PBA: 0xc04 > SecureInit read PBA: 0x1004 > SecureInit read PBA: 0x1404 > SecureInit read PBA: 0x1804 > SecureInit read PBA: 0x1c04 > SecureInit ret = 0, SecureMode = 0 > GPT 0x3190d20 signature is wrong > LoadTrust Addr:0x4000 > LoadTrust Addr:0x4400 > LoadTrust Addr:0x4800 > LoadTrust Addr:0x4c00 > LoadTrust Addr:0x5000 > LoadTrust Addr:0x5400 > LoadTrust Addr:0x5800 > LoadTrust Addr:0x5c00 > Addr:0x4000 No find trust.img! > LoadTrustBL error:-3 > SecureMode = 0 > SecureInit read PBA: 0x4 > SecureInit read PBA: 0x404 > SecureInit read PBA: 0x804 > SecureInit read PBA: 0xc04 > SecureInit read PBA: 0x1004 > SecureInit read PBA: 0x1404 > SecureInit read PBA: 0x1804 > SecureInit read PBA: 0x1c04 > SecureInit ret = 0, SecureMode = 0 > GPT 0x3190d20 signature is wrong > LoadTrust Addr:0x4000 > No find bl30.bin > Load uboot, ReadLba = 2000 > Load OK, addr=0x200000, size=0x84184 > RunBL31 0x10000 > ^ANOTICE: BL31: v1.3(debug):22b599a > NOTICE: BL31: Built : 11:03:32, Jul 10 2019 > NOTICE: BL31: Rockchip release version: v1.1 > INFO: GICv3 with legacy support detected. ARM GICV3 driver > initialized in EL3 > INFO: Using opteed sec cpu_context! > INFO: boot cpu mask: 0 > INFO: plat_rockchip_pmu_init(1181): pd status 3e > INFO: BL31: Initializing runtime services > INFO: BL31: Initializing BL32 > INF [0x0] TEE-CORE:init_primary_helper:337: Initializing > (1.1.0-195-g8f090d20 #6 Fri Dec 7 06:11:20 UTC 2018 aarch64) > > ^MINF [0x0] TEE-CORE:init_primary_helper:338: Release version: 1.2 > > ^MINF [0x0] TEE-CORE:init_teecore:83: teecore inits done > ^MINFO: BL31: Preparing for EL3 exit to normal world > INFO: Entry point address = 0x200000 > INFO: SPSR = 0x3c9 > > > U-Boot 2014.10-RK3399-06 (May 15 2020 - 15:55:15) > > CPU: rk3399 > cpu version = 0 > CPU's clock information: > aplll = 816000000HZ > apllb = 24000000HZ > gpll = 800000000HZ > aclk_periph_h = 133333333HZ, hclk_periph_h = 66666666HZ, > pclk_periph_h = 33333333HZ > aclk_periph_l0 = 266666666HZ, hclk_periph_l0 = > 88888888HZ, pclk_periph_l0 = 44444444HZ > hclk_periph_l1 = 100000000HZ, pclk_periph_l1 = 50000000HZ > cpll = 800000000HZ > dpll = 800000000HZ > vpll = 24000000HZ > npll = 24000000HZ > ppll = 676000000HZ > Board: Rockchip platform Board > Uboot as second level loader > DRAM: Found dram banks: 1 > Adding bank:0000000000200000(00000000ffe00000) > Reserve memory for trust os. > dram reserve bank: base = 0x08400000, size = 0x01e00000 > 128 MiB > SdmmcInit = 0 0 > SDCard Update. > storage init OK! > Using default environment > > GetParam > W: Invalid Parameter's tag (0x00000000)! > Invalid parameter > No pmic detect. > CPU's clock information: > aplll = 816000000HZ > apllb = 24000000HZ > gpll = 800000000HZ > aclk_periph_h = 133333333HZ, hclk_periph_h = 66666666HZ, > pclk_periph_h = 33333333HZ > aclk_periph_l0 = 266666666HZ, hclk_periph_l0 = > 88888888HZ, pclk_periph_l0 = 44444444HZ > hclk_periph_l1 = 100000000HZ, pclk_periph_l1 = 50000000HZ > cpll = 800000000HZ > dpll = 800000000HZ > vpll = 24000000HZ > npll = 24000000HZ > ppll = 676000000HZ > misc partition not found! > SecureBootEn = 0, SecureBootLock = 0 > > #Boot ver: 0000-00-00#0.00 > empty serial no. > Writing env to storage... > done > normal boot. > 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 then the card stays on (with the video red light on) > and idle until I reboot or stop it ... > Note that the armbian project mentions needing about > two minutes to boot in order to populate from the device tree blob. > https://www.armbian.com/firefly-rk3399/ >
