Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run the newest u-boot + spl from xfel #54

Open
cocus opened this issue Jul 12, 2023 · 0 comments
Open

Run the newest u-boot + spl from xfel #54

cocus opened this issue Jul 12, 2023 · 0 comments

Comments

@cocus
Copy link

cocus commented Jul 12, 2023

Hi, I'm following the tutorial on https://linux-sunxi.org/Allwinner_Nezha#Manual_build, where it states that the newest u-boot sources (not yet merged to mainline) don't require boot0 + TOC1. It produces a single binary file, u-boot-sunxi-with-spl.bin with everything integrated.
I built this, and I'm trying to load it to my DongshanPi Nezha STU.
I've tried to load the binary on different memory addresses, even tried to load the spl + opensbi on different memory addresses (guessing the addresses from the original bootlog) but no luck.

This is the stock log:

[57]HELLO! BOOT0 is starting!
[59]BOOT0 commit : 88480af
[62]set pll start
[64]periph0 has been enabled
[67]set pll end
[68][pmu]: bus read error
[70]board init ok
[72]get_pmu_exist() = -1
[74]DRAM BOOT DRIVE INFO: V0.33
[77]DRAM CLK = 792 MHz
[80]DRAM Type = 3 (2:DDR2,3:DDR3)
[83]DRAMC ZQ value: 0x7b7bfb
[85]DRAM ODT value: 0x42.
[88]ddr_efuse_type: 0x0
[91]DRAM SIZE =512 M
[93]dram_tpr4:0x0
[94]PLL_DDR_CTRL_REG:0xf8004100
[97]DRAM_CLK_REG:0xc0000000
[100][TIMING DEBUG] MR2= 0x18
[104]DRAM simple test OK.
[106]dram size =512
[108]spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 32
[114]block from 8 to 32
[172]Check is correct.
[174]dma 0x301a8 int is not used yet
[177]dma 0x301a8 int is free, you do not need to free it again
[183]Entry_name        = opensbi
[186]Entry_name        = u-boot
[189]Entry_name        = dtb
[192]Jump to second Boot.

OpenSBI auto-t113-linux-V0.8-2-g053d088
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x41fc0400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000041fc0000-0x0000000041fdffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,▒

U-Boot 2018.05-g24521d6 (Feb 11 2022 - 08:52:39 +0000) Allwinner Technology

does this boot log say something important? can we guess any addresses? I thought opensbi would load at 0x41fc0000, per other examples where they load the opensbi at an address, but the "Firmware Base" ended up +0x400 from this address.

What are the xfel commands I should run to load spl/opensbi/uboot with it?

The version that xfel reports about this chip is:

$ xfel version
AWUSBFEX ID=0x00185900(D1/F133) dflag=0x44 dlength=0x08 scratchpad=0x00045000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant