Port-mips archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ERLITE-3 boot problems



> On Aug 17, 2020, at 7:55 PM, Simon Burge <simonb%NetBSD.org@localhost> wrote:
> 
> If you don't mind using -current instead of NetBSD 9 Jared has made an
> image that you can dd(1) on to your USB then it magically resizes the
> rootfs up to the USB drive size on first boot:
> 
>    https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fnycdn.netbsd.org%2Fpub%2FNetBSD-daily%2FHEAD%2F202008170740Z%2Fevbmips-mips64eb%2Fbinary%2Fgzimg%2Focteon.img.gz&amp;data=01%7C01%7Cbrook%40biology.nmsu.edu%7C6425c61e24fc4fc1254c08d84319e09e%7Ca3ec87a89fb84158ba8ff11bace1ebaa%7C1&amp;sdata=XtN2yAnIEJ6d6tudiu36ydNu2V7Ys0p7pVMhTZu%2BhsU%3D&amp;reserved=0

I have tried this with no luck.

I copied the image to my USB drive with dd.  The ERLITE did not detect the kernel (see script below).  Putting it back into my NetBSD-9/amd64 machine, it was detected as umass0 not sd0, so I had to reboot.  (How can the busses be rescanned to detect this properly?)  

Looking more carefully at the image, it seems to have an NTFS partition and a NetBSD partition defined in a GPT (see below).  However, I could not mount either to look at their contents.

In any case, this is not the solution for the ERLITE, which brings me back to the disklabel questions.  Should the kernel have to fabricate a geometry and is that a warning sign?  How can a proper disklabel be written so that the ERLITE (or now OCTEON) kernel can detect it as the root filesystem?

Thanks for any help.

Cheers,
Brook

===================================================================================

Looking for valid bootloader image....
Jumping to start of image at address 0xbfc80000


U-Boot 1.1.1 (UBNT Build Version: e102_002_20738) (Oct 26 2018 - 09:19:29)

BIST check passed.
UBNT_E100 r1:2, r2:18, f:4/71, serial #: 18E829B57A7B
MPR 13-00318-18
Core clock: 500 MHz, DDR clock: 266 MHz (532 Mhz data rate)
DRAM:  512 MB
Clearing DRAM....... done
ERROR: Unable to allocate linux reserved memory (addr: 0x100000, size: 0x8000000).
Flash:  4 MB
Net:   octeth0, octeth1, octeth2

USB:   (port 0) scanning bus for devices... 1 USB Devices found
       scanning bus for storage devices...
  Device 0: Vendor:          Prod.: USB DISK 3.0     Rev: PMAP
            Type: Removable Hard Disk
            Capacity: 118152.0 MB = 115.3 GB (241975296 x 512)
leds_init 206
 0 
reading vmlinux.64

** Unable to read "vmlinux.64" from usb 0:1 **
reading vmlinux.64.md5

** Unable to read vmlinux.64.md5 
argv[2]: coremask=0x3
argv[3]: root=/dev/sda2
argv[4]: rootdelay=15
argv[5]: rw
argv[6]: rootsqimg=squashfs.img
argv[7]: rootsqwdir=w
argv[8]: mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@1024k(eeprom)
## No elf image at address 0x07d00000
Octeon ubnt_e100#

===================================================================================

# fdisk sd0
fdisk: Cannot determine the number of heads
Disk: /dev/rsd0
NetBSD disklabel disk geometry:
cylinders: 118152, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 241975296, bytes/sector: 512

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 241975296

Partitions aligned to 2048 sector boundaries, offset 63

Partition table:
0: Primary DOS with 32 bit FAT - LBA (sysid 12)
    start 32768, size 163840 (80 MB, Cyls 2/10/9-12/60/48), Active
1: <UNUSED>
2: <UNUSED>
3: GPT Protective MBR (sysid 238)
    start 1, size 32767 (16 MB, Cyls 0/0/2-2/10/8)
        PBR is not bootable: Bad magic number (0x0000)
First active partition: 0
Drive serial number: 0 (0x00000000)

# gpt show sd0
      start       size  index  contents
          0          1         MBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34      32734         Unused
      32768     163840      1  GPT part - Windows basic data
     196608     729088      2  GPT part - NetBSD FFSv1/FFSv2
     925696  241049600         Unused

# disklabel sd0
# /dev/rsd0:
type: SCSI
disk: USB DISK 3.0    
label: fictitious
flags: removable
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 118152
total sectors: 241975296
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

6 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 d: 241975296         0     unused      0     0        # (Cyl.      0 - 118151)
 e:    163840     32768      MSDOS                     # (Cyl.     16 -     95)
 f:     32767         1    unknown                     # (Cyl.      0*-     15)
disklabel: boot block size 0
disklabel: super block size 0

# dkctl sd0 listwedges
/dev/rsd0: 2 wedges:
dk3: octeon-boot, 163840 blocks at 32768, type: ntfs
dk4: octeon-root, 729088 blocks at 196608, type: ffs



Home | Main Index | Thread Index | Old Index