version 1.15, 2015/04/25 14:50:13
|
version 1.20, 2015/10/28 18:05:41
|
Line 1
|
Line 1
|
[[!meta title="NetBSD/evbarm on Hardkernel ODROID-C1"]] |
[[!meta title="NetBSD/evbarm on Hardkernel ODROID-C1"]] |
|
|
[ODROID-C1](http://www.hardkernel.com/main/products/prdt_info.php?g_code=G141578608433&tab_idx=1) is a $35 quad-core SBC from Hardkernel. ODROID-C1 support was introduced in NetBSD 7.0. |
[ODROID-C1](http://www.hardkernel.com/main/products/prdt_info.php?g_code=G141578608433&tab_idx=1) was a $35 quad-core SBC from Hardkernel. ODROID-C1 support was introduced in NetBSD 7.0. It has been succeeded by the [ODROID-C1+](http://www.hardkernel.com/main/products/prdt_info.php?g_code=G143703355573), which is supported by the same NetBSD kernel. |
|
|
[[!toc levels=2]] |
[[!toc levels=2]] |
|
|
Line 12
|
Line 12
|
- GIC |
- GIC |
- A5 watchdog timer |
- A5 watchdog timer |
- A5 global timer |
- A5 global timer |
- SD/MMC controller (DMA) |
- "SDHC" and "SDIO" SD/MMC controllers (DMA) |
- Serial console |
- Serial console |
- Framebuffer console |
- Framebuffer console |
- USB host (OTG) |
- USB host (OTG) |
Line 24
|
Line 24
|
|
|
# TODO |
# TODO |
- USB device mode |
- USB device mode |
- Simultaneous SD card and eMMC usage |
|
- SD/MMC UHS-I support (needs sdmmc(4) changes) |
|
- IR receiver |
- IR receiver |
- I2C |
- I2C |
- Audio |
- Audio |
|
|
# Installation |
# Installation |
|
|
* 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 *armv7.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: |
* Note the location and size of the FFS partition in the * armv7.img* disklabel: |
[[!template id=programlisting text=""" |
[[!template id=programlisting text=""" |
# $TOOLDIR/bin/nbdisklabel -M evbarm -B le beagleboard.img |
# $TOOLDIR/bin/nbdisklabel -M evbarm -B le armv7.img |
... |
... |
8 partitions: |
8 partitions: |
# size offset fstype [fsize bsize cpg/sgs] |
# size offset fstype [fsize bsize cpg/sgs] |
Line 49
|
Line 47
|
"""]] |
"""]] |
* 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=armv7.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=armv7.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=armv7.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: |
* 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=""" |
[[!template id=programlisting text=""" |
# $TOOLDIR/bin/armv7--netbsdelf-eabihf-fdisk -u beagleboard.img |
# $TOOLDIR/bin/armv7--netbsdelf-eabihf-fdisk -u armv7.img |
... |
... |
Which partition do you want to change?: [none] 1 |
Which partition do you want to change?: [none] 1 |
The data for partition 1 is: |
The data for partition 1 is: |