Changes between Version 5 and Version 6 of setup_target/ardrone2


Ignore:
Timestamp:
Jul 20, 2020, 11:31:43 AM (17 months ago)
Author:
Sanahuja Guillaume
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • setup_target/ardrone2

    v5 v6  
    150150}}}
    151151reboot !
     152
     153== Flasher original ardrone2 without USB cable ==
     154
     155Boot the original ardrone2 system and connect to it:
     156
     157ssid ardrone2_011152 (last 6 numbers depends on ardrone2's serial number)
     158ip pc : 192.168.1.2 (given by uav's dhcp)
     159ip uav : 192.168.1.1
     160
     161We are going to flash the updater in the mtd2 partition from original system. Then we reboot to the updater and flash the final system in the mtd3 partition.
     162
     163Copy with ftp the ardrone2-installer.tar.gz, in /data/video/installer then uncompress it:
     164{{{
     165# cd /data/video/installer
     166# tar -xzf core-image-minimal-mtdutils-ardrone2-installer.tar.gz
     167}}}
     168
     169Create a chroot script and execute it:
     170{{{
     171umount /factory
     172mount -o  bind /dev /data/video/installer/dev/
     173mount -t sysfs sys /data/video/installer/sys/
     174mount -t proc proc /data/video/installer/proc/
     175
     176mount devpts /data/video/installer/dev/pts -t devpts
     177 
     178 
     179chroot  /data/video/installer /bin/sh
     180}}}
     181
     182Copy with ftp the ardrone2-updater.plf and its kernel, in /data/video/installer then install it from the chroot:
     183
     184{{{
     185# update_kernel.sh zImage.plf
     186# install_updater_rootfs.sh  core-image-minimal-mtdutils-ardrone2-updater.tar.gz
     187}}}
     188
     189Change ubi names to reboot to updater:
     190{{{
     191# ubiattach -p /dev/mtd1
     192# ubirename /dev/ubix main_boot alt_boot alt_boot main_boot (x donné par ubittach)
     193# ubidetach -p /dev/mtd1
     194# reboot
     195}}}
    152196
    153197== Flasher ardrone2 original sans câble USB ==