Hello Bitrig Tech

Bitrig install on a Freescale iMX6 SABRE Smart Devices board fails with:

---
Creating a ext2fs partition and an OpenBSD partition for rest of sd0...done.
disklabel: ioctl DIOCWDINFO: Input/output error
newfs_ext2fs: /dev/rsd0i: open for read: Device not configured
---

Patrick mentioned that the SD driver needs to be fixed for the iMX6 based 
devices.

Is this the driver in /sys/dev/sdmmc or does the installer use a different 
driver?

Or is it arch/armv7/imx/imxesdhc.c - the first comment there says
/* i.MX SD/MMC support derived from /sys/dev/sdmmc/sdhc.c */


The reason I ask is because there is a GSoC project for OpenBSD trying to 
implement simple versions of this driver in libsa. That project is intended to 
enable boot loaders access SD and it appears unfeasible to use a "full" driver 
at boot. I presume there will be two such drivers in Bitrig also - a stripped 
down one for boot/install and another when the OS is up and running.

Would the section on I/O system (drivers) in the book The Design and 
Implementation of the FreeBSD Operating System 2/e be relevant for Bitrig? As a 
way to learn how drivers work/should be written in BSD.

I am going to try my hand at getting a driver working for the iMX6 board. Do 
let me know if I am barking up the wrong tree. Any pointers on what to read etc 
would be welcome.

Thank you
Hrishi

Reply via email to