Skip to content
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

(Updated Install Guide) DragonOS Pi64 35.1 #200

Open
alphafox02 opened this issue Mar 17, 2024 · 17 comments
Open

(Updated Install Guide) DragonOS Pi64 35.1 #200

alphafox02 opened this issue Mar 17, 2024 · 17 comments

Comments

@alphafox02
Copy link

alphafox02 commented Mar 17, 2024

Specific to DragonOS Pi64 35.1 @ https://sourceforge.net/projects/dragonos-pi64/files/

  1. Clone the CaribouLite repository from GitHub:

    git clone https://github.com/cariboulabs/cariboulite.git
    cd cariboulite
  2. Navigate to the SMI stream driver file:

    nano driver/smi_stream_dev.c
  3. Inside the editor, use Ctrl+W to search for "Create sysfs". Look for the line below it:

    smi_stream_class = class_create(THIS_MODULE, DEVICE_NAME);

    Modify it to:

    smi_stream_class = class_create(DEVICE_NAME);

    Save the changes by pressing Ctrl+O, then Enter, and exit the editor by pressing Ctrl+X.

  4. Run the installation script:

    ./install.sh
  5. Modify the /boot/firmware/config.txt file:

    sudo nano /boot/firmware/config.txt

    Ensure the following lines are present:

    dtparam=audio=on
    #dtparam=i2c_arm=on
    #dtparam=spi=on
    dtparam=i2c_vc=on
    dtoverlay=spi1-3cs
    # Comment out the following line if the edges of the desktop appear outside
    # the edges of your display
    
  6. Edit the /etc/rc.local file:

    sudo nano /etc/rc.local

    Add the following line right below fi and above exit 0:

    sudo chmod g+rw /dev/gpiomem
  7. Reboot your system and enjoy using CaribouLite.

@alphafox02
Copy link
Author

alphafox02 commented Mar 17, 2024

If there is a desire to use the Caribou Lite with SDRAngel on the Pi, make sure to start sdrangel from the command line
sdrangel --soapy

@ki6uve
Copy link

ki6uve commented Mar 18, 2024

alphafox02:
This version of Cariboulite software doesn't seem to have dump1090 app at all. Other versions had a /cpp folder under the /examples directory. Did you install dump1090 manually from another github source? Thanks!!

@alphafox02
Copy link
Author

It’s still there but under soapy folder now

https://github.com/cariboulabs/cariboulite/tree/main/examples/adsb_soapy

@ki6uve
Copy link

ki6uve commented Mar 18, 2024

Seemed to compile fine, but still throwing errors:
IO_UTILS_SPI io_utils_spi_add_chip@io_utils_spi.c:434 spi_init function failed with code -1, (SPI_ERR_OPEN)

CARIBOULITE Radio cariboulite_radio_activate_channel@cariboulite_radio.c:1099 PLL didn't lock

CaribouLite: Signal [11] received from pid=[-1446313462]
Signal [11] caught, with the following information:
signal errno = 0
signal process pid = -1446313462
signal process uid = 65535
signal status = 0
signal errno / SIGSEGV / the process access a valid region of memory in an in valid way - violated memory access permissions
SIGSEGV: memory access violation

@alphafox02
Copy link
Author

alphafox02 commented Mar 18, 2024

I don’t get why it runs for me, but not for you. I don’t imagine sudo would help.
image

@alphafox02
Copy link
Author

But I do get a similar failure on Gqrx.

@ki6uve
Copy link

ki6uve commented Mar 18, 2024

So weird. Did you change any other permissions for the default ubuntu/dragon login? My ubuntu login is always asking for sudo password.

@ki6uve
Copy link

ki6uve commented Mar 18, 2024

I do have a fan hat in between the Pi and the Cariboulite. I wonder if that if F'ing it up. I'll try removing that.

@alphafox02
Copy link
Author

You mean the login that comes up at each boot? That’s just the ubutnu user password it’s asking for. You can disable that in gdm3 if you want an auto login. I would try and remove that fan for sure and see what happens then.

I’m also curious, are you looking for the dump1090 app to do much more then display results? It seems like all of what you’d expect out of the normal 1090 is missing.

@ki6uve
Copy link

ki6uve commented Mar 19, 2024

Definitely something didn't work during my install. Even SoapySDRUtil --find is failing:
image

@alphafox02
Copy link
Author

alphafox02 commented Mar 19, 2024

Can you maybe share a picture of your Caribou? Perhaps it’s something specific to the model you have vs mine. It seems soapy finds it (ignore sdrplay comments) but I don’t get all that output you get before and after it finds the device.

@ki6uve
Copy link

ki6uve commented Mar 19, 2024 via email

@alphafox02
Copy link
Author

Add a glance it looks just like mine I think. I don’t know what would be the difference maybe something during the manufacturing or loading of the hat?

@ImDroided
Copy link

This guide worked for me but I was warned about dtoverlay=spi1-3cs not being in the config.txt so I added it anyways. I wonder if that line may help @ki6uve. not sure the difference between dtparam and dtoverlay but it seems like we already added this flag above.

@ki6uve
Copy link

ki6uve commented Mar 21, 2024

Okay, finally got it working. Damn typo in the rc.local line. Now seem to just be sitting on that "starting stream loop". How long did it take before adsb data started being detected?

@alphafox02
Copy link
Author

It just sits and runs but I’ve never seen it get anything. However, I did get adsb results in SDRAngel with it.

I better go back and look at my guide above, sounds like I might have missed something in the config.txt.

@alphafox02
Copy link
Author

This guide worked for me but I was warned about dtoverlay=spi1-3cs not being in the config.txt so I added it anyways. I wonder if that line may help @ki6uve. not sure the difference between dtparam and dtoverlay but it seems like we already added this flag above.

Thanks for catching that! I went back and fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants