-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to add new peripheral in Ariane-v0.7 #169
Comments
No, but you can copy or customise the functionality connected to the switches. |
Ok, I will have a try. |
When I am starting Debian, there are some error, and I can't connect to the Internet [FAILED] Failed to start Raise network interfaces. |
I found isc-dhcp-clien was not intsall correctly. Maybe that is reason for this error |
Is-dhcp-client is not needed because it’s functionality is built into systemd |
I recommend the buildroot option, Debian is a bit unstable just now |
Ok, before debian, I tried the buildroot. It's very simple and fast. However, it's not very convenient to install software. Besides compiling the source code, is there any easier way to install the software, such as Python. |
Python, Perl, Java etc are all interpreters which run slowly on the FPGA and are not (yet) optimised for RISCV. The intended buildroot usage is to add your software to the buildroot tree as needed. This release of buildroot does not support compilation on the target. You are free to install Python but it will run rather slowly and use more memory than a C/C++ program. |
Thank you for your help, there are so much knowledge I need learn, and I will spend more time on it. |
How should I use X-windows? I change the ~/.xinitrc and get the result: Error: Can't open display: |
Take a look at the X-windows page in the LowRISC documentation. You need a Bluetooth mouse and PMOD-BT adapter. The command startx run on the VGA console starts the server. |
Check out these instructions:
https://buildroot.org/downloads/manual/manual.html#adding-packages
If your code uses some obscure functionality, you can enable it (if supported) in the buildroot configuration file.
…Sent from my iPhone
On 27 Mar 2020, at 03:44, zlt323 ***@***.***> wrote:
How can I compile C++ program in Buildroot system, there is not gcc or g++.
I have try to cross-compile my program, but it will report an error if I call function such as opencv;
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I copy the file 'mainf/host' to my home file. Then successfully compile the c++ program using gcc(add command '-I ~/host/include') in '/host/bin'. |
I try to using gdb to debug my new gpio, but I find it is useless to change my main.c program and cpu can't read my new variable. |
You can’t use gdb to debug Linux applications at the moment on this platform, only the kernel itself or bare metal.
…Sent from my iPhone
On 27 Mar 2020, at 09:58, zlt323 ***@***.***> wrote:
I try to using gdb to debug my new gpio, but I find it is useless to change my main.c program and cpu can't read my new variable.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sorry, I mean I'm doing bare metal testing and I've modified ‘/lowrisc-chip-ariane-v0.7/fpga/src/etherboot/src/main.c’. How can I compile the main.c to debug my hardware? |
You just run make in the etherboot directory, or you can try ‘make firmware’ in the top level.
…Sent from my iPhone
On 27 Mar 2020, at 11:13, zlt323 ***@***.***> wrote:
Sorry, I mean I'm doing bare metal testing and I've modified ‘/lowrisc-chip-ariane-v0.7/fpga/src/etherboot/src/main.c’. How can I compile the main.c to debug my hardware?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thank you very much, it helps me a lot. |
Hello, I want to add some linux device drivers, but I find /usr/src is empty. How should I get the required linux-headers? |
In this release, device drivers for Linux are managed by buildroot as a patch to a stock Linux download. If you want to develop your own drivers, you could either copy the tree out of buildroot after automatic patching or download your own copy of the kernel and patch it manually. Either way /use/src is not used, but you could use it you want the same Linux kernel to run on your desktop. |
Thank you. I tried to compile the GPIO driver on the host using the toolchain and kernel provided by buildroot. But when I tried to mount the driver on the kernel, I got some errors.
This is very confusing. Do you have any idea to solve this problem? |
If you compile the kernel in monolithic mode (not using modules) then it is a lot easier to locate the program counter for any errors from the kernel disassembly view.
…Sent from my iPhone
On 1 Apr 2020, at 13:52, FloyedShen ***@***.***> wrote:
Thank you. I tried to compile the GPIO driver on the host using the toolchain and kernel provided by buildroot. But when I tried to mount the driver on the kernel, I got some errors.
***@***.***:/home/test# insmod gpio.ko
[ 430.244004] demo: loading out-of-tree module taints kernel.
../machine/mtrap.c:21: machine mode: unhandlable trap 4 @ 0x0000000080004c28
Power off
This is very confusing. Do you have any idea to solve this problem? Or I can only compile the driver into the kernel.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
You can identify trap 4 from the exception codes in the privileged instructions manual. |
Have you solved this problem successfully? |
I have not tested using modules at all. I always build the kernel monolithic. This saves issues with tainted messages.
…Sent from my iPhone
On 21 Apr 2020, at 02:21, zlt323 ***@***.***> wrote:
Thank you. I tried to compile the GPIO driver on the host using the toolchain and kernel provided by buildroot. But when I tried to mount the driver on the kernel, I got some errors.
***@***.***:/home/test# insmod gpio.ko
[ 430.244004] gpio: loading out-of-tree module taints kernel.
../machine/mtrap.c:21: machine mode: unhandlable trap 4 @ 0x0000000080004c28
Power off
This is very confusing. Do you have any idea to solve this problem?
Have you solved this problem successfully?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
.. also if you build monolithic, you can relate the error program counter more easily to the kernel disassembly.
…Sent from my iPhone
On 21 Apr 2020, at 02:21, zlt323 ***@***.***> wrote:
Thank you. I tried to compile the GPIO driver on the host using the toolchain and kernel provided by buildroot. But when I tried to mount the driver on the kernel, I got some errors.
***@***.***:/home/test# insmod gpio.ko
[ 430.244004] gpio: loading out-of-tree module taints kernel.
../machine/mtrap.c:21: machine mode: unhandlable trap 4 @ 0x0000000080004c28
Power off
This is very confusing. Do you have any idea to solve this problem?
Have you solved this problem successfully?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thank, I have solved this problem successfully just now. |
I have the same problem as you did. FAILED to raise network interfaces. And I tried this: to: reboot, it'll be ok to raise network interfaces. But still unable to connect to internet.... |
I am trying to using dma to move data from DDR to my new peripheral, and there are some problems. |
You can try to add a mux module before the demux, but this is outside the scope of what mailing list support can provide.
…Sent from my iPhone
On 26 Apr 2020, at 08:34, zlt323 ***@***.***> wrote:
I am trying to using dma to move data from DDR to my new peripheral, and there are some problems.
I think I need to configuring the DDR controller to have a second AXI slave port. Should I connect it to DMA's AXI port or AXI BUS?
If I connect it to AXI_BUS, the DMA works as a master, but I find there are only one master port in 'demux' and it was be connected to Rocket.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thank you, I will have a try. |
you must be doing the RISCV挑战杯 dude. I also have the problem "failed to raise network interface", how did you solve it? |
Thank you! Is there a demo showing how to add new peripheral? Such as Gpio.
The text was updated successfully, but these errors were encountered: