Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: NSLU2 won't boot 5.0
On Sat, Feb 21, 2009 at 10:36 AM, Andy Ruhl <acruhl%gmail.com@localhost> wrote:
>> That's pretty straightforward. Just fdisk/format the USB card and unzip the
>> files in rel/evbarm/evbarm/sets. Though I confess, I always have problems
>> with the fdisk part.
>
> Maybe not so straightforward:
>
> partition> P
> 8 partitions:
> # size offset fstype [fsize bsize cpg/sgs]
> a: 15954881 63 4.2BSD 0 0 0 # (Cyl. 0*-
> 7790*)
> c: 15954944 0 unused 0 0 # (Cyl. 0 -
> 7790*)
> e: 15954881 63 unused 0 0 # (Cyl. 0*-
> 7790*)
> partition> W
> Label disk [n]? y
> disklabel: ioctl DIOCWDINFO: Label magic number or checksum is wrong!
> (disklabel or kernel is out of date?)
> Label not written
>
> I'll have to figure that one out. I did write zeros to the front of
> the disk using dd, so it should have started clean. It's an 8 gig sdhc
> card in a USB card reader. Seems like it should work, it shows up
> pretty generically:
>
> umass0 at uhub1 port 2 configuration 1 interface 0
> umass0: SDMMC M121 USB 2.0 SD/MMC READER, rev 2.00/2.01, addr 2
> umass0: using SCSI over Bulk-Only
> scsibus0 at umass0: 2 targets, 1 lun per target
> sd0 at scsibus0 target 0 lun 0: <USB 2.0, SD/MMC Reader,
> \001\000\000\001> disk removable
> sd0: fabricating a geometry
> sd0: 7790 MB, 7790 cyl, 64 head, 32 sec, 512 bytes/sect x 15954944 sectors
> sd0: fabricating a geometry
>
> (this is using the disk2 USB port on the NSLU2 by the way)
>
I'm not sure if this is the correct "fix", but the fix was to not use
fdisk at all. I just did disklabel on the front of the disk, and now
it works fine:
root@nslu2:/root # mount
/dev/sd0a on / type ffs (local)
root@nslu2:/root # disklabel -r sd0
# /dev/rsd0c:
type: SCSI
disk: SD/MMC Reader
label: fictitious-MBR
flags: removable
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 7790
total sectors: 15954944
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 15954944 0 4.2BSD 0 0 0 # (Cyl. 0 - 7790*)
c: 15954944 0 unused 0 0 # (Cyl. 0 - 7790*)
e: 15954944 0 unused 0 0 # (Cyl. 0 - 7790*)
So now I'm booting from /dev/sd0a, which is cool. Now I'll have to try
and put another USB disk in it to see if I can mount that over /home
and go to town.
It would still be really cool if we could figure out how to get a
bootloader in flash to boot /dev/sd0a's netbsd...
Andy
Home |
Main Index |
Thread Index |
Old Index