Linaro / meta-qcom

OpenEmbedded/Yocto Project BSP layer for Qualcomm based platforms
MIT License
63 stars 76 forks source link

meta-qcom: initial u-boot support #651

Closed Scott31393 closed 2 months ago

Scott31393 commented 2 months ago

Hi,

This patchset add the initial support for u-boot-qcom. This has been tested on rb3gen2 board:

Flashing the image using fastboot:

fastboot flash uefi_a ./u-boot-qcs6490-rb3gen2.mbn

Below some logs from the test.

U-Boot 2024.10-rc4-00620-ga61af132fb90 (Sep 09 2024 - 10:00:06 +0000)

Model: Qualcomm Technologies, Inc. Robotics RB3gen2
DRAM:  6 GiB (effective 5.9 GiB)
serial_msm_geni serial@994000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19
serial_msm_geni serial@994000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19
Core:  57 devices, 28 uclasses, devicetree: board

Loading Environment from nowhere... OK
In:    serial,button-kbd
Out:   serial,vidconsole
Err:   serial,vidconsole
qcom-ufshcd ufs@1d84000: Qcom UFS HC version: 4.3.0
qcom-ufshcd ufs@1d84000: [RX, TX]: gear=[3, 3], lane[2, 2], pwr[FAST MODE, FAST MODE], rate = 2
QCOM-FMP: Failed to find boot partition
Net:   No ethernet found.

scanning bus for devices...
  Device 0: (0:0) Vendor: SAMSUNG Prod.: KM2L9001CM-B518 Rev: 0700
            Type: Hard Disk
            Capacity: 118871.9 MB = 116.0 GB (30431231 x 4096)
  Device 1: (0:1) Vendor: SAMSUNG Prod.: KM2L9001CM-B518 Rev: 0700
            Type: Hard Disk
            Capacity: 7.9 MB = 0.0 GB (2047 x 4096)
  Device 2: (0:2) Vendor: SAMSUNG Prod.: KM2L9001CM-B518 Rev: 0700
            Type: Hard Disk
            Capacity: 7.9 MB = 0.0 GB (2047 x 4096)
  Device 3: (0:3) Vendor: SAMSUNG Prod.: KM2L9001CM-B518 Rev: 0700
            Type: Hard Disk
            Capacity: 31.9 MB = 0.0 GB (8191 x 4096)
  Device 4: (0:4) Vendor: SAMSUNG Prod.: KM2L9001CM-B518 Rev: 0700
            Type: Hard Disk
            Capacity: 3071.9 MB = 2.9 GB (786431 x 4096)
  Device 5: (0:5) Vendor: SAMSUNG Prod.: KM2L9001CM-B518 Rev: 0700
            Type: Hard Disk
            Capacity: 31.9 MB = 0.0 GB (8191 x 4096)
starting USB...
Bus usb@a600000: Register 2000340 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb@a600000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0 
=> <INTERRUPT>

Some references:

Thanks & Regards, Tommaso

lumag commented 2 months ago

@calebccff, could you please take a look?

calebccff commented 2 months ago

overall looks pretty good! excited to see this support being added :D

Scott31393 commented 2 months ago

Thanks for your work! @calebccff :)

lumag commented 2 months ago

@Scott31393 thank you for your contribution and for your patience through the review process!

Scott31393 commented 2 months ago

Hi @lumag nice! Nothing to thanks!

@quaresmajose Thanks you all for the reviews and comments. @calebccff Can't wait to see eth support at u-boot level and weston.

If I have some time I will try to take look on that into the next months ;)

calebccff commented 2 months ago

@calebccff Can't wait to see eth support at u-boot level and weston.

If I have some time I will try to take look on that into the next months ;)

ethernet works nicely on the rb1/2/5, its unfortunate that the rb3 and rb3gen2 use pcie hubs, but I'm working on it :p

Scott31393 commented 2 months ago

@calebccff Can't wait to see eth support at u-boot level and weston. If I have some time I will try to take look on that into the next months ;)

ethernet works nicely on the rb1/2/5, its unfortunate that the rb3 and rb3gen2 use pcie hubs, but I'm working on it :p

Nice! Thanks for your work pcie2usb :) Can't wait ;) I will try to take a look also on my side. nfs + tftp :Q____