LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 03-12-2021, 08:20 PM   #31
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282

I started with their pico_setup.sh file from page 4 on the datasheet https://datasheets.raspberrypi.org/p...-with-pico.pdf

I figured if I follow it and setup everything like it does I should be good.

Code:
GIT_DEPS="git"
git-2.9.0-x86_64-1.txz

SDK_DEPS="cmake gcc-arm-none-eabi gcc g++"
cmake-3.5.2-x86_64-1.txz
https://slackbuilds.org/repository/1...pment/arm-gcc/ https://slackbuilds.org/repository/1.../arm-binutils/
gcc-5.3.0-x86_64-3.txz
gcc-g++-5.3.0-x86_64-3.txz

OPENOCD_DEPS="gdb-multiarch automake autoconf build-essential texinfo libtool libftdi-dev libusb-1.0-0-dev"
https://slackbuilds.org/repository/1...pment/arm-gdb/
automake-1.15-noarch-1.txz
autoconf-2.69-noarch-1.txz
build-essential
texinfo-6.1-x86_64-1.txz
libtool-2.4.6-x86_64-4.txz
libftdi-dev 
libusb-1.0.20-x86_64-1.txz
# Wget to download the deb

VSCODE_DEPS="wget"

UART_DEPS="minicom"
minicom-2.6.2-x86_64-1.txz
but yeah, good point on 14.2, I better try on a -current install. I have a Pi 400 that I haven't switched to Slackware yet so its running their OS so I can compare side by side if needed.

Last edited by enine; 03-12-2021 at 08:22 PM.
 
Old 05-03-2021, 02:47 AM   #32
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635

Original Poster
Blog Entries: 20

Rep: Reputation: 81
I condensed all the info one needs to get started on a generic linux system in a gist.
I plan to make it into an article or a blog here on LQ because its not slackware specific and may be helpful to a wider audience (I hope).
On my x86_64 box it works fine ... I don't have a aarch64 installation to check if the developer.arm gcc-arm-none-eabi-10-2020-q4-major-aarch64-linux.tar.bz2 cross toolchain will work too ... anyone care to check and/or have any suggestions before I make it into blog/article ?

Last edited by louigi600; 05-03-2021 at 10:52 AM.
 
1 members found this post helpful.
Old 05-03-2021, 10:34 AM   #33
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
I don't have AArch64 yet, just 32bit armn so far.

Your gist seems to redirect to something else:

Code:
uBlock Origin has prevented the following page from loading:

http://mybetterdl.com/aS/feedclick?

Because of the following filter:

||mybetterdl.com

Found in: Peter Lowe’s Ad and tracking server list 
• EasyList
 
Old 05-03-2021, 10:53 AM   #34
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635

Original Poster
Blog Entries: 20

Rep: Reputation: 81
Maybe I pasted something wrong ... I fixed it now ... and for me it opens up my gist ... how it works for you too.
I'm now working on driving a HD44780 compatible LCD display trough PIO ... I might include that on the gist once I get it to work right.

Last edited by louigi600; 05-03-2021 at 11:03 AM.
 
Old 05-03-2021, 11:27 AM   #35
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
ok, thats better.

I'm confused though on the flavors or arm. If I'm running on an arm system and the pico is arm then why do I need a cross compiler, makes sense if I'm on x86/x86_64 but I thought the different versions of arm are mostly just compiler flags.
 
Old 05-03-2021, 12:44 PM   #36
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635

Original Poster
Blog Entries: 20

Rep: Reputation: 81
Because of the mismatching arm versions: current native arm compiler targets armv7 while if I remember right 14.2 targets armv5.
It is possible that 14.2 could produce code that might actually be executable by the cortex M0+ core of the rp2040 ... but the thing is that over there you aint got any libs, just the bare metal so you still need a bare metal toolchain.
 
Old 05-03-2021, 02:07 PM   #37
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
The v5 or v7 are specific to age of hardware.
I found it now, its the cortex A,R or M

Cortex A Application processors
Cortex R Real time processors
Cortex M Microcontrollers

so you could have a armv7-A running Linux or an armv7-M that can't, just annoying how they names it all the same
 
Old 05-05-2021, 01:58 PM   #38
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
I had to laugh at the configure error in the arm cross compiler tools

Code:
Compiler error reporting is too harsh for ./configure (perhaps remove -Werror).
** ./configure aborting.
poor wittle configure, we were just too harsh for him
 
Old 05-05-2021, 02:54 PM   #39
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635

Original Poster
Blog Entries: 20

Rep: Reputation: 81
I saw worse ... I've forgotten what tool was producing the message but the parent process was reporting something about raping one of the child processes.
I suspect the author could be deeply disturbed person.
 
Old 05-08-2021, 03:23 AM   #40
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635

Original Poster
Blog Entries: 20

Rep: Reputation: 81
I have not got around to writing the pio based 1602A LCD code but I have added in the gist an example that is somewhat more interesting then the pio flashing led from the pico-examples ... don't get too excited it is still a flashing led (but with dynamic on and off time) and I tried to explain every little detail to make it possible to learn from it. A good reading of chapter 3 of the rp2040 datasheet is probably still required if you are new to Programable IO.

Last edited by louigi600; 05-08-2021 at 03:28 AM.
 
  


Reply

Tags
microcontroller, slackwarearm, toolchain



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] slackwarearm-current RPi official display backlight. moldavia Slackware - ARM 5 02-01-2021 04:42 PM
[SOLVED] Running slackwareARM 14.2 on RPi 4 louigi600 Slackware - ARM 2 05-29-2020 05:47 PM
LXer: GNOME 3.33.2 Released, Krita 4.2 Debuts, RPi Camera Modules on RPi Zeros Power the Penguin Watch Project, Intrinsyc Switches Its Home LXer Syndicated Linux News 0 05-30-2019 06:23 AM
LXer: Mini-PC taps RPi Compute Module and supports RPi 2 LXer Syndicated Linux News 0 02-22-2015 03:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 09:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration