Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD on Utilite Pro



On Sun, Feb 11, 2018 at 17:09:52 +0100, Jan Prunk wrote:

> I have seen your message regarding Utilite Pro.  I have Utilite
> Standard, which is using the SD card to boot.  I am interested if
> NetBSD would work there too?

As far as I understand the Pro is just a bit more beefy and has a
disk, but it's the same hardware otherwise.  Of course problems with
the SD card make it impossible to use it, but I guess you can use USB
instead.


> If it wouldn't work with SD card, what about the diskless mode?

It should probably work with enet(4) or an usb ethernet gizmo, though
I haven't tried.  wm(4) has configuration issues and panics quickly.


> Do you have the image, which could be placed on the SD card to boot
> the machine and an installation manual?

Sorry, no, you have to build the distrubution yourself (but with the
NetBSD build system it's trivial to do on a NetBSD, Linux or OS X
host).  The target machine is evbearmv7hf-el.

But brace yourself for a rough ride.  imx6 is not fdt'ized and there
are other issues, so it's nowhere near being stable.  I just hacked
the iomux setting to get to the RTC, which was good enough for me for
now, but is obviously not committable.

If you want to play with it, the patches are attached.  Caveat emptor.

-uwe
Index: nitrogen6_iomux.c
===================================================================
RCS file: /cvsroot/src/sys/arch/evbarm/nitrogen6/nitrogen6_iomux.c,v
retrieving revision 1.4
diff -u -p -r1.4 nitrogen6_iomux.c
--- nitrogen6_iomux.c	9 Jun 2017 18:14:59 -0000	1.4
+++ nitrogen6_iomux.c	11 Feb 2018 22:55:01 -0000
@@ -559,6 +560,9 @@ static const struct gpio_conf gpio_data[
 	{	1,	0,	GPIO_DIR_OUT,	1	}, /* USB H1 */
 	{	1,	4,	GPIO_DIR_IN,	0	}, /* USDHC2 */
 	{	3,	4,	GPIO_DIR_OUT,	0	}, /* PCIe */
+
+	/* XXX: uwe */
+	{	1,	2,	GPIO_DIR_OUT,	0	}, /* multiplex I2C */
 #endif
 #if (EVBARM_BOARDTYPE == hummingboard_edge)
 	{	3,	22,	GPIO_DIR_OUT,	1	}, /* USB OTG */
--- HUMMINGBOARD	2017-12-07 23:58:58.146085467 +0200
+++ UTILITE	2018-02-12 00:52:02.632295194 +0200
@@ -8,6 +8,7 @@
 include	"arch/evbarm/conf/GENERIC.common"
 
 # Board Type
+makeoptions	BOARDTYPE="Utilite"
 options 	EVBARM_BOARDTYPE=hummingboard
 #options 	EVBARM_BOARDTYPE=hummingboard_edge
 options		HUMMINGBOARD
@@ -19,13 +20,13 @@
 options 	MULTIPROCESSOR
 
 # Console options.    also need IMXUARTCONSOLE
-options 	CONSDEVNAME="\"imxuart\"",CONADDR=0x02020000
+options 	CONSDEVNAME="\"imxuart\"",CONADDR=0x021f0000
 options 	CONSPEED=115200	# Console speed
 
 #options		DIAGNOSTIC      # internal consistency checks
-options		DEBUG
+#options		DEBUG
 #options 	KGDB
-makeoptions	DEBUG="-g"	# compile full symbol table
+#makeoptions	DEBUG="-g"	# compile full symbol table
 makeoptions	COPY_SYMTAB=1
 
 # Valid options for BOOT_ARGS:
@@ -87,7 +88,7 @@
 imxuart0	at axi? addr 0x02020000 irq 58		# UART1
 #imxuart1	at axi? addr 0x021e8000 irq 59		# UART2
 #imxuart2	at axi? addr 0x021ec000 irq 60		# UART3
-#imxuart3	at axi? addr 0x021f0000 irq 61		# UART4
+imxuart3	at axi? addr 0x021f0000 irq 61		# UART4
 #imxuart4	at axi? addr 0x021f4000 irq 62		# UART5
 options		IMXUARTCONSOLE
 
@@ -99,6 +100,12 @@
 # IIC
 iic*		at imxi2c?
 
+# Atmel 24Cxx Serial EEPROM
+seeprom0	at iic0 addr 0x50 flags 2 # 256 bytes
+
+# EM3027 Real Time Clock
+em3027rtc0	at iic0 addr 0x56
+
 # SATA
 ahcisata*	at axi? addr 0x02200000 irq 71
 atabus* 	at ahcisata? channel ?
@@ -123,11 +130,11 @@
 
 # SD/MMC
 #sdhc0    	at axi? addr 0x02190000 irq 54	# uSDHC1
-sdhc1   	at axi? addr 0x02194000 irq 55	# uSDHC2
+#sdhc1   	at axi? addr 0x02194000 irq 55	# uSDHC2
 #sdhc2   	at axi? addr 0x02198000 irq 56	# uSDHC3
 #sdhc3   	at axi? addr 0x0219c000 irq 57	# uSDHC4
-sdmmc*		at sdhc?
-ld*		at sdmmc?			# MMC/SD card
+#sdmmc*		at sdhc?
+#ld*		at sdmmc?			# MMC/SD card
 #options 	SDHC_DEBUG
 #options 	SDMMC_DEBUG
 
@@ -143,9 +150,29 @@
 usb*		at ehci?
 
 # USB device drivers
-include "dev/usb/usbdevices.config"
+#include "dev/usb/usbdevices.config"
+uhub*	at usb?
+uhub*	at uhub? port ? configuration ? interface ?
+
+# USB Mass Storage
+umass*	at uhub? port ? configuration ? interface ?
+scsibus* at umass?
+cd*	at scsibus? target ? lun ?
+sd*	at scsibus? target ? lun ?
+st*	at scsibus? target ? lun ?
+uk*	at scsibus? target ? lun ?
+atapibus* at umass?
+# flags have the same meaning as for IDE drives.
+cd*	at atapibus? drive ? flags 0x0000       # ATAPI CD-ROM drives
+sd*	at atapibus? drive ? flags 0x0000       # ATAPI disk drives
+st*	at atapibus? drive ? flags 0x0000       # ATAPI tape drives
+uk*	at atapibus? drive ? flags 0x0000       # ATAPI unknown
+wd*	at umass?
 
-midi*		at midibus?
+# USB Ethernet adapters
+axe*	at uhub? port ?		# ASIX AX88172 based adapters
+
+#midi*		at midibus?
 
 # PCIe
 imxpcie0	at axi? addr 0x01ffc000 irq 155		# PCIe
@@ -156,5 +183,8 @@
 ppb*		at pci? dev ? function ?
 pci*		at ppb?
 
+# Doesn't work
+#wm*		at pci? dev? function?			# Intel I211 Gig-E
+
 # local configuration
 cinclude "arch/evbarm/conf/HUMMINGBOARD.local"
include "arch/evbarm/conf/UTILITE"
no makeoptions	DEBUG

# include "arch/evbarm/conf/INSTALL"

options 	MEMORY_DISK_HOOKS
options 	MEMORY_DISK_IS_ROOT	# Force root on ramdisk
options 	MEMORY_DISK_ROOT_SIZE=6144
options 	MEMORY_DISK_RBFLAGS=RB_SINGLE	# boot in single-user mode

pseudo-device	md

config		netbsd-install	root on md0 type ffs


Home | Main Index | Thread Index | Old Index