Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

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

29

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
29

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

Posted at 9/15/2023 08:36:23      View:2296 | Replies:4        Print      Only Author   [Copy Link] 1#
Problem description and steps to reproduce:
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 https://wiki.t-firefly.com/en/ROC-RK3588S-PC/linux_compile.html. 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)
  1. # configuration written to .config
  2. #
  3.   SYNC    include/config/auto.conf.cmd
  4.   CALL    scripts/atomic/check-atomics.sh
  5.   CALL    scripts/checksyscalls.sh
  6.   CHK     include/generated/compile.h
  7.   AR      drivers/auxdisplay/built-in.a
  8.   AR      drivers/cdrom/built-in.a
  9.   CC      drivers/rtc/lib.o
  10.   CC      drivers/usb/common/common.o
  11.   CC      drivers/input/mouse/cyapa.o
  12.   CC [M]  drivers/cdrom/cdrom.o
  13.   CC      drivers/input/keyboard/adc-keys.o
  14.   CC      drivers/rtc/systohc.o
  15. make[3]: *** No rule to make target 'drivers/spi/spi-wk2xxx.o', needed by 'drivers/spi/built-in.a'.  Stop.
  16. make[3]: *** Waiting for unfinished jobs....
  17.   CC      drivers/i2c/algos/i2c-algo-bit.o
  18. scripts/Makefile.build:516: recipe for target 'drivers/spi' failed
  19. make[2]: *** [drivers/spi] Error 2
  20. make[2]: *** Waiting for unfinished jobs....
  21.   CC      drivers/usb/common/debug.o
  22.   CC      drivers/usb/core/usb.o
  23.   CC      drivers/rtc/class.o
  24.   CC      drivers/usb/phy/phy.o
  25.   CC      drivers/usb/phy/of.o
  26.   CC      drivers/input/keyboard/gpio_keys.o
  27.   CC      drivers/input/mouse/cyapa_gen3.o
  28.   CC      drivers/input/keyboard/gpio_keys_polled.o
  29.   CC      drivers/i2c/busses/i2c-rk3x.o
  30.   CC      drivers/usb/core/hub.o
  31.   AR      drivers/usb/common/built-in.a
  32.   AR      drivers/i2c/algos/built-in.a
  33.   CC      drivers/usb/core/hcd.o
  34.   CC      drivers/input/touchscreen/hxchipset/himax_ic_HX83102.o
  35.   CC      drivers/usb/dwc3/core.o
  36.   CC      drivers/rtc/interface.o
  37.   CC      drivers/rtc/nvmem.o
  38.   CC      drivers/rtc/dev.o
  39.   AR      drivers/usb/phy/built-in.a
  40.   CC      drivers/input/remotectl/rockchip_pwm_remotectl.o
  41.   CC      drivers/rtc/proc.o
  42.   AR      drivers/input/keyboard/built-in.a
  43.   CC      drivers/usb/core/urb.o
  44.   CC      drivers/usb/dwc3/trace.o
  45.   CC      drivers/input/mouse/cyapa_gen5.o
  46.   CC      drivers/input/touchscreen/hxchipset/himax_debug.o
  47.   AR      drivers/i2c/busses/built-in.a
  48.   AR      drivers/i2c/muxes/built-in.a
  49.   CC      drivers/i2c/i2c-boardinfo.o
  50.   CC      drivers/rtc/sysfs.o
  51.   CC      drivers/input/touchscreen/gt1x/gt1x_extents.o
  52.   CC      drivers/input/touchscreen/gt9xxx/gt9xx.o
  53.   CC      drivers/i2c/i2c-core-base.o
  54.   AR      drivers/input/remotectl/built-in.a
  55.   CC      drivers/usb/core/message.o
  56.   CC      drivers/input/touchscreen/gt1x/gt1x_generic.o
  57.   CC      drivers/input/misc/rk805-pwrkey.o
  58.   CC      drivers/rtc/rtc-hym8563.o
  59.   CC      drivers/usb/core/driver.o
  60.   CC      drivers/usb/core/config.o
  61.   CC      drivers/rtc/rtc-rk808.o
  62.   CC      drivers/input/input.o
  63.   CC      drivers/input/input-compat.o
  64.   CC      drivers/input/touchscreen/hxchipset/himax_inspection.o
  65.   CC      drivers/input/touchscreen/hxchipset/himax_ic_incell_core.o
  66.   CC      drivers/input/mouse/cyapa_gen6.o
  67.   CC      drivers/input/misc/uinput.o
  68.   CC      drivers/usb/dwc3/host.o
  69.   CC      drivers/i2c/i2c-core-smbus.o
  70.   CC      drivers/input/touchscreen/gt9xxx/gt9xx_update.o
  71.   CC      drivers/input/touchscreen/gt1x/gt1x_tools.o
  72.   CC      drivers/input/mouse/elan_i2c_core.o
  73.   AR      drivers/rtc/built-in.a
  74.   CC      drivers/usb/dwc3/gadget.o
  75.   CC      drivers/input/touchscreen/hxchipset/himax_common.o
  76.   CC      drivers/i2c/i2c-core-of.o
  77.   CC      drivers/input/touchscreen/gt1x/gt1x.o
  78.   CC      drivers/input/touchscreen/gt1x/gt1x_update.o
  79.   CC      drivers/input/touchscreen/of_touchscreen.o
  80.   CC      drivers/usb/core/file.o
  81.   CC      drivers/usb/core/buffer.o
  82.   CC      drivers/input/touchscreen/atmel_mxt_ts.o
  83.   AR      drivers/input/misc/built-in.a
  84.   CC      drivers/usb/dwc2/core.o
  85.   CC      drivers/usb/dwc2/core_intr.o
  86.   CC      drivers/input/mouse/elan_i2c_i2c.o
  87.   CC      drivers/i2c/i2c-dev.o
  88.   CC      drivers/input/touchscreen/gt9xxx/goodix_tool.o
  89.   CC      drivers/input/touchscreen/elants_i2c.o
  90.   CC      drivers/input/touchscreen/gsl3673.o
  91.   CC      drivers/input/touchscreen/hxchipset/himax_platform.o
  92.   CC      drivers/i2c/i2c-mux.o
  93.   CC      drivers/usb/core/sysfs.o
  94.   CC      drivers/usb/core/endpoint.o
  95.   CC      drivers/usb/core/devio.o
  96.   AR      drivers/input/touchscreen/gt1x/built-in.a
  97.   CC      drivers/usb/dwc2/platform.o
  98.   CC      drivers/usb/dwc2/drd.o
  99.   AR      drivers/input/mouse/built-in.a
  100.   CC      drivers/input/touchscreen/gsl_point_id.o
  101.   AR      drivers/input/touchscreen/gt9xxx/built-in.a
  102.   CC      drivers/usb/dwc3/ep0.o
  103.   CC      drivers/usb/dwc3/drd.o
  104.   CC      drivers/usb/dwc3/debugfs.o
  105.   AR      drivers/i2c/built-in.a
  106.   CC      drivers/usb/mon/mon_main.o
  107.   AR      drivers/input/touchscreen/hxchipset/built-in.a
  108.   CC      drivers/usb/dwc3/dwc3-haps.o
  109.   CC      drivers/usb/dwc3/dwc3-of-simple.o
  110.   CC      drivers/input/input-mt.o
  111.   CC      drivers/usb/mon/mon_text.o
  112.   CC      drivers/usb/mon/mon_stat.o
  113.   CC      drivers/usb/host/pci-quirks.o
  114.   CC      drivers/input/touchscreen/usbtouchscreen.o
  115.   CC      drivers/usb/host/ehci-hcd.o
  116.   CC      drivers/usb/core/notify.o
  117.   CC      drivers/usb/core/generic.o
  118.   CC      drivers/usb/core/quirks.o
  119.   CC      drivers/usb/dwc2/params.o
  120.   CC      drivers/usb/dwc2/hcd.o
  121.   CC      drivers/usb/dwc2/hcd_intr.o
  122.   CC      drivers/usb/mon/mon_bin.o
  123.   CC      drivers/usb/class/cdc-acm.o
  124.   CC      drivers/input/input-poller.o
  125.   CC      drivers/usb/dwc2/hcd_queue.o
  126.   CC      drivers/usb/class/cdc-wdm.o
  127.   CC      drivers/usb/core/devices.o
  128.   CC      drivers/usb/core/phy.o
  129.   CC      drivers/usb/dwc2/hcd_ddma.o
  130.   CC      drivers/usb/core/port.o
  131.   CC      drivers/input/ff-core.o
  132.   CC      drivers/usb/host/ehci-pci.o
  133.   CC      drivers/usb/host/ehci-platform.o
  134.   AR      drivers/usb/dwc3/built-in.a
  135.   CC      drivers/usb/core/of.o
  136.   CC      drivers/input/ff-memless.o
  137.   CC      drivers/usb/dwc2/gadget.o
  138.   AR      drivers/input/touchscreen/built-in.a
  139.   CC      drivers/input/input-leds.o
  140.   CC      drivers/usb/host/ohci-hcd.o
  141.   CC      drivers/usb/core/hcd-pci.o
  142.   CC      drivers/usb/dwc2/debugfs.o
  143.   CC      drivers/usb/host/ohci-platform.o
  144.   CC      drivers/usb/host/xhci-ext-caps.o
  145.   CC      drivers/usb/host/xhci-mem.o
  146.   CC      drivers/usb/host/xhci.o
  147.   AR      drivers/usb/mon/built-in.a
  148.   CC      drivers/usb/host/xhci-ring.o
  149.   CC      drivers/usb/host/xhci-hub.o
  150.   CC      drivers/usb/host/xhci-dbg.o
  151.   CC      drivers/input/evdev.o
  152.   AR      drivers/usb/class/built-in.a
  153.   CC      drivers/usb/host/xhci-debugfs.o
  154.   CC      drivers/usb/host/xhci-trace.o
  155.   CC      drivers/usb/host/xhci-pci.o
  156.   AR      drivers/usb/storage/built-in.a
  157.   CC      drivers/usb/host/xhci-plat.o
  158.   CC [M]  drivers/usb/storage/uas.o
  159.   CC [M]  drivers/usb/storage/scsiglue.o
  160.   CC [M]  drivers/usb/storage/protocol.o
  161.   CC [M]  drivers/usb/storage/transport.o
  162.   AR      drivers/usb/core/built-in.a
  163.   CC      drivers/usb/serial/usb-serial.o
  164.   CC      drivers/usb/misc/ezusb.o
  165.   CC      drivers/usb/serial/generic.o
  166.   CC      drivers/usb/gadget/udc/core.o
  167.   CC      drivers/usb/gadget/udc/trace.o
  168.   CC      drivers/usb/serial/bus.o
  169.   AR      drivers/usb/misc/built-in.a
  170.   CC      drivers/usb/serial/ch341.o
  171.   CC      drivers/usb/roles/class.o
  172.   CC      drivers/usb/typec/altmodes/displayport.o
  173.   AR      drivers/input/built-in.a
  174.   CC      drivers/usb/typec/tcpm/tcpm.o
  175.   AR      drivers/usb/typec/mux/built-in.a
  176.   CC      drivers/usb/typec/tcpm/fusb302.o
  177.   CC [M]  drivers/usb/storage/usb.o
  178.   CC      drivers/usb/typec/tcpm/tcpci.o
  179.   CC [M]  drivers/usb/storage/initializers.o
  180.   CC      drivers/usb/serial/cp210x.o
  181.   CC      drivers/usb/serial/ftdi_sio.o
  182.   CC      drivers/usb/serial/keyspan.o
  183.   AR      drivers/usb/roles/built-in.a
  184.   CC      drivers/usb/serial/option.o
  185.   CC      drivers/usb/serial/oti6858.o
  186.   CC      drivers/usb/serial/pl2303.o
  187.   CC      drivers/usb/typec/class.o
  188.   AR      drivers/usb/typec/altmodes/built-in.a
  189.   CC      drivers/usb/typec/mux.o
  190.   CC      drivers/usb/serial/qcserial.o
  191.   CC      drivers/usb/serial/sierra.o
  192.   AR      drivers/usb/gadget/udc/built-in.a
  193.   CC [M]  drivers/usb/storage/sierra_ms.o
  194.   CC      drivers/usb/typec/bus.o
  195.   CC      drivers/usb/gadget/function/f_acm.o
  196.   CC [M]  drivers/usb/storage/option_ms.o
  197.   AR      drivers/usb/dwc2/built-in.a
  198.   CC [M]  drivers/usb/storage/usual-tables.o
  199.   AR      drivers/usb/gadget/legacy/built-in.a
  200.   CC      drivers/usb/typec/tcpm/tcpci_husb311.o
  201.   CC      drivers/usb/gadget/function/u_serial.o
  202.   CC      drivers/usb/gadget/function/u_ether.o
  203.   CC      drivers/usb/gadget/function/f_rndis.o
  204.   CC      drivers/usb/gadget/function/rndis.o
  205.   AR      drivers/usb/host/built-in.a
  206.   CC      drivers/usb/serial/usb_wwan.o
  207.   CC      drivers/usb/gadget/function/f_mass_storage.o
  208.   CC      drivers/usb/gadget/function/storage_common.o
  209.   CC      drivers/usb/gadget/function/f_fs.o
  210.   CC      drivers/usb/gadget/usbstring.o
  211.   CC      drivers/usb/gadget/config.o
  212.   CC      drivers/usb/gadget/function/f_uvc.o
  213.   CC      drivers/usb/gadget/function/uvc_queue.o
  214.   CC      drivers/usb/gadget/function/uvc_v4l2.o
  215.   CC      drivers/usb/gadget/function/uvc_video.o
  216.   CC      drivers/usb/gadget/function/uvc_configfs.o
  217.   CC      drivers/usb/gadget/epautoconf.o
  218.   LD [M]  drivers/usb/storage/usb-storage.o
  219.   CC      drivers/usb/gadget/composite.o
  220.   CC      drivers/usb/gadget/functions.o
  221.   CC      drivers/usb/gadget/configfs.o
  222.   CC      drivers/usb/gadget/u_f.o
  223.   AR      drivers/usb/serial/built-in.a
  224.   AR      drivers/usb/typec/tcpm/built-in.a
  225.   AR      drivers/usb/typec/built-in.a
  226.   AR      drivers/usb/gadget/function/built-in.a
  227.   AR      drivers/usb/gadget/built-in.a
  228.   AR      drivers/usb/built-in.a
  229. Makefile:1935: recipe for target 'drivers' failed
  230. make[1]: *** [drivers] Error 2
  231. arch/arm64/Makefile:214: recipe for target 'roc-rk3588s-pc-mipi101-M101014-BE45-A1.img' failed
  232. make: *** [roc-rk3588s-pc-mipi101-M101014-BE45-A1.img] Error 2
  233. ERROR: Running build_extboot failed!
  234. ERROR: exit code 2 from line 783:
  235.     make ARCH=$RK_ARCH $RK_KERNEL_DTS.img -j$RK_JOBS
Copy the code

My ultimate objective is to enable the PCIE support so that I can use NVME SSD. As pointed out here: https://wiki.t-firefly.com/en/ROC-RK3588S-PC/usage_sata.html, 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?

build_log.zip

39.43 KB, Down times: 0

Reply

Use props Report

176

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
176
Posted at 9/16/2023 10:07:52        Only Author  2#
cd /path/to/sdk/kernel/
git reset --hard
Reply

Use props Report

29

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
29
Posted at 9/19/2023 09:10:13        Only Author  3#
Last edited by prateekarora In 9/19/2023 09:25 Editor

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:
  1. cd ~/proj/rk3588_sdk/

  2. ## Full SDK
  3. 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
Copy the code

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 <module>
    _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?

Reply

Use props Report

176

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
176
Posted at 9/20/2023 14:22:14        Only Author  4#
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.
Reply

Use props Report

29

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
29
Posted at 9/21/2023 02:32:51        Only Author  5#
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

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


How do I use an equivalent repo command?
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list