Page 1 of 15

ubuntu MATE 16.04.1 Live DVD

Posted: Thu Sep 01, 2016 9:21 pm
by xeno74
Hi All,

I figured out that our X1000 boots with the ubuntu MATE 16.04.1 Live DVD.

Unfortunately we need a xorg.conf with a configured fbdev on the Live DVD. Without a xorg.conf, the MATE desktop doesn't start and we can't switch to a shell.

The question was, how can I boot the Live DVD and copy a xorg.conf to /etc/X11?. The text boot argument doesn't work but I solved this problem with the following commands:
  1. Code: Select all

    CFE> ramdisk -addr=0x24000000 -fs=iso atapi0.1:casper/powerpc64/initrd
  2. Code: Select all

    CFE> setenv bootargs "root=/dev/ramdisk boot=casper single“
  3. Code: Select all

    CFE> boot -elf -noints -fatfs cf0:vmlinux-4.7
  4. Press Enter for maintenance
  5. Code: Select all

    mount -o rw,remount /
  6. Code: Select all

    dhclient
  7. Code: Select all

    wget http://www.xenosoft.de/X.org.conf.zip
  8. Code: Select all

    unzip X.org.conf.zip
  9. Code: Select all

    cp xorg.conf.radeon /etc/X11/xorg.conf
  10. Code: Select all

    vi /etc/X11/xorg.conf
    I replaced radeon with fbdev
  11. Code: Select all

    startx
The desktop works from the Live DVD but unfortunately the installer (ubiquity) crashes.

Image

How can I integrate the xorg.conf on the Live DVD?

Thanks,

Christian

Re: ubuntu MATE 16.04.1 Live DVD

Posted: Fri Sep 02, 2016 8:04 am
by xeno74
Hi All,

I tried to boot the Live DVD with the framebuffer driver without copying the xorg.conf.
  1. Code: Select all

    CFE> ramdisk -addr=0x24000000 -fs=iso atapi0.1:casper/powerpc64/initrd
  2. Code: Select all

    CFE> setenv bootargs "root=/dev/ramdisk file=/cdrom/preseed/ubuntu-mate.seed boot=casper video=offb:off nomodeset video=radeonfb:1600x1200-32@60"
  3. Code: Select all

    CFE> boot -elf -noints -fatfs cf0:vmlinux-4.7
I saw the boot messages but unfortunately Xorg doesn't work either.

Cheers,
Christian

Re: ubuntu MATE 16.04.1 Live DVD

Posted: Fri Sep 02, 2016 9:02 am
by xeno74
Hi All,

More success!

I figured out, that we don't need mount -o rw,remount / because the file system is already rw. With init 5 I was able to continue the default start of the Live DVD. The default ubuntu MATE live desktop works now but unfortunately the installer ubiquity crashed.
  1. Code: Select all

    CFE> ramdisk -addr=0x24000000 -fs=iso atapi0.1:casper/powerpc64/initrd
  2. Code: Select all

    CFE> setenv bootargs "root=/dev/ramdisk file=/cdrom/preseed/ubuntu-mate.seed boot=casper single"
  3. Code: Select all

    CFE> boot -elf -noints -fatfs cf0:vmlinux-4.7
  4. Press Enter for maintenance
  5. Code: Select all

    dhclient
  6. Code: Select all

    wget http://www.xenosoft.de/X.org.conf.zip
  7. Code: Select all

    unzip X.org.conf.zip
  8. Code: Select all

    cp xorg.conf.radeon /etc/X11/xorg.conf
  9. Code: Select all

    vi /etc/X11/xorg.conf
    I replaced radeon with fbdev
  10. Code: Select all

    init 5
Error message of ubiquity:

Code: Select all

ubiquity crashed with IndexError in free_space(): list index out of range.
I was able to install some packages for example hardinfo. On the screenshot you can see the crash log of ubiquity.

Image

Cheers,

Christian

Re: ubuntu MATE 16.04.1 Live DVD

Posted: Fri Sep 02, 2016 10:44 am
by xeno74
Hi All,

I installed ubiquity on my ubuntu MATE 16.04.1 LTS today. Unfortunately the same problem. That means the Live DVD isn't the problem. Ubiquity doesn't work. We didn't recognise that because we copied via "dd" Julian's images to our hard disks. Therefore we didn't need the ubiquity installer.

Cheers,

Christian

Re: ubuntu MATE 16.04.1 Live DVD

Posted: Fri Sep 02, 2016 2:20 pm
by xeno74
Hi All,

I was able to integrate the xorg.conf to the Live DVD with the following commands:
  1. Code: Select all

    mkdir /home/christian/livecdtmp
  2. Code: Select all

    mv ubuntu-mate-16.04.1-desktop-powerpc.iso /home/christian/livecdtmp/
  3. Code: Select all

    cd /home/christian/livecdtmp
  4. Code: Select all

    mkdir mnt
  5. Code: Select all

    sudo mount -o loop ubuntu-mate-16.04.1-desktop-powerpc.iso mnt
  6. Code: Select all

    mkdir extract-cd
  7. Code: Select all

    sudo rsync --exclude=/casper/filesystem.squashfs -a mnt/ extract-cd
  8. Code: Select all

    sudo unsquashfs mnt/casper/filesystem.squashfs
  9. Code: Select all

    sudo mv squashfs-root edit
  10. Code: Select all

    wget http://www.xenosoft.de/X.org.conf.zip
  11. Code: Select all

    unzip X.org.conf.zip
  12. Code: Select all

    sudo cp xorg.conf.radeon edit/etc/X11/xorg.conf
  13. Code: Select all

    sudo vi edit/etc/X11/xorg.conf
  14. I replaced radeon with fbdev
  15. Code: Select all

    sudo mksquashfs edit extract-cd/casper/filesystem.squashfs
  16. Code: Select all

    sudo su
  17. Code: Select all

    printf $(du -sx --block-size=1 edit | cut -f1) > extract-cd/casper/filesystem.size
  18. Code: Select all

    exit
  19. Code: Select all

    cd extract-cd
  20. Code: Select all

    sudo rm md5sum.txt
  21. Code: Select all

    find -type f -print0 | sudo xargs -0 md5sum | grep -v isolinux/boot.cat | sudo tee md5sum.txt
  22. Code: Select all

    sudo mkisofs -D -r -V "ubuntu_MATE_16.04.1_LTS_X1000" -cache-inodes -J -l -o ../ubuntu-mate-16.04.1-desktop-powerpc-custom.iso .
  23. Code: Select all

    sudo cdrecord dev=/dev/cdrom ubuntu-mate-16.04.1-desktop-powerpc-custom.iso
After that I tried to load the ram disk with:

Code: Select all

CFE> ramdisk -addr=0x24000000 -fs=iso atapi0.1:casper/powerpc64/initrd
Unfortunately the CFE can't load the ram disk. I don't know why. I copied it to the CF card and after that I was able to load the ram disk.

Code: Select all

CFE> ramdisk –addr=0x24000000 –fatfs cf0:initrd
I think I did something wrong with mkisofs.

OK, the integration of the xorg.conf was successfull. I can boot the Live DVD to the MATE desktop.

Code: Select all

CFE> setenv bootargs "root=/dev/ramdisk file=/cdrom/preseed/ubuntu-mate.seed boot=casper quiet ro splash --"

Code: Select all

CFE> boot -elf -noints -fatfs cf0:vmlinux-4.7
Cheers,

Christian

Re: ubuntu MATE 16.04.1 Live DVD

Posted: Fri Sep 02, 2016 4:08 pm
by xeno74
Hi All,

I created a new ISO with:
sudo mkisofs -r -V "ubuntu_MATE_16.04.1_LTS_X1000" -iso-level 2 -o ../ubuntu-mate-16.04.1-desktop-powerpc-x1000.iso .
After that I burned it with Brasero. Unfortunately the CFE can't load the initrd.

Code: Select all

CFE> ramdisk -addr=0x24000000 -fs=iso atapi0.1:casper/powerpc64/initrd
Error message:

Code: Select all

Loading: Error: DRQ should be zero
Had to read data 1024 times to clear DRQ
Failed.
Could not load atapi0.1:casper/powerpc64/initrd: File not found
But the CFE can see the initrd:

Code: Select all

CFE> dir -fs=iso atapi0.1:CASPER/POWERPC64
INITRD. 24506574
VMLINUX. 27074136
OK, I see the problem. There is a dot at the end of the file name initrd.

Code: Select all

CFE> ramdisk -addr=0x24000000 -fs=iso atapi0.1:casper/powerpc64/initrd.
works!!!!!!!!!!!!!

Code: Select all

CFE> setenv bootargs "root=/dev/ramdisk file=/cdrom/preseed/ubuntu-mate.seed boot=casper quiet ro splash --"

Code: Select all

CFE> boot -elf -noints -fatfs cf0:vmlinux-4.7
It boots to the MATE desktop without any problems.

I am happy! :-)

Cheers,

Christian

Re: ubuntu MATE 16.04.1 Live DVD

Posted: Fri Sep 02, 2016 8:33 pm
by zappa2009
Very cool.

I add vmlinux-4.7 into to root of the my UbuntuMate-X1000-LiveDVD and boot it from DVD only.

And I can mount my btrfs-exfat usbstick. I can access it on the Desktop :D

maybe its possible to add his modules too ;) But today its late. ;)

Re: ubuntu MATE 16.04.1 Live DVD

Posted: Fri Sep 02, 2016 11:51 pm
by mechanic
xeno74 wrote:Hi All,
It boots to the MATE desktop without any problems.

I am happy! :-)

Cheers,

Christian
I have been monitoring your adventure with great interest.

Congratulations. :D

Re: ubuntu MATE 16.04.1 Live DVD

Posted: Sat Sep 03, 2016 9:25 am
by xeno74
mechanic wrote:
I have been monitoring your adventure with great interest.

Congratulations. :D
Thank you! :-)
zappa2009 wrote:Very cool.

I add vmlinux-4.7 into to root of the my UbuntuMate-X1000-LiveDVD and boot it from DVD only.
Well done! :-)

I also added the stable kernel 4.7.2 to the Live DVD and it boots to the MATE desktop with the following commands:

Code: Select all

CFE> ramdisk -addr=0x24000000 -fs=iso atapi0.1:casper/powerpc64/initrd.

Code: Select all

CFE> setenv bootargs "root=/dev/ramdisk file=/cdrom/preseed/ubuntu-mate.seed boot=casper quiet ro splash --"

Code: Select all

CFE> boot -elf -noints -fs=iso atapi0.1:casper/powerpc64/vmlinux.
It works without any problems.

Guys, we have a new Live DVD! :-)

Re: ubuntu MATE 16.04.1 Live DVD

Posted: Sat Sep 03, 2016 1:50 pm
by mechanic
WHOOPIE! :D

8-)