You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5. (Optional) install lightdm and i3 by following this [link](https://www.reddit.com/r/ChipCommunity/comments/abndo9/an_updated_guide_for_installing_i3_window_manager/)
5. (Optional) install lightdm and i3 by following this linkhttps://www.reddit.com/r/ChipCommunity/comments/abndo9/an_updated_guide_for_installing_i3_window_manager/
6. Reboot. If your touch screen cursor movement is reversed, append the following to either `/etc/X11/xorg.conf` or `/usr/share/X11/xorg.conf.d/99-calibration.conf`
@@ -216,6 +216,6 @@ EndSection
## Reference
Most of the steps in this tutorial were inspired/modified from the following references.
(https://github.com/Thore-Krug/Flash-CHIP)
(https://yoursunny.com/t/2019/bye-CHIP/)
(http://maba.dk/index.php/demo/pocketchip/)
1.https://github.com/Thore-Krug/Flash-CHIP
2.https://yoursunny.com/t/2019/bye-CHIP/
3.http://maba.dk/index.php/demo/pocketchip/
luzhuomi
revised
this gist Jan 25, 2021.
1 changed file
with
3 additions
and
3 deletions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5. (Optional) install lightdm and i3 by following this [link](https://www.reddit.com/r/ChipCommunity/comments/abndo9/an_updated_guide_for_installing_i3_window_manager/)
6. Reboot. If your touch screen cursor movement is reversed, append the following to either `/etc/X11/xorg.conf` or `/usr/share/X11/xorg.conf.d/99-calibration.conf`
@@ -217,6 +216,6 @@ EndSection
## Reference
Most of the steps in this tutorial were inspired/modified from the following references.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The purpose of this tutorial is to walk through the required steps to upgrade NXT chip (or pocketchip) from debian jessie to debian buster.
If you would like to start your Chip from scratch, follow the steps in the Preparation section.
## Preparation (Optional)
A linux host machine, recommended Ubuntu 18.04. However I managed to do it with 20.10 with some tweak.
1. Remove the C.H.I.P from its case (in case you have a Pocket C.H.I.P).
2. Connect the FEL and a GROUND pin of the C.H.I.P (for example, with a paperclip).
3. Connect the C.H.I.P its micro USB port to a USB port of your Linux machine.
4. In the Linux machine:
- run ` git clone https://github.com/thore-krug/Flash-CHIP.git` to clone this repository.
-`cd` into the location where you stored this repository.
- run `sudo chmod +x Flash.sh`
- run `./Flash.sh`
- Select the version you want to install.
- Wait until the installation finishes.
- Restart the Chip
5. Connect to your chip using USB network or ssh over wifi. For USB network, run `screen /dev/ttyACM0`
For Wifi ssh, run `ssh chip@<ip_address_of_chip>`
6. Your chip is running Debian Jessie now.
7. Update the apt source file. Replace all `jessie` with `stretch` in `/etc/apt/source.list`. Comment away or remove the following
```
# deb http://http.debian.net/debian jessie-backports main contrib non-free
# deb-src http://http.debian.net/debian jessie-backports main contrib non-free
# deb http://opensource.nextthing.co/chip/debian/repo jessie main
```
and add
```
deb http://chip.jfpossibilities.com/chip/debian/repo jessie main
deb http://chip.jfpossibilities.com/chip/debian/pocketchip jessie main
```
After the modification, your `/etc/apt/source.list` should look something like
```
deb http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://chip.jfpossibilities.com/chip/debian/repo jessie main
deb http://chip.jfpossibilities.com/chip/debian/pocketchip jessie main
```
8.`sudo apt update && sudo apt upgrade`
Note I started with the headless server version and manually install lightdm and i3wm after the upgrade. Your experience might defer if you use other images.
### Trouble-shooting
1. If you are stuck at `waiting for FEL...`, try to run the script without plugin the chip to the USB port of the host machine.
Instead, you start the script `./Flash.sh` and proceed until you see the prompt `waiting for FEL...`, then plug in the chip.
2. If you are stuck at `flash usb_bulk_send() ERROR -7: Operation timed out`, your host machine is probably running a latest version of the sunix tool. Try to downgrade it by download the deb file from
`sunxi-tools_1.4.1-1_amd64.deb` from `https://ubuntu.pkgs.org/18.04/ubuntu-universe-amd64/sunxi-tools_1.4.1-1_amd64.deb.html`. Then overwrite the existing installation with
```bash
$ sudo dpkg -i sunxi-tools_1.4.1-1_amd64.deb
```
And edit the `Flash.sh` file to comment away the following lines.
```bash
# sunxi-tools \
```
## Upgrade From Jessie to Stretch
1. Login to your chip.
2. Update the apt source file. Replace all `jessie` with `stretch` in `/etc/apt/source.list`. Comment away or remove to the two lines
```
# deb http://chip.jfpossibilities.com/chip/debian/repo jessie main
# deb http://chip.jfpossibilities.com/chip/debian/pocketchip jessie main
```
After the modification, `/etc/apt/source.list` file should be like the following
```
deb http://ftp.us.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch main contrib non-free
deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main contrib non-free
```
3.`sudo apt update && sudo apt full-upgrade`
4. Modify the file ` /etc/NetworkManager/NetworkManager.conf` to the following
```
[main]
plugins=ifupdown,keyfile
[connection]
wifi.mac-address-randomization=1
[device]
wifi.scan-rand-mac-address=no
[ifupdown]
managed=false
[keyfile]
unmanaged-devices=interface-name:wlan1
```
5. If you have X running, modify the file ` /etc/X11/xorg.conf` to the following
6. Reboot. If your touch screen cursor movement is reversed, append the following to either `/etc/X11/xorg.conf` or `/usr/share/X11/xorg.conf.d/99-calibration.conf`