Re: updaing to grub on sparc64

2018-06-10 Thread louis ayotte
If a solution is found for this xvr-100 to work properly, i will try again my 
xvr-300 on t5220 to confirm (as i also had driver issues, always stuck at vga, 
low colors).

Thanks!

Louis

> Le 10 juin 2018 à 06:50, Phillip Stevens  a écrit :
> 
> Following on from my Ultra10 Sparc64 migration story, I've finally had
> time to install a XVR-100 graphics adapter.
> It all works pretty straight forward, by configuring it in OpenBoot correctly.
> The XVR-100 boot logo looks very nice!
> 
> But there is a problem with the radeonfb kernel driver, because
> several BAR regions can't be assigned. I guess it stops trying
> different regions when it gets to BAR 6.
> 
> And, I guess because of this, later during the boot process the
> radeonfb driver points out that it can't read the ROM nor can it
> assign BAR 6.
> 
> Possibly these are the root cause of why when the xserver loads the
> radeon driver, and then it doesn't get a match so it then unloads and
> bails out, leaving no screen.
> 
> I have posted some screen images here, for reference.
> https://feilipu.me/2018/04/14/old-sunshine-migrating-ultra5-to-sparc64/
> 
> Any thoughts on how to fix this?
> Where is the best place to file a bug report?
> 
> Cheers, Phillip
> 


Re: GRUB testers on SPARC needed

2018-02-04 Thread louis ayotte
Tested on a Sparc Ultra 10 workstation and it boots fine using your 
instructions.

Had to use an image from 2016 as the newer ones from september and december 
2017 did not work at all(both fail during installation).

Lshw

ultra
     description: Computer
     product: SUNW,375-0066
     width: 64 bits
   *-core
    description: Motherboard
    physical id: 0
    clock: 110MHz
  *-firmware
   product: SUNW,3.31
   physical id: 0
   logical name: /proc/device-tree
  *-memory
   description: System memory
   physical id: 2
   size: 740MiB
  *-cpu
   physical id: 3
   bus info: cpu@0
  *-pci:0
   description: PCI bridge
   product: Simba Advanced PCI Bridge
   vendor: Oracle/SUN
   physical id: 1
   bus info: pci@:00:01.0
   version: 13
   width: 32 bits
   clock: 66MHz
   capabilities: pci normal_decode bus_master
   resources: ioport:0(size=12582912) memory:1ff-1ffbfff
     *-usb:0
  description: USB controller
  product: VT82xx/62xx UHCI USB 1.1 Controller
  vendor: VIA Technologies, Inc.
  physical id: 1
  bus info: pci@:02:01.0
  version: 61
  width: 32 bits
  clock: 33MHz
  capabilities: pm uhci bus_master cap_list
  configuration: driver=uhci_hcd latency=22
  resources: irq:15 ioport:400(size=32)
    *-usbhost
     product: UHCI Host Controller
     vendor: Linux 4.14.0-3-sparc64 uhci_hcd
     physical id: 1
     bus info: usb@2
     logical name: usb2
     version: 4.14
     capabilities: usb-1.10
     configuration: driver=hub slots=2 speed=12Mbit/s
     *-usb:1
  description: USB controller
  product: VT82xx/62xx UHCI USB 1.1 Controller
  vendor: VIA Technologies, Inc.
  physical id: 1.1
  bus info: pci@:02:01.1
  version: 61
  width: 32 bits
  clock: 33MHz
  capabilities: pm uhci bus_master cap_list
  configuration: driver=uhci_hcd latency=22
  resources: irq:16 ioport:420(size=32)
    *-usbhost
     product: UHCI Host Controller
     vendor: Linux 4.14.0-3-sparc64 uhci_hcd
     physical id: 1
     bus info: usb@3
     logical name: usb3
     version: 4.14
     capabilities: usb-1.10
     configuration: driver=hub slots=2 speed=12Mbit/s
     *-usb:2
  description: USB controller
  product: USB 2.0
  vendor: VIA Technologies, Inc.
  physical id: 1.2
  bus info: pci@:02:01.2
  version: 63
  width: 32 bits
  clock: 33MHz
  capabilities: pm ehci bus_master cap_list
  configuration: driver=ehci-pci latency=22
  resources: irq:17 memory:1ff2000-1ff20ff
    *-usbhost
     product: EHCI Host Controller
     vendor: Linux 4.14.0-3-sparc64 ehci_hcd
     physical id: 1
     bus info: usb@1
     logical name: usb1
     version: 4.14
     capabilities: usb-2.00
     configuration: driver=hub slots=4 speed=480Mbit/s
     *-firewire
  description: FireWire (IEEE 1394)
  product: VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller
  vendor: VIA Technologies, Inc.
  physical id: 1.3
  bus info: pci@:02:01.3
  version: 46
  width: 32 bits
  clock: 33MHz
  capabilities: pm ohci bus_master cap_list
  configuration: driver=firewire_ohci latency=0 maxlatency=32
  resources: irq:15 memory:1ff4000-1ff47ff
ioport:480(size=128)
     *-multimedia UNCLAIMED
  description: Multimedia audio controller
  product: EMU10k1 [Sound Blaster Live! Series]
  vendor: Creative Labs
  physical id: 2
  bus info: pci@:02:02.0
  version: 07
  width: 32 bits
  clock: 33MHz
  capabilities: pm cap_list
  configuration: latency=0 maxlatency=20 mingnt=2
  resources: ioport:800(size=32)
     *-input UNCLAIMED
  description: Input device controller
  product: SB Live! Game Port
  vendor: Creative Labs
  physical id: 2.1
  bus info: pci@:02:02.1
  version: 07
  width: 32 bits
  clock: 33MHz
  capabilities: pm cap_list
  configurati

Need help with creator3d card on sun ultra 10

2018-02-04 Thread louis ayotte
Hi everyone!

I'm running latest version of Debian and latest firmware 3.31 on Sparc Ultra 10 
with Creator3d, when i boot up i see this error in grub.

GRUB Loading Kernel

error: out of memory.

error: no suitable video mode found

error: no video mode activated

It stills outputs through the display while being connected to the creator3d 
card but only wants to stay in text mode.


---I've tried this in /etc/default/grub and using update-grub

"quiet splash video=atyfb:off"

Made no difference from bootup to trying startx


---Also tinkered with Xorg but no success

Section "ServerLayout"
Identifier "X.org Configured"
Screen  0  "Screen0" 0 0
InputDevice"Mouse0" "CorePointer"
InputDevice"Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath   "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "built-ins"
EndSection

Section "Module"
Load  "glx"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver  "kbd"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver  "mouse"
Option  "Protocol" "auto"
Option  "Device" "/dev/input/mice"
Option  "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName"Monitor Model"
EndSection

Section "Device"
### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz",
### : "%"
### [arg]: arg optional
#Option "Accel" # []
#Option "SWcursor"  # []
#Option "EnablePageFlip"# []
#Option "SubPixelOrder" # []
#Option "ZaphodHeads"   # 
#Option "AccelMethod"   # 
#Option "DRI3"  # []
#Option "DRI"   # 
#Option "ShadowPrimary" # []
#Option "TearFree"  # []
#Option "DeleteUnusedDP12Displays"  # []
Identifier  "Sun Creator3D"
Driver  "sunffb"
Option  "UseFBDev" "true"
BusID   "PCI:1:2:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Sun Creator3D"
Monitor"Monitor0"
SubSection "Display"
Viewport   0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport   0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport   0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport   0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport   0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport   0 0
Depth 24
EndSubSection
EndSection


---Gives me this error as output

X.Org X Server 1.19.6
Release Date: 2017-12-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.14.0-3-sparc64-smp sparc64 Debian
Current Operating System: Linux ULTRA 4.14.0-3-sparc64 #1 Debian 4.14.13-1 
(2018-01-14) sparc64
Kernel command line: BOOT_IMAGE=/vmlinuz-4.14.0-3-sparc64 
root=UUID=41d7cab0-7024-42e9-9e3b-0ad18d14a3d0 ro quiet
Build Date: 26 January 2018  04:41:10PM
xorg-server 2:1.19.6-1 (https://www.debian.org/support)
Current version of pixman: 0.34.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Feb  4 12:24:44 2018
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
 at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional 
information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

Same as user or root

Any suggestions?

Thanks!



Re: Grub2 with sparc64 patches

2017-01-26 Thread louis ayotte
On 2017-01-25 03:02 PM, John Paul Adrian Glaubitz wrote:
> On 01/25/2017 08:21 PM, Eric Snowberg wrote:
>> I believe you are running out of memory here because grub is trying to load 
>> all those frame buffer modules within your config.
>>
>>> error: no suitable video mode found.
>> And then it didn’t find one that worked.
>>
>> For this, I believe you are having the same problem as Frans.  Could you add 
>> the following to /etc/default/grub:
>>
>> GRUB_TERMINAL_OUTPUT="console"
>> GRUB_DISABLE_RECOVERY="true"
>> GRUB_PRELOAD_MODULES=“iso9660"
>>
>> and then regenerate your grub.cfg with grub-mkconfig.
>>
>> Adrian,
>>
>> I don’t plan on adding frame buffer support since newer systems don’t have 
>> them.  Would it be possible to change your grub package to include a 
>> /etc/default/grub file for SPARC with the changes above?  We do the same 
>> thing with our grub rpm.
> Oh, absolutely. Thanks for the suggestion. This was just the first package 
> and I'm happy to include
> all improvements that are necessary.
>
> Adrian
>

K applied these changes, in chroot

  GNU nano 2.7.4   File:
/etc/default/grub 

# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to
Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

GRUB_TERMINAL_OUTPUT="console"
GRUB_DISABLE_RECOVERY="true"
GRUB_PRELOAD_MODULES="iso9660"


Saved and exited


# grub-mkconfig
Generating grub configuration file ...
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod iso9660
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
  fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
insmod all_video
  else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
  fi
}

terminal_output console
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
Found linux image: /boot/vmlinuz-4.9.0-1-sparc64-smp
Found initrd image: /boot/initrd.img-4.9.0-1-sparc64-smp
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class
gnu --class os $menuentry_id_option
'gnulinux-simple-2f8e4b53-061c-4878-9d30-bec179fb59e4' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_sun
insmod ext2
set root='hd1,sun1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root
--hint-ieee1275='ieee1275//pci@400/pci@0/pci@8/scsi@0/disk@0,sun1'
--hint-bios=hd1,sun1 --hint-efi=hd1,sun1 --hint-baremetal=ahci1,sun1 
eda75771-2b2f-4ef8-95f7-d007f3f3355a
else
  search --no-floppy --fs-uuid --set=root
eda75771-2b2f-4ef8-95f7-d007f3f3355a
fi
echo'Loading Linux 4.9.0-1-sparc64-smp ...'
linux/vmlinuz-4.9.0-1-sparc64-smp
root=UUID=2f8e4b53-061c-4878-9d30-bec179fb59e4 ro  quiet
echo'Loading initial ramdisk ...'
initrd/initrd.img-4.9.0-1-sparc64-smp
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option
'gnulinux-advanced-2f8e4b53-061c-4878-9d30-bec179fb59e4' {
menuentry 'Debian GNU/Linux, with Linux 4.9.0-1-sparc64-smp' --class
debian --class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-4.9.0-1-sparc64-smp-advanced-2f8e4b53-061c-4878-9d30-bec179fb59e4'
{
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_sun
in

Re: Grub2 with sparc64 patches

2017-01-25 Thread louis ayotte
On 2017-01-24 01:01 PM, Eric Snowberg wrote:

> How big is your kernel?  Will silo boot it?  Can you start over and do the 
> following:
>
> grub> reboot
>
> You should be back at OBP. Now boot from the disk again and issue:
>
> grub> ls -l /
>
> and send the response? Can you also send a list of all the loaded modules?
>
> grub> lsmod
>
> If you have a rescue iso, it may be easier to boot from it, mount your disk, 
> chroot to it, and then generate your missing grub.cfg file with grub-mkconfig 
> and then reboot.
>
>
Hi Eric

generated the grub configure and this was the output;

# grub-mkconfig
Generating grub configuration file ...
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
  fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
insmod all_video
  else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_sun
insmod ext2
set root='hd1,sun2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root
--hint-ieee1275='ieee1275//pci@400/pci@0/pci@8/scsi@0/disk@0,sun2'
--hint-bios=hd1,sun2 --hint-efi=hd1,sun2 --hint-baremetal=ahci1,sun2 
2f8e4b53-061c-4878-9d30-bec179fb59e4
else
  search --no-floppy --fs-uuid --set=root
2f8e4b53-061c-4878-9d30-bec179fb59e4
fi
font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
Found linux image: /boot/vmlinuz-4.9.0-1-sparc64-smp
Found initrd image: /boot/initrd.img-4.9.0-1-sparc64-smp
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class
gnu --class os $menuentry_id_option
'gnulinux-simple-2f8e4b53-061c-4878-9d30-bec179fb59e4' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_sun
insmod ext2
set root='hd1,sun1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root
--hint-ieee1275='ieee1275//pci@400/pci@0/pci@8/scsi@0/disk@0,sun1'
--hint-bios=hd1,sun1 --hint-efi=hd1,sun1 --hint-baremetal=ahci1,sun1 
eda75771-2b2f-4ef8-95f7-d007f3f3355a
else
  search --no-floppy --fs-uuid --set=root
eda75771-2b2f-4ef8-95f7-d007f3f3355a
fi
echo'Loading Linux 4.9.0-1-sparc64-smp ...'
linux/vmlinuz-4.9.0-1-sparc64-smp
root=UUID=2f8e4b53-061c-4878-9d30-bec179fb59e4 ro  quiet
echo'Loading initial ramdisk ...'
initrd/initrd.img-4.9.0-1-sparc64-smp
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option
'gnulinux-advanced-2f8e4b53-061c-4878-9d30-bec179fb59e4' {
menuentry 'Debian GNU/Linux, with Linux 4.9.0-1-sparc64-smp' --class
debian --class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-4.9.0-1-sparc64-smp-advanced-2f8e4b53-061c-4878-9d30-bec179fb59e4'
{
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_sun
insmod ext2
set root='hd1,sun1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root
--hint-ieee1275='ieee1275//pci@400/pci@0/pci@8/scsi@0/disk@0,sun1'
--hint-bios=hd1,sun1 --hint-efi=hd1,sun1 --hint-baremetal=ahci1,sun1 
eda75771-2b2f-4ef8-95f7-d007f3f3355a
else
  search --no-floppy --fs-uuid --set=root
eda75771-2b2f-4ef8-95f7-d007f3f3355a
fi
echo'Loading Linux 4.9.0-1-sparc64-smp ...'
linux/vmlinuz-4.9.0-1-sparc64-smp
root=UUID=2

Re: Grub2 with sparc64 patches

2017-01-24 Thread louis ayotte
On 2017-01-24 05:37 PM, Eric Snowberg wrote:

> That might be best.  Before you do that though, could you turn on the 
> following debug flag and send me the results:
>
> grub> set debug=loader
> grub> linux /vmlinuz-4.9.0-1-sparc64-smp
>
> do you get the same error with your smaller kernel?
>

grub> set debug=loader

grub> linux /vmlinuz-4.9.0-1-sparc64-smp
loader/sparc64/ieee1275/linux.c:495: Grub lives at phys_start[e402000]
phys_end[ee0]
error: /memory response buffer exceeded.

grub> linux /vmlinuz-4.5.0-2-sparc64-smp
loader/sparc64/ieee1275/linux.c:270: Attempting to claim at 0x40004000, size
0x8d0591.
error: couldn't allocate physical memory.

reboot

grub> set debug=loader

grub> linux /vmlinuz-4.5.0-2-sparc64-smp
loader/sparc64/ieee1275/linux.c:495: Grub lives at phys_start[e402000]
phys_end[ee0]
error: /memory response buffer exceeded.



Re: Grub2 with sparc64 patches

2017-01-24 Thread louis ayotte
On 2017-01-24 01:01 PM, Eric Snowberg wrote:

> How big is your kernel?  Will silo boot it?  Can you start over and do the 
> following:
>
> grub> reboot
>
> You should be back at OBP. Now boot from the disk again and issue:
>
> grub> ls -l /
>
> and send the response? Can you also send a list of all the loaded modules?
>
> grub> lsmod
>
> If you have a rescue iso, it may be easier to boot from it, mount your disk, 
> chroot to it, and then generate your missing grub.cfg file with grub-mkconfig 
> and then reboot.
>
Before i installed grub it was booting fine with both kernels from SILO

grub> ls -l /
DIR  20170116171825 lost+found/
5143720160122105340 silotftp.b
6752 20160122105340 isofs.b
512  20160122105340 first.b
1024 20160122105340 generic.b
1024 20160122105340 fd.b
5376020170116173035 second.b
800  20160122105340 ieee32.b
3715429  20160430170110 vmlinuz-4.5.0-2-sparc64-smp
2314500  20160430170315 System.map-4.5.0-2-sparc64-smp
3850232  20170116192407 vmlinuz
512  20160122105340 ultra.b
17281088 20170116192407 initrd.img
196  20170116173227 silo.conf
127403   20160430170315 config-4.5.0-2-sparc64-smp
7680 20170116173035 old.b
16280175 20170116191428 initrd.img-4.5.0-2-sparc64-smp
132748   20170112155237 config-4.9.0-1-sparc64-smp
3850232  20170112155237 vmlinuz-4.9.0-1-sparc64-smp
16280175 20170116192407 initrd.img.old
3715429  20170116192407 vmlinuz.old
DIR  20170123170539 grub/
2416201  20170112155237 System.map-4.9.0-1-sparc64-smp
17281088 20170123004007 initrd.img-4.9.0-1-sparc64-smp

grub> lsmod
NameRef Count   Dependencies
minicmd 1  
ls  1   normal
normal  3   gettext,boot,bufio,crypto,terminal
gzio0  
gettext 4  
boot4  
bufio   4  
crypto  4  
terminal4  
search_fs_uuid  1  
part_sun1  
ext21   fshelp
fshelp  2  

I might look into the rescue iso later on today

Thanks


Re: Grub2 with sparc64 patches

2017-01-24 Thread louis ayotte
On 2017-01-24 10:56 AM, Eric Snowberg wrote:

> “ls" is one area that has not been completed for SPARC and has many problems.
>
> Try this instead:
>
> grub> ls /
>
> If you see your kernel and initrd, then do something like the following:
>
> grub> linux  /vmlinuz-4.8.0-rc8-ATU_final_upstream_v4+ 
> root=/dev/mapper/VolGroup-lv_root ro
> grub> initrd  /initramfs-4.8.0-rc8-ATU_final_upstream_v4+.img
> grub> boot
>
>
This is what i have done,

   GNU GRUB  version 2.02~beta3-3+sparc64

   Minimal BASH-like line editing is supported. For the first word, TAB  
   lists possible command completions. Anywhere else TAB lists possible  
   device or file completions.   


grub> ls /
lost+found/ silotftp.b isofs.b first.b generic.b fd.b second.b ieee32.b
vmlinuz
-4.5.0-2-sparc64-smp System.map-4.5.0-2-sparc64-smp vmlinuz ultra.b
initrd.img
silo.conf config-4.5.0-2-sparc64-smp boot etc old.b
initrd.img-4.5.0-2-sparc64-
smp config-4.9.0-1-sparc64-smp vmlinuz-4.9.0-1-sparc64-smp
initrd.img.old vmlin
uz.old grub/ System.map-4.9.0-1-sparc64-smp initrd.img-4.9.0-1-sparc64-smp
grub> linux /vmlinuz-4.9.0-1-sparc64-smp
error: /memory response buffer exceeded.
grub> initrd /in
Possible files are:

 initrd.img initrd.img-4.5.0-2-sparc64-smp initrd.img.old
initrd.img-4.9.0-1-sparc64-smp
grub> initrd /initrd.img-4.9.0-1-sparc64-smp
error: you need to load the kernel first.
grub> linux /vmlinuz-4.9.0-1-sparc64-smp   
error: couldn't allocate physical memory.
grub> linux /vmlinuz-4.9.0-1-sparc64-smp root=/dev/sdb
error: couldn't allocate physical memory.
grub> linux /vmlinuz-4.9.0-1-sparc64-smp root=/dev/sdb ro
error: couldn't allocate physical memory.
grub> linux /vmlinuz-4.9.0-1-sparc64-smp
root=/dev/mapper/Volgroup_lv_root ro
error: couldn't allocate physical memory.
grub> boot
error: you need to load the kernel first.



Re: Grub2 with sparc64 patches

2017-01-23 Thread louis ayotte


On 2017-01-23 04:27 PM, John Paul Adrian Glaubitz wrote:
> I think there is enough documentation for this on the web:
>
>> https://www.linux.com/learn/how-rescue-non-booting-grub-2-linux
>> https://wiki.archlinux.org/index.php/GRUB#Using_the_command_shell
> Adrian
>
T5240, No Keyboard
Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.33.6, 98080 MB memory available, Serial #83048406.
Ethernet address 0:14:4f:f3:37:d6, Host ID: 84f337d6.

Boot device: /pci@400/pci@0/pci@8/scsi@0/disk@0,0:a  File and args:
GRUB Loading kernel..

 GNU GRUB  version 2.02~beta3-3+sparc64

   Minimal BASH-like line editing is supported. For the first word, TAB  
   lists possible command completions. Anywhere else TAB lists possible  
   device or file completions.   

grub> set pager=1
grub> ls
(ieee1275//iscsi-hba/disk) ERROR: /iscsi-hba: No iscsi-network-bootpath
property
(ieee1275/disk6)
ERROR: /pci@400: Last Trap: Fast Data Access MMU Miss
{0} ok

Everytime i write "ls" it crashes grub


Re: Grub2 with sparc64 patches

2017-01-23 Thread louis ayotte
I did reboot but i forgot to generate the configuration for grub,

GNU GRUB  version 2.02~beta3-3+sparc64

   Minimal BASH-like line editing is supported. For the first word, TAB  
   lists possible command completions. Anywhere else TAB lists possible  
   device or file completions.   


grub>

uname -a
Linux T5240 4.9.0-1-sparc64-smp #1 SMP Debian 4.9.2-2 (2017-01-12)
sparc64 GNU/Linux

parted /dev/sdb print
Model: SEAGATE ST914603SSUN146G (scsi)
Disk /dev/sdb: 147GB
Sector size (logical/physical): 512B/512B
Partition Table: sun
Disk Flags:

Number  Start   End SizeFile system Flags
 1  0.00B   1003MB  1003MB  ext2boot
 2  1003MB  141GB   140GB   ext4
 4  141GB   147GB   5799MB  linux-swap(v1)


Some help would be appreciated

Thanks



Re: Grub2 with sparc64 patches

2017-01-23 Thread louis ayotte
On 2017-01-23 01:24 PM, John Paul Adrian Glaubitz wrote:

> This looks like your /boot partition is either too small or uses an
> unsupported
> filesystem. Could you print out your partition table with parted?
>
> E.g.:
>
> root@deb4g:~# parted /dev/vdiska print
> Model: Unknown (unknown)
> Disk /dev/vdiska: 161GB
> Sector size (logical/physical): 512B/512B
> Partition Table: gpt
> Disk Flags:
>
> Number  Start   End Size   File system  Name  Flags
>  1  1049kB  1000MB  999MB  ext3   boot, esp
>  2  1001MB  161GB   160GB  ext4
>
> root@deb4g:~#
>
> Thanks,
> Adrian
>
# parted /dev/sdb print
Model: SEAGATE ST914603SSUN146G (scsi)
Disk /dev/sdb: 147GB
Sector size (logical/physical): 512B/512B
Partition Table: sun
Disk Flags:

Number  Start   End SizeFile system Flags
 1  0.00B   1003MB  1003MB  ext2boot
 2  1003MB  141GB   140GB   ext4
 4  141GB   147GB   5799MB  linux-swap(v1)


On 2017-01-23 02:38 PM, Eric Snowberg wrote:
> Since the T5240 doesn’t support GPT, we have to use blocklists, could you try 
> this instead:
>
> # grub-install —force /dev/sdb1
>
> The following warning can be ignored for now:
>
> Installing for sparc64-ieee1275 platform.
> grub2-install: warning: Embedding is not possible.  GRUB can only be 
> installed in this setup by using blocklists.  However, blocklists are 
> UNRELIABLE and their use is discouraged..
> Installation finished. No error reported.
>
>
# grub-install --force /dev/sdb1
Installing for sparc64-ieee1275 platform.
grub-install: warning: Embedding is not possible.  GRUB can only be
installed in this setup by using blocklists.  However, blocklists are
UNRELIABLE and their use is discouraged..
Installation finished. No error reported.





Grub2 with sparc64 patches

2017-01-23 Thread louis ayotte
Hi everyone,

I made sure to install the correct version of this package as can be
seen here;

# apt-cache policy grub2
grub2:
  Installed: 2.02~beta3-3+sparc64
  Candidate: 2.02~beta3-3+sparc64
  Version table:
 *** 2.02~beta3-3+sparc64 500
500 http://deb.debian.org/debian-ports unreleased/main sparc64
Packages
100 /var/lib/dpkg/status
 2.02~beta3-3 500
500 http://ftp.de.debian.org/debian-ports sid/main sparc64 Packages
500 http://ftp.de.debian.org/debian-ports unstable/main sparc64
Packages

Then tried to install it (T5240, /dev/sdb1 (ext2) for /boot and
/dev/sdb2 (ext4) for / )

# grub-install --boot-directory=/boot /dev/sdb
Installing for sparc64-ieee1275 platform.
grub-install: warning: Embedding is not possible.  GRUB can only be
installed in this setup by using blocklists.  However, blocklists are
UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.

Thanks to everyone involved!



Debian Sparc 2015-12-13 on T5240

2017-01-16 Thread louis ayotte
Debian SPARC December 13 on t5240 notes (dual 8 core, 96gb ram)

When booting from usb(tried multiple usb drives and cd's), the installer 
interface is corrupted, each line is offset and resizing the command line 
window makes it worse.

During the manual partition setup, the partition size is already written but is 
invisible, it needs to be removed to successfully resize it.

Install base system fails with this error
│   The debootstrap program exited with an error (return value 1).  │
│   The base system installation into /target/ failed.  │
Installation step failed
│   An installation step failed. You can try to run the failing item  │
│   again from the menu, or skip it and choose something else. The│

My partition settings were; 1gb for /boot, 140gb for / and 5.8gb for swap

Tried repartitioning and reinstalling base but always the same. also verified 
cdrom integrity and was valid. Below is the log which can be accessed by 
pressing CTRL-A.

Jan 16 16:51:33 main-menu[263]: WARNING **: Configuring 'bootstrap-base' failed 
with error code 30
Jan 16 16:51:33 main-menu[263]: WARNING **: Menu item 'bootstrap-base' failed.
Jan 16 16:51:37 main-menu[263]: DEBUG: resolver (libgcc1): package doesn't 
exist (ignored)
Jan 16 16:51:37 main-menu[263]: INFO: Falling back to the package description 
for brltty-udeb
Jan 16 16:51:52 main-menu[263]: INFO: Falling back to the package description 
for brltty-udeb

The previous iso (2016-05-04) worked fine beside the "Select and Install 
Software" step, using it right now. Also no success yet with partman-zfs (tried 
setting up RaidZ2 on 7x 300gb drives, always fails).

Thanks for all who works on this project!