Can not get Debain Sid to start

AmigaOne X1000 platform specific issues related to Linux only.
User avatar
JohnFante
Beta Tester
Beta Tester
Posts: 183
Joined: Tue Sep 04, 2012 6:48 am
Location: Copenhagen, Denmark

Can not get Debain Sid to start

Post by JohnFante »

I am having some problems getting Debian Sid to start so I am wondering if I am doing everything right.

Here is what I do:

I download the Jessie Alpha 1 installer from here: https://www.debian.org/devel/debian-installer/

At CFE I write "ramdisk -z -addr=0x24000000 -fs=iso atapi0.0:install/powerpc64/initrd.gz" to create a ramdisk.

setenv bootargs "root=/dev/ramdisk"

boot -elf -noints -fatfs cf0:vmlinux-3.14.6

the installer boots up fine and I can install witout any problems. Same as with Wheezy.

After installation I try to boot:

setenv bootrargs "root=/dev/sda12"

I have also tryied: setenv bootrargs "root=/dev/sda12 raid=noautdetect" and setenv bootrargs "root=/dev/sda12 radeon.dpm=0" same result.

Then I boot with: boot -elf -noints -fatfs cf0:vmlinux3.14.6

The kernel loads but when I comes to the part where x should start it just hangs with a black screen a blinking curser in the top left corner.

Any suggestions to what I am dooing wrong.
X5000 :-)
User avatar
xeno74
Posts: 9379
Joined: Fri Mar 23, 2012 7:58 am

Re: Can not get Debain Sid to start

Post by xeno74 »

Hi John,

The x server doesn't configure automatically on Debian Sid. You have to create manually a xorg.conf file. Which graphics card is installed in your A1-X1000?
For example my xorg.conf file as attachement. I had the problem that the fonts were not displayed. The solution is to set the option "RenderAccel" to "false" in the xorg.conf file.

Download: xorg.conf.tar.gz

Rgds,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
JohnFante
Beta Tester
Beta Tester
Posts: 183
Joined: Tue Sep 04, 2012 6:48 am
Location: Copenhagen, Denmark

Re: Can not get Debain Sid to start

Post by JohnFante »

I have a Radeon 5450.

I was aware of the xserver-problem. Solved that in Lubuntu.

However I can not get to a terminal to copy the xorg.conf file. Tried to kill x etc. but since it is not running nothing happens.

Do you mount and copy from ubuntu?

EDIT: Solved that: Mounted in Ubuntu and copied the xorg.file :-)
X5000 :-)
User avatar
xeno74
Posts: 9379
Joined: Fri Mar 23, 2012 7:58 am

Re: Can not get Debain Sid to start

Post by xeno74 »

JohnFante wrote: EDIT: Solved that: Mounted in Ubuntu and copied the xorg.file :-)
Fantastic! :-)
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
JohnFante
Beta Tester
Beta Tester
Posts: 183
Joined: Tue Sep 04, 2012 6:48 am
Location: Copenhagen, Denmark

Re: Can not get Debain Sid to start

Post by JohnFante »

Yes :-). Know I only need to get 3D up and running.

When I write glxgears I get:

libGL error: failed to load driver: r600
libGL error: failed to load driver: swrast
Error: couldn't get an RGB, Double-buffered visual

I am using your xorg.conf file.
X5000 :-)
User avatar
xeno74
Posts: 9379
Joined: Fri Mar 23, 2012 7:58 am

Re: Can not get Debain Sid to start

Post by xeno74 »

JohnFante wrote:Yes :-). Know I only need to get 3D up and running.

When I write glxgears I get:

libGL error: failed to load driver: r600
libGL error: failed to load driver: swrast
Error: couldn't get an RGB, Double-buffered visual

I am using your xorg.conf file.
Please add your user to the group "video".

Code: Select all

usermod -aG video your username
And then restart your A1-X1000.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
JohnFante
Beta Tester
Beta Tester
Posts: 183
Joined: Tue Sep 04, 2012 6:48 am
Location: Copenhagen, Denmark

Re: Can not get Debain Sid to start

Post by JohnFante »

Thank you :-) However there is no video section in your xorg.conf. I tried making a section under the Module section but that did not work. x would not start up.

I am using this xorg.conf that you posted in another thread.

Code: Select all

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	Screen      1  "Screen1" RightOf "Screen0"
	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 "Monitor"
	Identifier   "Monitor1"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "NoAccel"            	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "EnablePageFlip"     	# [<bool>]
        #Option     "ColorTiling"        	# [<bool>]
        #Option     "ColorTiling2D"      	# [<bool>]
        Option     "RenderAccel"	"false"
        #Option     "SubPixelOrder"      	# [<str>]
        #Option     "AccelMethod"        	# <str>
        #Option     "EXAVSync"           	# [<bool>]
        #Option     "EXAPixmaps"         	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "EnablePageFlip"     	# [<bool>]
        #Option     "SwapbuffersWait"    	# [<bool>]
	Identifier  "Card0"
	Driver      "radeon"
	BusID       "PCI:1:0:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "Rotate"             	# <str>
        #Option     "fbdev"              	# <str>
        #Option     "debug"              	# [<bool>]
	Identifier  "Card1"
	Driver      "fbdev"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	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

Section "Screen"
	Identifier "Screen1"
	Device     "Card1"
	Monitor    "Monitor1"
	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
X5000 :-)
User avatar
xeno74
Posts: 9379
Joined: Fri Mar 23, 2012 7:58 am

Re: Can not get Debain Sid to start

Post by xeno74 »

JohnFante wrote:Thank you :-) However there is no video section in your xorg.conf.
Sorry, I meant, that you add your user to the video group via the shell.

For example:

Code: Select all

usermod -aG video xeno74
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
JohnFante
Beta Tester
Beta Tester
Posts: 183
Joined: Tue Sep 04, 2012 6:48 am
Location: Copenhagen, Denmark

Re: Can not get Debain Sid to start

Post by JohnFante »

I did that and it seems faster/accelerated but glxgears will not run and I get the same error as before.

Well, I will look more into it tomorrow.
X5000 :-)
User avatar
xeno74
Posts: 9379
Joined: Fri Mar 23, 2012 7:58 am

Re: Can not get Debain Sid to start

Post by xeno74 »

JohnFante wrote:I did that and it seems faster/accelerated but glxgears will not run and I get the same error as before.

Well, I will look more into it tomorrow.
Please install the unofficial Mesa for the A1-X1000.

Image

Download: MesaLib-10.0.4-powerpc-unofficial.tar.bz2

Install instructions:
  1. Unpack the archive MesaLib-10.0.4-powerpc-unofficial.tar.bz2
  2. Copy it as root to the directory /usr/local/

    Code: Select all

    cp -R mesa-10.0.4 /usr/local/
    
  3. Set up the new library path

    Code: Select all

    export LD_LIBRARY_PATH=/usr/local/mesa-10.0.4/lib/
    
  4. Test it with glxgears. When you see the correct colors then you use the new version of Mesa. After that you can start some games for example Neverball.
SuperTuxKart needs a special run_game.sh for the new Mesa:

Code: Select all

LD_LIBRARY_PATH=./bin/:/usr/local/mesa-10.0.4/lib/ bin/supertuxkart
Note: If you want that Mesa works system wide and after rebooting then you have to add the line export LD_LIBRARY_PATH= to the .profile file in your home directory.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Post Reply