--- wikisrc/ports/evbarm/odroid-c1.mdwn 2015/10/28 18:05:41 1.20 +++ wikisrc/ports/evbarm/odroid-c1.mdwn 2015/11/25 23:26:09 1.24 @@ -1,4 +1,4 @@ -[[!meta title="NetBSD/evbarm on Hardkernel ODROID-C1"]] +[[!meta title="NetBSD/evbarm on Hardkernel ODROID-C1 and ODROID-C1+"]] [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. @@ -10,8 +10,8 @@ - SMP supported - PL310 L2 cache controller - GIC - - A5 watchdog timer - A5 global timer + - Watchdog timer - "SDHC" and "SDIO" SD/MMC controllers (DMA) - Serial console - Framebuffer console @@ -67,15 +67,15 @@ Which partition do you want to change?: Should we write new partition table? [n] y """]] * 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. -* Create or edit *boot.ini* on the MS-DOS partition: +* Edit *boot.ini* on the MS-DOS partition. Note that the default boot.ini has `console=fb` in `bootargs`, which you should remove if you want serial console: [[!template id=programlisting text=""" ODROIDC-UBOOT-CONFIG -setenv bootargs "root=ld0f awge0.mac-address=${ethaddr}" +setenv bootargs "root=ld0f awge0.mac-address=${ethaddr} console=fb" setenv bootcmd "fatload mmc 0:1 0x21000000 netbsd.ub; bootm 0x21000000" run bootcmd -"""]] +"""]] + * On first boot, it will stop because of the wrong device in /etc/fstab. Take this opportunity to grow the root file-system: [[!template id=programlisting text=""" # fdisk -u ld0 @@ -166,6 +166,10 @@ gpioctl gpio4 sys_led off gpioctl gpio4 sys_led toggle """]] +# U-Boot Environment + +To read/write U-Boot environment variables from NetBSD, download and compile the following program: + # Documentation Amlogic S805 datasheet: