Jump to content

Recommended Posts

Posted

I builded u-boot for orangepi3B from https://github.com/orangepi-xunlong/orangepi-build repo and I compiled armbian with officiall repo wit this config:https://github.com/armbian/build/blob/main/config/boards/orangepi3b.csc

GitHub (https://github.com/orangepi-xunlong/orangepi-build). Problem:

Data:

- Version (branch) u-boot cloned form orangepi-build official repo:

obraz.png.b575762ba21f6697404a570273c36eb0.png

- Debug via UART from OPI3B:
 

CONQ., [13.11.2024 10:14]
DDR Version V1.10 20210810
ln
ddrconfig:7
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=8192MB
tdqss: cs0 dqs0: -72ps, dqs1: -168ps, dqs2: -96ps, dqs3: -168ps,
tdqss: cs1 dqs0: -72ps, dqs1: -144ps, dqs2: -96ps, dqs3: -168ps,

change to: 324MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x64

change to: 528MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58

change to: 780MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58

change to: 1056MHz(final freq)
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:22%
dram drv:40,odt:80
vref_ca:00000071
clk skew:0x46
cs 0:
the read training result:
DQS0:0x40, DQS1:0x3d, DQS2:0x44, DQS3:0x3b,
min  : 0xf 0x10 0x10 0x10  0x2  0x3  0x6  0x6 , 0x5  0x6  0x4  0x2  0xa  0xd  0xe  0xf ,
       0x2  0x1  0xf 0x11  0xe  0xc  0xe  0xd , 0x6  0x5  0x9  0x1  0xb  0xd  0xc  0xd ,
mid  :0x2a 0x2a 0x2c 0x2b 0x20 0x21 0x24 0x24 ,0x23 0x25 0x22 0x20 0x27 0x2c 0x2e 0x2d ,
      0x22 0x22 0x2f 0x2e 0x2b 0x2b 0x2c 0x2a ,0x22 0x22 0x27 0x1e 0x2a 0x2a 0x2a 0x2a ,
max  :0x46 0x44 0x49 0x46 0x3e 0x40 0x42 0x43 ,0x42 0x45 0x41 0x3f 0x44 0x4c 0x4e 0x4b ,
      0x43 0x43 0x4f 0x4c 0x49 0x4b 0x4a 0x48 ,0x3f 0x3f 0x46 0x3c 0x4a 0x47 0x48 0x47 ,
range:0x37 0x34 0x39 0x36 0x3c 0x3d 0x3c 0x3d ,0x3d 0x3f 0x3d 0x3d 0x3a 0x3f 0x40 0x3c ,
      0x41 0x42 0x40 0x3b 0x3b 0x3f 0x3c 0x3b ,0x39 0x3a 0x3d 0x3b 0x3f 0x3a 0x3c 0x3a ,
the write training result:
DQS0:0x3d, DQS1:0x30, DQS2:0x3a, DQS3:0x30,
min  :0x59 0x5b 0x5c 0x5c 0x51 0x52 0x54 0x5a 0x58 ,0x4a 0x4d 0x49 0x47 0x4f 0x53 0x55 0x55 0x51 ,
      0x4a 0x4b 0x54 0x55 0x53 0x53 0x56 0x57 0x56 ,0x4b 0x4c 0x4e 0x49 0x53 0x53 0x53 0x53 0x4d ,
mid  :0x75 0x76 0x76 0x77 0x69 0x6a 0x6d 0x72 0x70 ,0x66 0x64 0x62 0x61 0x68 0x6d 0x6d 0x70 0x6b ,
      0x65 0x62 0x6f 0x71 0x6c 0x6b 0x6e 0x6e 0x6e ,0x65 0x63 0x67 0x60 0x6c 0x6c 0x6d 0x6c 0x64 ,
max  :0x92 0x91 0x91 0x92 0x82 0x83 0x87 0x8b 0x89 ,0x83 0x7c 0x7c 0x7c 0x81 0x87 0x86 0x8b 0x85 ,
      0x80 0x7a 0x8b 0x8d 0x86 0x84 0x86 0x86 0x87 ,0x80 0x7b 0x80 0x78 0x86 0x86 0x87 0x85 0x7c ,
range:0x39 0x36 0x35 0x36 0x31 0x31 0x33 0x31 0x31 ,0x39 0x2f 0x33 0x35 0x32 0x34 0x31 0x36 0x34 ,
      0x36 0x2f 0x37 0x38 0x33 0x31 0x30 0x2f 0x31 ,0x35 0x2f 0x32 0x2f 0x33 0x33 0x34 0x32 0x2f ,
cs 1:
the read training result:
DQS0:0x42, DQS1:0x3c, DQS2:0x44, DQS3:0x3c,
min  : 0xf  0xf  0xf 0x10  0x1  0x2  0x5  0x7 , 0x5  0x6  0x3  0x1  0x9  0xd  0xe  0xf ,
       0x3  0x1  0xf  0xf  0xd  0xb  0xe  0xc , 0x6  0x6  0x9  0x1  0xa  0xd  0xd  0xb ,
mid  :0x2c 0x2c 0x2e 0x2d 0x21 0x23 0x24 0x27 ,0x22 0x26 0x21 0x1f 0x26 0x2c 0x2d 0x2f ,
      0x22 0x22 0x2f 0x2e 0x2b 0x2b 0x2c 0x2a ,0x23 0x23 0x28 0x1f 0x2a 0x2b 0x2b 0x29 ,
max  :0x4a 0x49 0x4e 0x4a 0x41 0x44 0x44 0x48 ,0x40 0x46 0x40 0x3d 0x44 0x4c 0x4c 0x4f ,
      0x42 0x44 0x4f 0x4d 0x49 0x4b 0x4b 0x49 ,0x41 0x41 0x47 0x3e 0x4a 0x4a 0x4a 0x47 ,
range:0x3b 0x3a 0x3f 0x3a 0x40 0x42 0x3f 0x41 ,0x3b 0x40 0x3d 0x3c 0x3b 0x3f 0x3e 0x40 ,
      0x3f 0x43 0x40 0x3e 0x3c 0x40 0x3d 0x3d ,0x3b 0x3b 0x3e 0x3d 0x40 0x3d 0x3d 0x3c ,
the write training result:
DQS0:0x3d, DQS1:0x30, DQS2:0x3a, DQS3:0x30,
min  :0x5a 0x5c 0x5d 0x5c 0x53 0x53 0x55 0x5b 0x57 ,0x4e 0x50 0x4c 0x4b 0x53 0x59 0x59 0x5a 0x55 ,
      0x4b 0x4b 0x55 0x55 0x55 0x55 0x57 0x58 0x57 ,0x4a 0x4c 0x4f 0x49 0x53 0x52 0x53 0x52 0x4e ,
mid  :0x76 0x76 0x78 0x77 0x6a 0x6a 0x6c 0x73 0x6f ,0x6b 0x6a 0x68 0x67 0x6d 0x73 0x73 0x75 0x6f ,
      0x67 0x63 0x70 0x72 0x6f 0x6d 0x6e 0x6f 0x6f ,0x65 0x63 0x67 0x61 0x6d 0x6d 0x6d 0x6d 0x65 ,
max  :0x92 0x91 0x93 0x93 0x82 0x82 0x84 0x8b 0x88 ,0x88 0x85 0x84 0x84 0x87 0x8d 0x8d 0x90 0x8a ,
      0x84 0x7c 0x8c 0x90 0x89 0x86 0x86 0x87 0x88 ,0x81 0x7b 0x80 0x7a 0x87 0x88 0x87 0x88 0x7d ,
range:0x38 0x35 0x36 0x37 0x2f 0x2f 0x2f 0x30 0x31 ,0x3a 0x35 0x38 0x39 0x34 0x34 0x34 0x36 0x35 ,
      0x39 0x31 0x37 0x3b 0x34 0x31 0x2f 0x2f 0x31 ,0x37 0x2f 0x31 0x31 0x34 0x36 0x34 0x36 0x2f ,
CA Training result:

CONQ., [13.11.2024 10:14]

cs:0 min  :0x44 0x44 0x3f 0x3c 0x3f 0x3b 0x47 ,0x48 0x41 0x42 0x39 0x41 0x38 0x44 ,
cs:0 mid  :0x82 0x83 0x7c 0x7c 0x7b 0x7b 0x73 ,0x82 0x83 0x7e 0x7a 0x7c 0x79 0x6f ,
cs:0 max  :0xc0 0xc3 0xba 0xbc 0xb7 0xbc 0x9f ,0xbd 0xc5 0xbb 0xbb 0xb8 0xbb 0x9b ,
cs:0 range:0x7c 0x7f 0x7b 0x80 0x78 0x81 0x58 ,0x75 0x84 0x79 0x82 0x77 0x83 0x57 ,
cs:1 min  :0x41 0x43 0x3c 0x3f 0x3d 0x3a 0x44 ,0x46 0x41 0x3d 0x3c 0x3f 0x3b 0x46 ,
cs:1 mid  :0x82 0x81 0x7b 0x7c 0x7b 0x7a 0x71 ,0x82 0x80 0x7c 0x7b 0x7c 0x7a 0x71 ,
cs:1 max  :0xc4 0xbf 0xbb 0xba 0xba 0xba 0x9f ,0xbf 0xbf 0xbb 0xbb 0xb9 0xba 0x9d ,
cs:1 range:0x83 0x7c 0x7f 0x7b 0x7d 0x80 0x5b ,0x79 0x7e 0x7e 0x7f 0x7a 0x7f 0x57 ,
out
U-Boot SPL board init
U-Boot SPL 2017.09-orangepi (Nov 12 2024 - 22:27:40)
Trying to boot from MMC1
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from MMC2
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from MTD2
No misc partition
Trying fit image at 0x400 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(2f01bd8955...) + OK
## Checking uboot 0x00a00000 ... sha256(d82fb13996...) + OK
## Checking fdt 0x00b457b0 ... sha256(5c6babd1aa...) + OK
## Checking atf-2 0xfdcc9000 ... sha256(f1fecab971...) + OK
## Checking atf-3 0xfdcd0000 ... sha256(d7aa45eb18...) + OK
Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 555.305 ms

INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-152-g4e725b15f:cl
NOTICE:  BL31: Built : 10:51:13, Jul 15 2021
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    pmu v1 is valid
INFO:    dfs DDR fsp_param[0].freq_mhz= 1056MHz
INFO:    dfs DDR fsp_param[1].freq_mhz= 324MHz
INFO:    dfs DDR fsp_param[2].freq_mhz= 528MHz
INFO:    dfs DDR fsp_param[3].freq_mhz= 780MHz
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 0
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 = 0xa00000
INFO:    SPSR = 0x3c9


U-Boot 2017.09-orangepi (Nov 12 2024 - 22:27:40 +0000)

Model: Orange Pi 3B
PreSerial: 2, raw, 0xfe660000
DRAM:  7.7 GiB
Sysmem: init
Relocation Offset: ed233000
Relocation fdt: eb9f6470 - eb9fecc0
CR: M/C/I
Using default environment

failed to find reset-gpios property
dwmmc@fe2b0000: 0, dwmmc@fe2c0000: 2, sdhci@fe310000: 1

Device 0: unknown device
Card did not respond to voltage select!
Card did not respond to voltage select!

Device 0: unknown device

Device 1:
Device 2: SF: Detected sfc_nor with page size 256 Bytes, erase size 4 KiB, total 16 MiB
Vendor: 0x2207 Rev: V1.00 Prod: sfc_nor
            Type: Hard Disk
            Capacity: 16.0 MB = 0.0 GB (32768 x 512)
... is now current device
Bootdev(scan): mtd 2
PartType: EFI
DM: v1
boot mode: None
I2c0 speed: 100000Hz
vsel-gpios- not found! Error: -2
vdd_cpu init 900000 uV
PMIC:  RK8090 (on=0x10, off=0x00)
vdd_logic init 900000 uV
vdd_gpu init 900000 uV
vdd_npu init 900000 uV
io-domain: OK
Failed to get scmi clk dev
dmc_fsp failed, ret=-19
Model: Orange Pi 3B
rockchip_set_ethaddr: vendor_storage_write failed -5
CLK: (sync kernel. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  apll 816000 KHz
  dpll 528000 KHz
  gpll 1188000 KHz
  cpll 1000000 KHz
  npll 1200000 KHz
  vpll 24000 KHz
  hpll 24000 KHz
  ppll 200000 KHz
  armclk 816000 KHz
  aclk_bus 150000 KHz
  pclk_bus 100000 KHz
  aclk_top_high 300000 KHz
  aclk_top_low 200000 KHz
  hclk_top 150000 KHz
  pclk_top 100000 KHz
  aclk_perimid 300000 KHz
  hclk_perimid 150000 KHz
  pclk_pmu 100000 KHz
Net:   eth1: ethernet@fe010000
Hit key to stop autoboot('CTRL+C'):  0
Card did not respond to voltage select!
Card did not respond to voltage select!
failed to find reset-gpios property

CONQ., [13.11.2024 10:14]


Device 0: Vendor: 0x126f Rev: S0614B0G Prod: 201907020013
            Type: Hard Disk
            Capacity: 122104.3 MB = 119.2 GB (250069680 x 512)
... is now current device
Scanning nvme 0:1...
Found U-Boot script /boot/boot.scr
Failed to iterate over directory boot
** File not found /boot/boot.scr **
## Executing script at 00c00000
Wrong image format for "source" command
SCRIPT FAILED: continuing...
starting USB...
Bus dwc3@fcc00000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus dwc3@fd000000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus dwc3@fcc00000 for devices... 1 USB Device(s) found
scanning bus dwc3@fd000000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
failed to find reset-gpios property
ethernet@fe010000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/01-b2-f2-2a-36-55-ae
ethernet@fe010000 Waiting for PHY auto negotiation to complete.......user interrupt!
phy_startup() failed: -4FAILED: -4missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
ethernet@fe010000 Waiting for PHY auto negotiation to complete.user interrupt!
phy_startup() failed: -4FAILED: -4missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
ethernet@fe010000 Waiting for PHY auto negotiation to complete.user interrupt!
phy_startup() failed: -4FAILED: -4missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
ethernet@fe010000 Waiting for PHY auto negotiation to complete.user interrupt!
phy_startup() failed: -4FAILED: -4missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
ethernet@fe010000 Waiting for PHY auto negotiation to complete..


- Version cloned via armbian during compilation:

	declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git" # We ❤️ Mainline U-Boot
	declare -g BOOTBRANCH="tag:v2024.10"
	declare -g BOOTPATCHDIR="v2024.10"
	# Don't set BOOTDIR, allow shared U-Boot source directory for disk space efficiency



The problem:
 

Device 0: Vendor: 0x126f Rev: S0614B0G Prod: 201907020013
            Type: Hard Disk
            Capacity: 122104.3 MB = 119.2 GB (250069680 x 512)
... is now current device
Scanning nvme 0:1...
Found U-Boot script /boot/boot.scr
Failed to iterate over directory boot
** File not found /boot/boot.scr **
## Executing script at 00c00000
Wrong image format for "source" command
SCRIPT FAILED: continuing...
starting USB...
Bus dwc3@fcc00000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus dwc3@fd000000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus dwc3@fcc00000 for devices... 1 USB Device(s) found
scanning bus dwc3@fd000000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Suspicions:
1. Too old compilation version at u-boot?
2. Bad forrmating , GPT partitioning ?
3. Old version rkbin (binary devicetree) for orangepi-build-next ?

4. Something else....

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines