Linux SDK build fails for rk3588s: *** No rule to make target 'drivers/spi/spi-w

Type: Official Firmware
Filename: rk3588_linux_release_20230114_v1.0.6c_0*
Download Address: https://en.t-firefly.com/doc/download/142.html
Log: build_log.zip

Firmware version information: rk3588_linux_release_20230704_v1.1.1a.xml
Hardware model: ROC-RK3588S-PC
Environment details: Ubuntu 18.04 docker image

I am trying to build the Linux SDK for ROC-RK3588S-PC by following the instructions at 2. Compile Linux Firmware (kernel-5.10) — Firefly Wiki. The build fails possibly primarily because “No rule to make target ‘drivers/spi/spi-wk2xxx.o’, needed by ‘drivers/spi/built-in.a’.”. Please check the following logs and the attached log file (complete)

# configuration written to .config
#
  SYNC    include/config/auto.conf.cmd
  CALL    scripts/atomic/check-atomics.sh
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  AR      drivers/auxdisplay/built-in.a
  AR      drivers/cdrom/built-in.a
  CC      drivers/rtc/lib.o
  CC      drivers/usb/common/common.o
  CC      drivers/input/mouse/cyapa.o
  CC [M]  drivers/cdrom/cdrom.o
  CC      drivers/input/keyboard/adc-keys.o
  CC      drivers/rtc/systohc.o
make[3]: *** No rule to make target 'drivers/spi/spi-wk2xxx.o', needed by 'drivers/spi/built-in.a'.  Stop.
make[3]: *** Waiting for unfinished jobs....
  CC      drivers/i2c/algos/i2c-algo-bit.o
scripts/Makefile.build:516: recipe for target 'drivers/spi' failed
make[2]: *** [drivers/spi] Error 2
make[2]: *** Waiting for unfinished jobs....
  CC      drivers/usb/common/debug.o
  CC      drivers/usb/core/usb.o
  CC      drivers/rtc/class.o
  CC      drivers/usb/phy/phy.o
  CC      drivers/usb/phy/of.o
  CC      drivers/input/keyboard/gpio_keys.o
  CC      drivers/input/mouse/cyapa_gen3.o
  CC      drivers/input/keyboard/gpio_keys_polled.o
  CC      drivers/i2c/busses/i2c-rk3x.o
  CC      drivers/usb/core/hub.o
  AR      drivers/usb/common/built-in.a
  AR      drivers/i2c/algos/built-in.a
  CC      drivers/usb/core/hcd.o
  CC      drivers/input/touchscreen/hxchipset/himax_ic_HX83102.o
  CC      drivers/usb/dwc3/core.o
  CC      drivers/rtc/interface.o
  CC      drivers/rtc/nvmem.o
  CC      drivers/rtc/dev.o
  AR      drivers/usb/phy/built-in.a
  CC      drivers/input/remotectl/rockchip_pwm_remotectl.o
  CC      drivers/rtc/proc.o
  AR      drivers/input/keyboard/built-in.a
  CC      drivers/usb/core/urb.o
  CC      drivers/usb/dwc3/trace.o
  CC      drivers/input/mouse/cyapa_gen5.o
  CC      drivers/input/touchscreen/hxchipset/himax_debug.o
  AR      drivers/i2c/busses/built-in.a
  AR      drivers/i2c/muxes/built-in.a
  CC      drivers/i2c/i2c-boardinfo.o
  CC      drivers/rtc/sysfs.o
  CC      drivers/input/touchscreen/gt1x/gt1x_extents.o
  CC      drivers/input/touchscreen/gt9xxx/gt9xx.o
  CC      drivers/i2c/i2c-core-base.o
  AR      drivers/input/remotectl/built-in.a
  CC      drivers/usb/core/message.o
  CC      drivers/input/touchscreen/gt1x/gt1x_generic.o
  CC      drivers/input/misc/rk805-pwrkey.o
  CC      drivers/rtc/rtc-hym8563.o
  CC      drivers/usb/core/driver.o
  CC      drivers/usb/core/config.o
  CC      drivers/rtc/rtc-rk808.o
  CC      drivers/input/input.o
  CC      drivers/input/input-compat.o
  CC      drivers/input/touchscreen/hxchipset/himax_inspection.o
  CC      drivers/input/touchscreen/hxchipset/himax_ic_incell_core.o
  CC      drivers/input/mouse/cyapa_gen6.o
  CC      drivers/input/misc/uinput.o
  CC      drivers/usb/dwc3/host.o
  CC      drivers/i2c/i2c-core-smbus.o
  CC      drivers/input/touchscreen/gt9xxx/gt9xx_update.o
  CC      drivers/input/touchscreen/gt1x/gt1x_tools.o
  CC      drivers/input/mouse/elan_i2c_core.o
  AR      drivers/rtc/built-in.a
  CC      drivers/usb/dwc3/gadget.o
  CC      drivers/input/touchscreen/hxchipset/himax_common.o
  CC      drivers/i2c/i2c-core-of.o
  CC      drivers/input/touchscreen/gt1x/gt1x.o
  CC      drivers/input/touchscreen/gt1x/gt1x_update.o
  CC      drivers/input/touchscreen/of_touchscreen.o
  CC      drivers/usb/core/file.o
  CC      drivers/usb/core/buffer.o
  CC      drivers/input/touchscreen/atmel_mxt_ts.o
  AR      drivers/input/misc/built-in.a
  CC      drivers/usb/dwc2/core.o
  CC      drivers/usb/dwc2/core_intr.o
  CC      drivers/input/mouse/elan_i2c_i2c.o
  CC      drivers/i2c/i2c-dev.o
  CC      drivers/input/touchscreen/gt9xxx/goodix_tool.o
  CC      drivers/input/touchscreen/elants_i2c.o
  CC      drivers/input/touchscreen/gsl3673.o
  CC      drivers/input/touchscreen/hxchipset/himax_platform.o
  CC      drivers/i2c/i2c-mux.o
  CC      drivers/usb/core/sysfs.o
  CC      drivers/usb/core/endpoint.o
  CC      drivers/usb/core/devio.o
  AR      drivers/input/touchscreen/gt1x/built-in.a
  CC      drivers/usb/dwc2/platform.o
  CC      drivers/usb/dwc2/drd.o
  AR      drivers/input/mouse/built-in.a
  CC      drivers/input/touchscreen/gsl_point_id.o
  AR      drivers/input/touchscreen/gt9xxx/built-in.a
  CC      drivers/usb/dwc3/ep0.o
  CC      drivers/usb/dwc3/drd.o
  CC      drivers/usb/dwc3/debugfs.o
  AR      drivers/i2c/built-in.a
  CC      drivers/usb/mon/mon_main.o
  AR      drivers/input/touchscreen/hxchipset/built-in.a
  CC      drivers/usb/dwc3/dwc3-haps.o
  CC      drivers/usb/dwc3/dwc3-of-simple.o
  CC      drivers/input/input-mt.o
  CC      drivers/usb/mon/mon_text.o
  CC      drivers/usb/mon/mon_stat.o
  CC      drivers/usb/host/pci-quirks.o
  CC      drivers/input/touchscreen/usbtouchscreen.o
  CC      drivers/usb/host/ehci-hcd.o
  CC      drivers/usb/core/notify.o
  CC      drivers/usb/core/generic.o
  CC      drivers/usb/core/quirks.o
  CC      drivers/usb/dwc2/params.o
  CC      drivers/usb/dwc2/hcd.o
  CC      drivers/usb/dwc2/hcd_intr.o
  CC      drivers/usb/mon/mon_bin.o
  CC      drivers/usb/class/cdc-acm.o
  CC      drivers/input/input-poller.o
  CC      drivers/usb/dwc2/hcd_queue.o
  CC      drivers/usb/class/cdc-wdm.o
  CC      drivers/usb/core/devices.o
  CC      drivers/usb/core/phy.o
  CC      drivers/usb/dwc2/hcd_ddma.o
  CC      drivers/usb/core/port.o
  CC      drivers/input/ff-core.o
  CC      drivers/usb/host/ehci-pci.o
  CC      drivers/usb/host/ehci-platform.o
  AR      drivers/usb/dwc3/built-in.a
  CC      drivers/usb/core/of.o
  CC      drivers/input/ff-memless.o
  CC      drivers/usb/dwc2/gadget.o
  AR      drivers/input/touchscreen/built-in.a
  CC      drivers/input/input-leds.o
  CC      drivers/usb/host/ohci-hcd.o
  CC      drivers/usb/core/hcd-pci.o
  CC      drivers/usb/dwc2/debugfs.o
  CC      drivers/usb/host/ohci-platform.o
  CC      drivers/usb/host/xhci-ext-caps.o
  CC      drivers/usb/host/xhci-mem.o
  CC      drivers/usb/host/xhci.o
  AR      drivers/usb/mon/built-in.a
  CC      drivers/usb/host/xhci-ring.o
  CC      drivers/usb/host/xhci-hub.o
  CC      drivers/usb/host/xhci-dbg.o
  CC      drivers/input/evdev.o
  AR      drivers/usb/class/built-in.a
  CC      drivers/usb/host/xhci-debugfs.o
  CC      drivers/usb/host/xhci-trace.o
  CC      drivers/usb/host/xhci-pci.o
  AR      drivers/usb/storage/built-in.a
  CC      drivers/usb/host/xhci-plat.o
  CC [M]  drivers/usb/storage/uas.o
  CC [M]  drivers/usb/storage/scsiglue.o
  CC [M]  drivers/usb/storage/protocol.o
  CC [M]  drivers/usb/storage/transport.o
  AR      drivers/usb/core/built-in.a
  CC      drivers/usb/serial/usb-serial.o
  CC      drivers/usb/misc/ezusb.o
  CC      drivers/usb/serial/generic.o
  CC      drivers/usb/gadget/udc/core.o
  CC      drivers/usb/gadget/udc/trace.o
  CC      drivers/usb/serial/bus.o
  AR      drivers/usb/misc/built-in.a
  CC      drivers/usb/serial/ch341.o
  CC      drivers/usb/roles/class.o
  CC      drivers/usb/typec/altmodes/displayport.o
  AR      drivers/input/built-in.a
  CC      drivers/usb/typec/tcpm/tcpm.o
  AR      drivers/usb/typec/mux/built-in.a
  CC      drivers/usb/typec/tcpm/fusb302.o
  CC [M]  drivers/usb/storage/usb.o
  CC      drivers/usb/typec/tcpm/tcpci.o
  CC [M]  drivers/usb/storage/initializers.o
  CC      drivers/usb/serial/cp210x.o
  CC      drivers/usb/serial/ftdi_sio.o
  CC      drivers/usb/serial/keyspan.o
  AR      drivers/usb/roles/built-in.a
  CC      drivers/usb/serial/option.o
  CC      drivers/usb/serial/oti6858.o
  CC      drivers/usb/serial/pl2303.o
  CC      drivers/usb/typec/class.o
  AR      drivers/usb/typec/altmodes/built-in.a
  CC      drivers/usb/typec/mux.o
  CC      drivers/usb/serial/qcserial.o
  CC      drivers/usb/serial/sierra.o
  AR      drivers/usb/gadget/udc/built-in.a
  CC [M]  drivers/usb/storage/sierra_ms.o
  CC      drivers/usb/typec/bus.o
  CC      drivers/usb/gadget/function/f_acm.o
  CC [M]  drivers/usb/storage/option_ms.o
  AR      drivers/usb/dwc2/built-in.a
  CC [M]  drivers/usb/storage/usual-tables.o
  AR      drivers/usb/gadget/legacy/built-in.a
  CC      drivers/usb/typec/tcpm/tcpci_husb311.o
  CC      drivers/usb/gadget/function/u_serial.o
  CC      drivers/usb/gadget/function/u_ether.o
  CC      drivers/usb/gadget/function/f_rndis.o
  CC      drivers/usb/gadget/function/rndis.o
  AR      drivers/usb/host/built-in.a
  CC      drivers/usb/serial/usb_wwan.o
  CC      drivers/usb/gadget/function/f_mass_storage.o
  CC      drivers/usb/gadget/function/storage_common.o
  CC      drivers/usb/gadget/function/f_fs.o
  CC      drivers/usb/gadget/usbstring.o
  CC      drivers/usb/gadget/config.o
  CC      drivers/usb/gadget/function/f_uvc.o
  CC      drivers/usb/gadget/function/uvc_queue.o
  CC      drivers/usb/gadget/function/uvc_v4l2.o
  CC      drivers/usb/gadget/function/uvc_video.o
  CC      drivers/usb/gadget/function/uvc_configfs.o
  CC      drivers/usb/gadget/epautoconf.o
  LD [M]  drivers/usb/storage/usb-storage.o
  CC      drivers/usb/gadget/composite.o
  CC      drivers/usb/gadget/functions.o
  CC      drivers/usb/gadget/configfs.o
  CC      drivers/usb/gadget/u_f.o
  AR      drivers/usb/serial/built-in.a
  AR      drivers/usb/typec/tcpm/built-in.a
  AR      drivers/usb/typec/built-in.a
  AR      drivers/usb/gadget/function/built-in.a
  AR      drivers/usb/gadget/built-in.a
  AR      drivers/usb/built-in.a
Makefile:1935: recipe for target 'drivers' failed
make[1]: *** [drivers] Error 2
arch/arm64/Makefile:214: recipe for target 'roc-rk3588s-pc-mipi101-M101014-BE45-A1.img' failed
make: *** [roc-rk3588s-pc-mipi101-M101014-BE45-A1.img] Error 2
ERROR: Running build_extboot failed!
ERROR: exit code 2 from line 783:
    make ARCH=$RK_ARCH $RK_KERNEL_DTS.img -j$RK_JOBS

My ultimate objective is to enable the PCIE support so that I can use NVME SSD. As pointed out here: 9. SATA — Firefly Wiki, all I I need to do is change the M2_SATA_OR_PCIE variable to 0, build the image using linux sdk and flash the new image. Is my understanding correct?

tchip_askquestions
build_log.zip (39.4 KB)

cd /path/to/sdk/kernel/
git reset --hard

command "git reset --hard "fails with the error “not a git repo”.
I tried the command ".repo/repo/repo forall -vc “git reset --hard” which worked but now I have a lot more similar errors like “no target for driver/gpu”
Since the above efforts failed, I tried cloning the repo from scratch and I am listing the process I followed below:

cd ~/proj/rk3588_sdk/

## Full SDK
repo init --no-clone-bundle --repo-url https://gitlab.com/firefly-linux/git-repo.git -u https://gitlab.com/firefly-linux/manifests.git -b master -m rk3588_linux_release.xml

after the “.repo/repo/repo sync -c --no-tags” command, I get the following error:

From https://gitlab.com/firefly-linux/kernel

  • [new tag] rk3588/linux_release_v1.1.1c → rk3588/linux_release_v1.1.1c
    Fetching projects: 100% (47/47), done.
    info: A new version of repo is available

warning: project ‘repo’ branch ‘stable’ is not signed
warning: Skipped upgrade to unverified version
Checking out files: 100% (1498/1498), done.t files: 92% (1389/1498)
Checking out files: 100% (413/413), done.out files: 15% (63/413)
Checking out files: 100% (275/275), done. out files: 68% (188/275)
Checking out files: 100% (2910/2910), done.ut files: 78% (2275/2910)
error: inflate: data stream error (incorrect data check)% (57/160)
error: failed to read delta base object b9d16e8fbf9963aeb2901ab15b7883acd72516fe at offset 1719907657 from .git/objects/pack/pack-87611d5ff858197ce0612e7517a072b30fa0078e.pack
fatal: packed object b46bbf8edc08373fda0ebe8bad71ebe5157d17b7 (stored in .git/objects/pack/pack-87611d5ff858197ce0612e7517a072b30fa0078e.pack) is corrupt
Traceback (most recent call last):
File “/home/rwl/gits/firefly_roc_rk3588s_linux/proj/rk3588_sdk_git/.repo/repo/main.py”, line 531, in
_Main(sys.argv[1:])
File “/home/rwl/gits/firefly_roc_rk3588s_linux/proj/rk3588_sdk_git/.repo/repo/main.py”, line 507, in _Main
result = repo._Run(argv) or 0
File “/home/rwl/gits/firefly_roc_rk3588s_linux/proj/rk3588_sdk_git/.repo/repo/main.py”, line 180, in _Run
result = cmd.Execute(copts, cargs)
File “/home/rwl/gits/firefly_roc_rk3588s_linux/proj/rk3588_sdk_git/.repo/repo/subcmds/sync.py”, line 821, in Execute
project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
File “/home/rwl/gits/firefly_roc_rk3588s_linux/proj/rk3588_sdk_git/.repo/repo/project.py”, line 1327, in Sync_LocalHalf
self._InitWorkTree(force_sync=force_sync)
File “/home/rwl/gits/firefly_roc_rk3588s_linux/proj/rk3588_sdk_git/.repo/repo/project.py”, line 2486, in _InitWorkTree
raise GitError(“cannot initialize work tree”)
error.GitError: cannot initialize work tree
prateek_arora@d00b65e3eb74:/home/rwl/gits/fir

How do I fix the corrupt error?

You need to go to the kernel directory. Then execute the git reset --hard command to reset all the changes. Then synchronize the code. Because you changed the files in the kernel directory.

799959745 Posted at 9/20/2023 14:22
You need to go to the kernel directory. Then execute the git reset --hard command to reset all the c …

I go to the kernel directory and do git reset --hard and I get the following error

fatal: not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

How do I use an equivalent repo command?

Microsoft인증 DP-420-KR시험을 패스하는 지름길은ITDumpsKR에서 연구제작한 Microsoft 인증DP-420-KR시험대비 덤프를 마련하여 충분한 시험준비를 하는것입니다. 덤프는 Microsoft 인증DP-420-KR시험의 모든 범위가 포함되어 있어 시험적중율이 높습니다. Microsoft 인증DP-420-KR시험패는 바로 눈앞에 있습니다. 링크를 클릭하시고ITDumpsKR의Microsoft 인증DP-420-KR시험대비 덤프를 장바구니에 담고 결제마친후 덤프를 받아 공부하는것입니다.

I’m truly inspired by what I read, thanks for sharing! Free GH-300 download pdf has fantastic content, and it’s free to access.

Thank you for this amazing article, it left a profound impression on me. Free access to C-THR94-2505 reliable exam dumps free’s content is provided, hoping it will benefit your studies.

I was blown away by how much I learned from it. Best wishes! Here are the free PDF C_S4CCO_2506 Download resources for you.