Diff for /wikisrc/ports/evbarm/odroid-c1.mdwn between versions 1.24 and 1.25

version 1.24, 2015/11/25 23:26:09 version 1.25, 2015/11/26 00:11:45
Line 170  gpioctl gpio4 sys_led toggle Line 170  gpioctl gpio4 sys_led toggle
   
 To read/write U-Boot environment variables from NetBSD, download and compile the following program: <http://ftp.netbsd.org/pub/NetBSD/misc/jmcneill/odroidc1/uenv.c>  To read/write U-Boot environment variables from NetBSD, download and compile the following program: <http://ftp.netbsd.org/pub/NetBSD/misc/jmcneill/odroidc1/uenv.c>
   
   # Automatically booting a backup kernel
   
   *These instructions assume the kernels live on eMMC. Adjust devices accordingly for SD card setup.*
   
   To setup an ODROID-C1 to fall back to a recovery kernel in the event of a boot failure, install the recovery kernel as /boot/onetbsd.ub.
   
   Create /boot/boot.ini as follows:
   [[!template  id=programlisting text="""
   ODROIDC-UBOOT-CONFIG
   setenv bootargs "root=ld0f awge0.mac-address=${ethaddr}"
   fatload mmc 0:1 0x22000000 boot.scr
   source 0x22000000
   """]]
   
   Create /boot/boot.txt:
   [[!template  id=programlisting text="""
   # regenerate with:
   #  mkubootimage -A arm -C none -O netbsd -T script -a 0 -n "NetBSD/odroidc1 boot" boot.txt boot.scr
   
   setenv rescue_kernel "onetbsd.ub"
   setenv kernel "netbsd.ub"
   
   if test ${boot_rescue} = false; then
     setenv boot_rescue true
     saveenv
     fatload mmc 0:1 0x21000000 ${kernel}
     mw.l c1109900 0f08ffff        # arm watchdog
     bootm 0x21000000
   else
     fatload mmc 0:1 0x21000000 ${rescue_kernel}
     bootm 0x21000000
   fi
   """]]
   
   Generate boot.scr from boot.txt:
   [[!template  id=programlisting text="""
   mkubootimage -A arm -C none -O netbsd -T script -a 0 -n "NetBSD/odroidc1 boot" /boot/boot.txt /boot/boot.scr
   """]]
   
   Install the **uenv** tool from above and add the following to root's crontab:
   [[!template  id=programlisting text="""
   @reboot                                 /usr/local/sbin/uenv ld0 boot_rescue false
   """]]
   
 # Documentation  # Documentation
   
 Amlogic S805 datasheet: <http://dn.odroid.com/S805/Datasheet/S805_Datasheet%20V0.8%2020150126.pdf>  Amlogic S805 datasheet: <http://dn.odroid.com/S805/Datasheet/S805_Datasheet%20V0.8%2020150126.pdf>

Removed from v.1.24  
changed lines
  Added in v.1.25


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb