- Posts: 639
- Thank you received: 234
LinuxCNC + Orange Pi (allwincnc)
- Bari
- Offline
- Platinum Member
-
Please Log in or Create an account to join the conversation.
- rollfree
- Offline
- Senior Member
-
- Posts: 59
- Thank you received: 11
I had the same problem with actual version of Armbian.Bari wrote: Tried both of these images on Orange Pi One, 512MB, H3:
Armbian_20.02.1_Orangepione_buster_current_5.4.20_desktop.7z
Armbian_20.05.1_Orangepione_buster_current_5.4.43_desktop.img
Apt update and all installs worked (git clone gitlab.com/orangecnc/installer ) with no errors. After reboot there are no USB devices working. :(
USB PHY regulator and IRQ issues in the dmesg
If an older version Armbian_20.05.2_Orangepipc_buster_current_5.4.43 is used as the basis (without subsequent update), then the system goes OK.
archive.armbian.com/orangepipc/archive/A....4.43_desktop.img.xz
Please Log in or Create an account to join the conversation.
- tjtr33
- Offline
- Elite Member
-
- Posts: 170
- Thank you received: 54
I assume magic means undocumented. i am sure i didnt invent anything and followed some recipe i found but will stop and get on to rebuilding and documenting. thx again tomp. het i check the damn reply notification checkbox. oh well get to it!
Please Log in or Create an account to join the conversation.
- tjtr33
- Offline
- Elite Member
-
- Posts: 170
- Thank you received: 54
(its LOOOOONG but i made 3 working images with this recipe )
There is a bad .dtb file supplied, i give a link to the good file and how ot use it )
here's my recipe:
1) Get a good uSD card, many are bad, many are fake, many have wrong size
class 10
I used Kimgston 32G and SandDisk Ultra 32G. Kingstone is better imo/in my experience
Test it with F3
2) Format the SD card
This is to insure the armbian image ( or anything ) can be written to the uSD card
SD card readers are often junk
I use an old Fujix camera that has a format function,
I use an sd card adapter for the uSD card
I also used my android cell phone and the 'files' app supplied
I also used a chromebook with an SD card slot,
this required an SD card adapter.
I had no luck using usb card readers (2) on my normal linux desktop tower,
not on any of 6 bootable distros.
ymmv
using onwe of these 4 methods should get you a formatted sd card ( fat32 )
that can have an image burned onto it.
3) get an image:
for the OrangePiPlus2e,
I went to
mirrors.tuna.tsinghua.edu.cn/armbian-rel...ngepiplus2e/archive/
and got Armbian_20.11.3_Orangepiplus2e_buster_current_5.9.14.img.xz
That image is very new (today is 20dec2020) there are newer blleding edge images
The next lines are only for those following the instructions
using a Chromebook's System Recovery Utility,
you may well use dd or Etcher or Rufus )
I extracted the .img file and because of the way I burned it,
I converted the .img to a .zip
Then I uploaded the .zip to Google Drive ( my drive )
ready for Chromebook's SystemRecoveryUtility
4) burn the image:
what I did: ( using a chromebook):
I saw my sd card burning problems lay in the adapters ( uSD to SD to usb dongle )
and I used the chromebook to burm the image on the uSD card
because this eliminated one hardware interface.
The chromebook has a System Recovery Utility
that creates an iso FROM the live system and
can restore that image to an SD card.
But I used the restore function with a trick
that tells the utility to use any image that I want
So i can burn uSD cards for loads of small computers (RPi BPi OPi Cubie etc)
The utility wants
the image to burn
and
the device to burn it on.
The image can be on local storage
or even on Google Drive ( that's my choice to avoid using local disk space )
A gotcha is : the file on Google Drive should be .zip or .bin
( I had troubles with .bin so I zipped the .img extracted from the .xz )
After uploading the .zip to MyDrive, and formatting the SD card,
insert the now empty uSD card into a SD sleeve
and insert that sleeve into the Chromebook SD slot.
Open the System Recovery Utiltiy
( drill down into the apps list of the Chromeook )
Goto the top right of the app and click the Gear.
Choose 'Local File'
navigate to Google Drive and select the .zip image file
the select the device ( I only had 1 in the list, a 32G card listed as 29.5G )
click continue
get a warning that th uSD card will be erased
click on continue again
now wait....
you SHOULD get a forammted uSD card when its done
5) if here, you have a bootable uSD card
put the uSD card into OPi
add a usb Keyboard and mouse
power up the monitor
( HDMI needs to be ready before the microcontroller imo )
after the monitor complains there is no signal,
power up the OPI with at least 3 amp power supply.
you should see a green led right away
WAIT
eventually you will see text scrolling
the uSD card will get expanded to use all room available
WAIT some more
until it asks you for a new root password
enter a good one
then pick a user name and password
6) armbian-config
You will need networking before configuring the system
I used wifI and as normal user, did
nmtui-connect
and picked out my wifi from all the neighbors
then entered the password for the router ( wifI password )
I was immediately 'on' the net
then do
sudo armbian-config
note the info shown
like the min and max cpu freq and the cpu governor that is in effect now
like the relase version
enter you new user password
then from the menu system select
SSH (if you want to, I did) and select the defaults ( as I did ) then SAVE then BACK
Update & Upgrade ( needed to build stuff later like linuxCNC and RT_PREEMPT and Arisc and GPIO )
Timezone
Locale
Kernel Headers and Kernel Source
note this will get you 5.9.14 hdrs & src and will be DOWNGRADED later, dont worry )
This is plenty enough changes to a new system, so lets make sure its really operational
sudo shutdown -h now
wait for led off, then power off, count to 20, then power on
7) you just rebooted
This time login as user with user password
After login
Check that you can ssh in ( use sudo ifconfig to see IP addr )
sudo apt-get -y install xorg lightdm xfce4 tango-icon-theme gnome-icon-theme
when done
sudo reboot
9) you see a new gui login
and see that the mouse works
type in the username and pwd
see 'welcome to the desktop'
I chose default setup
open a terminal
sudo shutdown -h now
do a 'cold boot' this time, just to insure all is right
10) you just rebooted into XFCE4
log in
open a terminal
and just incase...
sudo apt-get update
sudo apt-get upgrade
then get the wonderful package from mx-master of cnc-ru orangecnc
git clone gitlab.com/orangecnc/installer
after the clone is done...
11) run the shell script:
cd installer
./install.sh
DO NOT REBOOT YET
WE HAVE TO CHANGE 1 FILE
12) you need to overwrite one file BEFORE powering down
the existing uSD filesystem has >ONE< bad file that will defeat the mouse and keyboard and wifi
that file is
/boot/dtb-5.4.35-sunxi/sun8i-h3-orangepi-plus2e.dtb
we will overwrite it with a slightly smaller version from my Google Drive
drive.google.com/file/d/1yTYge38gLG6LDD2...8uG/view?usp=sharing
this old small version works, the new large file will hang with no kbd no mouse no wifi
fetch that file using the above url, download where you know you can find it
then copy it to the uSD card in /boot/dtb-5.0.14-sunxi
so cd the where you stored it
then
sudo cp ./sun8i-h3-orangepi-plus2e.dtb /boot/dtb-5/9/14-sunxi
13) now reboot into RT-PREMPT LINUXCNC ORANGECNC
sudo reboot
login
you will see many desktop icons for the many opi+2e configs
from mx-master of cnc32 orangecnc
These items 'work'
but
will initially complain they are untrusted ( say ok )
and
will say they need to be marked executable ( mark them )
I used 3A-arisc for my test.
Axis opened fine...
the path window was slow to fill in
but once the gcode path was displayed,
scaling and rotating and moving the path was smooth and fast.
I did F1 F2 , X home Y home Z home
and could jog at 12000mm/min w/o errors.
I loaded 3Dchips into an editor and remarked the tool call
meaning I put parens around that line turning it into a comment
then saved it as my3Dchips.ngc in my user directory.
I opened my3Dchips using Axis' file selector
and ran the entire path in 101 seconds!
There was no hardware connected but this is NOT a sim.
You will see 12000mm/min velocity on the 1st and last straight runs.
14) anybody know how to get the source code from a .dtb or dtbo ?
I really need that becasue simply overwriting the dtb ,
esp for a different kernel is a nono
hope this helped
TomP
other changes I did ...
add MC, Firefox-esr Synaptic
add desktop icons
add manualtoolchange stanzas at ends of .hal files
ambitions:
use Framebuffer for graphics
investigate the lost steps reported on forum
add arduino based router rpm control using arduino PID and hall feedback
other benefits:
sound works well
fullscreen video is good for me, 1920x1080@60hz not 4K but I cant really see the diff
bad news:
I did see one real time error
I suspect it will show again but it sure isnt common
Please Log in or Create an account to join the conversation.
- tjtr33
- Offline
- Elite Member
-
- Posts: 170
- Thank you received: 54
you can view the .dtb file contents with tool fdtdump
fdtdump filename.dtb > filenameTextDump.txt
and the dtc toolkit promises to create real source .dts
sudo apt-get install device-tree-compiler
then
dtc -I dtb -O dts -o a.dts a.dt
untested, amd will need diff to compare new (broken) and old (woring ) .dts files
Please Log in or Create an account to join the conversation.
- tjtr33
- Offline
- Elite Member
-
- Posts: 170
- Thank you received: 54
I could find the .dts files for
sun8i-h3-orangepi-plus2e.dtb
IF i knew the version
at elixir.bootlin.com/linux/latest/source/a...ngepi-zero-plus2.dts
there is .dts source ( highly nested #includes)
and the .dts are listed by _version_
Does anyone know how to determine the version of a .dtb?
Please Log in or Create an account to join the conversation.