lowRISC / lowrisc-chip

The root repo for lowRISC project and FPGA demos.
http://www.lowrisc.org/
Other
593 stars 149 forks source link

some questions about ariane-v0.7 #176

Open michaelwvw opened 3 years ago

michaelwvw commented 3 years ago

I'm using nexys4-ddr-rocket.

  1. There is no apt-get available in the embeded linux, then how can i install a software. Just for study, so the performance is not an issue.
  2. I cannot find the GPIO device in this embeded linux, then how to control GPIO/LED in linux? I can use the GPIO device in refresh-v0.6.
  3. There is no embeded version gcc which is available in refresh-v0.6. Then i tried to compile program in pc linux and then execute it in embeded linux, but it's reporting "./hello: /lib64/libc.so.6: version `GLIBC_2.26' not found (required by ./hello)". How to resolve this issue? Or is there an alternative way to compile a program for embeded linux?
jrrk commented 3 years ago

The distribution was slimmed down a lot to make room for X-windows. You can still install Debian as an option if you are an ‘advanced user’. See below :

Sent from my iPhone

On 13 Jul 2020, at 13:07, michaelwvw notifications@github.com wrote:

 I'm using nexys4-ddr-rocket.

There is no apt-get available in the embeded linux, then how can i install a software. Just for study, so the performance is not an issue. Apt is Debian specific. By default buildroot is installed because Debian was a bit unstable at the time. The recommended route is to add your software as local buildroot packages. I cannot find the GPIO device in this embeded linux, then how to control GPIO/LED in linux? I can use the GPIO device in refresh-v0.6. This function has not been ported from the earlier release. It should be straightforward for someone else to do however. There is no embeded version gcc which is available in refresh-v0.6. Then i tried to compile program in pc linux and then execute it in embeded linux, but it's reporting "./hello: /lib64/libc.so.6: version `GLIBC_2.26' not found (required by ./hello)". How to resolve this issue? Or is there an alternative way to compile a program for embeded linux? The appropriate cross compiler is installed within buildroot. It has not been made available native for some reason. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

michaelwvw commented 3 years ago

Thanks jrrk! But looks like i have to read buildroot docs before i understand your comments.

michaelwvw commented 3 years ago

Hi, Jrrk, I'm trying to add GPIO function into BR2, then which one should be enabled here. Suppose it's GPIO_XILINX while not the GPIO used in v0.6, am'i right? I also see "GPIO Bitbanged LowRISC" is enabled, what's it for?

michaelwvw commented 3 years ago

Sorry, missed one thing, since there are address overlay, should disable RTC if enable GPIO?

jrrk commented 3 years ago

These functions just enable a pre-processor symbol, they have no effect unless the appropriate kernel driver is loaded. There is a generic Linux GPIO, that would be the proper way to go I think.

Sent from my iPhone

On 17 Jul 2020, at 15:30, michaelwvw notifications@github.com wrote:

 Hi, Jrrk, I'm trying to add GPIO function into BR2, then which one should be enabled here. Suppose it's GPIO_XILINX while not the GPIO used in v0.6, am'i right? I also see "GPIO Bitbanged LowRISC" is enabled, what's it for?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

jrrk commented 3 years ago

Both functions may be handled by a single driver.

Sent from my iPhone

On 17 Jul 2020, at 15:32, michaelwvw notifications@github.com wrote:

 Sorry, missed one thing, since there are address overlay, should disable RTC if enable GPIO?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.