Sheevaplug: preparing to boot from USB stick

View: New views
1 Messages — Rating Filter:   Alert me  

Sheevaplug: preparing to boot from USB stick

by RuiDC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have followed http://wiki.freebsd.org/FreeBSDMarvell
and am booting fine via tftp/NFS but now wish to switch to using USB stick so that the plug operates without a server.

In the absence of a guide as to how to proceed, i was following from step 7 onwards from: http://bsdimp.blogspot.com/2007/12/building-bootable-arm-sd.html

step7:
# fdisk -I da0
******* Working on device da0 *******
fdisk: /boot/mbr: No such file or directory

Should i be using on of these instead:
# ls -l boot
...
-r--r--r--  1 root  wheel   13320 Sep 28 09:57 loader.help
-r-xr-xr-x  1 root  wheel  165864 Sep 28 09:57 ubldr

And if so, what preparation do i need for the USB stick?
ie. swapping is disabled on the kernel config, can i just use a single large UFS partition/slice ?
as below or do i need a FAT32 partition to make it accessible from u-boot?

# fdisk da0
******* Working on device /dev/da0 *******
parameters extracted from in-core disklabel are:
cylinders=972 heads=255 sectors/track=63 (16065 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=972 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 62, size 15620218 (7627 Meg), flag 80 (active)
        beg: cyl 0/ head 0/ sector 63;
        end: cyl 972/ head 80/ sector 60
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

Thanks,
RuiDC