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

basicstation compile variant #33

Open
queifaro opened this issue Jul 20, 2022 · 5 comments
Open

basicstation compile variant #33

queifaro opened this issue Jul 20, 2022 · 5 comments

Comments

@queifaro
Copy link

Hello,
Semtech basicstation can be configured using some kind of platform and for each platform (linux,corecell,linuxpico...) some kind of variants (std,stdn, ...).
For example variant stdn enable the ral maste/slave (two lora hw board).

In the last commit, openWrt makefile seems provide multiple package of basicstation depending on platform (linux, corecell ecc) . Also seeams that this depend on the variable VARIANT that makefile provide.

Is VARIANT really and only mean platform ? howto compile chosing, for example, Semtech variant stdn ?

Thanks in advance
B/R
Fabio

@s-2
Copy link

s-2 commented Aug 20, 2023

Hi everyone,

in attemtping to upgrade my gateway to a more current version, I tried building basicstation-linuxpico, but could not select this in menuconfig anywhere, there is just a generic entry for basicstation without the variants.
Patching the image Makefile of the device I use to include that package makes it show up in the config file, but still the regular basicstation (trying to connect via spi) would be contained within the image. Calling make clean and not selecting basicstation in menuconfig results in no station binary in the image at all, despite being included via DEVICE_PACKAGES.

@xueliu Any advice on how to build the linuxpico variant after the changes introduced a while ago?
Back then, I recall there was a little sub-menu for selecting the variant, but this is no longer visible.
So, what would be the intended way to actually build variants other than the default -linux?

Thanks,
Sebastian

@s-2
Copy link

s-2 commented Aug 20, 2023

Okay I remembered now,
I forgot one thing I also had to do when initially setting this up back a couple years ago,
and that's removing the basicstation package from OpenWrt's feed first.

./scripts/feeds uninstall basicstation

and afterwards, as in the Readme:

./scripts/feeds install -a -p lora

will add the correct basicstation (and the variants for selection in menuconfig) from the lora feed, rather than the OpenWrt feed. However I couldn't see std, stdn variants, what are those meant for?

@queifaro
Copy link
Author

queifaro commented Aug 20, 2023 via email

@s-2
Copy link

s-2 commented Aug 20, 2023

Why do you want to uninstall OpenWrt basicstation ?

I could not select the basicstation-linuxpico variant in menuconfig otherwise, when basicstation from OpenWrt feed was still present (trying to connect via SPI, though I use the picocell design with the USB MCU).

I actually wanted to update to 2.0.6 to fix Class B Beacon hadling, but it seems the feed still points to 2.0.5.
Can I just change it from 9bcdf0e12e4568e96011a3910e6d460ec9384f8c to latest master to get the current version, or is more adaptation required here? (this should probably be discussed in a new issue though)

@queifaro
Copy link
Author

queifaro commented Aug 20, 2023 via email

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

2 participants