TritonDataCenter / smartos-live

For more information, please see http://smartos.org/ For any questions that aren't answered there, please join the SmartOS discussion list: https://smartos.topicbox.com/groups/smartos-discuss
1.56k stars 244 forks source link

Boot Error #712

Open roobyz opened 7 years ago

roobyz commented 7 years ago

On my new AMD Ryzen R7 1700 system, I get the following error after the boot menu: Error 28: Selected item cannot fit into memory Rebooting in 2 minutes (press any key to continue)... FYI, my system has 64GB of RAM and 5TB of storage.

jclulow commented 7 years ago

It's possible that grub is confused by the memory map in your system. Once you get to the grub menu, press "c". This will drop you at the grub> prompt. From there, run the displaymem command and drop the output in this ticket.

For example, in a VMware guest running SmartOS, I see:

grub> displaymem
 EISA Memory BIOS Interface is present
 Address Map BIOS Interface is present
 Lower memory: 638K, Upper memory (to first chipset hole): 3143616K
 [Address Range Descriptor entries immediately follow (values are 64-bit)]
   Usable RAM:  Base Address:  0x0 X 4GB + 0x0,
      Length:   0x0 X 4GB + 0x9f800 bytes
   Reserved:  Base Address:  0x0 X 4GB + 0x9f800,
      Length:   0x0 X 4GB + 0x800 bytes
   Reserved:  Base Address:  0x0 X 4GB + 0xdc000,
      Length:   0x0 X 4GB + 0x24000 bytes
   Usable RAM:  Base Address:  0x0 X 4GB + 0x100000,
      Length:   0x0 X 4GB + 0xbfdf0000 bytes
   Reserved:  Base Address:  0x0 X 4GB + 0xbfef0000,
      Length:   0x0 X 4GB + 0xf000 bytes
   Reserved:  Base Address:  0x0 X 4GB + 0xbfeff000,
      Length:   0x0 X 4GB + 0x1000 bytes
   Usable RAM:  Base Address:  0x0 X 4GB + 0xbff00000,
      Length:   0x0 X 4GB + 0x100000 bytes
   Reserved:  Base Address:  0x0 X 4GB + 0xf0000000,
      Length:   0x0 X 4GB + 0x8000000 bytes
   Reserved:  Base Address:  0x0 X 4GB + 0xfec00000,
      Length:   0x0 X 4GB + 0x10000 bytes
   Reserved:  Base Address:  0x0 X 4GB + 0xfee00000,
      Length:   0x0 X 4GB + 0x1000 bytes
   Reserved:  Base Address:  0x0 X 4GB + 0xfffe0000,
      Length:   0x0 X 4GB + 0x20000 bytes
   Usable RAM:  Base Address:  0x1 X 4GB + 0x0,
      Length:   0x0 X 4GB + 0x40000000 bytes

With that information for your system, we can try and figure out where it's going wrong.

roobyz commented 7 years ago

Thanks @jclulow... Here is the first half of it. I typed it out by hand. Cross my fingers that it is enough and there are no typos ;). Please let me know if there is a way to dump this to usb straight out of Grub.

EISA Memory BIOS Interface is present
Address Map BIOS Interface is present
Lower memory: 629K, Upper memory (to first chipset hole): 159744K
Memory limit for 64-bit ISADIR expansion: 1024MB
[Address Range Descriptor entries immediately follow (values are 64-bit)]
Usable RAM: Base Address: 0x0 X 4GB + 0x0,
    Length: 0x0 X 4GB + 0x9d400 bytes
  Reserved: Base Address: 0x0 X 4GB + 0x9d400,
    Length: 0x0 X 4GB + 0x02c00 bytes
  Reserved: Base Address: 0x0 X 4GB + 0xe0000,
    Length: 0x0 X 4GB + 0x02000 bytes
Usable RAM: Base Address: 0x0 X 4GB + 0x100000,
    Length: 0x0 X 4GB + 0x9c00000 bytes
  Reserved: Base Address: 0x0 X 4GB + 0x9d00000,
    Length: 0x0 X 4GB + 0x300000 bytes
Usable RAM: Base Address: 0x0 X 4GB + 0xa000000,
    Length: 0x0 X 4GB + 0xc1652000 bytes
  Reserved: Base Address: 0x0 X 4GB + 0xcb652000,
    Length: 0x0 X 4GB + 0x19000 bytes
Usable RAM: Base Address: 0x0 X 4GB + 0xcb66b000,
    Length: 0x0 X 4GB + 0x714b000 bytes
  Reserved: Base Address: 0x0 X 4GB + 0xd27b6000,
    Length: 0x0 X 4GB + 0x82000 bytes
Usable RAM: Base Address: 0x0 X 4GB + 0xd2838000,
    Length: 0x0 X 4GB + 0x8292000 bytes
  Reserved: Base Address: 0x0 X 4GB + 0xdaaca000,
    Length: 0x0 X 4GB + 0x178000 bytes
  Reserved: Base Address: 0x0 X 4GB + 0xdac42000,
    Length: 0x0 X 4GB + 0x9000 bytes
Usable RAM: Base Address: 0x0 X 4GB + 0xdac4b000,
    Length: 0x0 X 4GB + 0x106000 bytes
  Reserved: Base Address: 0x0 X 4GB + 0xdad51000,
    Length: 0x0 X 4GB + 0x3bf000 bytes
  Reserved: Base Address: 0x0 X 4GB + 0xdb110000,
    Length: 0x0 X 4GB + 0xd73000 bytes
Usable RAM: Base Address: 0x0 X 4GB + 0xdbe83000,
    Length: 0x0 X 4GB + 0x217d000 bytes
Usable RAM: Base Address: 0x0 X 4GB + 0x0,
    Length: 0x0 X 4GB + 0x1f380000 bytes
  Reserved: Base Address: 0x0 X 4GB + 0xde000000,
    Length: 0x0 X 4GB + 0x2000000 bytes
  Reserved: Base Address: 0x0 X 4GB + 0xf8000000,
    Length: 0x0 X 4GB + 0x4000000 bytes
  Reserved: Base Address: 0x0 X 4GB + 0xfdf00000,
    Length: 0x0 X 4GB + 0x100000 bytes
...
GernotS commented 7 years ago

I have the same issue on my Ryzen 1700 + Asus B350M-A. Wouldnt it be easier to migrate to the BSD Loader (Tsoome) instead of fighting old Grub issues? Maybe somebody already has a bootable Image?

MAHDTech commented 6 years ago

Same issue here with AMD Ryzen with Asrock mobo.

Anyone got a fix?

MAHDTech commented 6 years ago

For anyone playing along at home, one work around is to install grub2.

Instructions adapted from HERE

  1. Boot a Linux LiveCD (I used Ubuntu)

  2. Mount your disk which has SmartOS installed

mkdir /media/smartos
mount /dev/sdX /media/smartos
  1. Install grub2 to the mounted drive

grub-install --boot-directory=/media/smartos/boot /dev/sdX

  1. Create a grub.cfg

vi /media/smartos/boot/grub/grub.cfg

  1. Insert the following configuration into the file (modify as appropriate)
menuentry "SmartOS" {
    insmod multiboot
    set root='hd0,1'
    multiboot /platform/i86pc/kernel/amd64/unix /platform/i86pc/kernel/amd64/unix -B smartos=true
    module /platform/i86pc/amd64/boot_archive /platform/i86pc/amd64/boot_archive type=rootfs name=ramdisk
}

Unfortunately in my case, now it boots to the installer, however USB doesn't work so no keyboard, and no PS/2 on the mainboard I am using. :(

2 steps forward, 1 step back and all that...

papertigers commented 5 years ago

Hey everyone,

The work to swap from grub to the FreeBSD loader is now complete! (https://smartos.topicbox.com/groups/smartos-discuss/Te9084679836d54a2/flag-day-os-7260-smartos-should-support-booting-with-loader)

I have successfully booted SmartOS / OmniOS with this on a Ryzen Threadripper box where older grub based versions of the OS used to hit the error reported in this issue.

If you still have interest in SmartOS on the boxes you listed above, it would be great if you could try again and report back any successes / issues.