LinuxCNC + Orange Pi (allwincnc)

More
13 Jun 2021 14:12 #211937 by MX_Master

Sorry, I'm not working with git much - after a few tutorials I'm still not sure how to create a valid pull request. Please check the patch files from this message.

I've added new output to HAL (period_ticks) for testing the ARISC code. It is pin A period in raw timer ticks. Then the hal driver calculates velocity from period output, until about 110kHz when it switches back to frequency. Of course this is rather poor, and we should use method described by PCW. Anyway this code seems to work orangePi H3 (the only board I have).

Successfully patched ;)

github.com/allwincnc/fw/commit/f405f4a98...0d3012a053334f4203b5
github.com/allwincnc/linuxcnc/commit/5f8...096983f575a7c781105c
github.com/allwincnc/installer/commit/34...571b9db3a0b7454b9bf1

Please Log in or Create an account to join the conversation.

More
17 Jun 2021 19:18 - 17 Jun 2021 19:25 #212289 by viewtop1
Hi All.
Orange Pi + 2E
Armbian Buster mainline based kernel 5.10.y from Armbian site.

Sd card boots fine, then I install the desktop from armbian-config.
I also updated the board firmware from armbian-config

sudo apt-get && update all groovey.

Run the allwincnc installer
All good!
Get Linuxcnc icons on desktop etc
“Reboot system to complete installation”

No go!
System will not boot!

Help please? What am I missing…
CPU speed settings for RT ??
Last edit: 17 Jun 2021 19:25 by viewtop1. Reason: Add firmware update

Please Log in or Create an account to join the conversation.

More
17 Jun 2021 23:39 #212302 by MX_Master
Sometimes my test board fails to reboot (sudo reboot). Only full shutdown helps.

Please Log in or Create an account to join the conversation.

More
18 Jun 2021 06:33 #212313 by viewtop1
The SBC shuts down just fine. It just won’t start back up…
After running the script and rebooting the device wont boot. I don’t get any boot screen dialog. It’s like it is bricked.
Powercycle does not help either.
Only way to get it to work again is to start again with reflash the SD card.
Which is not the answer because it is excludes allwincnc…

Please Log in or Create an account to join the conversation.

More
18 Jun 2021 10:40 #212320 by MX_Master
It's possible that new armbian version (uboot + linux) isn't compatible with allwincnc's uboot script (firmware loader). Another possible reason - our version of the kernel (for H3) isn't compatible with Orange Pi Plus 2E board.

You can catch the detailed reason installing allwincnc's components one by one (script by script) with rebooting between the scripts.
git clone https://github.com/allwincnc/installer
cd installer 
./install_kernel.sh
sudo reboot # or shutdown now
./install_fw.sh
sudo reboot # or shutdown now
./install_sys_tweaks.sh
sudo reboot # or shutdown now
./install_linuxcnc.sh
sudo reboot # or shutdown now
./install_drv.sh
sudo reboot # or shutdown now
./install_cfg.sh
sudo reboot # or shutdown now

Please Log in or Create an account to join the conversation.

More
18 Jun 2021 15:22 #212337 by viewtop1
./install kernel.sh seems to work fine after reboot.
System loads
./install_fw.sh —> reboot

Brick…
Bummer
The following user(s) said Thank You: MX_Master

Please Log in or Create an account to join the conversation.

More
18 Jun 2021 16:45 #212343 by viewtop1
Mmm, I flashed an image form the mirrors.tuna.tsinghua.edu.cn
(Armbian_21.05.1_Orangepiplus2e_busterxxx) and it works…

Weird.

Please Log in or Create an account to join the conversation.

More
19 Jun 2021 01:47 #212377 by MX_Master
OK. It's time for the full replacement of uboot script (firmware loader) to the kernel module. Need some time to do that.

Please Log in or Create an account to join the conversation.

More
19 Jun 2021 07:36 #212388 by viewtop1
Here is the Serial Console output from the failed loading of the latest Armbian ( after ./install_fw.sh)
Applying kernel provided DT fixup script (sun8i-h3-fixup.scr)
## Executing script at 45000000
1275 bytes read in 3 ms (415 KiB/s)
Applying user provided fixup script (fixup.scr)
## Executing script at 45000000
Found the ARISC firmware blob `/boot/arisc-fw.code`
Base Address: 0x00000000
  asserting the ARISC core reset..
  asserting reset done, trying to upload the blob to the SRAM A2 (0x00040000)..
21628 bytes read in 3 ms (6.9 MiB/s)
  uploading done, de-asserting the ARISC core reset..
  de-asserting reset done, the ARISC core is ON.
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    14645706 Bytes = 14 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... Bad Data CRC
Ramdisk image is corrupt or invalid
SCRIPT FAILED: continuing...
7[r[999;999H[6n8Scanning disk mmc@1c0f000.blk...
Card did not respond to voltage select! : -110
Scanning disk mmc@1c10000.blk...
Disk mmc@1c10000.blk not ready
Scanning disk mmc@1c11000.blk...
** Unrecognized filesystem type **
** Unrecognized filesystem type **
** Unrecognized filesystem type **
** Unrecognized filesystem type **
** Unrecognized filesystem type **
** Unrecognized filesystem type **
** Unrecognized filesystem type **
** Unrecognized filesystem type **
** Unrecognized filesystem type **
Found 18 disks
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3967 bytes read in 3 ms (1.3 MiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
202 bytes read in 2 ms (98.6 KiB/s)
14645770 bytes read in 607 ms (23 MiB/s)
8090200 bytes read in 337 ms (22.9 MiB/s)
Found mainline kernel configuration
33211 bytes read in 6 ms (5.3 MiB/s)
4185 bytes read in 6 ms (680.7 KiB/s)
Applying kernel provided DT fixup script (sun8i-h3-fixup.scr)
## Executing script at 45000000
1275 bytes read in 2 ms (622.1 KiB/s)
Applying user provided fixup script (fixup.scr)
## Executing script at 45000000
Found the ARISC firmware blob `/boot/arisc-fw.code`
Base Address: 0x00000000
  asserting the ARISC core reset..
  asserting reset done, trying to upload the blob to the SRAM A2 (0x00040000)..
21628 bytes read in 3 ms (6.9 MiB/s)
  uploading done, de-asserting the ARISC core reset..
  de-asserting reset done, the ARISC core is ON.
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    14645706 Bytes = 14 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... Bad Data CRC
Ramdisk image is corrupt or invalid
SCRIPT FAILED: continuing...
BootOrder not defined
EFI boot manager: Cannot load any image

Device 0: unknown device
ethernet@1c30000 Waiting for PHY auto negotiation to complete........ done
BOOTP broadcast 1


Thankfully using an older image seems to work fine.
The following user(s) said Thank You: MX_Master

Please Log in or Create an account to join the conversation.

More
19 Jun 2021 11:24 #212391 by viewtop1
On a side note... Would it ever be possible to use some of the other Linuxcnc GUI options?

Specifically qtdragon or Probebasic? or any QTpyVCP types?

I tried, to install them but it seems VTK is not supported in Armbian.

Please Log in or Create an account to join the conversation.

Time to create page: 0.173 seconds
Powered by Kunena Forum