| | 152 | |
| | 153 | == Flasher original ardrone2 without USB cable == |
| | 154 | |
| | 155 | Boot the original ardrone2 system and connect to it: |
| | 156 | |
| | 157 | ssid ardrone2_011152 (last 6 numbers depends on ardrone2's serial number) |
| | 158 | ip pc : 192.168.1.2 (given by uav's dhcp) |
| | 159 | ip uav : 192.168.1.1 |
| | 160 | |
| | 161 | We 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 | |
| | 163 | Copy 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 | |
| | 169 | Create a chroot script and execute it: |
| | 170 | {{{ |
| | 171 | umount /factory |
| | 172 | mount -o bind /dev /data/video/installer/dev/ |
| | 173 | mount -t sysfs sys /data/video/installer/sys/ |
| | 174 | mount -t proc proc /data/video/installer/proc/ |
| | 175 | |
| | 176 | mount devpts /data/video/installer/dev/pts -t devpts |
| | 177 | |
| | 178 | |
| | 179 | chroot /data/video/installer /bin/sh |
| | 180 | }}} |
| | 181 | |
| | 182 | Copy 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 | |
| | 189 | Change 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 | }}} |