Giter Site home page Giter Site logo

eon-neos's Introduction

NEOS

NEOS is the operating system for your comma two and EON Gold Dashcam Development Kit.

Updates

When openpilot requires a NEOS update, you won't have to do anything. NEOS updates download in the background auotmatically, just like normal openpilot updates. This repo is for restoring or recovering your device.

Restoring on macOS & Linux

  1. Connect your comma two (via a USB-C to USB-A cable) or EON Gold (via a USB-mini-B to USB-A cable) to your computer
  2. Open a terminal
  3. Clone this repo git clone https://github.com/commaai/eon-neos.git, then cd eon-neos
  4. Run ./download.py
  5. Put your device into fastboot mode by turning off your device, then holding volume down + power.
  6. Run ./flash.sh DO NOT DISCONNECT THE DEVICE!

Restoring on Windows

  1. Install the Google USB driver for ADB (Android Debug Bridge)... https://developer.android.com/studio/run/win-usb
  2. Connect your comma two (via a USB-C to USB-A cable) or EON Gold (via a USB-mini-B to USB-A cable) to your computer
  3. Download and extract this repository
  4. Download & install Python 3
  5. Run download.py to download NEOS and flashing tools
  6. Put your device into fastboot mode by turning off your device, then holding volume down + power.
  7. Run flash.ps1 (right click, run with powershell). DO NOT DISCONNECT THE DEVICE!

eon-neos's People

Contributors

adeebshihadeh avatar andyh2 avatar erichmoraga avatar geohot avatar jyoung8607 avatar l0g1x avatar nelsonjchen avatar pd0wm avatar rbiasini avatar robbederks avatar vanillagorillaa avatar virtuallychris avatar zorrobyte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eon-neos's Issues

OG EON has 2 small LED's on all of the time.

I haven't updated the NEOS until today because of tri-state issue. I saw @chase shared picture of his EON while back where 2 LED's were lid up all of the time i thought it was just his EON but turns out all of the EON's have them confirmed by 10 users which might possibly cause battery issue with EON? Sharing picture from chase since more visible.
image0

Invalid sparse file format at header magic

I'm using latest available version (currently on commit fb6327a)
When flashing I'm getting Invalid sparse file format at header magic then, after complete flash, my device goes into endless boot-loop.
Here are logs of the process:

Platform tools found
Sending 'recovery' (15553 KB)                      OKAY [  0.395s]
Writing 'recovery'                                 OKAY [  0.106s]
Finished. Total time: 0.594s
Sending 'boot' (12377 KB)                          OKAY [  0.315s]
Writing 'boot'                                     OKAY [  0.352s]
Finished. Total time: 0.738s
Invalid sparse file format at header magic
Sending sparse 'system' 1/5 (506934 KB)            OKAY [ 12.401s]
Writing 'system'                                   OKAY [  5.481s]
Sending sparse 'system' 2/5 (496675 KB)            OKAY [ 12.211s]
Writing 'system'                                   OKAY [  6.190s]
Sending sparse 'system' 3/5 (519479 KB)            OKAY [ 12.669s]
Writing 'system'                                   OKAY [  5.991s]
Sending sparse 'system' 4/5 (490268 KB)            OKAY [ 11.632s]
Writing 'system'                                   OKAY [  4.861s]
Sending sparse 'system' 5/5 (286288 KB)            OKAY [  6.812s]
Writing 'system'                                   OKAY [ 61.284s]
Finished. Total time: 152.321s
******** Did you mean to fastboot format this ext4 partition?
Erasing 'userdata'                                 OKAY [  0.059s]
Finished. Total time: 0.101s
mke2fs 1.44.4 (18-Aug-2018)
Creating filesystem with 65536 4k blocks and 65536 inodes
Filesystem UUID: ae59c860-20df-11eb-a03c-3de0b6e7c1d1
Superblock backups stored on blocks:
        32768

Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

Sending 'cache' (120 KB)                           OKAY [  0.035s]
Writing 'cache'                                    OKAY [  0.019s]
Finished. Total time: 0.257s
Rebooting                                          OKAY [  0.008s]
Finished. Total time: 0.017s
Press any key to continue...

Anything I can help with debugging it? Maybe the OTA is broken?

Issue running fastboot flash boot files\boot.img

I receive the following error when I am running the installer; specifically the "fastboot flash boot files\boot.img" command:
fastboot: error: Couldn't parse partition size '0x'.

After that when the "fastboot flash system files\system.img" command runs, it completes fine.

I am running this on a Windows 10 computer. All the other steps seem to work fine. Any help is appreciated.

Thanks!

The instructions on Windows don't work

I get the following error when running .\flash.ps1

Expand-Archive : The path 'platform-tools-latest-windows.zip' either does not exist or is not a valid file system path.
At C:\Users\stu-win\eon-neos\flash.ps1:12 char:5

  • Expand-Archive -Path "platform-tools-latest-windows.zip" -Destina ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (platform-tools-latest-windows.zip:String) [Expand-Archive], InvalidOpe
      rationException
    • FullyQualifiedErrorId : ArchiveCmdletPathNotFound,Expand-Archive

Previous declaration error when compiling openpilot after updating to new NEOS

make: *** [Makefile:86: freethedsp.o] Error 1
make: *** Waiting for unfinished jobs....
building ('selfdrive/orbd', ['./orbd']) failed, make clean
rm -f *.o turbocv.so orbd test/turbocv_profile test/turbocv_test test/*.o *_lut.h                                                                               
[ CXX ] orbd_dsp.o
clang++ -std=c++11 -g -fPIC -O2  -Iinclude -I../../phonelibs/json/src -I. \
        -I../../phonelibs/capnp-cpp/include \
        -I../../phonelibs/zmq/aarch64/include \
        -I../../phonelibs/opencv/include \
        -DDSP \
        -I../ \
        -I../../ \
        -I../../../ \
        -I./include \
        -c -o 'orbd_dsp.o' 'orbd.cc'
[ CC ] calculator_stub.o
[ CC ] freethedsp.o
clang -std=gnu11 -g -fPIC -O2  -Iinclude -I../../phonelibs/json/src -I. -I./include -c -o 'calculator_stub.o' 'dsp/gen/calculator_stub.c'                       
clang -std=gnu11 -g -fPIC -O2  -Iinclude -I../../phonelibs/json/src -I. \
        -c -o 'freethedsp.o' 'dsp/freethedsp.c'
dsp/freethedsp.c:70:5: error: conflicting types for 'ioctl'
int ioctl(int fd, unsigned long request, void *arg) {
    ^
/data/data/com.termux/files/usr/include/bits/ioctl.h:36:5: note: previous declaration is here                                                                   
int ioctl(int __fd, int __request, ...);
    ^
1 error generated.

EON (first version, not the 2nd version) no power

I was parked waiting for my kids at the bus stop, everything was running perfectly on my Toyota Corolla2017, all of a sudden I see the screen go blue, then lost power. Tried restarting a few times and I could feel the vibration while holding the power button. Then I started to mess pressing the buttons (up and down) at the same time that I pressed the power. Haven't gotten any kind of vibration since. I opened it up and try to charge it via its C port, no luck, no power at all. Hoping I could get some advise.

ERROR: Couldn't create a device interface iterator

I upgraded to a new version of openpilot (v0.7.6.1 from custom fork of v0.6 with Prius Prime 2020 support before it was officially allowed) which then gave me a prompt saying I needed to update eon-neos. I tried updating from the phone directly but the update failed. I then found I should try to directly flash it. I tried following the directions given here, but now it no longer boots, and just goes into an infinite boot loop. This was working before trying to upgrade. I'm on macOS Catalina v10.15.7.

` $./flash.sh
Password:
ERROR: Couldn't create a device interface iterator: (e00002bd)
FAILED (remote: 'unknown command')
fastboot: error: Command failed
ERROR: Couldn't create a device interface iterator: (e00002bd)
Sending 'recovery' (14853 KB) OKAY [ 0.351s]
Writing 'recovery' OKAY [ 0.116s]
Finished. Total time: 0.526s
ERROR: Couldn't create a device interface iterator: (e00002bd)
Sending 'boot' (11677 KB) OKAY [ 0.280s]
Writing 'boot' OKAY [ 0.098s]
Finished. Total time: 0.421s
ERROR: Couldn't create a device interface iterator: (e00002bd)
Invalid sparse file format at header magic
Sending sparse 'system' 1/7 (378630 KB) OKAY [ 9.491s]
Writing 'system' OKAY [ 4.453s]
Sending sparse 'system' 2/7 (419091 KB) OKAY [ 10.170s]
Writing 'system' OKAY [ 4.298s]
Sending sparse 'system' 3/7 (417936 KB) OKAY [ 10.325s]
Writing 'system' OKAY [ 4.310s]
Sending sparse 'system' 4/7 (424223 KB) OKAY [ 10.453s]
Writing 'system' OKAY [ 5.061s]
Sending sparse 'system' 5/7 (424959 KB) OKAY [ 10.872s]
Writing 'system' OKAY [ 6.130s]
Sending sparse 'system' 6/7 (410724 KB) OKAY [ 9.953s]
Writing 'system' OKAY [ 43.766s]
Sending sparse 'system' 7/7 (15388 KB) OKAY [ 0.396s]
Writing 'system' OKAY [ 0.121s]
Finished. Total time: 136.736s
ERROR: Couldn't create a device interface iterator: (e00002bd)
******** Did you mean to fastboot format this ext4 partition?
Erasing 'userdata' OKAY [ 12.937s]
Finished. Total time: 12.965s
ERROR: Couldn't create a device interface iterator: (e00002bd)
mke2fs 1.44.4 (18-Aug-2018)
Creating filesystem with 65536 4k blocks and 65536 inodes
Filesystem UUID: fa7d5c4a-9740-45ca-8f80-059edb772bd3
Superblock backups stored on blocks:
32768

Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

Sending 'cache' (120 KB) OKAY [ 0.040s]
Writing 'cache' OKAY [ 0.025s]
Finished. Total time: 0.171s
ERROR: Couldn't create a device interface iterator: (e00002bd)
Rebooting OKAY [ 0.000s]
Finished. Total time: 0.000s`

need ignition emulation on panda jungle

I would like to make comma2 work without deploying it to a real vehicle.
I have panda jungle that can connect the comma2. However, it doesn't have a switch to turn on the ignition like the debug board. It would be nice to have some software emulating ignition to engage comma2 with panda jungle.

Older Versions

Is there a repository for or a way to get older versions of NEOS? I'm looking for around the early to mid 2017 mark. The old repos on github are gone and the specific version and fork of openpilot I need/am looking to use (provides pwm/direction for a stepper motor) doesn't work on the latest version of NEOS.

VW community version - error - failed to download recovery

I might need to downgrade to NEOS 14 to use the VW community openpilot.

Does anyone know how to downgrade it?

Restoring on Linux/OS X
Connect your comma two (via a USB-C to USB-A cable) or EON (via a USB-mini-B to USB-A cable) to your computer
Open a terminal
Clone this repo git clone https://github.com/commaai/eon-neos.git, then cd into the cloned repo cd eon-neos
Run ./download.py
Put your device into fastboot mode by turning off your device, then holding volume down + power (comma two, EON Gold), or volume up + power (EON).
Run ./flash.sh DO NOT DISCONNECT THE DEVICE!

Windows not recognizing the comma device

My device was stuck in bootload (only showing the comma logo for an extended time)

I want to reflash NEOS but my windows 10 computer is not recognizing the comma. Cable is good (I tried on different android devices) and I have the Google ADB driver installed, plus another different 3rd party Driver, but the device is not even showing up in device manager.

I tried to plug It in regular mode and in fastboot mode.
Any other ideas?

Newbie...cannot run download.py or flash.ps1

Good morning. I am trying to revive my Comma two...I have followed every step (I believe to download the 2 files download.py and flash.ps1 I just right click and choose "save link as"?)

Anyhow after doing that and downloading python 3.11 I simply double clicked on download.py and it showed something for a sec and then went away. I tried again by right clicking and choosing open with python and same thing (looks like maybe python opens for half a second then closes). I then set up my comma two in fastboot, right clicked on flash.ps1 (choose open in powershell). When I verify that it should run the script it closes out immediately.

What am I doing wrong? Any help would be appreciated.

what's the last version support for oneplus 3T mobile?

oneplus 3T mobile = op3t

case:
try flash neos 15.1 into op3t mobile, result: flash ok! boot system ok
didn't find neos 16.1 rom zip uri
try flash neos 18 into op3t mobile, result: flash ok! boot system fail! fail(loop to fastboot mode)

neos 18 flash desc:

1. recovery: twrp-3.3.1-0-oneplus3t.img
2. rom: ota-signed-5dc2575d713977666a8e14ae1b43a04d7f63123934c80fa10751d949a107653e.zip
2. boot: neos rom.zip>boot.img
3. system: neos rom.zip>system.img

question:
what's the last version, that can run in op3t ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.