SD card image with Debian 8.0, Red Pitaya web server and SDK

Just about everything about Red Pitaya
Post Reply
pavel
Posts: 801
Joined: Sat May 23, 2015 5:22 pm

Re: SD card image with Debian 8.0, Red Pitaya web server and SDK

Post by pavel » Tue Apr 16, 2024 5:18 pm

Since the ACP port does not work for your application and using CMA without ACP makes no sense, I think the solution for you is to not use CMA and go back to the previous solution by limiting the memory available for Linux via device tree.

This can be done by adding the following lines to the first section of dts/common.dts:

Code: Select all

  memory@0 {
    reg = <0x0 0x10000000>;
  };

fbalakirev
Posts: 106
Joined: Thu Sep 03, 2015 6:56 pm

Re: SD card image with Debian 8.0, Red Pitaya web server and SDK

Post by fbalakirev » Wed Sep 11, 2024 10:33 pm

Hi Pavel,

Could you please describe how port selection is made in axi_hub.v?

Namely, for example. when interface 0 in axi_hub is addressed, how does it selects between b00_bram and s00_axis/m00_axis?

pavel
Posts: 801
Joined: Sat May 23, 2015 5:22 pm

Re: SD card image with Debian 8.0, Red Pitaya web server and SDK

Post by pavel » Thu Sep 12, 2024 4:37 pm

It does not really select between b00_bram and s00_axis/m00_axis. Normally, b00_bram and s00_axis/m00_axis are not used simultaneously. The selection is therefore carried out by the developer during the process of interconnecting blocks and interfaces.

If a BRAM is connected to b00_bram and at the same time a FIFO is connected to m00_axis, then data will be written to both the BRAM and the FIFO.

For reading, s00_axis has priority over b00_bram. So b00_bram is read only when s00_axis_tvalid is low.

fbalakirev
Posts: 106
Joined: Thu Sep 03, 2015 6:56 pm

Re: SD card image with Debian 8.0, Red Pitaya web server and SDK

Post by fbalakirev » Tue Oct 01, 2024 7:23 pm

Hi Pavel,

I tried merging and compiling the latest SD card image, but I run into errors related to realtek driver:

Code: Select all

drivers/net/wireless/realtek/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:462:17: error: too few arguments to function ‘cfg80211_ch_switch_started_notify’
  462 |                 cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/net/wireless/realtek/rtl8188eu/include/osdep_service_linux.h:98,
                 from drivers/net/wireless/realtek/rtl8188eu/include/osdep_service.h:54,
                 from drivers/net/wireless/realtek/rtl8188eu/include/drv_types.h:27,
                 from drivers/net/wireless/realtek/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:17:
./include/net/cfg80211.h:8616:6: note: declared here
 8616 | void cfg80211_ch_switch_started_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/realtek/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:474:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’
  474 |         cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/net/wireless/realtek/rtl8188eu/include/osdep_service_linux.h:98,
                 from drivers/net/wireless/realtek/rtl8188eu/include/osdep_service.h:54,
                 from drivers/net/wireless/realtek/rtl8188eu/include/drv_types.h:27,
                 from drivers/net/wireless/realtek/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:17:

Do you happen to have any insight how to rectify these errors?

pavel
Posts: 801
Joined: Sat May 23, 2015 5:22 pm

Re: SD card image with Debian 8.0, Red Pitaya web server and SDK

Post by pavel » Tue Oct 01, 2024 7:51 pm

It looks like you are using a newer version of the Linux kernel and an older version of the rtl8188eu driver. Try to do a complete rebuild:

Code: Select all

make clean
make all

fbalakirev
Posts: 106
Joined: Thu Sep 03, 2015 6:56 pm

Re: SD card image with Debian 8.0, Red Pitaya web server and SDK

Post by fbalakirev » Wed Oct 02, 2024 8:41 pm

Thank you again Pavel.

By the way, after some poking around, I was able to resolve the issue with the image script that I have mentioned few months ago in this thread. I ended up adding a --partscan option to losetup command on line 15 of your image.sh script.
pavel wrote:
Tue Oct 01, 2024 7:51 pm
It looks like you are using a newer version of the Linux kernel and an older version of the rtl8188eu driver. Try to do a complete rebuild:

Code: Select all

make clean
make all

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 3 guests