#Femtofox - Tiny, low power Linux node!

1 messages · Page 4 of 1

forest current
#

thats the nature of an unreleased feature...

chrome tide
#

I have 2.6.4 on my FemtoFox right now

#

webUI is an unreleased feature ?

forest current
#

"new" webui is, per your own words...

#

like this literally just sounds like were talking about MUI at this point

chrome tide
#

MUI is a totally different thing completely from WebUI..

forest current
#

yes but everybody talking about it like you are is not different

#

youre complaining that an unreleased feature, a "new" feature, is confusing and vague and hard to implement

#

when its literally unreleased

chrome tide
#

I'm asking for something that is standard and extremely common across the *nix industry..

#

How does one update a webUI..

forest current
#

literally the only answer we can give until its released is, try pulling /web from the repo and shove it on the fox and see if it works

forest current
chrome tide
#

There IS a current release that is out, but not package. which COULD be updated to, if anyone knew how..

forest current
#

i already told you, the only ways to update the webui in general is either to install meshtasticd with it bundled, OR shove /web into /web

chrome tide
forest current
#

i dont know why youre missing that part, ive literally said it 4 times

chrome tide
#

I never said I missed it..

forest current
#

then why are you complaining

#

go try it

chrome tide
#

first off, I'm not complaining.

#

I'm asking for confirmation..

warm geyser
#

this is also why the web team is changing client.meshtastic.org to have a separate place for the unreleased stuff

chrome tide
#

Don't start saying stuff that's not happening..

#

I'm simply asking for a way to get what is on client, and it's like I'm asking for someone first born...

spring juniper
chrome tide
#

Oh and look, 2.6 is released....

spring juniper
#

I think they just pushed a 2.6 release .... 1 min ago

warm geyser
#

get the files and put them in the right place

that's the process

normally the way you do this is by installing it along with meshtasticd, which oddly enough hasn't seen a release in the last minute

so either wait, or figure out where to get the files and where to put them

chrome tide
nova frost
# forest current thats the nature of an unreleased feature...

It's slightly confusingly setup with the bundled webui, because (as I understand it) client.meshtastic.org (used to) run on a rolling-release basis, and then MeshtasticD would bundle whatever was current at the time, and then if you wanted the "latest release" which was effectively just the bleeding edge version du jour, you would do as you say and overwrite /web with the latest stuff.

#

There is this move to the test-web client thingie, which is perhaps the start of more disciplined and granular releases.

#

But the different parts of the project move at different paces

#

¯_(ツ)_/¯

#

Embrace the Meshanarchy

chrome tide
#

I know where it needs to go, that's not the issue.. And I would have thought that the web devs would have known what files are being served to users.. But I guess they don't..

nova frost
#

Yeah, its a #meshtasticd as the end-consumers that should know

chrome tide
nova frost
#

If its any consolation, you can try to count the number of people who ask for help installing the local webui on ESP32, but you'll have to take off your socks and shoes to keep counting

chrome tide
#

I think that's a different bundle tho.. I haven't looked at the workflow on how the web bundle gets pulled in, but I think they are working to get it so that a web release triggers a new meshtastic package..

#

I can run it in a docker locally if I wanted to play with it that way. But running client-test site and trying to connect to the femtofox, via IP, it doesn't seem to work to well, it just sits there saying loading.

nova frost
#

yeah, I get that

nova frost
#

It seems that they tell you how to use the hosted version, and run self-hosted in docker

nova frost
#

but not the meshtasticd side

chrome tide
#

Yup

nova frost
#

And that seems to be the right place to put it for documentary purposes.

chrome tide
#

Which has been my struggle so far.. LOL

#

I'll see if I can submit a PR.. 🙂

nova frost
#

if you get that one through (and the bar is fairly high for the docs updates) then you can claim a contributor badge

#

😉

opaque abyss
#

does the usb-c port and uart4 share the same pins?

mild hare
opaque abyss
#

👍

#

trying to get proto serial over uart4 and chasing down potential "why you not working"s

#

for MUI

#

does uart4 show up as a serial device in /dev?

mild hare
#

I wanna say yes

#

because it's loaded in the device tree when we build it

opaque abyss
#

I see these (I think FIQ0 is the usb serial?)

mild hare
#

yup. that answers it. fiq0 is your debug console on usbc and the other ttySx are your uarts.

#

i never mess with serial on these but I wish had more time to do so

opaque abyss
#

cool, now gotta figure out 2.6 I thinks for MUI

#

does the software updater pull from github?

#

or do I gotta do it by hand

mild hare
#

in femto-config?

opaque abyss
#

ye

#

I presume theres a way to update meshtastic but I never actually checked

mild hare
#

you mean update meshtasticd?

#

to 2.6?

opaque abyss
#

yes

#

I'm not 100% certain thats required for MUI but it was in the same blog so might as well

mild hare
#

that's gonna be apt. but you have to switch what branch you on

#

Pretty sure @nova frost knows how. I'm on a side mission so haven't got to try yet.

#

@opaque abyss so normally we dosudo add-apt-repository -y ppa:meshtastic/beta and guessing switching the beta to something (alpha? devel?) and then sudo apt update && sudo apt upgrade is how it's done.

opaque abyss
#

lets try alpha see what it do

mild hare
#

i would sudo systemctl stop meshtasticd first

opaque abyss
#

there does seem to be an alpha branch, so thats nice to know

#

changelog suggests 2.6+ is required for MUI, so glad I'm trying this before chasing my tail like I did with the rak

#

there are some messages in #mui that were made in anger

mild hare
#

touchy, touchy 😆

chrome tide
#

webui update isn't going well.. LOL

mild hare
chrome tide
#

#web-client message

opaque abyss
#

while I have no idea if it has enough power, the femto can power on via serial power

#

I have the lilygo t-hmi with a battery plugged in with a grove-grove cable to uart4 and the femto appears to be booting up

#

nevermind the battery died

nova frost
chrome tide
#

@nova frost I got it working! Stupid easy to get it working also.. I'm gonna see if I can submit a PR.. ;P

nova frost
# chrome tide

Is this something that can be automated by the SFC menu?

chrome tide
#

It's possible, yes.

#

I'm just running commands via SSH to do it all

#

I'm putting everything into a PR right now..

timid sparrow
#

upgrade to 2.6 was easy and rather fast using the /alpha branch tag

chrome tide
#

@timid sparrow Yup!

#

The upgrade that I've been talking about for the last 2 days, is upgrading the WebUI.

timid sparrow
#

Yah I havent even used the webui much, always found it frustrating; mostly been enjoying the hosted version by the new homeassistant addon. Now with embedded linux devices I was thinking to revisit.

chrome tide
timid sparrow
#

dis one

#

freaking pretty switfy
none of that BS j'son nonsense to deal with

chrome tide
#

That could be interesting..

timid sparrow
#

it also hosts a version (not sure what but not 2.6 yet I don't think) locally so that both the home assistant integration AND the webui can be proxied at the same time from a single node

chrome tide
#

@timid sparrow I'm sure I could walk you through how to update the docker to have the latest WebUI..

timid sparrow
#

pretty awesome and highly recommend for anyone who already has HA running.
It has starved off my linux native desires for long enough though.

First two foxes doing great, got the +33dBm modules too but havent tested. Need more than a single amp 5V power supply before I go play with those. I think I just have to keep things below 8dBm in the config.

I have my 30dBm modules set to default meshtastic 30 though.

timid sparrow
opaque abyss
#

pins are swapped? Which one is actually uart4 tx?

nova frost
fiery finch
#

tx is corner pin

#

Fixed the wiki, thank you

proven pond
#

is there a CAD file available for the board assembly? preferably the pro edition? I'm thinking of throwing together a case design

idle vigil
proven pond
nova frost
#

I'll dig out the step file later

hollow dragon
#

Aloha Femtofox fans! I've got mine... working on a emclosure to put it in. Going to run POE i believ for this node- good MESH times....

nova frost
proven pond
opaque abyss
#

I tried this for a while, seems systemctl cant output to a non-file like a /dev/ entry is, or at least I couldnt figure it out

brisk ocean
#

Does this play Doom?

nova frost
brisk ocean
#

ASCII Doom

nova frost
# brisk ocean ASCII Doom

Hey, have you got one yet? If you can make it work, maybe we can add it to the software manager 🦾

brisk ocean
nova frost
#

Please tell me it's called Cyberpunk 2019?

brisk ocean
nova frost
nova frost
# brisk ocean

Just running this on the luckfox locally would be awesome, tbh.

brisk ocean
#

That should be easy. Python 3

nova frost
#

Nice.

brisk ocean
#

Or maybe this one

#

The Dungeons of Castle Argh

mild hare
brisk ocean
mild hare
brisk ocean
#

Excellent. Good to have options because mine is embarrassing 🤣

mild hare
#

@brisk ocean

brisk ocean
#

I’m so down to play that

mild hare
# brisk ocean I’m so down to play that

Hehe, I gotta get time to work on it more. I have a BBS I could release with a weekend of work but I can't seem to get the time. The fun stuff got bumped down on the priority list.

#

I wanted to do a Leisure Suit Larry clone but worried I'd get flack for it.

cunning scarab
#

New FF card setup. Powered up and in the config menu via serial but Ethernet is not working. Is there a package I need to load?

mild hare
cunning scarab
#

I think I found the problem. I bought this LuckFox separately and it does not have the ethernet pins on the back side connected.

#

@mild hare I think I talked to you on Etsy earlier.

mild hare
mild hare
#

if so, new pico has eth headers.

chrome tide
#

What is the easiest way to restore configs w/ FemToFox ?

mild hare
chrome tide
#

well everything I guess. since I'll be switching from Foxbuntu 0.9x to 1.0.0

mild hare
#

what else you got besides meshtastic?

chrome tide
#

I mean as long as the MAC stays the same on the ETH, the IP won't change..

#

The only other thing I have installed, is contact, I think..

#

Yea, contact looks to be installed.

mild hare
#

I havent tried it but maybe use mobile client to export meshtastic config? I know @lavish sorrel was working on something too

chrome tide
#

I have the config exported via cli

#

I'm gonna work on a cronjob that will do it nightly on my HomeAssistant box..

lavish sorrel
forest current
#

But do sudo cp -aR {dir} both ways so it preserves the uid and gid

chrome tide
#

be nice if there was a way to back everything up from femto-config

forest current
#

@fiery finch might have considered this?

#

Could be easily done with femto usb config, except the usb would have to be formatted as ext4 to avoid having to do a bunch of permissions shit

#

fat32 would break it all

chrome tide
#

That wouldn't be an issue for me. But does the import script support ext4 ?

forest current
#

No sorry what I meant was, adding that functionality to the femto usb script nagu made would be trivial, but I doubt its currently implemented

#

A new femto-config option for backup/restore that calls femto-usb with arg for backup or restore. Femto-usb would handle cp -aR for the relevant dirs to or from the usb, checking for ext4 (or maybe just tarball it to preserve perms actually), and then a touchfile

mild hare
#

@surreal iron stole your track.

mild hare
chrome tide
chrome tide
#

I just take a deep breathe and exhale slowly..

#

I've wanted to 3D print one for a few years now.. Just haven't dont it..

#

Just something else for the wife to complain about being in the way all the time..

#

If it has a cord, it can't be out, and if it's something that I'm doing it DEF can't be out in the house..

mild hare
chrome tide
#

I have a 2x2 corner or an 8x4 dining room table, while my 9 y/o daughter has the rest, but my stuff is all she complains about.. Cuz my daughter is doing "ART".....

#

Mind you, we RARELY sit at the table for anything..

#

Non-tech wives just don't get it...

mild hare
#

I have a big pantry next to the living room. So i took out a little mini fridge we never use and put in a roll cabinet. "spend more time with us and not in the shop" "your nerd stuff is everywhere".

#

someone spiked my hobby with baking soda

chrome tide
#

I think my wife prefers me in the garage than in the house.. LOL

#

But the summer, it's 100-110 in the garage, and I can't deal w/ that..

#

And she won't let me get AC for it either..

#

Wants to put a swamp cooler in, when I have 3D Printers, servers, switches, and other electronics..

pearl glade
#

i should probably look to set mine up... at some point 🤣

pearl glade
#

I need stuff tom, just cant remember what, getting old 🙂

fiery finch
#

I've installed a bunch of em. Very, very easy

chrome tide
# fiery finch self install mini split?

Need electrician to do electrical for it, as panel does not have any spare breakers, etc for that. And my wife doesn't want me doing any installs on the house..

#

It's a bit of an issue for me..

fiery finch
#

Understood

#

You could use a mobile hvac, but they're horribly inefficient

chrome tide
#

Oh, I have a 12000 BTU that I use in there, but that barely gets it down to 100 during the summer..

#

I also have a portable swamp cooler that I use, along w/ a dehumidifier.. Sometimes I have to use all 3 of them at the same time. When it's humid, the swamp cooler doesn't work. I need to light a fire under my ass and organize the garage so I can start getting it straightened out..

fiery finch
#

Insulation could help

#

Lighting a fire like you propose will only make things hotter, WillE

nova frost
fiery finch
#

@chrome tide you can change the speed of comms to i2c via the luckfox-config command

#

maybe that might help?

#

default is 100k

fiery finch
#

Maybe lower speed would increase reliability/multicoms?

nova frost
chrome tide
fiery finch
#

god dammit

fiery finch
#

ignore me wille

chrome tide
# fiery finch ignore me wille

LOL I thought you knew about an issue I was having that I didn't know about.. And here I thought you're mesh-fu was off the scales, appears it's just you off your rocker.. ;P j/k

#

Once I figure out everything I need to backup to restore to a new SD card, I'll be able to switch over to foxbuntu 1.0.0

obsidian thorn
fiery finch
#

No - I've only ever used the default

nova frost
#

But custom speeds down to 10 are permitted

#

With 3x the pullup on the data lines than is needed, you have to go slower

#

Or, as I said above, remove a few pull-ups along the way

#

😄

obsidian thorn
#

Can you send a pic of the pinout what pullups are you reffing to?

chrome tide
#

@fiery finch Have you thought of a backup/restore option in the femto-config ? Josh and I were talking about a way to backup important configs and restore them.

fiery finch
#

Yeah, it's a good idea

#

But I haven't given it much thought

#

I've been very busy recently

chrome tide
#

Is there anything I need to do to make the femtofox board or meshtasticd running on the board, know that I have a BME680 installed ?

#

I have telemetry enabled already

#

I currently see this..

Apr  6 13:05:02 femtofox-1 meshtasticd[631]: //\ E S H T /\ S T / C
Apr  6 13:05:02 femtofox-1 meshtasticd[631]: #015
Apr  6 13:05:02 femtofox-1 meshtasticd[631]: INFO  | 13:01:24 0 No I2C device configured, Skip
Apr  6 13:05:02 femtofox-1 meshtasticd[631]: INFO  | 13:01:24 0 No I2C devices found
Apr  6 13:05:02 femtofox-1 meshtasticd[631]: INFO  | 13:01:24 0 S:B:37,2.6.4
#

I think I found it in config.yaml

#

now trying to figure out how to restart meshtasticd from ssh.. LOL

chrome tide
#

after rebooting, I now see BME680 being detected..

mild hare
chrome tide
mild hare
chrome tide
mild hare
#

i was told way back that it didnt

#

but trailblaze dude!

forest current
#

I think it wont show unless you enable the telemetry module

#

In the firmware settings

chrome tide
#

So if env sensors do not work in meshtasticd, what is the point of the 2 I2C points on the carrier board ?

chrome tide
#

?

mild hare
# chrome tide ?

trying to figure out how to say it without being an edgelord. gimme a min.

chrome tide
#

RTFM ? ;p

mild hare
#

hah no.

chrome tide
#

I know I could prolly make a page that shows the sensor, but that won't report it to the client, etc..

mild hare
#

so, BME280, INAx, OLED and the base ones we normally see on a node are not the endgame.

#

for me, personally, 1000 nodes db size and S&F are not ehat this is to me. it's not just a high powered node. it's a development platform. I didnt come for the cookies and 30db. i came for the python meshtastic API and ubuntu.

chrome tide
#

I include env sensors on all nodes possible, for monitoring. I figured since the board had 2 I2C ports, I could drop a BME680 on one, and it would work, just like it does w/ T190, G2, etc.. But it appears there is SDK issues..

chrome tide
mild hare
#

this is why I do the things.

#

I have regular soshine rak nodes

#

as for the standard I2C we wait on meshtastic deities to make it work

#

and ports will be waiting

chrome tide
#

I'm more of a server/network hardware person, that's just getting into meshtastic. I have done coding in the past, but due to frustration levels, I stay as far away as possible now days.. I know enough about electronics, and other harmful things, to keep myself from blowing up..

#

@mild hare side bar, I'll be up your way fri/sat this week.. Driving up to Oregon w/ the 5th Wheel to visit family.

mild hare
opaque abyss
#

I always thought of it as a marriage between a pi zero and a lora hat

#

Just kinda smooshed together

mild hare
chrome tide
opaque abyss
#

But yes I always had static deployment in mind as soon as I saw this board, never even considered pocket node

chrome tide
opaque abyss
#

Despite having some cool boards my pocket node daily driver is still a 19007 in a TonyG case

#

I really should get that wismesh b1 going

mild hare
opaque abyss
#

...or if I get the MUI on the femto working I make the weirdest pocket node ever

chrome tide
#

For me, this was always a node that was going to be at a house. Most likely mine, since I am the IT person for the family.. LOL But I can put the Washtastic boards at the 2 in-laws houses, and be good w/ that.. They are both less than a mile from my house.. It's just a matter of getting antenna masts up, and external antennas..

#

MUI on femtofox, that would be so weird!!1

#

Need to get back inside b4 wife takes over TV.. LOL

mild hare
#

Like both different applications.

#

speaking of, I need a couple washtastics

mild hare
#

Mui has some sweet features I wont get with this though

chrome tide
#

That's a kick ass 3D Printed flip..

mild hare
chrome tide
#

I have MUI on 1 of my T-Decks, but rarely use it, since I'm busy w/ work..

mild hare
chrome tide
chrome tide
mild hare
chrome tide
mild hare
chrome tide
#

Oh man.. LOL

#

I have one of those cyber deck thingies coming when ever they build and ship it..

mild hare
#

if I have to carry something with a screen and keyboard I want it to do linux.

chrome tide
#

I look forward to the lora board someone is making for that..

#

Wow, that was a bit of dyslexia right there.... :\

mild hare
chrome tide
#

The luckyfox is nice, but 1 core kills me sometimes..

mild hare
chrome tide
#

And anything w/ apt.. LOL

mild hare
#

i have a trick for that somwhere. will look in my scripts when I get to my laptop

chrome tide
#

Someone mentioned some tricks to speed it up once, but the next time, it would be even slower..

mild hare
#

my installs are fast, my updates are slooow

chrome tide
#

I've thought about setting a cron to do a apt update every 4 hours, just to keep it updated..

#

But that would also cause issues for meshtasticd..

mild hare
#

my trick is to just clear stuff so install is fast, but then next update is extra slow

chrome tide
#

I just run the apt update, then upgrade -y after and watch away..

mild hare
chrome tide
#

Migrating users for 3 different VPN Solutions, to the 1 that we have deployed.

mild hare
#

vpn concentrators with keys and radius backend, ah the good old days.

proven pond
#

@pallid basin I tossed some tabs on the back panel of your case. Nothing pretty, but it's handy!

pallid basin
proven pond
pallid basin
#

No but it’s just holes of the proper size to force fit the mushroom end of the suction cup of choice

fervent pier
#

RTC mounts inward correct? Just confirming 🙂

polar ingot
#

Guess whos CE edition boards from JLC and luckfox order arrived today!

polar ingot
#

I noticed the 3D printed case has an OLED display. Is there any additional config for that?

polar ingot
#

enabling i2c seems to have done it.

spring juniper
fervent pier
#

Time for some flashing! 🙂

fervent pier
#

Not sure who builds the meshtastic CLI (black screen variant in the setup) but I found an issue in the channel importer. I gave it a URL, but it can't accept the entire thing

nova frost
#

CLI is usually #python

warm geyser
#

wasn't sure if that was in reference to the femto specific setup/dialog code

fervent pier
fervent pier
#

This may be answered above, please feel free to link to the message if so. I was looking at this for a solar integration - do we have any method to integrate either a TP4056 or CN3791 into the setup with the existing board?

quasi onyx
fervent pier
#

I'd also like to be able to see battery voltage in the OS 🙂

#

I know I can do the TP4056 and just toss the load at the Femtofox board - that's already working 🙂 but monitoring voltage would be nice

quasi onyx
#

Afaik meshtasticd doesn't support it yet?

fervent pier
#

I'm talking about even at the Ubuntu level - I'm installing UPower right now to see if that exposes anything

quasi onyx
#

I2c then i guess 😅

#

Then just have ina219 for example

fervent pier
#

oh let me see if I have one of those

#

Our prior conversations say I may 🙂

#

Well well well

nova frost
fervent pier
#

INA219 board I had from the last time I asked Iris about something and went and purchased 6 of them

#

and I tossed them in a drawer

nova frost
nova frost
#

There are 2 analogue pins on the board

#

They are 1.8v max

#

So you will need a 3:1 voltage divider to be sure not to fry them

#

I'll fetch the info later, but I think you can read their analogue value from the command line.

fervent pier
#

If you have some ideas to simplify the wiring spaghetti @nova frost , it would be most grateful

nova frost
#

This seems to work

#

I put a 10k resistor to ground, and it pulls it down to about 0.9v, and reads it as 508

#

reading it while floating gives 1023, and the multimeter reads about 1.73v

#

If I had to guess, I'd say there's a 10k pullup on there

#

also, disconnecting the resistor seems to crash it...

#

hmmm

lavish sorrel
polar ingot
#

btw I'm very much enjoying playing with the femtofox and foxbuntu. This was the push to finally get me onto meshtasic!

proven pond
#

I managed to do a foxbuntu image build on my M1 MacBook using an amd64 image. It was quite slow, but it did eventually finish. Only oddity is that the image is less than half the size of the release image so I'm wondering if I missed a step. Process was something like this:
docker run -it --name foxbuild86 --platform linux/amd64 ubuntu:22.04
then:

apt install rsync git wget sudo
wget https://raw.githubusercontent.com/femtofox/femtofox/refs/heads/main/environment-setup/foxbuntu-builder.sh -O foxbuntu-builder.sh
bash foxbuntu-builder.sh```
result:
```root@ad7c46d90ef4:~# ls -lh /home/luckfox-pico/foxbuntu.img
-rw-r--r-- 1 root root 1.9G Apr  9 18:21 /home/luckfox-pico/foxbuntu.img
soft cape
proven pond
#

I'll try to capture a log from a kernel rebuild.

soft cape
#

A question to the meshtasticd(-tft) build. How was this actually built? Using cross-compile with the SDK or in an qemu-armhf VM or somehow native on some armhf hardware?

#

Also the meshtasticd that is in the build is 2.5.21. I'd like to have a recent 2.6.5 native-tft build 😜

mild hare
# proven pond

busy, so cant help much, but 100% it's not building the custom rootfs

proven pond
mild hare
#

did you read the guide?

pallid basin
proven pond
mild hare
#

@pallid basin @fiery finch may have, but I got totally side tracked.

pallid basin
proven pond
pallid basin
#

The default image for Ubuntu on OrbStack for example does not install dnsmasq and so one section can’t resolve any dns addresses

#

Because the chroot envt expects the host to resolve dns queries for it

mild hare
proven pond
proven pond
#

@pallid basin did you say you posted mac instructions somewhere?

pallid basin
#

I did not because I’d didn’t have access. I sent them to @mild hare

#

I’d apt install dnsmasq on your host VM and try again

proven pond
#

will try that.. were you using the ubuntu:22.04 docker hub image or something else?

pallid basin
#

Came with orbstack.

proven pond
#

ah I haven't used orbstack.. interesting

mild hare
#

we use what's in the package repo

twilit mountain
#

@soft cape I'm only packaging native-tft for the FlatPak (for submission to FlatHub) currently

#

I'd like to do debs as well but haven't gotten around to it

soft cape
twilit mountain
#

We use github actions to build a source deb (with all the platformio components bundled inside so the build can be run offline)

#

Then Canonical builds that source deb on their fleet of runners for different arches. It's a combo of real hardware and qemu, from what I can tell

soft cape
twilit mountain
#

Beta 2.6.4 should be publishig right now... but looks like it uploaded to the Alpha channel instead FacePalm

twilit mountain
#

Still in "pending" status for now

brisk ocean
#

Thanks @mild hare 🍻 That was some fast shipping to 🇨🇦

polar ingot
#

two femto's on the same network not so happy?

#

did I miss something to get around this?

frozen cloud
polar ingot
polar ingot
#

Tried installing contact via the SFC, got and error when trying to run it "python: can't open file '/opt/contact/main.py': [Errno 2] No such file or directory"

fast adder
polar ingot
#

then i get "-bash: /usr/local/bin/contact: No such file or directory"

polar ingot
#

reboot seemed to solve it

spring juniper
fast adder
polar ingot
#

Cant seem to get BMP280 to send temp. anyway to check if meshtastic even sees the sensor?

polar ingot
#

can I view logs to see if it sees the i2c device?

#

in sfc under system info -> devices is says "i2c devices = 0x76" which I believe is the correct address, so does that mean it sees it?

nova frost
#

The fact that you can see it is positive.

#

The alternative to making Meshtastic support the sensor would be to write a script to read the sensor and send the telemetry packet manually using the python interface.

formal raft
#

Hi ! Noob here with femtofox I'm hoping someone can help me with setting mine up. I have flashed the image to microSD and I am in the running OS fine, but I noticed my node was not showing up on my other RAK nodes I came across a "Set LoRa radio model" setting - so I set mine to the 900M30S option and my node grindes to a halt. Is there something else that I'm missing?

nova frost
#

From the command line, type sfc and go through the setup wizard.

#

Or just connect it to your WiFi or network, and use an android phone to configure it.

polar ingot
#

@nova frost any idea how to get around the two self signed certs from the same issuer? Probably not a very common issue, as most people won’t try and use the web interface with multiple femtofoxs

frozen cloud
polar ingot
#

Its the browser on my computer that doesnt like the two different devices with the same cert. They connect to the network fine

nova frost
#

When I'm peak production, I have 3-4 on the network, but I've never used the web interface to manage them like that.

fiery finch
brisk ocean
#

If anyone has issues with Etcher and the Foxbuntu IMG file, ImageUSB work fine as an alternative.

merry shore
#

I'm having a different issue with imaging... I have at least 4 sd-to-microsd adapters, and at least 2 USB microsd adapters, and I can't find a single one of them 🤬

brisk ocean
mild hare
brisk ocean
#

Issue I had was it would just stop responding.

mild hare
brisk ocean
#

But this was Windows environment. Did try on 2 separate machines with fresh downloads of both IMG and app. I bet if I did on my Ubuntu box it would work fine.

brisk ocean
#

My feeling is something to do with some etcher versions not liking 4gb img files on Win

mild hare
#

Nomdetom, Nagu and many others burn with etcher on windows.

#

🤷‍♂️

brisk ocean
#

I’ll try it again on a different device later for some science

nova frost
#

Yeah, I wouldn't say it's trouble-free

#

But firing it up again usually sorts most problems

#

And I only use my SanDisk usb-micro SD doohickey

#

The nameless ones are relegated to usb-config duty

fiery finch
#

it pissed me way off

#

failed 70% of the time

#

I burn my images with rpi image burner

brisk ocean
#

Good to know. I used imageUSB for taking custom bootable images of multiboot IT tool USBs and worked well, seems to work good in reverse too over Etcher

nova frost
#

Fair enough. The reviews of etcher these days are pretty poor, so maybe it's time for me to move on...

mild hare
#

works perfect on Debian and Ubuntu

nova frost
#

I mean, at this point I should just use a Femtofox for it...

mild hare
#

Lol, dd ftw

proven pond
#

was about to say... ```sudo dd if=foxbuntu_v1.0.0.img bs=1M of=/dev/rdiskSDCARD status=progress

#

does dd work on the new windows linux terminal?

forest current
proven pond
#

dd with a layer of ads on top?

brisk ocean
proven pond
#

has anyone made a nice simple curses ui or something?

brisk ocean
#

It’s a niche enthusiast device so I should use the appropriate enthusiast OS, but if people have options then it’s good thing

mild hare
proven pond
#

I feel like the UI is more than justified with how badly you can mess things up with dd, but it seems like there aren't a lot of good options

brisk ocean
#

One for each card suit

#

Side note my daughter just turned driving age and she’s learning with 3 pedals otherwise she doesn’t drive.

mild hare
brisk ocean
#

Thank me for my service.

forest current
polar ingot
nova frost
#

For flashing a fresh image on a Femtofox SD card? I think I did have that thought when we were starting out...

#

Yeah, I vaguely recall saying it would be nice if it had a "bootstrap new image" functions, but in hindsight it sounds silly.

nova frost
brisk ocean
mild hare
#

pshhhh too too too too tooo

nova frost
#

You two need to go to bed.

mild hare
#

But yeah, you right

mild hare
#

Weather is getting warm. Will dream of a car node with the most confusing gps trail at Thunder Hill in Willows.

spring juniper
#

this is going to sound dumb.... but I'm getting significantly worse coverage from a femtofox vs. rak4361
I originially thought I blew the ff by not having antenna or somthing plugged in... but have having the 1.1 unit show up I'm still getting horrible RX
I swapped all the same components from rak to ff and I only hear nodes within 1.5km or so - same antenna, same pole, etc with the rak is ~35

#

running 2 foxes right now - one on roof with 5.8dbi antenna etc and one in the window with the little flappy rak one... same performance. basically I can see what's in my house/car and thats all. any ideas what to check? i've flipped on debug logs and everything looks normal... I just dont see anyone elses packets

nova frost
nova frost
#

And how are you powering them - 5vin or something else?

spring juniper
#

Made by you guys (I’m not that crazy 😬)
5v
Similar rssi/SNR for the local nodes

#

Another comparison is a tdeck left on windowsill is catching nodes 7km away that the foxes don’t 😕

nova frost
spring juniper
#

Meshtastic logs look fine - packets coming in and out, decrypting private channel even when I try that

#

BadRX count was zero on both last I looked

nova frost
#

Ok, it sounds like the software side of things is working ok, which probablymeans the fox itself is ok.
What I'm after is a comparison of the signal strength to- and from-node for them, in comparison to another node at a similar distance.

#

This will hopefully say whether the E22 is putting out and receiving correctly .

spring juniper
#

1 moment....

nova frost
#

It doesn't have to be a long distance, btw. One end of the house to the other is usually enough for me.

#

I also forgot to ask if there's some other transmission equipment nearby, like a phone mast or ham gear or something.

#

One of the things about these amplified nodes is that sometimes the amplified noise is worse than the background noise without amplification.

#

At which point, a filter is recommended, which is kind of beyond the scope here and into #antennas territory.

#

Oh, one last thing (columbo style):
You're not running any bot/bbs service on it, or something that would fight the client for access? That can give a bad time, too.

#

I have to go to bed soon, but if you can gather some readings and let us know, that'll help track down the gremlins.

spring juniper
#

fox1 (pole mount)-> fox2 (inside) - 20ft -rssi -33; snrto:27 snrback:24
fox1 -> tdeck - 40 ft rssi -54 snr:24 both
fox1 -> t100e inside a car - 75ft snrto:36 snrback:26

#

i have a tried with and without $6 saw filter (currently on fox1)

#

also turned off all the extra services (meshing_around, etc) so cpu should be OK

#

no ham gear or phone mast

nova frost
#

Snr 24?

#

Are you using the web client by any chance?

spring juniper
#

ah yeah (meshsense) that's the to:from SNR
SNR is ~6db for all 3 of those src:dst

#

channelUtil is zero on the foxes.....hmmm

nova frost
#

Any chance you can connect direct using an android phone or something?

spring juniper
#

yep - what would you like to see

nova frost
#

I've not used meshsense, so I'm not familiar with it.

spring juniper
#

the snrto:from is just the traceroute metrics, I believe- they calculate the SNR db from it

nova frost
#

Basically as above - trace routes to/from your other nodes, to confirm whether they're putting out and receiving at the right level.

#

The android app gives readings like these:

spring juniper
#

fox1 to everything

nova frost
#

These aren't foxes, btw.

spring juniper
nova frost
#

Ok, and what does the tracker or t-deck hear from it compared to the others?

spring juniper
nova frost
#

Looks like they're hearing everything locally very clearly.

spring juniper
#

fox1 -> t1000e (farthest away)

nova frost
#

Thats meshsense or the web interface?

#

Those figures look screwy. You shouldn't be getting figures like that for either received or snr

warm geyser
#

those 34/24 are probably the web client (meaning the actual values are those divided by 4)

nova frost
#

Yeah, that's what I'm thinking

spring juniper
#

the screenshots are the Meshtastic web client

#

Sending traceroute request to !11ce70f5 on channelIndex:0 (this could take a while) Route traced towards destination: !ceafb50b --> !11ce70f5 (8.5dB) Route traced back to us: !11ce70f5 --> !ceafb50b (6.0dB)
off fox1 mestastic-cli

nova frost
#

Ok, so it's sending out at higher than is coming back, which is expected.

#

What's the tx power set to?

spring juniper
#

software says max 22 but UI is set to 30

nova frost
#

Ok, so that's not turned down...

#

Hmmm

#

I can't think of anything else off the top of my head, except to do some range tests with your own nodes and see if the home nodes pick up a remote node at similar signal strength.

spring juniper
#

OK ill go for a walk with the tdeck and see if they drop at same rate

nova frost
#

I've GTG, but I'll keep thinking.

spring juniper
#

no worries! thanks much!

mild hare
#

Did you set Lora Region on it to US?

spring juniper
#

The latest board is fox1, old sus board is fox2

#

Both seeing same results so probably not me frying radios

mild hare
spring juniper
#

I also turned off boosted RX gain and didn’t see an SNR drop

mild hare
#

I'll try to think on what could be different

#

and you have right radio config in femto-config?

spring juniper
#

Pretty sure! I’ll triple check

mild hare
#

TCXO

spring juniper
mild hare
#

guessing you went through the whole setup wizard in femto-config in the beginning? did you set region to US?

spring juniper
#

yep region is US

mild hare
#

dang will keep thinking. got me puzzled on this one because I watched that board do burnouts

#

Anything you think off lemme know and I'll keep brainstorming

spring juniper
#

so I reconstituted the old rak4361 this replaced and stuck it by the window as well (3db antenna instead of 5.8 it used to have)

#

direct connects to a node like 10k away

mild hare
#

man, we gotta figure this out

spring juniper
#

I've got a nanoVNA that agreed the antennas were fine SWR

#

and I ordered a cheap china spectrum analyzer that should be here this week

#

not sure I'll be able to see anything with the noise floor, but worth a shot

mild hare
#

nice, but my bet is software. still got the little rak pcb ipex on it?

spring juniper
#

fox2 has the pcb ipex, fox1 is the battle tested 5.8dbi one

#

yeah.. this has been a real head scratcher for me - beyond potential firmware issues with the m30s I got nothin'

mild hare
#

when I tested it was with fresh 1.0.0 Foxbuntu just to be sure it was same as you were gonna download. man, wish I woulda sent the microsd lol. We'll figure this out. If we strike out I could exchange the board.

spring juniper
#

what meshtastic version were you running?

#

at some point I pulled in 2.6+

mild hare
#

whatever came with Foxbuntu v1.0.0

spring juniper
#

hmmm I think thats like 2.5 - I'll roll back and see

mild hare
#

i wanna say 2.5.6 or something? not at computer or near a fox.

#

Tomorrow after work I'll experiment and see if I can find something

spring juniper
#

insult to injury, once I brough the rak back up all the foxes can see rest of mesh

#

chattin' away

mild hare
#

And not about customer service, I just want to spread linux to the mesh as far as possible.

#

We'll get ya running

spring juniper
#

🫡

mild hare
# spring juniper 🫡

btw, your handle, my nickname was "ugly duckling" for a few years. Porsche club invited me to autocross... in a tuned civic.

fast adder
# spring juniper

probably nothing, but you could check this is the only config being loaded.

mild hare
#

@spring juniper

mild hare
spring juniper
#

ls /etc/meshtasticd/config.d femto_config.yaml femtofox_SX1262_TCXO.yaml

#

It's many years gone at this point but.....

formal raft
dire shuttle
#

@nova frost, FemtoFox doesn't have any extra filtering, right? Have you put it behind one of the ACASOM filters by chance to see if it made much difference?

proven pond
#

I just rebuilt the foxbuntu image using an ubuntu:22.04 docker image on intel with a large backing disk and got the same result of a smaller than expected foxbuntu image (1.9G instead of 4G).. I still have 22G free on the disk.. any suggestions how to debug this?

spring juniper
proven pond
# proven pond I just rebuilt the foxbuntu image using an ubuntu:22.04 docker image on intel wi...

ah it seems to be having a few issues and not entering the chroot ```[build.sh:info] Running build_firmware succeeded.
cp: target '/home/ubuntu/luckfox-pico/sysdrv/out/rootfs_uclibc_rv1106/lib/modules/5.10.160/' is not a directory
Entering chroot...
chroot: failed to run command '/bin/bash': Exec format error
Building rootfs...
[build.sh:info] switch to DTS: /home/ubuntu/luckfox-pico/sysdrv/source/kernel/arch/arm/boot/dts/rv1103g-luckfox-pico-mini.dts

fervent pier
#

FemtoFox installed in the truck

#

Needs a cover over the top of the board, but used the files out of the wiki for 3d printing

nova frost
#

(with another M3 through the hole to make fine adjustments to the pressure - don't go mad.

fervent pier
#

oh I hacked the snot out of that horseshoe - I drilled it out a bit and it passes through now. M3x14 screws with nuts on the back side

nova frost
nova frost
#

I should just publish the STEP files and leave well alone...

fervent pier
#

Like here's the grander photo - it's got constant power from a Delta 3 Plus over PoE connected via a UniFi Mobile Router

#

Currently installing Tailscale also - that would be a nice option out of the box

nova frost
#

Ah, I see why you're doing it that way now.

fervent pier
#

The RAK MQTT Ethernet gateway I pulled out had roughly 5000km on it - this one will go further

#

If you made a lid and sides to help protect it, that would be great 🙂 It's quite naked in there

nova frost
#

I only made those for bench testing!

#

when you have half a dozen on a tiny desk, accidents happen...

proven pond
fervent pier
#

Tailscale may a bit heavy for a single core - didn't like that at all

mild hare
spring juniper
forest current
#

With the MeshAdv hat on a Pi

nova frost
#

I'm getting strong "amping up the noise" vibes from all of this

#

like the amp is actually detrimental to the performance

#

I really really want to put a femto with a 22db radio into the mix and see what it can see

spring juniper
#

I forgot to bookmark but I think I found docs that said receive sensitivity:
m30s = -150db
m22s = -13Xdb

#

(Best case max etc caveats)

forest current
#

But the former may be fried from the swapped components so idk

nova frost
#

yeah, in the early days of the Hydra units (the spiritual forerunner to the Femto) there were cases where the amping was causing issues. IIRC, that was mostly on ham towers, where there was outside factors.

#

IDK, SDR noise survey might show up something

spring juniper
#

I was originally scheduled for an Airframes cavity filter end of April batch but he’s been quiet

nova frost
#

busy building (hopefully)

spring juniper
lapis edge
# spring juniper https://www.reddit.com/r/meshtastic/comments/1ha9qo8/comment/mkp0c0i/?utm_source...

@nova frost what ended up happening with the old issue where the 30db e22 could go deaf after a strong errant signal messed up the AGC? Seems like both of the WashTastics I've deployed had phases where they stopped picking up more distant nodes for an extended period but cutting power for a bit seemed to clear it up. Femtofox on the roof hasn't appeared to have the same issue (but it's further from my home lab and my other miscellaneous nodes)

nova frost
#

pass = I was trying to remember.

lapis edge
spring juniper
#

If the gain control were stuck on low I could see that matching my symptom though

lapis edge
# spring juniper Interesting. I don’t think power cycling has made a difference but will try

This is far from a controlled test (and many other variables at play like simultaneously testing out the first 2.6 fw) but I noticed that even software resets didn't help my issue. So I opened up the case and unplugged the battery overnight. Seemed like the sensitivity was much more in line with expectations when I plugged it back in the next morning. Just a suspicion but I also had a hunch that powering the node up outside away from my other nodes could have been a factor too.

lusty prairie
fervent pier
fervent pier
#

I've got my FemtoFox fully updated and noticed that if I send a message with the WebInterface, the message says it fails, but it did actually send and can get a reply, but only when I completely reload the interface do I see the received message also

#

I don't use the web interface much but that is an observation

#

Also is avahi-daemon needed expressly for MeshtasticD to work? If not, there may be a minor amount of CPU saving there. It saved 10% CPU in my instance

nova frost
#

We've generally noticed that serial and ethernet consume their own chunk of power

fervent pier
#

avahi-daemon isn't going to grossly affect power consumption but it saves enough CPU that if we aren't dependent upon it for MeshtasticD and/or Bonjour, then disabling it gives back some

warm geyser
#

avahi is useful for connecting more easily with the Android app and I think nothing else

#

so a toggle makes sense I think

proven pond
nova frost
#

9/10 that either solves the problem, or forces me to rethink what I'm doing.

#

But that's on a wsl Ubuntu instance, so cheap and easy to go round again.

proven pond
#

but I'm probably missing something

proven pond
#

has anyone been running it on linux or is it all WSL2?

#

yeah not sure if there's some magic that makes this work on WSL2, but I see stuff like this on linux when it tries to chroot from intel into arm ```chroot: failed to run command '/tmp/chroot_script.sh': Exec format error

nova frost
proven pond
#

ah weird.. wonder why I'm seeing this then

nova frost
#

Have you looked at the pdf here?

proven pond
#

not seeing anything in there that explains what happened.. it does mention it uses qemu for emulation, but something must be going wrong related to that

nova frost
#

@mild hare you got any ideas? I'm out of tricks.

proven pond
#

does it need to be a privileged container or something?

#

I'll try in a VM to see if that helps

spring juniper
sinful yarrow
#

Linux node sounds perfect for home deployment

#

I wants one

nova frost
#

(later this week. I need to test them all first...)

sinful yarrow
#

PoE?

nova frost
#

Soon™

forest current
#

it should be in the setup script though, so maybe it didnt pull the packages

#

i dont use wsl though (i hate microsoft with the fury of a thousand suns) so it could be some weird repo thing or a wsl arch limitation?

proven pond
#

aha! ```-rw-r--r-- 1 root root 4.2G Apr 15 19:00 foxbuntu.img

#

so I guess it was some issue with docker container settings and virtualization or something like that

proven pond
#

is it possible to update the boot and replace the kernel without a full reflash?

forest current
#

Yes if youre comfortable with modifying a file

#

In the luckfox sdk folder under output/image, theres a dotfile called .env.txt

Edit that after building the new kernel/boot to remove the rootfs part at the end of the line (youll see it, like rootfs(6G)) and then run ./blkenvflash, it will make a new foxbuntu.img thats only the stuff before rootfs, then flash that to the sdcard with dd and it will overwrite everything up until rootfs with the new stuff.

#

Did it many many times

proven pond
#

oh nice! the rest of the image doesn't move around?

forest current
#

Nope, the partition sizes are static

#

We just cant see them in gparted because of the env structure

#

Thats being worked on but isnt ready yet

proven pond
#

nice. I will give that a try...

#

ah will it eventually be possible to mount from within the os?

#

I guess it isn't a traditional filesystem...

proven pond
#

well since I'm only 90% madman, I'm going to flash a second SD card with the default image, then boot that and dd over the boot partition and rsync the kernel modules and see what happens

forest current
nova frost
proven pond
#
6999+0 records in
6999+0 records out
3583488 bytes (3.6 MB, 3.4 MiB) copied, 2.98 s, 1.2 MB/s
``` aaand panic on reboot
#

I think that may be something to do with my kernel build though.. I think it kind of worked?

proven pond
#

yeah flashed over the everything-but-rootfs and it panics in the same way still... wonder what I did to ruin the kernel

proven pond
#

compiled the default kernel config and dd'd that over the partition in the same way and it worked

forest current
#

you need to dd to the disk

#

sudo dd if=boot.img of=/dev/mmcblk1

#

you overwrote the rootfs partition explicitly, and also how did your system even see the partition on an env disk 🤔

proven pond
#

I did just the raw boot image not the partial image minus rootfs and somehow it did work.. not sure how

forest current
#

oh wait derp you did it from the femto OS

proven pond
#

yeah heh

forest current
#

oh i meant do it from your desktop

#

oh well

proven pond
#

yeah I did what you suggested after I bork'd the install and it restored it perfectly!

#

I was curious whether I could just flash the kernel itself and copy some ko files

forest current
#

without digging too deep i think no because uboot is also part of the equation and is built using the same kernelconfig

proven pond
#

maybe flash that too then? I don't really know anything about uboot...

forest current
#

yeah i had to learn all about all this stuff a few months ago when i dug deep into femtofox development

#

i learned a lot about the kernel, and some about uboot, although its still pretty complex and im not an expert

#

but doing the steps i said (which you say worked), thats what you are actually doing

#

everything before the rootfs is:

env + uboot + kernel + (bullshit partitions we dont care about and arent used)

proven pond
#

right good point...

forest current
#

env is basically the partition table and directives for uboot

#

env is the environment for uboot and also has the spl code that the processor looks for to know its bootable
uboot is the bootloader (think grub but more arcane)
kernel is kernel

proven pond
#

gotcha... is there an initrd somewhere too?

forest current
#

not really because ram is very limited

proven pond
#

ah right

forest current
#

embedded works differently, and i think much of what an initramdisk does is handled by

#

uhh

#

fit images

#

think thats it

#

fun fact, the luckfox kernel is literally android

proven pond
#

huh crazy

#

the same kernel they use?

forest current
#

makes sense because android was forked to be linux for very low resource devices

#

yup, the current foxbuntu is android linux kernel 5.11

proven pond
#

newer than my phone... apparently i'm running 5.10.209 😅

#

er wait this is 5.10.160?

forest current
#

soon ™️ once the new sdk is finished, it will have 6.1 (and id have to go back and look through my code mess but i think its mainline)

forest current
#

but its def 5.1x

proven pond
forest current
#

no, we are

#

me and @mild hare

proven pond
#

oh cool

forest current
#

between the two of us weve almost got the new sdk working which will improve the femtofox (and allow the partition table to be manipulated via gparted, etc) and also work for the luckfox lyra

#

which i have big plans for

#

me and @twilit mountain , been working towards a dual-radio luckfox for a while

proven pond
#

oh very nice!

#

128MB of ram on that lyra.. that would help

forest current
#

and the processor is significantly faster
and can have 3x spi devices instead of just 1
and can customize the pinout for busses
and has 2x usb

#

the only thing thats not better than the mini is the size, but its the same size only twice as long so really not a big deal

#

about the same power consumption too

proven pond
forest current
#

chinese magic

#

of course once you start connecting things to it the power consumption goes up but

#

you could attach a usb drive or usb power, and a wifi dongle, and a screen

#

or screen and keyboard + wifi dongle

#

opens up a lot of possibilities

#

Femtofox Communicator

mild hare
#

pew pew shots fired

forest current
#

im imagining something more like a tmobile sidekick, but with full mobile gnome 😛

#

or something slimmer but an actual linux os

#

or even just MUI

proven pond
#

all of that sounds awesome to me

forest current
#

imagine what the pinephone should have been including the lora backplate

opaque abyss
#

I want to stuff the MUI into a star trek tricorder

#

Late TNG flippy kind

forest current
#

what about a Powerglove™️

#

or that thing from Fallout

#

the possibilities are endless!

opaque abyss
#

If any of those motorola warehouse wrist computers didnt run Windows CE we could do a lot with that

#

There are android ones but they havent hit ebay for cheap yet

forest current
opaque abyss
#

Slap a MUI in this bad boy

forest current
#

BigChungusFox

opaque abyss
#

Firmware multitap? Please just make python do it

#

Who cares about cpu overhead when you have a nuclear powered arm computer

proven pond
#

well I finally got zram installed on my femto.. that was 1 of the things I was trying to compile with the kernel.. wondering if that will help a little with apt stuff

forest current
#

oh nice, i dont remember if we ever got that working

#

may want to look into the config though, as the memory device is split into 16 blocks

proven pond
#

I think it's working, not sure if it's helping

forest current
#

default config it probably isnt

proven pond
#

ah hmm

forest current
#

zram can get pretty granular

proven pond
#
NAME       ALGORITHM DISKSIZE  DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 zstd         13.8M 13.7M    4M  4.6M       1 [SWAP]
forest current
#

but ideally youd have it use i think 50% of ram for zram but then split among 16 memory devices

#

yeah looks like its just using the first block

#

64/16 = 4M

#

and i guess its using 100% of that device lol

#

i dont think its difficult to configure but i havent delved deep into it

proven pond
#

that might be a coincidence.. I have it using about 14M of ram and it was using less earlier ```NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 zstd 13.8M 8K 511B 20K 1 [SWAP]

#

will read up on that though

forest current
#

not sure about the second one but your first paste looks like 4M COMPR (actual size on ram device, compressed hence zram) and 13.8M uncompressed/usable ram

proven pond
#

yeah I think that's right

forest current
#

i think from when i was looking into it, if you have multiple ram devices and you dont configure it it will only use the first one, which checks out if its using all 4M of /dev/ram1

#

if you run an fdisk -l youll see what i mean

#

or ls /dev

proven pond
#

oh.. a bunch of /dev/ram devices

#

(16)

forest current
#

yup because of the ram chip being used

#

its actually measured officially in sectors (idr what the official term is)

#

but like 4*16M

#

the processor handles parallelizing it

proven pond
#

you think zram isn't utilizing them right by default?

forest current
#

correct, i think with default config its only using /dev/ram1 and is ignoring the rest

proven pond
#

that seems possible with how slow it's running and how little zram is using

forest current
#

so if you tweak the config to use 50% ram and all 16 devices, you should get total of 32M compressed ram with 32M free, and the 32M compressed is usable (depending on factors) as like 96M or something

#

but the 50% is spitballing, maybe its optimal to use more or less percentage of physical ram for zram, i forget from my reading

#

obv you cant use all of it as zram starts after pid1 so some things probably need physical ram due to order of operations

proven pond
#

yeah I'm not sure how little I can leave behind and have it still be usable

#

not sure I'm seeing the zram config you're referring to

forest current
#

it will largely depend on its boot order, i think. you can move it earlier in the boot process by modifying its systemd service file

#

one sec let me find it

proven pond
#

other than total size

#

I see compression streams, but I think that's about CPU threads

forest current
#

ah its zramtools

#

and zram-config

#

ok here is what ai says

proven pond
#

oh that's very interesting thank you

#

will give it a try

forest current
#

reading through it it all seems to check out

#

just make sure you do the math correctly in the script it suggests

proven pond
#

heh yeah that could go south quickly

forest current
#

so instead of (total ram) / 16, you would want to start with (total ram / 2) / 16

#

that way youre allowing 32M for the early boot stuff

#

and then late boot can use zram per the swappiness rule

#

also due to the low power of the processor, i recommend using that l4z algo instead of zstd (you dont want it to crawl), which will make it a little less efficient but still fast enough

proven pond
#

I hope I compiled lz4 in...

#

assuming that was separate

forest current
#

not sure tbh

#

i dont know what the core cryptos are these days

#

although id imagine its part of the zram module (if not somebody done goofed)

proven pond
#

shoot looks like it might not be in.. well at least now I know how to compile the kernel

brisk ocean
proven pond
#

I think lz4 isn't supported on zram maybe due to kernel version or something? I got it using about half of my RAM with lzo and tweaked some sysctls, but it's still pretty slow.. maybe need more cores to use this

#
Hit:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease
Hit:5 https://ppa.launchpadcontent.net/meshtastic/beta/ubuntu jammy InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
50 packages can be upgraded. Run 'apt list --upgradable' to see them.

real    5m8.638s
user    0m0.053s
sys    0m0.474s
proven pond
#

(that's no faster than without zram FYI)

mild hare
#

@proven pond I do all my work on the sdk in a VirtualBox VM with an Ubuntu 22.04 guest. I looked today and VirtualBox runs on MacOS. Also gave @nova frost the info from @pallid basin to add to our wiki. I recommend VirtualBox just because I know it works.

#

@spring juniper I can't find anything that would make it dead like a desensitized radio. Remind me Friday evening and I'll send you another femto with a prepaid return label so I can check it out. Make sure it's the v1.1 please.

forest current
proven pond
forest current
#

plus if you get the mini B (with the nand flash chip) weve already got it working to use that as an ubifs storage device, which can also be used for swap

#

preserving the sdcard even further

#

(and getting more memory)

#

so between physical ram, zram, and nand swap, we could theoretically bump the mini up to having maybe 256M memory

#

way better than 64M

proven pond
#

I didn't try running a full intel VM, but running the intel binaries with emulation on arm was super slow

proven pond
#

So I looked into some apt settings and discovered there's this Cache-Limit setting that it uses to store package information. I tried setting it to a limited amount of system RAM and it wasn't enough for apt to run, but it failed more quickly. Then it ocurred to me to comment out a bunch of the default repos we probably aren't using (universe, multiverse, backports and their associated updates and security repos). Now check this out: ```femto@femtofox:~$ time sudo apt update
Hit:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease
Hit:4 https://ppa.launchpadcontent.net/meshtastic/beta/ubuntu jammy InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
48 packages can be upgraded. Run 'apt list --upgradable' to see them.

real 0m11.280s
user 0m0.024s
sys 0m0.060s

#

this may also help a bit since the default is for it to grab 20 megs at startup ```femto@femtofox:~$ cat /etc/apt/apt.conf.d/00-limits
APT::Cache-Start "2621440";
#APT::Cache-Limit "20971520";

forest current
#

Hey thats really helpful!

#

@mild hare good data here

proven pond
#

apt is suddenly usable now

#

here's my current sources.list for reference.. not sure if we actually need any of the ones I commented out, but it seems functional

spring juniper
#

I ordered another cavity filter (this one out of Texas) so we can compare those too before sending back

forest current
spring juniper
#

Maybe whatever’s doing the SPI controlling? From some of those old posts it didn’t sound like anyone was confident the Semtech code was even working right

mild hare
spring juniper
#

I’m pretty new to this part of radio HW testing but I’d like to use something (maybe this zs406 thing can) to send a consistent test signal to each radio and try to get the rx rssi off the board .. if the fox is significantly different maybe that can lead us down a path

nova frost
#

Set it up using sfc and software manager

#

Type ping from each node, it'll send the rssi and snr each time

spring juniper
#

that’s a good relative test for sure but I also need to justify my impulse purchase of the analyzer too 😁

nova frost
lavish sorrel
#

Looks like this little guys finally ready to move up to the attic and take over the base-node role for my house.

lavish sorrel
nova frost
polar ingot
#

More foxies coming! I love the after dark boards from oshpark.

lavish sorrel
merry shore
#

So top thing on the hub board -- gutted wifi stick I assume? What's the bottom thing? Thumb drive? Bluetooth?

proven pond
#

@forest current I cranked the kernel update hackiness to 11 ```(ansible) ubuntu@foxbuildvm:~$ ansible-playbook -i inv.yaml push-kernel.yaml

PLAY [update femtofox kernel] *************************************************************************************

TASK [copy kernel modules to /oem] ********************************************************************************
changed: [femtofox]

TASK [copy kernel modules to /lib/modules] ************************************************************************
changed: [femtofox]

TASK [run depmod] *************************************************************************************************
changed: [femtofox]

TASK [copy kernel image] ******************************************************************************************
changed: [femtofox]

TASK [flash kernel] ***********************************************************************************************
changed: [femtofox]

PLAY RECAP ********************************************************************************************************
femtofox : ok=5 changed=5 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0

forest current
#

amazing

proven pond
#

it works 😅

#

I have some suggested modules for the kernel I can PR.. for nftables firewalling and for zram if you're interested

forest current
#

@mild hare im interested in the zram (pending further testing with what we talked about earlier), and nftables would be great. referring to OSC as he controls the git repo

proven pond
#

fyi with the zram stuff, I totally locked up my system when I tried with 16 devices (I'm assuming due to there being 16 compression threads?), but I was able to get it to use about half ram with one device and can share the settings for that

#

could test with other numbers of devices to see if it helps performance, but I suspect it might not matter with one core

forest current
#

hmm

proven pond
#

also happy to find a way to PR those apt tweaks if you'd like

forest current
#

the apt tweaks would ideally go in the chroot script

proven pond
#

overwriting sources.list with a fixed version feels a bit off to me, but maybe that's easiest?

forest current
#

either that or sed commands lol

#

but a fixed sources.list is probably easiest

proven pond
#

might be easier to read at least

forest current
#

id say make the PR for apt, and for nftables (if tested and working), and hold off on zram for now, needs more testing

#

like 8 devices instead of 16, or 4 devices at 100% fill, etc

mild hare
proven pond
#

I might try to push a new option to just rebuild the kernel and modules for that workflow if you like

#

it's so nice and fast

#

alternatively, I guess it's really just two commands?

mild hare
proven pond
#

if you want a short one, I just pushed the apt fix PR

lavish sorrel
lavish sorrel
mild hare
#

waiting for a lyra in the mail. burned my last one. was tired and hooked the uart to the power and the power to the uart.

forest current
#

RKUARTRKUARTRKUARTzzzznsjdjsksk

warm geyser
#

time for a classic game of "child, cat, or passed out on the keyboard"

lavish sorrel
warm geyser
#

that may be true, haha

lavish sorrel
#

Seeing the UART repeated strengthens my belief lol

mild hare
formal raft
# nova frost From the command line, type `sfc` and go through the setup wizard.

Got it working! No more hanging system.
Just wanted give you my experience

Balena etcher and Rufus wouldn't allow me to flash the SD card. I had to use raspberry pi imager

2nd reflash nothing worked, no network comms

Reflashed 4 more times and eventually got it running

Ran sfc and set lora radio model, and lora region and all working as expected!

nova frost
formal raft
brisk ocean
#

Silly Ballerina Easter

nova frost
idle vigil
#

Be careful if you are in the Northern Territory I guess

quasi onyx
#

Mmmm

dire shuttle
fervent pier
dire shuttle
#

I mean, yeah

#

But every time I connect to meshtasticd, the bot gets disconnected and I have to restart the service

#

Or so it seems

#

Which doesn't make a lot of sense to me but shrug

fervent pier
#

oh it does make sense - you can only have a single API connection to the radio; the bot or the web interface

dire shuttle
#

No, that's what doesn't make sense to me

#

Holding a session open is not a big ask, you have to store very little

honest bear
#

New batch available for order tomorrow? Or when is the next US batch 😅

nova frost
#

Probably the bot is getting disconnected and panicking.

#

But yeah, one thing at a time.

#

Bot + outside app = bad time.

dire shuttle
#

The thing that I think is weird is that meshtastic D doesn't want to hold a second session open

#

I can kind of understand that if you're talking about the node itself

#

I can kind of understand it from a standpoint of the principle of least surprise. It could be hard to get a bunch of people to agree on what the natural thing to happen is when A sends something to the node and how do we let the user on B know about that without inventing a whole special flow for that

nova frost
dire shuttle
#

Dude, sold.

#

I'll see you in 20

spring juniper
#

RX debugging episode 70:
took the t1000 out for a walk and did traceroutes from fox -> t1000 and rak-> t1000
.......drumroll......
Fox had better reception

#

rak still sees my 4-5 long range neighbors the Fox can't

#

if USPS doesn't hose me I should have a fancy cavity filter tomorrow

forest current
#

yeah thats expected since the fox has a 30db radio

#

also just more salt in my wound because the two 30db radios i own (one with a fox) are trash lol

spring juniper
#

getting to the T1000 i agree, but receiving?

#

shouldnt the rak and fox receive ~same ?

forest current
#

no because the fox (not actually the fox but the radio on your specific board) is a 30db which has a PA (tx) and LNA (rx)

#

so reception is also boosted

#

beyond what the rak has (sx1262 boosted gain, native, not LNA)

polar ingot
#

I love soldering. I don’t love cleaning my desk

feral vortex
#

I used to like soldering back when I had good eyes. Now, all of my solders look like I sneezed liquid metal all over.

spring juniper
mild hare
quasi onyx
#

Ooooooo

brisk ocean
brisk ocean
nova frost
feral vortex
#

I'd love to see PoE as an option on this thing. power and network/updates over the same cable

forest current
#

speaking of, @buoyant ermine how did that Ultra work out for you?

buoyant ermine
#

Granted the original design hat is probably easier to make on a hot plate if resorting to smuggled ebyte modules and OSHPark for boards

forest current
#

i havent touched it since i got it working as i have a lot of open projects and almost zero motivation recently, and didnt hear anything

#

guess well just add it to the list for the new sdk to actually test against @mild hare

mild hare
#

@forest current @buoyant ermine So Lyra SDK is obviosuly RK3506(?) but it does have most of the goodies for RV1103/RV1106. RV1103 is based off RV1106 software-wise. And since I'm gonna need that pico support we'll end up with ultra support.

#

Pretty sure the only difference between RV1103 and RV1106 is some DTS file(s)

#

My replacement lyra arrived yesterday so I can get back on it soon.

dire shuttle
forest current
#

its only 30db because of the PA/LNA, otherwise its just the sx1262 22db inside

dire shuttle
#

Their datasheets don't seem to reflect that. Bottom is for the 900M30S. If you look at 125kHz SF=7, they're 3dB apart.
Double isn't nothing, but it's not an 8dB increase either.

polar ingot
#

It does fit however, with room to spare

dire shuttle
#

They do clearly mention a PA and an LNA though

polar ingot
feral vortex
#

Yessir, thats what we use on our repeater nodes now.. but.. Not that we've tested all of them.. but the ones we use consume more poer than the femtofox itself. So, not ideal if you are connecting it through a "PoE UPS" such as this: https://amzn.to/3GaCuhI. My thinking was that, most people are likely running the ethernet cable anyway.. and a setup like this would give like a week worth of "grid down" power, and remvoe the need for having batteries up in an enclosure directly in the sun. That said, I do agree that it's an option, and it's one I use today with our raspberry pi +meshadv hats repeaters. so it's workable even if PoE isn't added.

nova frost
nova frost
#

I won't share photos of my mangled board where I used side cutters to make the usb fit...

nova frost
#

Let me check the schematic later.

#

Not sure there's not something else that prevents this.

proven pond
#

I just ran into this while looking to make a PR for nftables modules. Opened a PR to address this first so I don't break things even more

#

would be awesome if menuconfig had a jump option from search and automatic dependency resolution.. I haven't had to compile kernels in a long time...

#

@forest current FYI I put up that apt PR and it should be good to go as well. I can do the nftables one after this tun fix merges in

proven pond
polar ingot
nova frost
# polar ingot

yeah, don't go connecting it direct - you'll release the magic smoke:

merry shore
merry shore
#

The 802.3af and 802.3at are "active" PoE with a negotiation protocol (kinda-sorta like USB-PD), are always 48V AFAIK, and can coexist with gigabit where all 4 pairs are used for data.

#

Those splitters are larger since they have some brains in them

polar ingot
#

Either way, I think the "dumb" passive splitter would work for a lot of situations. When I get my omni antenna I'll try it out for a roof mounted node

fervent pier
#

Here’s my PoE powered with built in “UPS” so it stays running even if network / PoE drops

quasi onyx
#

Oh nice

spring juniper
fading river