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

Build a version of BBN Marine OS for m5stack CoreMP135 #431

Closed
mgrouch opened this issue Jul 2, 2024 · 15 comments
Closed

Build a version of BBN Marine OS for m5stack CoreMP135 #431

mgrouch opened this issue Jul 2, 2024 · 15 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@mgrouch
Copy link

mgrouch commented Jul 2, 2024

Build a version of BBN Marine OS for m5stack CoreMP135

CoreMP135 Is arm based computer 4GB RAM and with many interfaces two CAN bus for NMEA 2000,
RS 485 for NMEA 0183,
Uart for pypilot motor controller, i2c for IMU.

It has 2” color touchscreen. Good for LVGL GUI.

So building some headless BBN Marine OS for it
sounds like a good idea.

It could run SignalK, gpsd, pypilot, AvNav, NodeRed, possibly HomeAssistant, mopidy, etc

And instruments like in BBN for m5stack tough
using LVGL framebuffer on CoreMP135 touchscreen.

@mgrouch
Copy link
Author

mgrouch commented Jul 2, 2024

I’ve asked about state of the Debian OS image development for CoreMP135 on m5stack forums

https://community.m5stack.com/topic/6478/coremp135-debian-image/24?_=1719934536704

ideas on auto expanding root partition on first boot

https://raspberrypi.stackexchange.com/questions/138601/autoexpand-partition-after-first-boot

@mgrouch
Copy link
Author

mgrouch commented Jul 2, 2024

About M5Core MP135 device

https://docs.m5stack.com/en/core/M5CoreMP135

@mgrouch
Copy link
Author

mgrouch commented Jul 2, 2024

@mgrouch mgrouch added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jul 2, 2024
@mgrouch
Copy link
Author

mgrouch commented Jul 4, 2024

Applications library for coremp135

https://github.com/m5stack/M5Stack_Linux_Libs

@mgrouch
Copy link
Author

mgrouch commented Jul 4, 2024

LVGL to rust binding

https://github.com/tux-evse/lvgl-rclib-rs

@mgrouch
Copy link
Author

mgrouch commented Jul 14, 2024

Preliminary test images are available:

https://cloudsmith.io/~bbn-projects/repos/bbn-repo/packages/?q=bbn-coremp135

@mgrouch
Copy link
Author

mgrouch commented Jul 14, 2024

What doesn't work

  • needs BBN launcher (static web page can do)
  • SignalK binds only to ipv6
  • Doesn't auto expand root filesystem on SD card on first boot (there is a script provided though)
  • Doesn’t reboot on reboot command line
  • Test can interfaces
  • Test with pypilot motor controller via UART
  • Test RS 485, (with NMEA 0183)
  • Port https://github.com/bareboat-necessities/bbn-m5stack-tough as framebuffer app
  • Write some kind of app for bilge and voltage alarms to be sent via WhatsApp
  • Preset PyPilot to open USART6 (port C)
  • Preset SignalK (or PyPilot) to open RS-485 (USART3)

@mgrouch
Copy link
Author

mgrouch commented Jul 14, 2024

USB errors might be due to USB3.0 hub plugged into USB2.0 port


Confirmed: The errors where due to USB3 hub in USB2 port

@mgrouch
Copy link
Author

mgrouch commented Jul 19, 2024

Update

What doesn't work

  • Doesn’t reboot on reboot command line ('reboot -f' works)
  • Test can interfaces
  • Test with pypilot motor controller via UART (/dev/ttySTM0)
  • Test RS 485, (with NMEA 0183) /dev/ttySTM3
  • Port https://github.com/bareboat-necessities/bbn-m5stack-tough as framebuffer app
  • Write some kind of app for bilge and voltage alarms to be sent via WhatsApp
  • Turn of built-in LCD screen after a timeout to save power

@mgrouch
Copy link
Author

mgrouch commented Jul 22, 2024

@mgrouch
Copy link
Author

mgrouch commented Jul 23, 2024

Update

Todo list:

  • Test can interfaces
  • Test with pypilot motor controller via UART (/dev/ttySTM0)
  • Test RS 485, (with NMEA 0183) /dev/ttySTM3
  • Turn of built-in LCD screen after a timeout to save power

For releases past first version:

@mgrouch
Copy link
Author

mgrouch commented Jul 23, 2024

nmea 2000 and pypilot motor controller are now working plug-n-play.

@mgrouch
Copy link
Author

mgrouch commented Jul 23, 2024

Update

Todo list:

  • Documentation updates

For releases past first version:

@mgrouch
Copy link
Author

mgrouch commented Jul 25, 2024

Done.

Issues will be reported individually

@mgrouch mgrouch closed this as completed Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant