New install of kiauh doesn't create a functional klipper.bin for SKR1.3 #97
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I recently used kiauh to install klipper, mainsail and fluidd. I got an error connecting to my skr1.3 due to an older firmware, but had issues generating a functional klipper.bin file for it, getting usb connection fail messages on rpi bootup. I did not manually install make until after I tried to generate the klipper.bin file manually. Is it possible there's a missing dependency for make in the kiauh installation process? After following the identical settings I was using in kiauh to make the firmware manually, I was able to connect to my skr1.3 again.
Im not sure if i understand correct.
KIAUH doesn't create a klipper.bin file automatically just by installing/cloning it.
The user always has to go into the advanced menu and from there choose the appropriate option to either build only or build and flash the firmware.
Process followed to create a non-functional firmware using kiauh:
Install kiauh using instructions from download page on a clean install of Raspbian buster.
Install Klipper, Mainsail and fluidd via script.
Create firmware via script, (4 then 3) using the following options:
[ ] Enable extra low-level configuration options
Micro-controller Architecture (LPC176x (Smoothieboard)) --->
Processor model (lpc1768 (100 MHz)) --->
[*] Target board uses Smoothieware bootloader
Communication interface (USB) --->
rename the generated klipper.bin file to firmware.bin, copy to SD card.
power off rpi and skr1.3
move SD card to skr1.3, restore power, wait 90 seconds, remove power.
remove SD card.
On reboot, the Pi shows many USB connection failure messages, the SD card firmware.bin has been renamed firmware.cur indicating a successful flash of a non-functional firmware.
So either the version of make used in the script is creating an issue, or the settings being passed from kiauh to make are not correct.
KIAUH uses the same make which is used when you build the firmware by hand.
For that to check, i need to know HOW you build the firmware by hand and which commands you exactly used.
KIAUH uses the make command as suggested in the klipper docs: https://github.com/KevinOConnor/klipper/blob/master/docs/Installation.md#building-and-flashing-the-micro-controller
Therefore its a simple
makewhich gets executed as can be seen here: https://github.com/th33xitus/kiauh/blob/master/scripts/install_klipper.sh#L382sudo apt install make
cd ~/klipper
make menuconfig
make clean
make
with the same options listed for firmware configuration:
[ ] Enable extra low-level configuration options
Micro-controller Architecture (LPC176x (Smoothieboard)) --->
Processor model (lpc1768 (100 MHz)) --->
[*] Target board uses Smoothieware bootloader
Communication interface (USB) --->
I see. I'll add an additional dependency check for
maketo the script before calling the make commands.Hope that will help.