Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Oct 2014 23:15:51 -0700
From:      Rui Paulo <rpaulo@me.com>
To:        Russell Haley <russ.haley@gmail.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Digi CCWMX53
Message-ID:  <B1B505A6-3DF3-4473-BA03-574A921F4B0B@me.com>
In-Reply-To: <CABx9NuTei9%2BTMGxrka7WA1nqSZ_c-bRY3hpgFa0y4ybk4L%2BMww@mail.gmail.com>
References:  <CABx9NuQr%2BdEb_yj3ypEe6Sb_qPY%2BqP74n0x1K5=_K6Zoio2vkw@mail.gmail.com> <C439A1ED-8AA0-4CA5-B375-D80E8BD4C624@me.com> <CABx9NuTU=E7ceQ=5=Qk%2B=e9jwLjnJZf2Lr70d7XbwAYRD5nd7Q@mail.gmail.com> <E12E12A8-32B9-4B26-B6C4-65DF9F43C396@me.com> <CABx9NuT31dVubDCCt7M5DGhoNqu0a9saxuB1fb9naq42Z8mi%2BA@mail.gmail.com> <A73CCB0A-2ED9-4505-BACD-264F768D2D72@bsdimp.com> <CABx9NuROVKvAcqj166=z%2BvP5zemjost6m12H5fLvEbKU8%2BA0xw@mail.gmail.com> <27A69721-D93D-4D4C-883A-718CFFF52B21@bsdimp.com> <CABx9NuRybC-8z4XTMO=0vu824%2BEzVhiDu-vsxteBr6zchorgmA@mail.gmail.com> <CABx9NuTei9%2BTMGxrka7WA1nqSZ_c-bRY3hpgFa0y4ybk4L%2BMww@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 2, 2014, at 23:06, Russell Haley <russ.haley@gmail.com> 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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B1B505A6-3DF3-4473-BA03-574A921F4B0B>