From owner-freebsd-arm@FreeBSD.ORG Fri Oct 3 06:16:09 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D51958FC for ; Fri, 3 Oct 2014 06:16:09 +0000 (UTC) Received: from st11p02mm-asmtp002.mac.com (st11p02mm-asmtpout002.mac.com [17.172.220.237]) (using TLSv1 with cipher DES-CBC3-SHA (112/168 bits)) (Client CN "smtp.me.com", Issuer "VeriSign Class 3 Extended Validation SSL SGC CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A9175BEE for ; Fri, 3 Oct 2014 06:16:09 +0000 (UTC) Received: from fukuyama.hsd1.ca.comcast.net (unknown [73.162.13.215]) by st11p02mm-asmtp002.mac.com (Oracle Communications Messaging Server 7u4-27.10(7.0.4.27.9) 64bit (built Jun 6 2014)) with ESMTPSA id <0NCU000PKUQGRJ80@st11p02mm-asmtp002.mac.com> for freebsd-arm@freebsd.org; Fri, 03 Oct 2014 06:15:54 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52,1.0.28,0.0.0000 definitions=2014-10-03_04:2014-10-03,2014-10-03,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1410030067 Content-type: text/plain; charset=us-ascii MIME-version: 1.0 (Mac OS X Mail 8.0 \(1988\)) Subject: Re: Digi CCWMX53 From: Rui Paulo In-reply-to: Date: Thu, 02 Oct 2014 23:15:51 -0700 Content-transfer-encoding: 7bit Message-id: References: <27A69721-D93D-4D4C-883A-718CFFF52B21@bsdimp.com> To: Russell Haley X-Mailer: Apple Mail (2.1988) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Oct 2014 06:16:10 -0000 On Oct 2, 2014, at 23:06, Russell Haley wrote: > > Gentlemen, > > So one of my next steps is to get rootfs to mount. I THINK I have found out > that the kernel uses an option in the kernel config file > called ROOTDEVNAME. That - as far as I can tell - means the root device > name is set at compile time? In my current case I wanted to boot the kernel > I already have and then use the manual process to load rootfs. I tried > using installworld on a 4 GB USB stick. This is my process: > > gpart create -s mbr da4 > gpart add -t freebsd da4 > sudo newfs /dev/da4s1 > mount /dev/da4s1 /usr/jails/FreeArm2/mnt/usb > > make TARGET_ARCH=armv6 DESTDIR=/mnt/usb installworld distribution > > This *seemed* to work but I did not get a nifty little message at the end > of installworld telling me the install process was completed successfully > as I did with buildworld or buildkernel. > > Once my kernel booted and I got to the manual prompt I used the following > command: > > mountroot> ufs:/dev/da1s1a #also tried ufs:/dev/da1s1 > > Trying to mount root from ufs:/dev/da1s1a []... > mountroot: waiting for device /dev/da1s1a ... > Mounting from ufs:/dev/da1s1a failed with error 19. > > boo. :( > > So, my questions are: > > 1) Is a 4GB USB drive enough space? Yes > 2) Did the lack of "nifty little message" mean installworld failed? I > didn't get any error messages, it just seemed to stop (i.e. a new command > prompt). No > 3) Is my above partitioning correct? I just found this article that says I > should be using GPT not MBR: > http://www.wonkity.com/~wblock/docs/html/disksetup.html It should still work. > 4) Is my assumption that the rootfs is hard coded into the kernel true or > is this one of many of my over simplifications? Could anyone point me to > some good documentation about this? It's hard coded if you use the ROOTDEVNAME option. > I would normally spend much more time researching this myself but I'm so > close to having something to play with I'm becoming impatient!!! Are you sure it's da1? It's not da0? Can you show us the boot log? -- Rui Paulo