Digi CCWMX53

Rui Paulo rpaulo at me.com
Fri Oct 3 06:16:10 UTC 2014


On Oct 2, 2014, at 23:06, Russell Haley <russ.haley at 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





More information about the freebsd-arm mailing list