Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Trabajar con la Orange Pi IoT 2G


Utilidades para compilar el kernel, modulos y uboot para Orange Pi Iot 2G

-Fix ramdom Wifi MAC
-Uboot con acceso a ubifs (NAND)



Sistema host 16.04.1-Ubuntu x64
Instalar Toolchain (para crosscompile):
sudo apt-get install gcc-arm*


Clonar repositorio github a disco:

1.1 git clone https://github.com/txurtxil/Opi2gIOT

1.2 cd Opi2gIOT
    tar xpvfz Opi2GKernelUBOOT.tgz
    cd  OrangePiRDA
    ./build.sh


2 Para cambiar el kernen en la SD (primero clonar desde una distro SD para Opi2G):

          2.1 Copiar el Kernel:
               Montar la particion con el kernel zImage:
               mount /dev/sdb1 /mnt
               Borramos el kernel zImage antiguo:
               rm -rf /mnt/lib/modules/3.10.62-rel5.0.2/
               Copiamos el nuevo:
               cp zImage /mnt/
               sync
                umount /mnt
          2.2 Copiar modulos:
               Montar la particion con el rootfs:
               mount /dev/sdb2 /mnt
               Borramos los modulos antiguos:
               rm -rf /mnt/lib/modules/3.10.62-rel5.0.2/
               Copiamos los nuevos:
               cp -rf lib/modules/3.10.62-rel5.0.2+/ /mnt/lib/modules/
               sync
               umount /mnt





3 Para grabar el uboot en la SD:
3.1 dd bs=512 seek=256 if=u-boot.rda of=/dev/sdb && sync
Para ver la NAND el uboot debe grabasese en la memoria flash de la tarjeta Opi2G, para grabarlo es necesario poner en modo OTG la tarjeta y usar las herramientas de ubi:
https://www.aib42.net/article/hacking-orangepi-2g

Help: http://surfero.blogspot.com.es/2017/05/orange-pi-2g-iot-referencias.html


This post first appeared on Domotica Y Software Libre, please read the originial post: here

Share the post

Trabajar con la Orange Pi IoT 2G

×

Subscribe to Domotica Y Software Libre

Get updates delivered right to your inbox!

Thank you for your subscription

×