Diff for /wikisrc/ports/evbarm/odroid-c1.mdwn between versions 1.3 and 1.4

version 1.3, 2015/03/08 14:21:33 version 1.4, 2015/03/08 15:44:02
Line 31 Line 31
 * Start with an ARMv7 image from *evbarm-earmv7hf/binary/gzimg/* such as *beagleboard.img*  * Start with an ARMv7 image from *evbarm-earmv7hf/binary/gzimg/* such as *beagleboard.img*
 * Build U-Boot for ODROID-C1 <https://github.com/hardkernel/u-boot/tree/odroidc-v2011.03>  * Build U-Boot for ODROID-C1 <https://github.com/hardkernel/u-boot/tree/odroidc-v2011.03>
   * Pre-built binaries here: <http://ftp.netbsd.org/pub/NetBSD/misc/jmcneill/odroidc1/u-boot-odroidc-v2011.03-20150308.tar.gz>    * Pre-built binaries here: <http://ftp.netbsd.org/pub/NetBSD/misc/jmcneill/odroidc1/u-boot-odroidc-v2011.03-20150308.tar.gz>
   * Note the location and size of the FFS partition in the *beagleboard.img* disklabel:
   [[!template  id=programlisting text="""
   # $TOOLDIR/bin/nbdisklabel -M evbarm -B le beagleboard.img
   ...
   8 partitions:
   #        size    offset     fstype [fsize bsize cpg/sgs]
    a:   1359312    385024     4.2BSD      0     0     0  # (Cyl.    188 -    851*)
    b:    262144    122880       swap                     # (Cyl.     60 -    187)
    c:   1744336         0     unused      0     0        # (Cyl.      0 -    851*)
    d:   1744336         0     unused      0     0        # (Cyl.      0 -    851*)
    e:    114688      8192      MSDOS                     # (Cyl.      4 -     59)
   """]]
 * Write the bootloader to the empty space at the start of the base image:  * Write the bootloader to the empty space at the start of the base image:
 [[!template  id=programlisting text="""  [[!template  id=programlisting text="""
 # dd if=bl1.bin.hardkernel of=beagleboard.img bs=1 count=442 conv=notrunc  # dd if=bl1.bin.hardkernel of=beagleboard.img bs=1 count=442 conv=notrunc
 # dd if=bl1.bin.hardkernel of=beagleboard.img bs=512 skip=1 seek=1 conv=notrunc  # dd if=bl1.bin.hardkernel of=beagleboard.img bs=512 skip=1 seek=1 conv=notrunc
 # dd if=u-boot.bin of=beagleboard.img bs=512 seek=64 conv=notrunc  # dd if=u-boot.bin of=beagleboard.img bs=512 seek=64 conv=notrunc
 """]]  """]]
   * Since the bootloader has overwritten the disklabel, we need to re-add partition "a" from the disklabel to the MBR partition table:
   [[!template  id=programlisting text="""
   # $TOOLDIR/bin/armv7--netbsdelf-eabihf-fdisk -u beagleboard.img
   ...
   Which partition do you want to change?: [none] 1
   The data for partition 1 is:
   <UNUSED>
   sysid: [0..255 default: 169] 
   start: [0..109cyl default: 63, 0cyl, 0MB] 385024
   size: [0..85cyl default: 1359312, 85cyl, 664MB] 1359312
   ...
   Which partition do you want to change?: [none] 
   ...
   Should we write new partition table? [n] y
   """]]
 * Write the image to an SD card.  * Write the image to an SD card.
 * Copy the kernel (netbsd.ub) for your board to the root of the MS-DOS partition on the SD card.  * Copy the kernel (netbsd.ub) for your board to the root of the MS-DOS partition on the SD card.
 * Create or edit boot.ini on the MS-DOS partition:  * Create or edit boot.ini on the MS-DOS partition:
Line 47  setenv m "1080p" Line 74  setenv m "1080p"
 setenv vout_mode "hdmi"  setenv vout_mode "hdmi"
 setenv m_bpp "32"  setenv m_bpp "32"
 setenv disableuhs "disableuhs"  setenv disableuhs "disableuhs"
 setenv bootargs "root=ld0a awge0.mac-address=${ethaddr}"  setenv bootargs "root=ld0f awge0.mac-address=${ethaddr}"
 setenv bootcmd "fatload mmc 0:1 0x21000000 netbsd.ub; bootm 0x21000000"  setenv bootcmd "fatload mmc 0:1 0x21000000 netbsd.ub; bootm 0x21000000"
 run bootcmd  run bootcmd
 """]]  """]]
   * On first boot, it will stopbecause of the wrong device in /etc/fstab. Take this opportunity to grow the root file-system:
   [[!template  id=programlisting text="""
   # fdisk -u ld0
   ...
   Which partition do you want to change?: [none] 1
   The data for partition 1 is:
   NetBSD (sysid 169)
       start 385024, size 1359312 (664 MB, Cyls 23/246/32-108/147/55)
           PBR is not bootable: All bytes are identical (0x00)
   sysid: [0..255 default: 169]
   start: [0..966cyl default: 385024, 24cyl, 188MB]
   size: [0..942cyl default: 1359312, 85cyl, 664MB] $
   ...
   Which partition do you want to change?: [none]
   ...
   Should we write new partition table? [n] y
   # resize_ffs -y /dev/rld0f
   # reboot
   """]]
   * Next boot, create a new /etc/fstab:
   [[!template  id=programlisting text="""
   # mount -u -o rw /dev/ld0f /
   # cat > /etc/fstab << EOF
   /dev/ld0f       /               ffs     rw      1 1
   /dev/ld0e       /boot           msdos   rw      1 1
   kernfs          /kern           kernfs  rw
   ptyfs           /dev/pts        ptyfs   rw
   procfs          /proc           procfs  rw
   tmpfs           /var/shm        tmpfs   rw,-m1777,-sram%25
   EOF
   # reboot
   """]]
   
 # ODROID-C1 UART pins  # ODROID-C1 UART pins
   

Removed from v.1.3  
changed lines
  Added in v.1.4


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