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

Using [git reset --hard] to crash your SDK #210

Open
Q1anWan opened this issue Dec 10, 2024 · 1 comment
Open

Using [git reset --hard] to crash your SDK #210

Q1anWan opened this issue Dec 10, 2024 · 1 comment

Comments

@Q1anWan
Copy link

Q1anWan commented Dec 10, 2024

I had successfully compiled an image:

[mk-update_pack.sh:info] Making -RK1106 update.img OK.
[build.sh:info] Running build_updateimg succeeded.
[build.sh:info] Running build_firmware succeeded.
[build.sh:info] Running build_all succeeded.
'uboot.debug.tar.bz2' -> '/home/qianwan/sdk/ws/luckfox-pico/IMAGE/IPC_EMMC_UBUNTU_RV1106_LUCKFOX_PICO_ULTRA_20241210.1700_RELEASE_TEST/DEBUG_FILES/uboot/uboot.debug.tar.bz2'
save to /home/qianwan/ws/sdk/luckfox-pico/IMAGE/IPC_EMMC_UBUNTU_RV1106_LUCKFOX_PICO_ULTRA_20241210.1700_RELEASE_TEST
[build.sh:info] Running build_save succeeded.
[build.sh:info] Running build_allsave succeeded.

However, after executing git reset --hard and subsequently running sudo ./build, my SDK crashed and displayed errors like these:

In file included from /home/qianwan/ws/sdk/luckfox-pico/sysdrv/source/kernel/drivers/soc/rockchip/iomux.c:17:
/home/qianwan/ws/sdk/luckfox-pico/sysdrv/source/kernel/drivers/soc/rockchip/../../pinctrl/pinctrl-rockchip.h:338:20: error: field 'gpio_chip' has incomplete type
  struct gpio_chip  gpio_chip;
                    ^~~~~~~~~
/home/qianwan/ws/sdk/luckfox-pico/sysdrv/source/kernel/drivers/soc/rockchip/../../pinctrl/pinctrl-rockchip.h:339:28: error: field 'grange' has incomplete type
  struct pinctrl_gpio_range grange;
                            ^~~~~~
/home/qianwan/ws/sdk/luckfox-pico/sysdrv/source/kernel/drivers/soc/rockchip/../../pinctrl/pinctrl-rockchip.h:430:24: error: field 'param' has incomplete type
  enum pin_config_param param;
                        ^~~~~
/home/qianwan/ws/sdk/luckfox-pico/sysdrv/source/kernel/drivers/soc/rockchip/../../pinctrl/pinctrl-rockchip.h:467:23: error: field 'pctl' has incomplete type
  struct pinctrl_desc  pctl;
                       ^~~~
make[6]: *** [/home/qianwan/ws/sdk/luckfox-pico/sysdrv/source/kernel/scripts/Makefile.build:273: drivers/soc/rockchip/iomux.o] Error 1
make[5]: *** [/home/qianwan/ws/sdk/luckfox-pico/sysdrv/source/kernel/scripts/Makefile.build:516: drivers/soc/rockchip] Error 2
make[4]: *** [/home/qianwan/ws/sdk/luckfox-pico/sysdrv/source/kernel/scripts/Makefile.build:516: drivers/soc] Error 2
make[4]: *** Waiting for unfinished jobs....
  AR      drivers/video/fbdev/core/built-in.a
  AR      drivers/video/fbdev/built-in.a
  AR      drivers/video/built-in.a
make[3]: *** [/home/qianwan/ws/sdk/luckfox-pico/sysdrv/source/kernel/Makefile:1935: drivers] Error 2
make[2]: *** [arch/arm/Makefile:375: rv1106g-luckfox-pico-ultra.img] Error 2
make[2]: Leaving directory '/home/qianwan/ws/sdk/luckfox-pico/sysdrv/source/objs_kernel'
make[1]: *** [Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/home/qianwan/ws/sdk/luckfox-pico/sysdrv/source/kernel'
make: *** [Makefile:489: kernel] Error 1
make: Leaving directory '/home/qianwan/ws/sdk/luckfox-pico/sysdrv'
[build.sh:error] Running build_kernel failed!
[build.sh:error] exit code 2 from line 876:
[build.sh:info]     make kernel -C ${SDK_SYSDRV_DIR} $kernel_build_options KERNEL_DTS=${RK_KERNEL_DTS} KERNEL_CFG=${RK_KERNEL_DEFCONFIG} KERNEL_CFG_FRAGMENT=${RK_KERNEL_DEFCONFIG_FRAGMENT}

I was compelled to uninstall the entire SDK and reinstall it to resolve the issue. Additionally, I've tried to run sudo ./build clean before git reset --hard. But it didn't work.

It appears there might be some bugs present.

@luckfox-eng33
Copy link
Contributor

I think this may be due to permissions issues, build.sh clean may indeed leave some files behind
But you need to git reset --hard when you can first try to delete the current sdk

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

2 participants