Fix and format flash instructions authored by Antoine Lima's avatar Antoine Lima
......@@ -125,7 +125,9 @@ Upload ok!
```
The ardrone2 will create a network interface over USB, connect to it with:
`$ ssh root@192.168.7.2 -oHostKeyAlgorithms+=ssh-rsa`
```sh
ssh -oHostKeyAlgorithms=+ssh-rsa root@192.168.7.2
```
create partitions for the custom firmware:
......@@ -135,42 +137,35 @@ create partitions for the custom firmware:
The updater will be used to update a production system.
Copy ardrone2-updater files ([zImage.plf](https://devel.hds.utc.fr/flair/ardrone2-updater/robomap3/zImage.plf) and [core-image-minimal-mtdutils-ardrone2-updater.tar.gz](https://devel.hds.utc.fr/flair/ardrone2-updater/robomap3/core-image-minimal-mtdutils-ardrone2-updater.tar.gz)) to the ardrone2:
`$ scp zImage.plf root@192.168.7.2: -oHostKeyAlgorithms+=ssh-rsa`
`$ scp core-image-minimal-mtdutils-ardrone2-updater.tar.gz root@192.168.7.2: -oHostKeyAlgorithms+=ssh-rsa`
flash the updater:
`# update_kernel.sh zImage.plf` (must write *found an updater kernel*)
`# install_updater_rootfs.sh core-image-minimal-mtdutils-ardrone2-updater.tar.gz`
remove temporary files:
`# rm zImage.plf core-image-minimal-mtdutils-ardrone2-updater.tar.gz`
## install the production
Copy ardrone2 files ([zImage.plf](https://devel.hds.utc.fr/flair/ardrone2/robomap3/zImage.plf) and [core-image-flair-ardrone2.tar.bz2](https://devel.hds.utc.fr/flair/ardrone2/robomap3/core-image-flair-ardrone2.tar.bz2)) to the ardrone2:
`$ scp zImage.plf root@192.168.7.2: -oHostKeyAlgorithms+=ssh-rsa`
(be careful this is the same kernel file name for installer and production, but files are different!)
`$ scp core-image-flair-ardrone2.tar.bz2 root@192.168.7.2: -oHostKeyAlgorithms+=ssh-rsa`
flash the system:
`# update_kernel.sh zImage.plf` (must write *found a production kernel*)
`# flash_rootfs.sh core-image-flair-ardrone2.tar.bz2 `(chose option 1: production)
reboot !
## final steps
- Copy ardrone2-updater files ([zImage.plf](https://devel.hds.utc.fr/flair/ardrone2-updater/robomap3/zImage.plf) and [core-image-minimal-mtdutils-ardrone2-updater.tar.gz](https://devel.hds.utc.fr/flair/ardrone2-updater/robomap3/core-image-minimal-mtdutils-ardrone2-updater.tar.gz)) to the ardrone2:
```sh
scp -oHostKeyAlgorithms=+ssh-rsa zImage.plf root@192.168.7.2:
scp -oHostKeyAlgorithms=+ssh-rsa core-image-minimal-mtdutils-ardrone2-updater.tar.gz root@192.168.7.2:
```
- Flash the updater (must write *found an updater kernel*):
For HDS users, configure the wifi using this [page](https://devel.hds.utc.fr/projects/plateformes/wiki/ReseauService)
```sh
update_kernel.sh zImage.plf
install_updater_rootfs.sh core-image-minimal-mtdutils-ardrone2-updater.tar.gz
```
- Remove temporary files:
```sh
rm zImage.plf core-image-minimal-mtdutils-ardrone2-updater.tar.gz
```
- Copy production ardrone2 files ([zImage.plf](https://devel.hds.utc.fr/flair/ardrone2/robomap3/zImage.plf) and [core-image-flair-ardrone2.tar.bz2](https://devel.hds.utc.fr/flair/ardrone2/robomap3/core-image-flair-ardrone2.tar.bz2)) to the ardrone2:
```sh
scp -oHostKeyAlgorithms=+ssh-rsa zImage.plf root@192.168.7.2:
scp -oHostKeyAlgorithms=+ssh-rsa core-image-flair-ardrone2.tar.bz2 root@192.168.7.2:
```
> [!important]
> This is the same kernel file name for installer and production, but files are different!
- Flash the system (chose option 1: production):
```sh
update_kernel.sh zImage.plf
flash_rootfs.sh core-image-flair-ardrone2.tar.bz2
```
- Reboot!
- For HDS users, configure the wifi using this [page](https://devel.hds.utc.fr/projects/plateformes/wiki/ReseauService)
# Flash original ardrone2 without USB cable
......
......