On Mon, Aug 21, 2017 at 11:14:48AM +1000, Jonathan Gray wrote: > On Mon, Aug 21, 2017 at 12:53:15AM +0300, Artturi Alm wrote: > > Hi, > > > > this + sysutils/atf-allwinner produced binaries i successfully used to > > install arm64 for pine64-plus into mmc sd0 w/axen0 on usb, thanks :) > > the .dtb i used in miniroot was from current dtb-4.12 pkg. > > > > -Artturi > > u-boot.itb/u-boot-sunxi-with-spl.bin includes dtbs. > > /dts-v1/; > > / { > description = "Configuration to load ATF before U-Boot"; > #address-cells = <1>; > > images { > uboot@1 { > description = "U-Boot (64-bit)"; > data = /incbin/("u-boot-nodtb.bin"); > type = "standalone"; > arch = "arm64"; > compression = "none"; > load = <0x4a000000>; > }; > atf@1 { > description = "ARM Trusted Firmware"; > data = > /incbin/("/usr/local/share/atf-allwinner/bl31.bin"); > type = "firmware"; > arch = "arm64"; > compression = "none"; > load = <0x44000>; > entry = <0x44000>; > }; > fdt@1 { > description = "sun50i-a64-pine64"; > data = /incbin/("arch/arm/dts/sun50i-a64-pine64.dtb"); > type = "flat_dt"; > compression = "none"; > }; > fdt@2 { > description = "sun50i-a64-pine64-plus"; > data = > /incbin/("arch/arm/dts/sun50i-a64-pine64-plus.dtb"); > type = "flat_dt"; > compression = "none"; > }; > }; > configurations { > default = "config@1"; > > config@1 { > description = "sun50i-a64-pine64"; > firmware = "uboot@1"; > loadables = "atf@1"; > fdt = "fdt@1"; > }; > config@2 { > description = "sun50i-a64-pine64-plus"; > firmware = "uboot@1"; > loadables = "atf@1"; > fdt = "fdt@2"; > }; > }; > };
oh, cool, i didn't know u-boot passes it like that, i only did "fdt header" and downloaded .dtb to memory and wrote it to sd w/fatwrite from u-boot, but looking at "env print" now i can see it was obviously useless indeed, and the dtb had correctly vanished after install:) -Artturi INFO: PSCI Affinity Map: INFO: AffInst: Level 0, MPID 0x0, State ON INFO: AffInst: Level 0, MPID 0x1, State OFF INFO: AffInst: Level 0, MPID 0x2, State OFF INFO: AffInst: Level 0, MPID 0x3, State OFF U-Boot SPL 2017.09-rc2 (Aug 19 2017 - 15:25:54) DRAM: 1024 MiB Trying to boot from MMC1 NOTICE: BL3-1: Running on A64/H64 (1689) in SRAM A2 (@0x44000) NOTICE: Configuring SPC Controller NOTICE: BL3-1: v1.0(debug):20170702 NOTICE: BL3-1: Built : 13:28:54, Aug 19 2017 NOTICE: Configuring AXP PMIC NOTICE: PMIC: setup successful NOTICE: SCPI: dummy stub handler, implementation level: 000000 INFO: BL3-1: Initializing runtime services INFO: BL3-1: Preparing for EL3 exit to normal world INFO: BL3-1: Next image address: 0x4a000000, SPSR: 0x3c9 U-Boot 2017.09-rc2 (Aug 19 2017 - 15:25:54 +1000) Allwinner Technology CPU: Allwinner A64 (SUN50I) Model: Pine64+ DRAM: 1 GiB MMC: SUNXI SD/MMC: 0 *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: phy interface7 eth0: ethernet@01c30000 starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0 => fdt header No FDT memory address configured. Please configure the FDT address via "fdt addr <address>" command. Aborting! => bdinfo arch_number = 0x00000000 boot_params = 0x40000100 DRAM bank = 0x00000000 -> start = 0x40000000 -> size = 0x40000000 baudrate = 115200 bps TLB addr = 0x7FFF0000 relocaddr = 0x7DF59000 reloc off = 0x33F59000 irq_sp = 0x79F35CC0 sp start = 0x79F35CC0 Early malloc usage: 2e0 / 400 fdt_blob = 0000000079f35cd8 => fdt addr 0000000079f35cd8 => fdt header magic: 0xd00dfeed totalsize: 0x2119 (8473) off_dt_struct: 0x38 off_dt_strings: 0x1e58 off_mem_rsvmap: 0x28 version: 17 last_comp_version: 16 boot_cpuid_phys: 0x0 size_dt_strings: 0x2c1 size_dt_struct: 0x1e20 number mem_rsv: 0x0 =>