redrathnure / armbian-mkspi

Armbian Linux Build Framework
https://www.armbian.com
GNU General Public License v2.0
80 stars 13 forks source link

Not able to compile #2

Closed Tina-Builds closed 1 year ago

Tina-Builds commented 1 year ago

I am sorry, I guess I do something terrible wrong: When I clone the repo with 'git clone https://github.com/redrathnure/armbian-mkspi.git' and then do a './compile.sh BOARD=mkspi BRANCH=current RELEASE=jammy BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_CONFIGURE=no COMPRESS_OUTPUTIMAGE=sha,gpg,img' I get errors: "... [ o.k. ] Create example config file using template [ config-default.conf ] [ o.k. ] Using config file [ /root/armbian-mkspi/userpatches/config-example.conf ] [ o.k. ] Command line: setting BOARD to [ mkspi ] [ o.k. ] Command line: setting BRANCH to [ current ] [ o.k. ] Command line: setting RELEASE to [ jammy ] [ o.k. ] Command line: setting BUILD_MINIMAL to [ no ] [ o.k. ] Command line: setting BUILD_DESKTOP to [ no ] [ o.k. ] Command line: setting KERNEL_CONFIGURE to [ no ] [ o.k. ] Command line: setting COMPRESS_OUTPUTIMAGE to [ sha,gpg,img ] /root/armbian-mkspi/lib/functions/main/config-prepare.sh: line 85: /root/armbian-mkspi/config/boards/mkspi.: No such file or directory [ error ] ERROR in function prepare_and_config_main_build_single [ functions/cli/cli-entrypoint.sh:106 -> functions/main/config-prepare.sh:88 -> functions/logging/traps.sh:0 ] [ error ] Board configuration does not define valid kernel config [ o.k. ] Process terminated " A './compile.sh' opens the "window" to choose a board, but there is no mkspi listed Any ideas?

redrathnure commented 1 year ago

master branch does not have any customizations, please checkout custom/mkspi_23.02.0-trunk.0135 branch first (e.g. git checkout custom/mkspi_23.02.0-trunk.0135 after git clone ... command).

redrathnure commented 1 year ago

@Tina-Builds does it work? Should we close an issue?

williangomesa commented 1 year ago

Hi, i'm trying to clone the repository but i'm receiving an "error": willian@willian-VirtualBox:~$ git clone https://github.com/redrathnure/armbian-mkspi/tree/custom/mkspi_23.02.0-trunk.0171 Cloning into 'mkspi_23.02.0-trunk.0171'... fatal: repository 'https://github.com/redrathnure/armbian-mkspi/tree/custom/mkspi_23.02.0-trunk.0171/' not found willian@willian-VirtualBox:~$

redrathnure commented 1 year ago

please try following commands:

git clone https://github.com/redrathnure/armbian-mkspi.git
cd armbian-mkspi
git checkout custom/mkspi_23.02.0-trunk.0171
williangomesa commented 1 year ago

Thanks for the repply, I do received this message:

fatal: not a git repository (or any of the parent directories): .git root@willian-VirtualBox:/home/willian/armbian-mkspi#

williangomesa commented 1 year ago

It did work now, thank you very much for the help.

williangomesa commented 1 year ago

HI guys, sorry for posting in the wrong place, I wasn't able to put in the correct place; i'm trying to use an adxl345 module for the input shaper, first, i've tried to use an arduino nano as secondary mcu over usb to make it work (the module is working, I've tested in another printer), but as soon as I've declared the secondary MCU the board doesn't come after reset, keeps showing "The klippy host software is attempting to connect. Please retry in a few moments"; then I tried to use the guide to work with the "raspberry" as a seconary MCU, the same error happens, I'm using the mkspi_23.02.0-trunk.0171, compiled as ./compile.sh BOARD=mkspi BRANCH=current RELEASE=jammy BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_CONFIGURE=no COMPRESS_OUTPUTIMAGE=sha,gpg,img

williangomesa commented 1 year ago

I do receive the message"ln: failed to create symbolic link '/etc/init.d/klipper_mcu': File exists " when configuring the mks pi to use adxl345

redrathnure commented 1 year ago

@williangomesa perhaps you do not need RPi MKS PI as a secondary MCU for your configuration.

I assume you should see new serial device after connect Arduino(with adxl345 ) to your RPi MKS PI board. E.g. check ls /dev/serial/by-id/* output, most likely you will see two devices here (on is 3D printer board and second is Ardiono one). In this case you should play with [mcu rpi] and [adxl345] sections. serial should point to one of /dev/serial/by-id/* file (but not /tmp/klipper_host_mcu)

williangomesa commented 1 year ago

Hi, did you @redrathnure have tried to use a usb flash drive in the board ? i'm asking because i'm able to use in another brand of board, in order to print, but in this case it seems that doesn't work.

redrathnure commented 1 year ago

@williangomesa I am not sure I got your question right. Do you mean using USB stick to store some files? Or do you want to boot OS from USB stick or external USB drive?

williangomesa commented 1 year ago

I mean, using a USB stick in order to print.

redrathnure commented 1 year ago

I have done backups to/from USB stick. So I can confirm that USB ports work, even USB3 mode. Most likely you would find a way how to mount it automatically (AutoFS, USB mount or some scripts to automatize this tasks).

redrathnure commented 1 year ago

Guess original issue was solved. Please feel free to reopen issue in case of compilation problems.